2002-10-23 David Carlton <carlton@math.stanford.edu>
[binutils-gdb.git] / gdb / ChangeLog
1 2002-10-23 David Carlton <carlton@math.stanford.edu>
2
3 * parse.c (parse_exp_1): Use BLOCK_START.
4 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
5 SYMBOL_BLOCK_VALUE.
6 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
7
8 2002-10-23 David Carlton <carlton@math.stanford.edu>
9
10 * symtab.c: Delete cplusplus_hint.
11 Delete prototype for find_template_name_end.
12
13 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
14
15 * symtab.h: Update comment.
16
17 2002-10-23 Michael Snyder <msnyder@redhat.com>
18
19 * printcmd.c (address_info): Restore quotes in output.
20 * valops.c (value_of_local): Restore quotes in error message.
21
22 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
23
24 * symtab.c (symbol_demangled_name): New function.
25 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
26 turning most of it into a function.
27 (symbol_demangled_name): Export.
28
29 2002-10-23 Michael Snyder <msnyder@redhat.com>
30
31 * valops.c (value_of_local): Restore quotes in error message.
32
33 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
34
35 * symtab.c (symbol_init_language_specific): New function.
36 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
37 turning most of it into a function.
38 (symbol_init_language_specific): Export.
39
40 2002-10-23 David Carlton <carlton@math.stanford.edu>
41
42 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
43 (dwarf_attr_name): Ditto.
44 (dwarf_type_encoding_name): Ditto.
45 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
46 (process_die): Handle DW_TAG_namespace,
47 DW_TAG_imported_declaration, DW_TAG_imported_module.
48 (read_namespace): New function.
49
50 2002-10-22 Joel Brobecker <brobecker@gnat.com>
51
52 * configure.in: Define NEW_PROC_API on Interix too.
53 * configure: Regenerate.
54
55 2002-10-21 Joel Brobecker <brobecker@gnat.com>
56
57 * configure: Regenerate using the proper version of autoconf.
58
59 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
60
61 * findvar.c (read_var_value): Temporarily disable TLS code, until
62 complete TLS support is added.
63
64 2002-10-21 Jim Blandy <jimb@redhat.com>
65 Elena Zannoni <ezannoni@redhat.com>
66
67 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
68 for thread local storage locations.
69 (struct symbol): Add objfile field.
70 (SYMBOL_OBJFILE): Define.
71 * dwarf2read.c (is_thread_local): New static variable.
72 (new_symbol): If variable is in thread local fill in address class
73 and objfile appropriately.
74 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
75 stack operation.
76 * printcmd.c (address_info): Print the information for thread
77 local storage variable.
78 * findvar.c (read_var_value): In case of thread local variable,
79 defer to the target vector code to compute address.
80
81 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
82
83 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
84 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
85
86 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
87
88 * symtab.h (address_class): Rename
89 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
90 * hpread.c (hpread_process_one_debug_symbol): Ditto.
91 * printcmd.c (address_info): Ditto.
92 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
93
94 2002-10-20 Mark Kettenis <kettenis@gnu.org>
95
96 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
97 DBREG_DRX macro to acces debug registers.
98
99 * Makefile.in (i386obsd-tdep.o): New target.
100
101 * solib-sunos.c: Include "bcache.h" and "regcache.h".
102 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
103
104 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
105 * config/i386/obsd.mt: New file.
106 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
107 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
108 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
109 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
110 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
111 * i386obsd-tdep.c: New file.
112
113 2002-10-19 Adam Fedor <fedor@gnu.org>
114
115 * objc-exp.y (name_not_typename): Fix invalid comment.
116
117 2002-10-20 Mark Kettenis <kettenis@gnu.org>
118
119 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
120 to allocate partial syms and macro byte caches.
121
122 2002-10-18 David Carlton <carlton@math.stanford.edu>
123
124 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
125
126 2002-10-18 Adam Fedor <fedor@gnu.org>
127
128 * stabsread.c (find_name_end): New function.
129 (define_symbol): Use it.
130
131 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
132
133 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
134 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
135 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
136 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
137
138 2002-10-17 David Carlton <carlton@math.stanford.edu>
139
140 * symfile.h: Add opaque declaration for struct obstack.
141 Declare obsavestring to take a const char *.
142 * symfile.c (obsavestring): Make first argument a const char *.
143
144 2002-10-16 Adam Fedor <fedor@gnu.org>
145
146 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
147 names when matching breakpoints in current file.
148
149 2002-10-16 Kevin Buettner <kevinb@redhat.com>
150
151 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
152 (read_tag_pointer_type): Add address class support.
153 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
154 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
155 New methods.
156 * gdbarch.h, gdbarch.c: Regenerate.
157 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
158 (make_type_with_address_space, recursive_type_dump): Add address
159 class support.
160 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
161 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
162 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
163
164 2002-10-16 Klee Dienes <kdienes@apple.com>
165
166 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
167 to get the last character of a char[] buffer, not
168 name[sizeof(vptr_name)-1].
169
170 2002-10-14 Adam Fedor <fedor@gnu.org>
171
172 * symtab.h: New objc_specific struct.
173 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
174 (SYMBOL_DEMANGLED_NAME): Likewise.
175
176 2002-10-14 Adam Fedor <fedor@gnu.org>
177
178 * symfile.c (init_filename_language_table): Add ObjC file extension.
179
180 2002-10-14 Adam Fedor <fedor@gnu.org>
181
182 * utils.c (puts_filtered_tabular): New function.
183 (fprintf_symbol_filtered): Get ObjC demangled name.
184 * defs.h (puts_filtered_tabular): Declared.
185
186 2002-10-14 Kevin Buettner <kevinb@redhat.com>
187
188 * c-lang.h (c_type_print_varspec_prefix): Delete.
189 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
190 ``need_post_space'' parameter. Adjust all callers.
191
192 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
193
194 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
195 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
196 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
197 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
198
199 2002-10-13 Adam Fedor <fedor@gnu.org>
200
201 * source.c (print_source_lines): Update comments.
202
203 2002-10-13 Adam Fedor <fedor@gnu.org>
204
205 * valops.c (value_of_local): New function.
206 (value_of_this): Use it.
207 * value.h (value_of_local): Declared.
208
209 2002-10-13 Adam Fedor <fedor@gnu.org>
210
211 * parse.c: (length_of_subexp, prefixify_subexp): Handle
212 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
213
214 2002-10-12 Adam Fedor <fedor@gnu.org>
215
216 * language.c (binop_result_type): Add language_objc to case.
217 (integral_type): Likewise.
218 (character_type): Likewise.
219 (string_type): Likewise.
220 (boolean_type): Likewise.
221 (structured_type): Likewise.
222 (binop_type_check): Likewise.
223
224 2002-10-11 Adam Fedor <fedor@gnu.org>
225
226 * printcmd.c (address_info): Print 'self' for ObjC.
227
228 2002-10-11 Adam Fedor <fedor@gnu.org>
229
230 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
231 OP_SELF.
232
233 2002-10-11 Adam Fedor <fedor@gnu.org>
234
235 * language.h (CAST_IS_CONVERSION): Add language_objc.
236
237 2002-10-11 Adam Fedor <fedor@gnu.org>
238
239 * defs.h (enum language): Add language_objc.
240
241 2002-10-11 Klee Dienes <kdienes@apple.com>
242
243 * findvar.c (read_memory_typed_address): New function.
244 * gdbcore.h (read_memory_typed_address): Add prototype.
245 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
246 to read a value destined for a CORE_ADDR, not read_memory_integer.
247 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
248 (f77_get_dynamic_lowerbound): Ditto.
249
250 2002-10-11 Martin M. Hunt <hunt@redhat.com>
251
252 * utils.c (string_to_core_addr): After turning string into
253 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
254 which will do necessary sign-extension, etc.
255
256 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
257
258 * c-exp.y (THIS): Delete token and grammar rule.
259 (yylex): Don't return THIS.
260 * cp-valprint.c (vtbl_ptr_name_old): Delete.
261 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
262 * demangle.c (cplus_markers): Update comment. Put '$'
263 first. Remove CPLUS_MARKER.
264 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
265 * jv-exp.y (THIS): Delete token and grammar rule.
266 (yylex): Don't return THIS.
267 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
268 * objc-exp.y (THIS): Delete token and grammar rule.
269 (yylex): Don't return THIS.
270 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
271 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
272 (read_member_functions): Likewise for opname.
273 (read_tilde_fields): Use is_cplus_marker.
274
275 * defs.h (CPLUS_MARKER): Don't define.
276 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
277 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
278 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
279 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
280 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
281
282 * config/i386/tm-i386v4.h: Delete file.
283 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
284 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
285 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
286 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
287 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
288 * config/i386/i386sco5.mt (TM_FILE): Likewise.
289 * config/i386/i386v4.mt (TM_FILE): Likewise.
290 * config/i386/ncr3000.mt (TM_FILE): Likewise.
291
292 2002-10-10 Marko Mlinar <markom@opencores.org>
293
294 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
295 accidentially not commited 2002-10-09
296 * gdbarch.h, gdbarch.c: Re-generate.
297
298 2002-10-09 Marko Mlinar <markom@opencores.org>
299
300 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
301 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
302 * gdbarch.h, gdbarch.c: Re-generate.
303
304 2002-10-08 Petr Sorfa <petrs@caldera.com>
305
306 Revised and re-submitted by John Wolfe <jlw@caldera.com>
307
308 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
309 so we can work on more than one compilation unit at a time. This
310 helps prepare GDB to handle inter-CU die references.
311 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
312 the code to be defined before struct comp_unit_head.
313 (comp_unit_head): Added new members - offset, cu_head,
314 begin_die, next and dwarf2_abbrevs.
315 (dwarf2_abbrevs): Removed single static var; now member of
316 struct comp_unit_head.
317 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
318 members.
319 (psymtab_to_symtab_1): Changed to work with the new
320 struct comp_unit_head.
321 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
322 constructs the dwarf2_abbrevs[] inside the cu_header.
323 (dwarf2_empty_abbrev_table): Now expects a ptr to a
324 dwarf2_abbrev table to clean up.
325 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
326 handling of dwarf2_abbrevs inside the cu_header.
327 (read_partial_die): Now supports the call to the new
328 dwarf2_lookup_abbrev.
329 (read_full_die): Now supports the call to the new
330 dwarf2_lookup_abbrev.
331
332 2002-10-06 Christopher Faylor <cgf@redhat.com>
333
334 * Makefile.in (install-gdbtk): Add missing continuation backslash to
335 insure that shell variables, such as "transformed_name" are propagated
336 to later shell statements in rule.
337
338 2002-10-06 Mark Kettenis <kettenis@gnu.org>
339
340 * config/i386/nm-i386sco.h: Add protection against
341 multiple-inclusion. Include "i386/nm-i386v.h".
342 (REGISTER_U_ADDR): Remove define.
343 (i386_register_u_addr): Remove prototype.
344
345 2002-10-04 Michael Snyder <msnyder@redhat.com>
346
347 * m32r-stub.c (handle_exception): Make sure exception is "trap"
348 before treating it as a single-step event.
349
350 2002-10-03 Adam Fedor <fedor@gnu.org>
351
352 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
353 (objc_demangle): Remove assignment in if statements, Replace
354 free with xfree.
355 (add_msglist): Likewise.
356 (end_msglist): Likewise.
357 (complare_selectors): Likewise.
358 (selectors_info): Likewise.
359 (compare_classes): Likewise.
360 (classes_info): Likewise.
361 (print_object_command): Likewise.
362 (find_objc_msgcall_submethod): Replace PTR with void *.
363 * objc-lang.h: Remove check for __STDC__.
364
365 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
366
367 * ui-out.h (ui_out_field_fmt_int): New prototype.
368 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
369 of field width and alignment.
370 * stack.c (print_frame_info_base): When printing frame level, use
371 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
372 PR gdb/192
373
374 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
375
376 * MAINTAINERS: Add self to Write After Approval list.
377
378 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
379
380 * infcmd.c (interrupt_target_command_wrapper): Delete.
381 (interrupt_target_command): Make non static.
382 (nofp_registers_info): Make static.
383 * stack.c (return_command_wrapper): Delete.
384 (return_command): Make non static.
385
386 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
387
388 * event-top.c (gdb_setup_readline): New function. Code moved from
389 _initialize_event_loop().
390 (_initialize_event_loop): Call gdb_setup_readline().
391
392 2002-10-02 Andrew Cagney <ac131313@redhat.com>
393
394 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
395 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
396 * gdbarch.h, gdbarch.c: Re-generate.
397
398 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
399
400 Fix PR gdb/778
401 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
402 before recursing.
403 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
404 of fill_in_vptr_fieldno.
405
406 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
407
408 * inferior.h (registers_info, stepi_command, nexti_command,
409 continue_command, interrupt_target_command): Export from infcmd.c.
410 * frame.h (args_info, selected_frame_level_changed_hook,
411 return_command): Export from stack.c.
412 * v850ice.c (stepi_command, nexti_command, continue_command): use
413 prototypes from inferior.h.
414 * tracepoint.c (registers_info, args_info, locals_info): Use
415 prototypes from frame.h and inferior.h.
416 * Makefile.in (mi-main.o): Add dependency on frame.h.
417
418 2002-10-02 Andrew Cagney <ac131313@redhat.com>
419
420 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
421 value in register 3 adjusted by ppc_gp0_regnum.
422
423 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
424
425 2002-10-02 Marko Mlinar <markom@opencores.org>
426
427 * MAINTAINERS: Add myself to the Write After Approval list.
428
429 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
430
431 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
432 of the section for the N64 ABI, fixed.
433
434 * config/mips/tm-irix6.h: Include solib.h.
435
436 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
437
438 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
439 GNU operators.
440
441 2002-10-01 Andrew Cagney <ac131313@redhat.com>
442
443 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
444 and that "mi0" syntax has been removed.
445
446 2002-09-30 David Carlton <carlton@math.stanford.edu>
447
448 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
449 * ppc-sysv-tdep.c: #include "gdb_string.h".
450 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
451 pacify GCC.
452
453 2002-10-01 Andrew Cagney <ac131313@redhat.com>
454
455 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
456 "vrsave"'s register number.
457
458 2002-09-30 Andrew Cagney <ac131313@redhat.com>
459
460 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
461 use frame_unwind_signed_register to obtain the PC.
462 (mips_frame_chain): Handle a generic dummy frame.
463 (mips_init_extra_frame_info): When a generic dummy frame, don't
464 re-compute the frame base.
465 (mips_pop_frame): Handle generic dummy frames.
466 (mips_gdbarch_init): When generic dummy frames, set
467 use_generic_dummy_frames, push_dummy_frame to
468 generic_push_dummy_frame, pc_in_call_dummy to
469 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
470 generic_save_dummy_frame_tos.
471
472 2002-09-30 Andrew Cagney <ac131313@redhat.com>
473
474 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
475 against TOP when TOP was explictly set.
476 (generic_push_dummy_frame): Set TOP to zero.
477
478 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
479
480 * event-loop.c (start_event_loop): Rename variable 'result' to
481 'gdb_result', to avoid conflicts with upcoming intepreters changes.
482
483 2002-09-30 Keith Seitz <keiths@redhat.com>
484
485 * gdb-events.sh (selected_thread_changed): New event.
486 * gdb-events.c: Regenerated.
487 * gdb-events.h: Regenerated.
488
489 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
490
491 * MAINTAINERS: Add self to Write After Approval list.
492
493 2002-09-30 Fernando Nasser <fnasser@redhat.com>
494
495 * disasm.c: New file.
496 * disasm.h: New file.
497 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
498 (compare_lines): Ditto.
499 (dump_insns): Ditto.
500 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
501 argument.
502 (do_assembly_only): Ditto.
503 (do_disassembly): Renamed to gdb_disassembly and moved to
504 disasm.c. Sdded uiout argument.
505 * Makefile.in: Add new files. Reorder SFILES list. Update
506 dependencies. Include libgdb.a later in the insight executable.
507
508 2002-09-29 Andrew Cagney <ac131313@redhat.com>
509
510 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
511 bfd/elf64-alpha-fbsd.c.
512
513 2002-09-29 Andrew Cagney <ac131313@redhat.com>
514
515 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
516 i386gnu-tdep.c.
517
518 2002-09-29 Andrew Cagney <ac131313@redhat.com>
519
520 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
521 __FUNCTION__.
522 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
523 function name.
524 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
525 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
526 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
527 (S_msg_sig_post_reply): Ditto.
528
529 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
530
531 * sh-tdep.c (sh_use_struct_convention): Use definition according
532 to ABI.
533 (sh_push_arguments): Store in register with correct endianess.
534 (sh_default_store_return_value): Ditto.
535 (sh_gdbarch_init): Set sizeof long double to 8.
536
537 2002-09-27 Mark Kettenis <kettenis@gnu.org>
538
539 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
540 Fix some whitespace problems.
541
542 2002-09-27 David Carlton <carlton@math.stanford.edu>
543
544 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
545 (mcore-tdep.o): Ditto.
546 (ns32k-tdep.o): Ditto.
547 (ns32knbsd-tdep.o): Ditto.
548 (sh3-rom.o): Ditto.
549 (vax-tdep.o): Ditto.
550 * cris-tdep.c: #include "gdb_string.h"
551 * mcore-tdep.c: Ditto.
552 * ns32k-tdep.c: Ditto.
553 * ns32knbsd-tdep.c: Ditto.
554 * sh3-rom.c: Ditto.
555 * vax-tdep.c: Ditto.
556
557 2002-09-27 David Carlton <carlton@math.stanford.edu>
558
559 * config/djgpp/fnchange.lst: Add entries for
560 gdb/testsuite/gdb.c++/m-static files.
561
562 2002-09-27 Jim Wilson <wilson@redhat.com>
563
564 * MAINTAINERS: Add myself to the Write After Approval list.
565
566 2002-09-26 Martin M. Hunt <hunt@redhat.com>
567
568 * mips-tdep.c (find_proc_desc): Initialize startaddr.
569
570
571 2002-09-26 Andrew Cagney <ac131313@redhat.com>
572
573 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
574 frame.
575
576 2002-09-26 Andrew Cagney <ac131313@redhat.com>
577
578 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
579 (rs6000_struct_return_address): Delete variable.
580 (rs6000_store_struct_return): Update.
581 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
582 deprecated_extract_struct_value_address.
583 (rs6000_frame_align): New function.
584 (rs6000_gdbarch_init): Set frame_align.
585
586 2002-09-26 Andrew Cagney <ac131313@redhat.com>
587
588 From Grace Sainsbury <graces@redhat.com>:
589 * Makefile.in (gdbtk-main.o): New target.
590 (gdb.o): New target.
591 (main_h): Define.
592 (main.o): Update dependencies.
593 (gdb$(EXEEXT)): Add gdb.o.
594 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
595 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
596 (SUBDIR_GDBTK_CLEAN): Set.
597 (install-gdbtk): Install the insight binary.
598 (uninstall-gdbtk): New target.
599 (all-gdbtk, clean-gdbtk): New rule.
600 * top.c (use_windows): Default to zero.
601 * main.c: Include "main.h".
602 (main): Delete.
603 (struct captured_main_args): Delete.
604 (gdb_main): New function.
605 * main.h: New file.
606 * gdb.c: New File.
607
608 2002-09-25 Andrew Cagney <cagney@redhat.com>
609
610 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
611 (frame_map_regnum_to_name): New function.
612 (frame_map_name_to_regnum): New function.
613 * frame.h (frame_map_name_to_regnum): Declare.
614 (frame_map_regnum_to_name): Declare.
615 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
616 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
617 * parse.c: Do not include "builtin-regs.h".
618 (target_map_name_to_register): Delete function.
619 (write_dollar_variable): Use frame_map_name_to_regnum.
620 * parser-defs.h (target_map_name_to_register): Delete declaration.
621 * expprint.c: Include "frame.h".
622 (print_subexp): Use frame_map_regnum_to_name.
623 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
624 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
625
626 2002-09-25 Andrew Cagney <ac131313@redhat.com>
627
628 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
629 wasn't saved, and the next innermost frame is a dummy, return the
630 dummy frame's link register.
631
632 2002-09-24 Jim Blandy <jimb@redhat.com>
633
634 Fix from Paul Breed:
635 * main.c (captured_main): Add a `break' after the case for 'b'.
636
637 2002-09-24 Keith Seitz <keiths@redhat.com>
638
639 * varobj.c (c_type_of_child): Use get_target_type instead
640 of TYPE_TARGET_TYPE.
641
642 2002-09-22 Fernando Nasser <fnasser@redhat.com>
643
644 * source.c (get_current_or_default_source_symtab_and_line): Remove
645 function.
646 (set_default_source_symtab_and_line): New function. Attempts to
647 determine a source file to list lines from if one is not currently
648 defined.
649 (get_current_source_symtab_and_line): Initialize sal.pc and
650 sal.end fields.
651 (set_current_source_symtab_and_line): Mark argument as const.
652 * source.h: Update declarations and comments.
653 * linespec.c (decode_line_1): Replace call to removed routine above.
654 * stack.c (print_frame_info_base): Ditto.
655 * cli/cli-cmds.c (edit_command): Ditto.
656 (list_command): Ditto.
657
658 2002-09-22 Fernando Nasser <fnasser@redhat.com>
659
660 * source.c (get_current_or_default_source_symtab_and_line): Initialize
661 sal.pc and sal.end fields.
662 (get_current_or_default_source_symtab_and_line): Ditto.
663 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
664 so we do not cause a new source symtab to be searched for (reverting an
665 unintentional change from the 2002-09-20 patch).
666 * scm-lang.c (scm_unpac): Ditto.
667
668 2002-09-21 Andrew Cagney <cagney@redhat.com>
669
670 * complaints.c (symfile_explanations): Remove new-line from
671 ``isolated_message''.
672 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
673 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
674
675 2002-09-20 Nick Clifton <nickc@redhat.com>
676
677 * NEWS: Announce that V850EA ISA is no longer supported.
678 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
679
680 2002-09-20 David Carlton <carlton@math.stanford.edu>
681
682 * Makefile.in (c-lang.o): Correct dependencies.
683 (utils.o): Gather dependencies.
684 (charset.o): Move.
685 * c-lang.c: #include "gdb_string.h"
686
687 2002-09-20 Fernando Nasser <fnasser@redhat.com>
688
689 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
690 * cli/cli-cmds.c (list_command): New function. Implements the new
691 cli edit command.
692 (_init_cli_cmds): Add new command definition.
693 * gdb.1: Document edit command.
694 * doc/gdb.texinfo: Document edit command.
695
696 2002-09-20 Fernando Nasser <fnasser@redhat.com>
697
698 * source.c: Make global variables current_source_symtab and
699 current_source_line static.
700 (list_command): Moved to cli/cli-cmds.c.
701 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
702 (get_first_line_listed): New accessor function.
703 (get_lines_to_list): New accessor function.
704 (get_current_source_symtab_and_line): New function. Retrieves the
705 position in the source code that we consider current.
706 (get_current_or_default_source_symtab_and_line): New function.
707 Like the above but attempts to determine a default position if one
708 is not currently defined.
709 (set_current_source_symtab_and_line): New function. Sets the source
710 code position considered current and returns the previously set one.
711 (clear_current_source_symtab_and_line): Reset stored information about
712 a current source line.
713 (_initialize_source): Remove registration for the "list" command and
714 its alias.
715 * source.h: Add declarations for the new functions above.
716 * symtab.h: Remove declarations for the global variables mentioned
717 above.
718 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
719 obtain current source line.
720 * linespec.c (decode_line_1): Ditto.
721 * macroscope.c (default_macro_scope): Ditto.
722 * scm-lang.c (scm_unpac): Ditto.
723 * stack.c (print_frame_info_base): Ditto.
724 * symfile.c (clear_symtab_users): Ditto.
725 * symtab.c (decode_line_spec): Ditto.
726 * cli/cli-cmds.c (list_command): Moved here from source.c.
727 (ambiguous_line_spec): Moved here from source.c.
728 (_init_cli_cmds): Add definition for "list" and its alias.
729 * Makefile.in: Update dependencies.
730
731 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
732
733 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
734 with what gcc thinks is correct.
735
736 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
737
738 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
739 multiple register push instruction.
740
741 2002-09-19 Jim Blandy <jimb@redhat.com>
742
743 Add support for distinct host and target character sets.
744 * charset.c, charset.h: New files.
745 * c-exp.y: #include "charset.h".
746 (yylex): Convert character and string literals to the target
747 character set, before returning them as the semantic value of the
748 token.
749 * c-lang.c: #include "charset.h".
750 (c_emit_char): Use charset-specific methods to recognize
751 characters with backslash escape forms, to decide which characters
752 to print literally and which to print using numeric escape
753 sequences, and to convert target characters to host characters
754 before printing.
755 * utils.c: #include "charset.h".
756 (no_control_char_error): New function.
757 (parse_escape): Use charset-specific methods to recognize
758 backslash escapes, parse `control character' notation, and convert
759 characters from the host character set to the target character set.
760 * configure.in: Set the default host character set.
761 Check where to find iconv, and what its argument types might be.
762 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
763 * Makefile.in (SFILES): List charset.c.
764 (COMMON_OBS): List charset.o.
765 (charset.o): New rule.
766 (charset_h): New header dependency variable.
767 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
768 (LIBICONV): New variable, set by configure.
769 (CLIBS): Include $(LIBICONV) here.
770 * aclocal.m4, config.in, configure: Regenerated.
771
772 2002-09-19 Joel Brobecker <brobecker@gnat.com>
773
774 * ada-exp.y: Add missing semicolons to end rules. Fixes a
775 bison 1.35 warning.
776
777 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
778
779 * gdb_mbuild.sh: New file.
780
781 2002-09-19 Andrew Cagney <ac131313@redhat.com>
782
783 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
784
785 2002-09-18 Andrew Cagney <ac131313@redhat.com>
786
787 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
788 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
789 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
790 valops.c, value.h: Revert previous change.
791
792 2002-09-18 Michael Snyder <msnyder@redhat.com>
793
794 Preliminary support for Objective-C:
795 * defs.h (language_objc): New enum value.
796 (puts_filtered_tabular): Declaration only, exported from utils.c.
797 (skip_quoted): Delete, declared in completer.h.
798 * c-exp.y: Include completer.h.
799 * p-exp.y: Ditto.
800 * jv-exp.y: Ditto.
801 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
802 New operator enum values.
803 * language.h (CAST_IS_CONVERSION): Test for language_objc.
804 * language.c (binop_result_type): Handle language_objc case.
805 (integral_type, character_type, string_type, boolean_type,
806 structured_type, binop_type_check): Ditto.
807 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
808 (struct objc_specific): Add to general_symbol_info.
809 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
810 (SYMBOL_DEMANGLED_NAME): Handle objc case.
811 * parser-defs.h (struct objc_class_str): New struct type.
812 (start_msglist, end_msglist, add_msglist): Declaration only,
813 exported from objc-lang.c.
814 * value.h (value_of_local, value_nsstring,
815 call_function_by_hand_expecting_type): Exported from valops.c.
816 * valops.c (find_function_addr): Export.
817 (call_function_by_hand_expecting_type): New function.
818 (value_of_local): New function.
819 * symfile.c (init_filename_language_table): Add ".m" extension
820 for Objective-C.
821 * utils.c (puts_filtered_tabular): New function.
822 (fprintf_symbol_filtered): Add objc demangling support (disabled).
823 (set/show demangle): Extend help-string to refer to ObjC.
824 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
825 * stabsread.c (symbol_reference_defined): Objective-C symbols
826 may contain colons: make allowances when scanning stabs strings
827 for colons.
828 (objc_find_colon): New function.
829 * printcmd.c (address_info): If language == objc then print
830 "self" instead of "this".
831 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
832 OP_NSSTRING, and OP_SELF.
833 (prefixify_subexp): Ditto.
834 * source.c (print_source_lines): Mention objc in comment.
835 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
836 method names.
837
838 2002-09-18 Andrew Cagney <ac131313@redhat.com>
839
840 * complaints.h: Update copyright.
841 (struct complaints): Declare.
842 (struct complaint): Make `message' constant.
843 (internal_complaint): Declare.
844 (complaint): Declare.
845 (complaint_root): Delete declaration.
846 (symfile_complaints): Delete declaration.
847 (struct complaints): Add opaque declaration.
848 (clear_complaints): Add a complaints parameter.
849 * complaints.c: Update copyright.
850 (enum complaint_series): Define.
851 (complaint_root): Delete.
852 (struct complaints): Define.
853 (complaint_sentinel, symfile_complaint_book): New variables.
854 (symfile_explanations, symfile_complaints): New variables.
855 New variables.
856 (get_complaints): New function.
857 (vcomplaint): New function.
858 (complaint): New function.
859 (internal_complaint): New function.
860 (complain): Call vcomplain with symfile_complaint.
861 (clear_complaints): Rewrite.
862 (_initialize_complaints): Use add_setshow_command.
863 * Makefile.in (complaints.o): Update dependencies.
864 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
865 to call to clear_complaints.
866 (new_symfile_objfile, reread_symbols): Ditto.
867 (oldsyms_complaint): Delete.
868 (empty_symtab_complaint, unknown_option_complaint): Delete.
869 (free_named_symtabs): Use complaint instead of complain.
870
871 2002-09-18 Michael Snyder <msnyder@redhat.com>
872
873 Contributed by Apple Computer, Inc. Merged with current sources
874 by Adam Fedor <fedor@doc.com> [cagney].
875
876 * objc-lang.c: First clean-up round: comments, indentation.
877 * objc-lang.h: Ditto.
878 * objc-lang.y: Ditto.
879
880 2002-09-18 Andrew Cagney <ac131313@redhat.com>
881
882 * maint.c (maintenance_internal_error): Print the parameter as the
883 error message.
884 (maintenance_internal_warning): New function.
885 (_initialize_maint_cmds): Add command `maint internal-warning'.
886
887 * defs.h (internal_warning, internal_vwarning): Declare.
888 * utils.c (struct internal_problem): Define.
889 (internal_vproblem): New function.
890 (internal_warning): New function.
891 (internal_vwarning): New function.
892 (internal_warning_problem, internal_error_problem): New variables.
893 (internal_verror): Just call internal_vproblem.
894
895 2002-09-18 Michael Snyder <msnyder@redhat.com>
896
897 * objc-lang.c: New file, support for Objective-C.
898 Preliminary check-in, not yet integrated into gdb.
899 * objc-lang.h: New file.
900 * objc-exp.y: New file.
901
902 2002-09-18 Andrew Cagney <ac131313@redhat.com>
903
904 * infrun.c (signal_stop_update): Convert definition to ISO C.
905 (signal_print_update): Ditto.
906 (signal_pass_update): Ditto.
907 * inflow.c (terminal_save_ours): Ditto.
908
909 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
910 comments.
911
912 * config/djgpp/fnchange.lst: Handle name clashes between
913 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
914 bfd/coff-tic80.c.
915
916 * i386-linux-tdep.h: Fix tipo.
917
918 2002-09-18 Adam Fedor <fedor@gnu.org>
919
920 * MAINTAINERS: Add myself to the Write After Approval list.
921
922 2002-09-18 Jim Blandy <jimb@redhat.com>
923
924 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
925 texthigh and textlow to reader-specific structs caused
926 objfile_relocate to miss them. This is fixable, but the work that
927 the change was supposed to prepare GDB for never got done anyway.
928
929 2002-09-18 David Carlton <carlton@math.stanford.edu>
930
931 * MAINTAINERS: Alphabetize Write After Approval list.
932
933 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
934
935 Fix PR gdb/709
936 * values.c (value_static_field): Call read_var_value.
937
938 2002-09-18 Andrew Cagney <ac131313@redhat.com>
939
940 * valops.c (hand_function_call): Align the initial stack pointer
941 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
942 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
943 return value.
944 * mips-tdep.c (mips_frame_align): New function.
945 (mips_gdbarch_init): Set frame_align.
946 * gdbarch.sh (FRAME_ALIGN): New method.
947 * gdbarch.h, gdbarch.c: Re-generate.
948
949 2002-09-18 Michal Ludvig <mludvig@suse.cz>
950
951 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
952 registers.
953
954 2002-09-17 Andrew Cagney <ac131313@redhat.com>
955
956 * NEWS: Mention that MIPS $fp behavior changed.
957 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
958 reference to FP_REGNUM.
959 (mipsnbsd_cannot_store_register): Ditto.
960 * mips-linux-nat.c: Update copyright.
961 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
962 (mips_linux_cannot_store_register): Ditto.
963 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
964 * config/mips/tm-mips.h: Update copyright.
965 (FP_REGNUM): Delete macro.
966 (MIPS_REGISTER_NAMES): Replace "fp" with "".
967 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
968 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
969 (mips_r3041_reg_names, mips_r3051_reg_names)
970 (mips_r3081_reg_names): Replace "fp" with "".
971 Fix PR gdb/480.
972
973 2002-09-17 Theodore A. Roth <troth@verinet.com>
974
975 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
976 generic_read_register_dummy() (PR gdb/703).
977 (avr_push_return_address): #if 0 out unused vars.
978 (avr_gdbarch_init): Enable use of avr_push_return_address().
979
980 2002-09-17 Michael Snyder <msnyder@redhat.com>
981
982 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
983 RTE will take care of it.
984
985 2002-09-17 Andrew Cagney <ac131313@redhat.com>
986
987 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
988 invalid, return SP_REGNUM.
989
990 2002-09-17 Michael Snyder <msnyder@redhat.com>
991
992 * mips-tdep.c (mips_pop_frame): Read saved values of floating
993 point registers without sign extension.
994
995 2002-09-17 Andrew Cagney <cagney@redhat.com>
996
997 * blockframe.c (deprecated_read_register_dummy): Rename
998 generic_read_register_dummy.
999 * frame.c (frame_unwind_signed_register): New function.
1000 (frame_unwind_unsigned_register): New function.
1001 * frame.h (frame_unwind_signed_register): Declare.
1002 (frame_unwind_unsigned_register): Declare.
1003 (deprecated_read_register_dummy): Rename
1004 generic_read_register_dummy.
1005
1006 * h8300-tdep.c (h8300_frame_chain): Update.
1007 (h8300_frame_saved_pc): Update.
1008 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1009 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1010 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1011 (s390_frame_chain): Update.
1012 * v850-tdep.c (v850_find_callers_reg): Update.
1013 (v850_frame_saved_pc): Update.
1014 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1015 (m32r_find_callers_reg): Update.
1016 (m32r_frame_saved_pc): Update.
1017 * sh-tdep.c (sh_find_callers_reg): Update.
1018 (sh64_get_saved_pr): Update.
1019 (sh_init_extra_frame_info): Update.
1020 (sh_init_extra_frame_info): Update.
1021 (sh64_init_extra_frame_info): Update.
1022 (sh64_init_extra_frame_info): Update.
1023 * mcore-tdep.c (mcore_find_callers_reg): Update.
1024 (mcore_frame_saved_pc): Update.
1025 (mcore_init_extra_frame_info): Update.
1026 * i386-tdep.c (i386_frame_saved_pc): Update.
1027 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1028 (ia64_init_extra_frame_info): Update.
1029 (ia64_init_extra_frame_info): Update.
1030 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1031 * cris-tdep.c (cris_init_extra_frame_info): Update.
1032 * avr-tdep.c (avr_frame_chain): Update.
1033 (avr_init_extra_frame_info): Update.
1034 (avr_frame_saved_pc): Update.
1035 * arm-tdep.c (arm_find_callers_reg): Update.
1036 (arm_init_extra_frame_info): Update.
1037 (arm_frame_saved_pc): Update.
1038
1039 2002-09-17 Tom Tromey <tromey@redhat.com>
1040
1041 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1042 is "'".
1043
1044 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
1045
1046 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1047 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1048 NEXT_PROLOGUE_INSN.
1049 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1050 NEXT_PROLOGUE_INSN.
1051
1052 2002-09-16 Joel Brobecker <brobecker@gnat.com>
1053
1054 * osfsolib.c: Remove file, replaced by solib-osf.c.
1055 * Makefile.in: Remove compilation rules for osfsolib.c.
1056
1057 2002-09-16 David Carlton <carlton@math.stanford.edu>
1058
1059 * cp-valprint.c (cp_print_class_method): Correct args to
1060 check_stub_method_group.
1061
1062 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
1063
1064 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1065 `set architecture'. Unify naming convention of functions.
1066 (h8300_skip_prologue): Improve prologue analysis.
1067 (h8300_push_arguments): Rewritten to more closely match GCC's
1068 bizarre argument-passing behavior, along with the comment describing
1069 said behavior.
1070 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1071 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1072 sim, remote-e7000.c, remote-hms.c and remote.c
1073
1074 2002-09-15 Mark Kettenis <kettenis@gnu.org>
1075
1076 * i386-tdep.c (gdb_print_insn_i386): Removed.
1077 (i386_print_insn): New function.
1078 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1079 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1080 tm_print_insn_info.
1081
1082 2002-09-14 Mark Kettenis <kettenis@gnu.org>
1083
1084 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1085 zero.
1086
1087 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
1088
1089 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1090 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1091 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1092
1093 2002-09-13 Christopher Faylor <cgf@redhat.com>
1094
1095 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1096
1097 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
1098
1099 * gdbtypes.c (check_stub_method): Make static.
1100 (check_stub_method_group): New function.
1101 * gdbtypes.h: Update prototypes.
1102 * cp-support.c: New file.
1103 * cp-support.h: New file.
1104
1105 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1106 (update_method_name_from_physname): New function.
1107 (read_member_functions): Correct method names for operators
1108 and v3 constructors/destructors. Separate v2 constructors and
1109 destructors.
1110 * Makefile.in (stabsread.o): Update dependencies.
1111 (SFILES): Add cp-support.c.
1112 (COMMON_OBS): Add cp-support.o.
1113 (cp_support_h, cp-support.o): Add.
1114
1115 * cp-valprint.c (cp_print_class_method): Call
1116 check_stub_method_group instead of check_stub_method. Remove
1117 extraneous QUITs.
1118 * p-valprint.c (pascal_object_print_class_method): Likewise.
1119 * valops.c (search_struct_method): Likewise.
1120 (find_method_list, value_struct_elt_for_reference): Likewise.
1121
1122 2002-09-13 Andrew Cagney <cagney@redhat.com>
1123
1124 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1125 * gdbarch.h, gdbarch.c: Regenerate.
1126
1127 2002-09-13 Andrew Cagney <ac131313@redhat.com>
1128
1129 * frame.c (find_saved_register): Delete function.
1130 * frame.h (find_saved_register): Delete declaration.
1131 Fix PR gdb/631.
1132
1133 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1134
1135 * mips-tdep.c (read_next_frame_reg): Re-hack using
1136 frame_register_unwind.
1137
1138 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1139
1140 * mips-tdep.c (mips_get_saved_register): Re-hack using
1141 frame_register_unwind.
1142
1143 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1144
1145 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1146 vector. Will be useful for Interix.
1147 * gdbarch.h, gdbarch.c: Regenerate.
1148
1149 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1150 name of the malloc function by NAME_OF_MALLOC.
1151
1152 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1153
1154 * value.h (find_function_in_inferior): Add const keyword to
1155 one of the parameters. Allows us to invoke this function with
1156 a const char *.
1157 * valops.c (find_function_in_inferior): Likewise.
1158
1159 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1160
1161 * exec.c (xfer_memory): Fix compilation warning with old versions
1162 of GCC.
1163 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1164
1165 2002-09-12 David Carlton <carlton@math.stanford.edu>
1166
1167 * symtab.h: Run through gdb_indent.h.
1168 Add 2002 to Copyright year list.
1169
1170 2002-09-12 Alan Modra <amodra@bigpond.net.au>
1171
1172 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1173 mach constants.
1174 * MAINTAINERS: Add myself to write after approval list.
1175
1176 2002-09-11 J. Brobecker <brobecker@gnat.com>
1177
1178 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1179
1180 2002-09-11 J. Brobecker <brobecker@gnat.com>
1181
1182 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1183 Interix.
1184
1185 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1186
1187 * procfs.c (do_detach): Clear current signal, not just fault.
1188 Corrects problem with breakpoint trap signal leaking to detached
1189 process on Tru64.
1190
1191 2002-09-10 Michael Snyder <msnyder@redhat.com>
1192
1193 * buildsym.c (finish_block): Protect against null pointer.
1194
1195 2002-09-10 Andrew Cagney <cagney@redhat.com>
1196
1197 * infcmd.c (default_print_registers_info): Send all output to
1198 ``file'' instead of ``gdb_stdout''.
1199
1200 2002-09-10 Michael Snyder <msnyder@redhat.com>
1201
1202 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1203 LONGEST, and use signed register read (addresses are sign-
1204 extended for mips).
1205
1206 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1207
1208 * event-loop.c (gdb_do_one_event): Make public.
1209 * event-loop.h (gdb_do_one_event): Declare.
1210
1211 2002-09-10 Jeff Law <law@redhat.com>
1212
1213 * infttrace.c (child_resume): Simplify and rework to avoid
1214 TT_PROC_CONTINUE.
1215
1216 2002-09-09 Fred Fish <fnf@intrinsity.com>
1217
1218 * printcmd.c (print_scalar_formatted): "len" is the number of
1219 target bytes, NOT the number of target bits.
1220
1221 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
1222
1223 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1224 * top.c (init_main): Set rl_terminal_name.
1225
1226 2002-09-08 Aidan Skinner <aidan@velvet.net>
1227
1228 * ada-lang.c (ada_array_bound, ada_type_match,
1229 _initialize_ada_language): Fix K&R definitions.
1230 * ada-tasks.c (get_current_task): Fix K&R definitions.
1231 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1232
1233 2002-09-07 Christopher Faylor <cgf@redhat.com>
1234
1235 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1236 Add XP.
1237
1238 2002-09-06 Mark Kettenis <kettenis@gnu.org>
1239
1240 * i386-tdep.c (i386_register_virtual_type,
1241 i386_register_convertible, i386_register_convert_to_virtual,
1242 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1243 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1244 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1245 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1246 Don't set push_arguments twice.
1247
1248 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1249 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1250 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1251 sigtramp_end to NULL.
1252 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1253 defines.
1254 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1255
1256 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1257 whitespace.
1258
1259 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1260 * gdbarch.h, gdbarch.c: Re-generate.
1261 * blockframe.c (find_pc_sect_partial_function): Convert to use
1262 SIGTRAMP_START_P predicate.
1263
1264 2002-09-05 Michael Snyder <msnyder@redhat.com>
1265
1266 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1267 generic_dummy_frame method and old method. Also distinguish
1268 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1269 (arm_extract_return_value): Use new regcache method.
1270
1271 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1272 adjustment that doesn't conform to the ABI.
1273 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1274 saved regcache, not from current regcache.
1275
1276 2002-09-05 Andrew Cagney <ac131313@redhat.com>
1277
1278 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1279 * README: Update.
1280
1281 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1282
1283 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1284 if arm_apcs_32 is false.
1285
1286 2002-09-04 Andrew Cagney <ac131313@redhat.com>
1287
1288 GDB 5.3 branch created.
1289
1290 2002-09-03 Theodore A. Roth <troth@verinet.com>
1291
1292 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1293 generic_unwind_get_saved_register.
1294
1295 2002-09-03 David Carlton <carlton@math.stanford.edu>
1296
1297 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1298 argument (PR gdb/653). Update call to smash_to_method_type.
1299 (read_structure_scope): Update call to dwarf2_add_member_fn.
1300
1301 2002-09-03 Michal Ludvig <mludvig@suse.cz>
1302
1303 * x86-64-linux-tdep.c: Include gdb_string.h
1304 * x86-64-linux-nat.c: Ditto.
1305
1306 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1307
1308 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1309 when YYDEBUG is set to 1.
1310 * c-exp.y: Likewise.
1311 * f-exp.y: Likewise.
1312 * jv-exp.y: Likewise.
1313 * m2-exp.y: Likewise.
1314 * p-exp.y: Likewise.
1315
1316 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1317
1318 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1319 dependency list.
1320 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1321 solib_svr4_fetch_link_map_offsets to
1322 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1323 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1324 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1325 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1326 solib-svr4.o, and solib-legacy.o.
1327 * config/i386/tm-nbsd.h: Include solib.h.
1328
1329 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1330
1331 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1332 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1333 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1334 comment noting that this needs its own target configuration.
1335 * config/i386/nbsd.mt: New file.
1336 * config/i386/nbsdaout.mt: Remove.
1337 * config/i386/nbsdelf.mt: Ditto.
1338 * config/i386/tm-nbsdaout.h: Ditto.
1339
1340 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1341
1342 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1343 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1344 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1345 tdep->sigtramp_end.
1346 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1347 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1348 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1349
1350 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1351
1352 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1353 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1354 * i386-tdep.h (i386bsd_init_abi): New prototype.
1355 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1356 function declaration.
1357 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1358 for NetBSD-a.out or NetBSD-ELF.
1359 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1360 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1361 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1362 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1363 and nbsd-tdep.h.
1364 (i386nbsd_pc_in_sigtramp): New function.
1365 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1366 i386nbsd_pc_in_sigtramp.
1367 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1368 and i386nbsdelf_init_abi OS ABI handlers.
1369 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1370 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1371
1372 2002-09-02 Mark Kettenis <kettenis@gnu.org>
1373
1374 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1375 registers if the target really has them.
1376
1377 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1378
1379 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1380 than nbsd-tdep.h.
1381
1382 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1383
1384 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1385 list.
1386 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1387 (alphanbsd_skip_sigtramp_frame): New functions.
1388 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1389 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1390 to alphanbsd_sigcontext_addr.
1391
1392 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1393
1394 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1395 list.
1396 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1397 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1398 nbsd_pc_in_sigtramp.
1399 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1400 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1401 * nbsd-tdep.c: Include gdb_string.h.
1402 (nbsd_pc_in_sigtramp): New function.
1403 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1404 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1405 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1406 ppcnbsd_pc_in_sigtramp.
1407 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1408 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1409 shnbsd_pc_in_sigtramp.
1410 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1411 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1412 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1413
1414 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1415
1416 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1417 watchpoints to NULL.
1418 (insert_breakpoints): set val field of watchpoints if NULL.
1419
1420
1421 2002-08-29 Jim Blandy <jimb@redhat.com>
1422
1423 * symtab.c (lookup_symbol_aux): In the cases where we find a
1424 minimal symbol of an appropriate name and use its address to
1425 select a symtab to read and search, use `name' (as passed to us)
1426 as the demangled name when searching the symtab's global and
1427 static blocks, not the minsym's name.
1428
1429 2002-08-29 Keith Seitz <keiths@redhat.com>
1430
1431 * stack.c (print_frame_info_base): Always set current_source_symtab
1432 and current_source_line.
1433
1434 2002-08-29 Donn Terry <donnte@microsoft.com>
1435
1436 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1437
1438 2002-08-28 Keith Seitz <keiths@redhat.com>
1439
1440 * stack.c (select_frame): Add FIXME concerning selected-frame
1441 events.
1442 (select_frame_command): Send selected-frame-level-changed
1443 event notification, but only if the level actually changed.
1444 (up_silently_base): Add selected-frame-level-changed event
1445 notification.
1446 (down_silently_base): Likewise.
1447
1448 2002-08-28 Andrew Cagney <ac131313@redhat.com>
1449
1450 * Makefile.in: Update dependencies for all gdb/*.c files.
1451
1452 2002-08-27 Tom Tromey <tromey@redhat.com>
1453
1454 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1455 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1456 Update dependencies.
1457 * i387-tdep.c: Include gdb_string.h.
1458 * osabi.c: Likewise.
1459 * i386-linux-nat.c: Likewise.
1460 * lin-lwp.c: Likewise.
1461 * ax-gdb.c: Likewise.
1462 * signals/signals.c: Likewise.
1463 * jv-valprint.c: Likewise.
1464 * p-lang.c: Likewise.
1465 * c-valprint.c: Likewise.
1466 * cp-abi.c: Likewise.
1467
1468 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
1469
1470 * cli/cli-script.h (copy_command_lines): Export.
1471 * breakpoint.c: Include cli/cli-script.h.
1472 * Makefile.in (breakpoint.o): Update dependencies.
1473
1474 2002-08-26 Michael Snyder <msnyder@redhat.com>
1475
1476 * breakpoint.c (insert_breakpoints): Protect all references
1477 to 'process_warning'. Shorten long lines.
1478
1479 2002-08-26 Joel Brobecker <brobecker@gnat.com>
1480
1481 * cli/cli-script.c (copy_command_lines): New function.
1482 * defs.h (copy_command_lines): Export.
1483 * testsuite/gdb.base/commands.exp: New tests for commands
1484 attached to a temporary breakpoint, and for commands that
1485 delete the breakpoint they are attached to.
1486
1487 2002-08-26 Michael Snyder <msnyder@redhat.com>
1488
1489 * breakpoint.c (bpstat_stop_status): Instead of copying the
1490 pointer to the breakpoint commands struct, make a new copy
1491 of the struct and point to that.
1492 (bpstat_clear): Free the commands struct.
1493 (bpstat_clear_actions): Free the commands struct.
1494 (bpstat_do_actions): Free the command actions. Also execute
1495 the local cleanups, instead of deleting them.
1496 (delete_breakpoint): Leave the commands field of the bpstat
1497 chain alone -- it will be freed later.
1498
1499 2002-08-26 Kevin Buettner <kevinb@redhat.com>
1500
1501 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1502 deleted in 2002-08-20 commit. This function is still used by
1503 ppc-linux-nat.c.
1504
1505 2002-08-26 Keith Seitz <keiths@redhat.com>
1506
1507 * gdb-events.sh: Add selected-frame-level-changed event.
1508 * gdb-events.c: Regenerated.
1509 * gdb-events.h: Regenerated.
1510
1511 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1512
1513 Fix PR gdb/393:
1514 * inflow.c (terminal_save_ours): New function to save terminal
1515 settings.
1516 * inferior.h (terminal_save_ours): Declare.
1517 * target.c (debug_to_terminal_save_ours): New function.
1518 (cleanup_target): Defaults to_terminal_save_ours.
1519 (update_current_target): Inherit to_terminal_save_ours.
1520 (setup_target_debug): Set to_terminal_save_ours.
1521 * target.h (target_terminal_save_ours): New to save terminal settings.
1522 (target_ops): New member to_terminal_save_ours.
1523 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1524 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1525 * inftarg.c (init_child_ops): Likewise.
1526 * m3-nat.c (init_m3_ops): Likewise.
1527 * procfs.c (init_procfs_ops): Likewise.
1528 * wince.c (init_child_ops): Likewise.
1529 * win32-nat.c (init_child_ops): Likewise.
1530 * sol-thread.c (init_sol_thread_ops): Likewise.
1531
1532 2002-08-26 Mark Kettenis <kettenis@gnu.org>
1533
1534 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1535 use regcache_* functions.
1536 (i386_gdbarch_init): Set store_return_value instead of
1537 deprecated_store_return_value.
1538
1539 * regcache.c (regcache_raw_write_signed,
1540 regcache_raw_write_unsigned): New functions.
1541 * regcache.h (regcache_raw_write_signed,
1542 regcache_raw_write_unsigned): New prototypes.
1543
1544 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1545
1546 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1547 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1548 source file dependencies. Cleanup corresponding generator rules.
1549
1550 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1551
1552 * regcache.h (register_offset_hack): Declare.
1553 (regcache_cooked_read_using_offset_hack): Declare.
1554 (regcache_cooked_write_using_offset_hack): Declare.
1555
1556 * regcache.c (register_offset_hack): New function.
1557 (regcache_cooked_read_using_offset_hack): New function.
1558 (regcache_cooked_write_using_offset_hack): New function.
1559 (regcache_dump): Check that the registers, according to their
1560 offset, are packed hard against each other.
1561 (cooked_xfer_using_offset_hack): New function.
1562
1563 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1564
1565 * regcache.c (struct regcache_descr): Add field register_type.
1566 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1567 in as a parameter
1568 (init_regcache_descr): Initialize register_type. Pass the descr
1569 to init_legacy_regcache_descr. Use register_type instead of
1570 REGISTER_VIRTUAL_TYPE.
1571 (register_type): New function.
1572 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1573 * regcache.h (register_type): Declare.
1574
1575 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1576
1577 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1578 instead of deprecated_store_return_value. Fix fallout from
1579 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1580
1581 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1582
1583 * regcache.c (max_register_size): New function.
1584 (init_legacy_regcache_descr): Ensure that max_register_size is
1585 large enough for REGISTER_VIRTUAL_SIZE.
1586 * regcache.h (max_register_size): Declare.
1587
1588 2002-08-24 Andrew Cagney <ac131313@redhat.com>
1589
1590 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1591 store_return_value.
1592 (e500_extract_return_value): Change type of valbuf pointer to
1593 void.
1594
1595 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1596
1597 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1598 workaround.
1599
1600 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1601 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1602 long long) to prevent compiler warning on 64-bit systems.
1603
1604 2002-08-23 Andrew Cagney <cagney@redhat.com>
1605
1606 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1607 (DEPRECATED_STORE_RETURN_VALUE): New method.
1608 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1609 * gdbarch.h, gdbarch.c: Re-generate.
1610
1611 * values.c (set_return_value): Pass current_regcache to
1612 STORE_RETURN_VALUE.
1613 * arch-utils.h (legacy_store_return_value): Declare.
1614 * arch-utils.c (legacy_store_return_value): New function.
1615 (legacy_extract_return_value): Update parameters.
1616
1617 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1618 STORE_RETURN_VALUE.
1619 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1620 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1621 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1622 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1623 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1624 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1625 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1626 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1627 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1628 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1629
1630 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1631 * i386-tdep.c (i386_extract_return_value): Update.
1632 * arch-utils.c (legacy_extract_return_value): Update.
1633 * frv-tdep.c (frv_gdbarch_init): Update.
1634 * cris-tdep.c (cris_gdbarch_init): Update.
1635 * d10v-tdep.c (d10v_gdbarch_init): Update.
1636 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1637 * m68k-tdep.c (m68k_gdbarch_init): Update.
1638 * mcore-tdep.c (mcore_gdbarch_init): Update.
1639 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1640 * s390-tdep.c (s390_gdbarch_init): Update.
1641 * sparc-tdep.c (sparc_gdbarch_init): Update.
1642 * sh-tdep.c (sh_gdbarch_init): Update.
1643 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1644 * v850-tdep.c (v850_gdbarch_init): Update.
1645 * avr-tdep.c (avr_gdbarch_init): Update.
1646 * ia64-tdep.c (ia64_gdbarch_init): Update.
1647 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1648 * vax-tdep.c (vax_gdbarch_init): Update.
1649 * alpha-tdep.c (alpha_gdbarch_init): Update.
1650 * arm-tdep.c (arm_gdbarch_init): Update.
1651 * mips-tdep.c (mips_gdbarch_init): Update.
1652 * i386-tdep.c (i386_gdbarch_init): Update.
1653
1654 2002-08-23 Andrew Cagney <ac131313@redhat.com>
1655
1656 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1657 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1658
1659 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1660
1661 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1662 problems.
1663
1664 2002-08-23 Joel Brobecker <brobecker@gnat.com>
1665
1666 * infrun.c (handle_inferior_event): Move a comment outside of a
1667 function call, in order to avoid indent reformatting this part
1668 of the code in an unreadable way.
1669
1670 2002-08-23 Grace Sainsbury <graces@redhat.com>
1671
1672 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1673 when breakpoints fail. Move general breakpoint error messages to
1674 insert_breakpoints.
1675 * breakpoint.c (insert_breakpoints): Change warnings when
1676 breakpoints are nto inserted to specify the type. Remove call to
1677 memory_error when hardware breakpoints can't be inserted. Remove
1678 multiple calls to warning so all messages are sent to the user at
1679 once.
1680 (delete_breakpoints): Make insert error messsages more explicit.
1681
1682 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
1683
1684 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1685 gdbserver/ChangeLog.
1686
1687 2002-08-23 Mark Kettenis <kettenis@gnu.org>
1688
1689 * i386-tdep.c: Include "objfiles.h".
1690 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1691 skip_trampoline_code.
1692 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1693 (CPLUS_MARKER): Define to '.'.
1694
1695 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1696 member.
1697 (linux_corefile_thread_callback): Increase args->num_notes.
1698 (linux_make_note_section): Initialize thread_args.num_notes, and
1699 use it to determine whether notes for any threads were created.
1700
1701 2002-08-23 Donn Terry <donnte@microsoft.com>
1702
1703 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1704 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1705 and PCUNKILL.
1706 (write_with_trace): Conditionalize out the switch branch handling
1707 PCSHOLD if the corresponding macro is not defined. Likewise for
1708 PRSABORT and PRSTOP.
1709 This change will be needed by the Interix port.
1710
1711 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1712
1713 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1714 write_register wherever possible instead of manipulating the
1715 register bytes directly.
1716 Assign VALUE_CONTENTS to a variable and use that.
1717 The GPR numbers are now dependent on the architecture.
1718
1719 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1720
1721 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1722 ev_offset fields.
1723 (skip_prologue): Add support for BookE/e500 instructions.
1724 (e500_extract_return_value): New function.
1725 (frame_get_saved_regs): Add support for saving ev registers and
1726 pseudo gpr's.
1727 (e500_store_return_value): New function.
1728 (rs6000_gdbarch_init): Move up default intializations of
1729 deprecated_extract_return_value and store_return_value. Overwrite
1730 init of store_return_value with e500 specific version.
1731 Set extract_return_value for e500.
1732
1733 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1734
1735 * blockframe.c (generic_call_dummy_register_unwind): Use
1736 regcache_cooked_read to catch cases in which the variable is
1737 stored in a pseudo register.
1738
1739 2002-08-22 Andrew Cagney <cagney@redhat.com>
1740
1741 * NEWS: Mention that the i960 has been made obsolete.
1742 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1743 i960-tdep.c
1744 (remote-nrom.o): Obsolete target.
1745 (remote-nindy.o, i960-tdep.o): Ditto.
1746 * remote-nrom.c: Make file obsolete.
1747 * remote-nindy.c, remote-vx960.c: Ditto.
1748 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1749 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1750 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1751 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1752 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1753 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1754 i960-*-vxworks* obsolete.
1755 * MAINTAINERS: Note that the i960 is obsolete.
1756
1757 2002-08-21 Corinna Vinschen <vinschen@redhat.com
1758
1759 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1760 detach to allow reinitialization.
1761
1762 2002-08-22 Andrew Cagney <ac131313@redhat.com>
1763
1764 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1765 attempt).
1766
1767 2002-08-22 Jim Blandy <jimb@redhat.com>
1768
1769 * coffread.c (coff_symfile_read): Don't try to read the line
1770 number table from disk if the image file doesn't have a symbol
1771 table; we'll never actually look at the info anyway, and Windows
1772 ships DLL's with bogus file offsets for the line number data.
1773
1774 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1775
1776 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1777 an e500 executable.
1778
1779 2002-08-21 Michael Snyder <msnyder@redhat.com>
1780
1781 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1782 (MSYMBOL_SIZE): Replace macro with function.
1783 (DEFAULT_MIPS_TYPE): Delete unused macro.
1784 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1785 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1786
1787 2002-08-21 Jim Blandy <jimb@redhat.com>
1788
1789 * valops.c (value_cast): Simplify and correct logic for doing a
1790 static cast from a pointer to a base class to a pointer to a
1791 derived class.
1792
1793 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1794
1795 * infcmd.c (default_print_registers_info): Replace
1796 do_registers_info.
1797 (registers_info): Use gdbarch_print_registers_info instead of
1798 DO_REGISTERS_INFO.
1799 * inferior.h (default_print_registers_info): Replace
1800 do_registers_info.
1801 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1802 (DO_REGISTERS_INFO): Change to a predicate function.
1803 * gdbarch.h, gdbarch.c: Regenerate.
1804
1805 2002-08-21 Keith Seitz <keiths@redhat.com>
1806
1807 * gdb-events.sh: Add target-changed event.
1808 * gdb-events.c: Regenerated.
1809 * gdb-events.c: Regenerated.
1810 * valops.c (value_assign): Add target-changed event notification
1811 to inlval_register, lval_memory, and lval_reg_frame_relative.
1812
1813 2002-08-21 Joel Brobecker <brobecker@gnat.com>
1814
1815 * NEWS: Add an entry regarding the improvement of the next/step
1816 operation on Alpha Tru64 multi-processor machines.
1817
1818 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1819
1820 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1821 directores.
1822 * Makefile.in: Update all _h macro definitions.
1823 * Makefile.in (install-gdbtk): Move to install section.
1824 (rdi-share/libangsd.a): Move to end of file.
1825
1826 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1827
1828 * frame.c (frame_register_unwind): When a register, set addrp to
1829 the register's byte.
1830
1831 2002-08-20 Michael Snyder <msnyder@redhat.com>
1832
1833 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1834 used locally, so move them from the target machine header to here.
1835 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1836 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1837 Make static.
1838 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1839
1840 2002-08-20 Andrew Cagney <cagney@redhat.com>
1841
1842 * NEWS: Mention that the Apollo line was made obsolete.
1843 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1844 m68*-hp-hpux* obsolete.
1845 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1846 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1847 * buildsym.c (make_blockvector): Make static.
1848 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1849 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1850 (ALLDEPFILES): Remove dstread.c.
1851 (dstread.o): Obsolete make rule.
1852 * dstread.c: Makefile obsolete.
1853 * dst.h: Ditto.
1854 * config/m68k/hp300hpux.mt: Ditto.
1855 * config/m68k/hp300hpux.mh: Ditto.
1856 * config/m68k/hp300bsd.mt: Ditto.
1857 * config/m68k/hp300bsd.mh: Ditto.
1858 * config/m68k/apollo68b.mt: Ditto.
1859 * config/m68k/apollo68v.mh: Ditto.
1860 * config/m68k/apollo68b.mh: Ditto.
1861
1862 2002-08-20 Michael Snyder <msnyder@redhat.com>
1863
1864 * mips-tdep.c (mips_in_return_stub): Make static.
1865 (mips_gdbarch_init): Set in_solib_return_trampoline.
1866 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1867
1868 2002-08-20 Michael Snyder <msnyder@redhat.com>
1869
1870 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1871 * gdbarch.c, gdbarch.h: Regenerate.
1872 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1873 Add.
1874 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1875
1876 2002-08-20 Michael Snyder <msnyder@redhat.com>
1877
1878 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1879 (mips_gdbarch_init): Set skip_trampoline_code,
1880 in_solib_call_trampoline.
1881 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1882 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1883
1884 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1885
1886 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1887
1888 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1889 vector type for ev registers.
1890 (e500_pseudo_register_read): New function.
1891 (e500_pseudo_register_write): New function.
1892 (e500_dwarf2_reg_to_regnum): New function.
1893 (PPC_UISA_NOFP_SPRS): New macro.
1894 (PPC_EV_REGS): New macro.
1895 (PPC_GPRS_PSEUDO_REGS): New macro.
1896 (registers_e500): New register set for e500.
1897 (variants): Add e500 variant.
1898 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1899 before setting architectural dependent variations. Initialize ev
1900 registers numbers. Add case for e500 architecture. Set the
1901 number of pseudo registers.
1902
1903 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1904
1905 * rs6000-tdep.c: Clean up comments.
1906
1907 2002-08-20 Andrew Cagney <cagney@redhat.com>
1908
1909 * h8300-tdep.c: Re-indent file.
1910
1911 2002-08-20 Jim Blandy <jimb@redhat.com>
1912
1913 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1914 default for this.
1915
1916 2002-08-20 Keith Seitz <keiths@redhat.com>
1917
1918 * breakpoints.c (watch_command_1): Use internal breakpoint
1919 when setting a watchpoint_scope breakpoint.
1920
1921 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1922
1923 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1924 (build_builtin_type_vec64i): Ditto.
1925 (build_builtin_type_vec128): Ditto.
1926 (build_builtin_type_vec128i): Ditto.
1927
1928 2002-08-19 Michael Snyder <msnyder@redhat.com>
1929
1930 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1931 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1932 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1933 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1934 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1935 CALL_DUMMY_ADDRESS): Delete.
1936 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1937 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1938 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1939 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1940 push_return_address.
1941 (mips_register_raw_size, mips_eabi_use_struct_convention,
1942 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1943 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1944 mips_init_extra_frame_info, mips_eabi_push_arguments,
1945 mips_n32n64_push_arguments, mips_push_return_address,
1946 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1947 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1948
1949 2002-08-19 Michael Snyder <msnyder@redhat.com>
1950
1951 * mips-tdep.c (mips_frame_num_args): New function.
1952 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1953 frame_saved_pc, frame_args_address, frame_locals_address,
1954 frame_num_args, and frame_args_skip.
1955 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1956 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1957 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1958 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1959
1960 2002-08-20 Michael Snyder <msnyder@redhat.com>
1961
1962 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1963 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1964 * mips-tdep.c (mips_store_struct_return): New function.
1965 (mips_extract_struct_value_address): New function.
1966 (mips_gdbarch_init): Set store_struct_return and
1967 extract_struct_value_address.
1968
1969 2002-08-20 David Carlton <carlton@math.stanford.edu>
1970
1971 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1972 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1973 (read_file_scope): Check that line_header is nonzero before
1974 decoding macro information.
1975
1976 2002-08-20 Mark Kettenis <kettenis@gnu.org>
1977
1978 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1979 flag the general-purpose registers as floating-point on targets
1980 that don't support the floating-point registers.
1981
1982 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1983
1984 * rs6000-tdep.c (altivec_register_p): Delete.
1985 (rs6000_do_altivec_registers): Delete.
1986 (rs6000_altivec_registers_info): Delete.
1987 (rs6000_do_registers_info): Delete.
1988 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1989 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1990
1991 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1992
1993 * infcmd.c (do_registers_info): Print vector registers in hex
1994 format only.
1995 (print_vector_info): Check that printing registers
1996 makes sense.
1997 (print_float_info): Ditto.
1998
1999 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2000
2001 * mips-tdep.c (mips_gdbarch_init): Update.
2002 (mips_o32_extract_return_value): Rewrite.
2003 (mips_o32_store_return_value): Rewrite.
2004 (mips_o32_xfer_return_value): New function.
2005 (mips_xfer_register): Tweak debug print message. Allow for
2006 buf_offset when dumping the value transfered.
2007
2008 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2009
2010 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2011 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2012 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2013 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2014 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2015
2016 2002-08-14 Michael Snyder <msnyder@redhat.com>
2017
2018 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2019
2020 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2021
2022 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2023 register.
2024 (P): New macro to define a register as a pseudo register.
2025 (R, R4, R8, R16, FR32, R64, R0): Updated.
2026 (struct variant): Add new fields for number of pseudo registers
2027 and number of total registers.
2028 (tot_num_registers): New macro replacing....
2029 (num_registers): ...deleted macro.
2030 (num_registers): New function.
2031 (num_pseudo_registers): New function.
2032 (variants): Update all variants to intialize new fields correctly.
2033 Postpone initialization of number of pseudo regs and real regs.
2034 (init_variants): New function.
2035 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2036 registers offsets.
2037
2038 2002-08-19 David Carlton <carlton@math.stanford.edu>
2039
2040 * valops.c (search_struct_field): Change error message to treat
2041 return value of 0 from value_static_field as meaning that field is
2042 optimized out.
2043 (value_struct_elt_for_reference): Ditto.
2044 * values.c (value_static_field): Treat an unresolved location the
2045 same as a nonexistent symbol. Fix PR gdb/635.
2046 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2047 enclosed. Fix PR gdb/574.
2048 * MAINTAINERS: Add self to Write After Approval list.
2049
2050 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2051
2052 * mips-tdep.c (mips_xfer_register): New function.
2053 (mips_n32n64_extract_return_value): Rewrite.
2054 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2055 instead of deprecated_extract_return_value.
2056
2057 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2058
2059 * rs6000-tdep.c (TDEP): Delete macro.
2060 (branch_dest): Replace use of TDEP macro with its body.
2061 (rs6000_pop_frame): Ditto.
2062 (rs6000_push_arguments): Ditto.
2063 (rs6000_skip_trampoline_code): Ditto.
2064 (rs6000_frame_saved_pc): Ditto.
2065 (rs6000_frame_chain): Ditto.
2066 (rs6000_register_name): Ditto.
2067 (rs6000_register_byte): Ditto.
2068 (rs6000_register_raw_size): Ditto.
2069 (rs6000_register_virtual_type): Ditto.
2070 (rs6000_register_convertible): Ditto.
2071 (rs6000_convert_from_func_ptr_addr): Ditto.
2072
2073 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
2074
2075 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2076 conditionally.
2077 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2078 MIPS_LINUX_JB_ELEMENT_SIZE.
2079 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2080 for MAX_REGISTER_RAW_SIZE arrays.
2081 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2082 MIPS_LINUX_JB_ELEMENT_SIZE.
2083
2084 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2085
2086 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2087
2088 2002-08-19 Aidan Skinner <aidan@velvet.net>
2089
2090 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2091 ada-valprint.c ada-tasks.c.
2092 (YYFILES): Add ada-exp.y.
2093 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2094 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2095 (ada-exp.tab.o): New target.
2096
2097 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2098
2099 * regcache.c (regcache_xfer_part): New function.
2100 (regcache_raw_read_part): New function.
2101 (regcache_raw_write_part): New function.
2102 (regcache_cooked_read_part): New function.
2103 (regcache_cooked_write_part): New function.
2104 * regcache.h (regcache_raw_read_part): Declare.
2105 (regcache_raw_write_part): Declare.
2106 (regcache_cooked_read_part): Declare.
2107 (regcache_cooked_write_part): Declare.
2108
2109 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
2110
2111 * remote.c (remote_open_1): Add async_p.
2112 (remote_async_open_1): Delete.
2113 (open_remote_target): Delete.
2114 (remote_open, extended_remote_open): Update calls to remote_open_1.
2115 (remote_async_open, extended_remote_async_open): Call
2116 remote_open_1 instead of remote_async_open_1.
2117
2118 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2119
2120 * blockframe.c: Fix a few coding standard violations.
2121
2122 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2123
2124 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2125 here from ...
2126 * config/i386/tm-i386sco5.h: ... here. File removed.
2127 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2128
2129 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
2130 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2131 (TM_FILE): Set to tm-i386.h.
2132 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2133 * config/i386/tm-i386v.h: Remove file.
2134 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2135 instead of "i386/tm-i386v.h".
2136 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2137 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2138 "i386/tm-i386v.h".
2139 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2140 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2141 "i386/tm-i386.h".
2142
2143 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2144
2145 * config/i386/nm-i386v.h: Add protection against
2146 multiple-inclusion.
2147 (i386_register_u_addr): Remove prototype.
2148 (register_u_addr): New prototype.
2149 (REGISTER_U_ADDR): Redefine accordingly.
2150 * i386v-nat.c: Improve several comments.
2151 (i386_register_u_addr): Change signature and rename to
2152 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2153 ubase variable.
2154
2155 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2156
2157 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2158 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2159 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2160 deprecated_extract_return_value.
2161 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2162 rename mips_o32o64_push_arguments.
2163 (mips_gdbarch_init): Update.
2164 (mips_extract_return_value): Delete.
2165 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2166 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2167 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2168 (mips_n32n64_extract_return_value): Clone
2169 mips_extract_return_value.
2170 (mips_store_return_value): Delete.
2171 (mips_o32_store_return_value): Clone mips_store_return_value.
2172 (mips_o64_store_return_value): Clone mips_store_return_value.
2173 (mips_eabi_store_return_value): Clone mips_store_return_value.
2174 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2175
2176 2002-08-18 Aidan Skinner <aidan@velvet.net>
2177
2178 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2179 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2180
2181 2002-08-18 Aidan Skinner <aidan@velvet.net>
2182
2183 * ada-lang.c: Run through gdb_indent.sh.
2184 * ada-lang.h: Run through gdb_indent.sh.
2185 * ada-tasks.c: Run through gdb_indent.sh.
2186 * ada-typeprint.c: Run through gdb_indent.sh.
2187 * ada-valprint.c: Run through gdb_indent.sh.
2188
2189 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2190
2191 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2192 ABI.
2193
2194 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2195
2196 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2197
2198 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2199 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2200
2201 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2202 write_register_gen instead of write_register_bytes.
2203
2204 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2205 i[3456]-*-osf1mk* configurations have been made obsolete.
2206 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2207 i[3456]86-*-osf1mk* hosts obsolete.
2208 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2209 targets obsolete.
2210 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2211 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2212 config/i386/i386m3.mt, config/i386/nm-m3.h,
2213 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2214 config/i386/i386mk.mh, config/i386/i386mk.mt,
2215 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2216 obsolete.
2217 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2218 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2219 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2220
2221 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2222
2223 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2224 (hppa_value_returned_from_stack): Declare.
2225 (hppa_extract_return_value): Declare.
2226 * config/pa/hppa.mt: New file.
2227 * configure.tgt: Recognize hppa*-*-*.
2228 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2229
2230 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2231
2232 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2233 comment.
2234
2235 2002-08-17 Mark Kettenis <kettenis@gnu.org>
2236
2237 * top.c (gdb_rl_operate_and_get_next): Make sure
2238 operate-and-get-next functions correctly even when the history
2239 list is completely filled.
2240
2241 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2242
2243 * MAINTAINERS (Target Instruction Set Architectures): Rename
2244 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2245 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2246 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2247 already listed under Host/Native.
2248
2249 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2250 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2251 mips*-*-*.
2252
2253 2002-08-17 Andrew Cagney <ac131313@redhat.com>
2254
2255 * config/ia64/ia64.mt: New file.
2256 * config/alpha/alpha.mt: New file.
2257 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2258 ia64-linux-gnu. Mention that ia64-elf is broken.
2259 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2260
2261 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2262
2263 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2264 generic_func_frame_valid instead of func_frame_valid.
2265
2266 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2267
2268 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2269 procfs appears to be broken when debugging on multi-processor
2270 machines. So enable software single stepping in order to avoid
2271 using the procfs interface to do next/step operations, using
2272 internal breakpoints instead.
2273
2274 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2275 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2276 make this pc address equal to the value it would have if the
2277 system stepping capability was used. Also set a new flag used
2278 to ensure that we don't readjust the PC one more time later.
2279
2280 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2281 address by DECR_PC_AFTER_BREAK when software single step is
2282 in use for this architecture, as this has already been taken
2283 care of in handle_inferior_event().
2284
2285 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2286
2287 * infrun.c (handle_inferior_event): Minor reformatting, to make
2288 a rather long condition expression easier to read.
2289
2290 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2291
2292 * Makefile.in (gdbtk.o): Move to end of file.
2293 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2294 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2295 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2296 (gdbtk-wrapper.o, gdbres.o): Ditto.
2297
2298 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2299
2300 * Makefile.in (copying.o): Separate out compile rule.
2301 (hpux-thread.o, procfs.o, signals.o): Ditto.
2302 (v850ice.o, z8k-tdep.o): Ditto.
2303 (tui-file.o): Move to TUI section.
2304 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2305 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2306
2307 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2308
2309 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2310 skip_trampoline_code, for better namespace-proofing.
2311
2312 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2313
2314 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2315
2316 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2317
2318 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2319
2320 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2321 signal, check whether we hit a breakpoint before checking for a
2322 single step breakpoint. Otherwise, GDB fails to notice that a
2323 breakpoint has been hit when stepping onto a breakpoint.
2324
2325 2002-08-16 Keith Seitz <keiths@redhat.com>
2326
2327 * gdb-events.sh (clear_gdb_event_hooks): New function.
2328 * gdb-events.c: Regenerate.
2329 * gdb-events.h: Regenerate.
2330
2331 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2332
2333 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2334 not_a_sw_breakpoint.
2335 * breakpoint.h (bpstat_stop_status): Add parameter names.
2336
2337 2002-08-16 Grace Sainsbury <graces@redhat.com>
2338
2339 * remote.c (remote_insert_hw_breakpoint)
2340 (remote_remove_hw_breakpoint): Fix calculation of length field
2341 for Z-packet.
2342
2343 2002-08-15 Michael Snyder <msnyder@redhat.com>
2344
2345 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2346 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2347 (supply_fpregset): Ditto.
2348
2349 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2350 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2351 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2352 (TARGET_READ_SP): Delete.
2353 (DO_REGISTERS_INFO): Delete.
2354 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2355 Delete.
2356 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2357 from macros to functions.
2358
2359 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2360 (mips_register_convertible, mips_register_convert_to_virtual,
2361 mips_register_convert_to_raw): Make static.
2362 (mips_read_sp): New function.
2363 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2364 (mips_do_registers_info): Make static.
2365 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2366 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2367 (mips_register_convert_from_type, mips_register_convert_to_type):
2368 New functions.
2369 (mips_gdbarch_init): Set up function_start_offset,
2370 register_virtual_size, pc_in_sigtramp.
2371
2372 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2373
2374 * infcmd.c (vector_info): New function.
2375 (_initialize_infcmd): Add command "info vector".
2376 (print_vector_info): New function.
2377
2378 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2379 * gdbarch.h, gdbarch.c: Regenerate.
2380
2381 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2382
2383 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2384 ``print_all''. Only print vector registers when ``print_all''.
2385
2386 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2387
2388 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2389 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2390
2391 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2392 Add `args' parameter.
2393 * gdbarch.h, gdbarch.c: Regenerate.
2394
2395 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2396
2397 * infcmd.c (float_info): Call print_float_info.
2398 (print_float_info): New function. By default, print the
2399 floating-point registers.
2400
2401 * arch-utils.h (default_print_float_info): Delete declaration.
2402 * arch-utils.c (default_print_float_info): Delete function.
2403
2404 2002-08-16 Mark Kettenis <kettenis@gnu.org>
2405
2406 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2407 out define.
2408
2409 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2410 FRAME.
2411
2412 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2413 * configure.host: Make i[3456]86-*-aix host obsolete.
2414 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2415 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2416 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2417 config/i386/xm-i386aix.h: Make files obsolete.
2418 * i386aix-nat.c: Make file obsolete.
2419 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2420 (i386aix-nat.o): Make target obsolete.
2421
2422 * config/i386/nm-gnu.h: Removed.
2423 * config/i386/nm-i386gnu.h: New file.
2424 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2425 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2426 Moved here from ...
2427 * config/i386/tm-i386gnu.h: ... here. Removed.
2428 * config/i386/xm-i386gnu.h: Removed.
2429 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2430 (NAT_FILE): Set to nm-i386gnu.h.
2431 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2432 * i386-tdep.c: New file.
2433 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2434 (i386gnu-tdep.o): Specify dependencies.
2435
2436 2002-08-15 Mark Kettenis <kettenis@gnu.org>
2437
2438 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2439 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2440 Adjust a few comments to reflect reality a bit closer.
2441 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2442 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2443 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2444 target_insert_watchpoint, target_remove_watchpoint):
2445 Move defines to ...
2446 * config/i386/nm-i386sco5.h: ... here.
2447 (kernel_u_size): Add prototype. Improve a few comments and add
2448 protection against multiple inclusion.
2449
2450 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2451 out define.
2452
2453 * uw-thread.c (SP_ARG0): Define if not already defined.
2454 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2455
2456 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2457
2458 * config/i386/tm-i386.h: Don't include "regcache.h".
2459
2460 * i387-tdep.h (i387_print_float_info): New prototype.
2461 * i387-tdep.c (print_i387_value, print_i387_ext,
2462 print_i387_status_word, print_i387_control_word): Add `struct
2463 ui_file *' argument and use it for output.
2464 (i387_print_float_info): Renamed from i387_float_info. Add
2465 `struct gdbarch *' and `struct ui_file *' arguments and use the
2466 latter for output.
2467 * i386-tdep.c: Include "i387-tdep.h".
2468 (i386_gdbarch_init): Set print_float_info.
2469 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2470 (FLOAT_INFO): Remove define.
2471
2472 2002-08-13 Michael Snyder <msnyder@redhat.com>
2473
2474 * mips-tdep.c (mips_push_arguments): Rename to
2475 mips_eabi_push_arguments, and tune for EABI.
2476 (MIPS_REGS_HAVE_HOME_P): Delete.
2477 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2478 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2479 Delete references to mips_regs_have_home_p.
2480
2481 2002-08-14 Keith Seitz <keiths@redhat.com>
2482
2483 * Makefile.in (install-gdbtk): Create insight plugin directory.
2484 Install plugins.tcl file.
2485
2486 2002-08-14 Keith Seitz <keiths@redhat.com>
2487
2488 * configure.in: Move SUBDIRS to near top of the file so that
2489 --enable options may add things to it.
2490 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2491 * configure: Regenerate.
2492
2493 2002-08-13 Michael Snyder <msnyder@redhat.com>
2494
2495 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2496 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2497 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2498
2499 2002-08-13 Andrew Cagney <ac131313@redhat.com>
2500
2501 * vax-tdep.c (vax_get_saved_register): Delete function.
2502 (vax_gdbarch_init): Update.
2503 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2504 (ns32k_gdbarch_init): Update.
2505 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2506 (alpha_gdbarch_init): Update.
2507
2508 2002-08-13 Andrew Cagney <cagney@redhat.com>
2509
2510 * regcache.c (init_regcache_descr): Overallocate the
2511 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2512 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2513 nr_raw_registers.
2514 (set_register_cached): Add range checking assertions. Use
2515 current_regcache.
2516
2517 2002-08-13 Mark Kettenis <kettenis@gnu.org>
2518
2519 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2520 numbers for MMX registers.
2521
2522 2002-08-13 Andrew Cagney <cagney@redhat.com>
2523
2524 * i386-tdep.c (i386_gdbarch_init): Use
2525 generic_unwind_get_saved_register.
2526
2527 2002-08-13 Kevin Buettner <kevinb@redhat.com>
2528
2529 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2530 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2531 target vector.
2532 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2533 Delete. Add comment regarding this now-deleted target method.
2534
2535 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2536
2537 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2538 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2539 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2540 real PC and the page number (if it's within the memory bank window).
2541 (m68hc11_pseudo_register_write): Likewise when saving.
2542 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2543 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2544 (m68hc11_register_raw_size): And use 32-bit for it.
2545 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2546 16K memory bank is used by the prog; also use the virtual pc.
2547
2548 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2549
2550 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2551 (m68hc11_gdbarch_init): Install it in gdbarch.
2552 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2553 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2554 (MSYMBOL_SIZE): New for documentation.
2555 (insn_return_kind): Enum to specify how a function returns.
2556 (frame_extra_info): Cleanup and record the return mode.
2557 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2558 register in address computation.
2559 (m68hc11_get_return_insn): New to obtain the return instruction used
2560 by the function.
2561 (m68hc11_frame_init_saved_regs): Take into account the return
2562 instruction used by the function for far and interrupt functions.
2563 (m68hc11_init_extra_frame_info): Take into account page register.
2564 (m68hc11_frame_args_address): Adjust according to the return mode.
2565 (show_regs): Print page register only when it's used.
2566
2567 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2568
2569 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2570 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2571 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2572 registers.
2573 (m68hc11_register_raw_size): Likewise.
2574
2575 2002-08-13 Andrew Cagney <cagney@redhat.com>
2576
2577 * i386-tdep.c (i386_register_name): Handle mmx registers.
2578 (mmx_regnum_p): New function.
2579 (i386_mmx_names): New array.
2580 (mmx_num_regs): New variable.
2581 (i386_pseudo_register_read): New function.
2582 (i386_pseudo_register_write): New function.
2583 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2584
2585 * regcache.c (regcache_raw_read_unsigned): New function.
2586 (regcache_raw_read_signed): New function.
2587 * regcache.h (regcache_raw_read_unsigned): Declare.
2588 (regcache_raw_read_signed): Declare.
2589
2590 2002-08-13 Andrew Cagney <cagney@redhat.com>
2591
2592 * regcache.c (regcache_raw_read_as_address): Delete function.
2593 (regcache_cooked_read_signed): New function.
2594 (regcache_cooked_read_unsigned): New function.
2595 * regcache.h (regcache_cooked_read_signed): Declare.
2596 (regcache_cooked_read_unsigned): Declare.
2597 (regcache_raw_read_as_address): Delete declaration.
2598
2599 * blockframe.c (generic_read_register_dummy): Use
2600 regcache_cooked_read_unsigned.
2601 * i386-tdep.c (i386_extract_struct_value_address): Use
2602 regcache_cooked_read_unsigned.
2603
2604 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2605
2606 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2607 double sizes according to ELF ABI flags.
2608 (gdbarch_tdep): Record elf_flags.
2609
2610 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2611
2612 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2613 (m6812_prolog): They can appear in 68HC12 function prologue.
2614 (m68hc11_frame_chain): Cleanup.
2615
2616 2002-08-12 Andrew Cagney <cagney@redhat.com>
2617
2618 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2619 declarations.
2620 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2621 (i386_linux_register_raw_size): Delete function.
2622 (i386_linux_init_abi): Update.
2623 * i386-tdep.c (i386_register_raw_size): Delete function.
2624 (i386_register_byte): Delete function.
2625 (i386_gdbarch_init): Update.
2626 (i386_register_size): Delete array.
2627 (i386_register_offset): Delete array.
2628
2629 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2630 (REGISTER_RAW_SIZE): Delete macro.
2631 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2632 (REGISTER_BYTE): Delete macro.
2633
2634 2002-08-11 Aidan Skinner <aidan@velvet.net>
2635
2636 * ada-lang.c (ada_lookup_partial_symbol)
2637 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2638 prototype names so that grep ^func works properly.
2639
2640 * ada-lang.c (ada_array_element_type)
2641 (ada_lookup_partial_symbol): Fix typos in parameter list.
2642
2643 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2644 Fix prototype names so that grep ^func works properly.
2645
2646 2002-08-10 Andrew Cagney <cagney@redhat.com>
2647 Elena Zannoni <ezannoni@redhat.com>
2648 Martin M. Hunt <hunt@redhat.com>
2649
2650 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2651 (build_builtin_type_vec128i): Set the vector bit.
2652 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2653 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2654 (build_builtin_type_vec64): New function.
2655 (build_builtin_type_vec64i): New function.
2656 (build_gdbtypes): Initialize builtin_type_vec64 and
2657 builtin_type_vec64i.
2658
2659 2002-08-09 Andrew Cagney <cagney@redhat.com>
2660
2661 * regcache.c (regcache_dump): Compare the register offset
2662 with REGISTER_BYTE.
2663 * arch-utils.c (generic_register_byte): New function.
2664 * arch-utils.h (generic_register_byte): Declare.
2665 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2666 * gdbarch.h, gdbarch.c: Regenerate.
2667
2668 2002-08-09 Andrew Cagney <cagney@redhat.com>
2669
2670 * regcache.c: Include "gdbcmd.h"
2671 (_initialize_regcache): Add commands "maintenance print
2672 registers", "maintenance print raw-registers" and "maintenance
2673 print cooked-registers".
2674 (enum regcache_dump_what): Define.
2675 (dump_endian_bytes): New function.
2676 (regcache_dump): New function.
2677 (regcache_print): New function.
2678 (maintenance_print_registers): New function.
2679 (maintenance_print_raw_registers): New function.
2680 (maintenance_print_cooked_registers): New function.
2681 * Makefile.in (regcache.o): Update dependencies.
2682
2683 2002-08-09 Michael Snyder <msnyder@redhat.com>
2684
2685 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2686 (mips_push_arguments): Correct some comments. Use paddr_nz
2687 for printing addresses in debug output. Replace static
2688 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2689 (mips_n32n64_push_arguments): New function, cloned from
2690 mips_push_arguments and tuned for the n32/n64 ABI.
2691 (mips_push_register): Buffer needs dynamic allocation.
2692 (mips_print_register): Ditto.
2693 (do_gp_register_row): Ditto.
2694 (mips_store_return_value): Ditto.
2695 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2696
2697 2002-08-09 Don Howard <dhoward@redhat.com>
2698
2699 * memattr.c (mem_info_command): Print special case of upper bound
2700 as max CORE_ADDR + 1.
2701
2702 2002-08-08 Michael Snyder <msnyder@redhat.com>
2703
2704 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2705 returns structs by ref if they're too big to fit in two registers.
2706
2707 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2708
2709 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2710 saved regs value.
2711 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2712 mips_find_saved_regs().
2713 (mips_pop_frame): Likewise.
2714
2715 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2716
2717 * blockframe.c (frame_saved_regs_register_unwind): Revise
2718 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2719 frames are in use.
2720
2721 2002-08-09 Grace Sainsbury <graces@redhat.com>
2722
2723 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2724 T-packets; the 'a' is not taken as a register number.
2725 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2726 (remote_stopped_data_address): New functions; add to target
2727 vector.
2728 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2729 prototypes to match other implementations of this
2730 function. replace integer argument with pointer -- the length
2731 field in the Z-packet is the length of what is pointed to or 1 if
2732 pointer is null. Add to target vector.
2733 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2734 target vector.
2735
2736 From Mark Salter:
2737 * remote.c (remote_wait): Add support to extract optional
2738 watchpoint information from T-packet. Ignore unrecognized
2739 optional info in T-packet.
2740 (remote_async_wait): Ditto.
2741
2742 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
2743
2744 * cli/cli-dump.c: Change fopen modes to use binary open modes
2745 as defined in include/fopen-bin.h throughout.
2746
2747 2002-08-08 Michael Snyder <msnyder@redhat.com>
2748
2749 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2750
2751 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2752
2753 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2754 assertion failure by returning early after a warning.
2755
2756 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2757
2758 * mips-tdep.c (mips_find_saved_regs): Make static.
2759 (mips_frame_init_saved_regs): New function.
2760 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2761 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2762 (mips_find_saved_regs): Delete declaration.
2763
2764 2002-08-08 Grace Sainsbury <graces@redhat.com>
2765
2766 * remote.c (remote_wait, remote_async_wait): Change
2767 thread_num from int to ULONGEST.
2768 (unpack_varlen_hex): Change result parameter from
2769 int * to ULONGEST *.
2770
2771 2002-08-08 Andrew Cagney <ac131313@redhat.com>
2772
2773 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2774 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2775 powerpc*-*-*.
2776 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2777
2778 2002-08-08 Andrew Cagney <cagney@redhat.com>
2779
2780 * gcore.c (override_derive_stack_segment): Delete variable.
2781 (preempt_derive_stack_segment): Delete function.
2782 (derive_stack_segment): Delete function.
2783 (default_derive_stack_segment): Renamed to derive_stack_segment.
2784 (override_derive_heap_segment): Delete variable.
2785 (preempt_derive_heap_segment): Delete function.
2786 (derive_heap_segment): Delete function.
2787 (default_derive_heap_segment): Rename to derive_heap_segment.
2788
2789 2002-08-06 Michael Snyder <msnyder@redhat.com>
2790
2791 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2792 * mips-tdep.c (mips_EABI_use_struct_convention,
2793 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2794 New functions. (mips_use_struct_convention): Delete.
2795 (mips_gdbarch_init): set use_gdbarch_convention.
2796
2797 2002-08-06 Michael Snyder <msnyder@redhat.com>
2798
2799 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2800 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2801 mips_o32_reg_struct_has_addr): New functions.
2802 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2803
2804 2002-08-07 Andrew Cagney <ac131313@redhat.com>
2805
2806 * regcache.c (pseudo_register): Delete function.
2807 (fetch_register): Delete function.
2808 (store_register): Delete function.
2809 (regcache_raw_read, legacy_read_register_gen): Use
2810 target_fetch_registers instead of fetch_register.
2811 (legacy_write_register_gen, regcache_raw_write): Use
2812 target_store_register instead of store_register.
2813 (write_register_bytes): Ditto.
2814
2815 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2816 (STORE_PSEUDO_REGISTER): Delete.
2817 * gdbarch.h, gdbarch.c: Regenerate.
2818
2819 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
2820
2821 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2822 write dump file binary.
2823
2824 2002-08-05 Michael Snyder <msnyder@redhat.com>
2825
2826 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2827 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2828 (mips_gdbarch_init): Set N32 target to be mips64.
2829
2830 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2831
2832 * frame.c (find_saved_register): Break out of loop once saved
2833 register address is found. Don't mention sparc in loop comment
2834 anymore.
2835
2836 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2837
2838 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2839 mips_default_saved_regsize to 8.
2840
2841 2002-08-06 Andrew Cagney <ac131313@redhat.com>
2842
2843 * gcore.c: Do not include <sys/procfs.h>.
2844 * Makefile.in (gcore.o): Update dependencies.
2845
2846 2002-08-06 Andrew Cagney <cagney@redhat.com>
2847
2848 * configure.tgt: Make arc-*-* obsolete.
2849 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2850 * MAINTAINERS: Make arc-elf obsolete.
2851 * arc-tdep.c: Make file obsolete.
2852 * config/arc/arc.mt: Ditto.
2853 * config/arc/tm-arc.h: Ditto.
2854
2855 2002-08-05 Theodore A. Roth <troth@verinet.com>
2856
2857 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
2858
2859 2002-08-05 Andrew Cagney <ac131313@redhat.com>
2860
2861 * mcore-tdep.c (mcore_gdbarch_init): Use
2862 generic_unwind_get_saved_register instead of
2863 generic_get_saved_register.
2864 * v850-tdep.c (v850_gdbarch_init): Ditto.
2865 * frv-tdep.c (frv_gdbarch_init): Ditto.
2866 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2867 * s390-tdep.c (s390_gdbarch_init): Ditto.
2868 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2869 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2870 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2871
2872 2002-08-05 Joel Brobecker <brobecker@gnat.com>
2873
2874 * objfiles.h: Add missing #include "symfile.h"
2875
2876 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2877
2878 2002-08-04 Andrew Cagney <ac131313@redhat.com>
2879
2880 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2881 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2882 of FIELD_BITSIZE.
2883
2884 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
2885
2886 * NEWS: Cleanup and nitpick.
2887
2888 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2889
2890 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2891
2892 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2893
2894 * Makefile.in (gdbtk-bp.o): Update dependencies.
2895 (gdbtk-register.o): Ditto.
2896 (gdbtk-varobj.o): Ditto.
2897
2898 2002-08-03 Andrew Cagney <cagney@redhat.com>
2899
2900 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2901 m68hc11_fetch_pseudo_register.
2902 (m68hc11_pseudo_register_write): Replace
2903 m68hc11_store_pseudo_register.
2904 (m68hc11_gdbarch_init): Update.
2905
2906 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2907
2908 * gdbarch.sh: Include "gdb_string.h".
2909 * gdbarch.c: Regenerate.
2910
2911 * regcache.c: Include "gdb_string.h".
2912 * ax-general.c: Ditto.
2913 * varobj.c: Ditto.
2914 * std-regs.c: Ditto.
2915 * fbsd-proc.c: Ditto.
2916 * thread.c: Ditto.
2917
2918 * Makefile.in (regcache.o): Update dependencies.
2919 (thread.o, gdbarch.o): Ditto.
2920 (ax-general.o, gdbarch.o): Ditto.
2921 (varobj.o, std-regs.o): Ditto.
2922 (fbsd-proc.o): Specify dependencies.
2923
2924 2002-08-02 Andrew Cagney <cagney@redhat.com>
2925
2926 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2927 regnum.
2928 (regcache_cooked_write): Ditto.
2929
2930 2002-08-02 Andrew Cagney <ac131313@redhat.com>
2931
2932 * regcache.c (regcache_cooked_read): New function.
2933 (regcache_cooked_write): New function.
2934 (read_register_gen): Rewrite using regcache_cooked_read.
2935 (write_register_gen): Rewrite using regcache_cooked_write.
2936
2937 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2938 Declare.
2939
2940 2002-08-02 Andrew Cagney <cagney@redhat.com>
2941
2942 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2943 Replace the architecture methods register_read and register_write.
2944 * gdbarch.h, gdbarch.c: Regenerate.
2945 * regcache.c (init_regcache_descr): Update.
2946 (read_register_gen): Update.
2947 (write_register_gen): Update.
2948 (supply_register): Update comment.
2949
2950 * sh-tdep.c (sh_gdbarch_init): Update.
2951 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2952 `regcache' and `gdbarch' parameters. Make `buffer' a void
2953 pointer. Update code.
2954 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2955 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2956 void pointer. Update code.
2957 (sh64_register_write): Delete.
2958 (sh4_register_read): Delete.
2959 (sh64_register_read): Delete.
2960 (sh4_register_write): Delete.
2961 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2962 void pointer, `to' parameter a void pointer.
2963 (sh_sh64_register_convert_to_raw): Ditto.
2964
2965 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2966
2967 * mips-tdep.c (mips_register_virtual_type): Use architecture
2968 invariant return values.
2969
2970 2002-08-01 Andrew Cagney <cagney@redhat.com>
2971
2972 * linux-proc.c: Include "gdb_string.h".
2973 * Makefile.in (linux-proc.o): Update dependency list.
2974
2975 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2976
2977 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2978 comment.
2979
2980 2002-08-01 Grace Sainsbury <graces@redhat.com>
2981
2982 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2983 to_insert_watchpoint, to_remove_watchpoint,
2984 to_stopped_by_watchpoint, to_stopped_data_address,
2985 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2986 target vecctor. Define their corresponding macros so they call
2987 them.
2988
2989 * target.c: Add default and debug versions of for
2990 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2991 to_insert_watchpoint, to_remove_watchpoint,
2992 to_stopped_by_watchpoint, to_stopped_data_address,
2993 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2994
2995 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2996
2997 * mips-tdep.c (mips_register_virtual_type): New function.
2998 (mips_gdbarch_init): Register mips_register_virtual_type()
2999 with gdbarch machinery.
3000 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3001 this file instead of tm-bigmips.h.
3002 (MIPS_REGSIZE): Delete this macro.
3003 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
3004 multiarch version in mips-tdep.c will be found.
3005
3006 2002-08-01 Andrew Cagney <cagney@redhat.com>
3007
3008 * NEWS: Menion that CHILL has been made obsolete.
3009
3010 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
3011 * stabsread.c (read_range_type): Ditto.
3012 * gdbtypes.h: Ditto.
3013 * language.c (binop_type_check): Ditto.
3014 (binop_result_type): Ditto.
3015 (integral_type): Ditto.
3016 (character_type): Ditto.
3017 (string_type): Ditto.
3018 (boolean_type): Ditto.
3019 (structured_type): Ditto.
3020 (lang_bool_type): Ditto.
3021 (binop_type_check): Ditto.
3022 * language.h (_LANG_chill): Ditto.
3023 * dwarfread.c (set_cu_language): Ditto.
3024 * dwarfread.c (CHILL_PRODUCER): Ditto.
3025 * dwarfread.c (handle_producer): Ditto.
3026 * expression.h (enum exp_opcode): Ditto.
3027 * eval.c: Ditto for comments.
3028 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3029 * expprint.c (print_subexp): Ditto.
3030 (print_subexp): Ditto.
3031 * valops.c (value_cast): Ditto.
3032 (search_struct_field): Ditto.
3033 * value.h (COERCE_VARYING_ARRAY): Ditto.
3034 * symfile.c (init_filename_language_table): Ditto.
3035 (add_psymbol_with_dem_name_to_list): Ditto.
3036 * valarith.c (value_binop): Ditto.
3037 (value_neg): Ditto.
3038 * valops.c (value_slice): Ditto.
3039 * symtab.h (union language_specific): Ditto.
3040 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3041 (SYMBOL_DEMANGLED_NAME): Ditto.
3042 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3043 * defs.h (enum language): Ditto.
3044 * symtab.c (got_symtab): Ditto.
3045 * utils.c (fprintf_symbol_filtered): Ditto.
3046
3047 * ch-typeprint.c: Make file obsolete.
3048 * ch-valprint.c: Make file obsolete.
3049 * ch-lang.h: Make file obsolete.
3050 * ch-exp.c: Make file obsolete.
3051 * ch-lang.c: Make file obsolete.
3052
3053 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3054 CHILL_LIB.
3055 (TARGET_FLAGS_TO_PASS): Ditto.
3056 (CHILLFLAGS): Obsolete.
3057 (CHILL): Obsolete.
3058 (CHILL_FOR_TARGET): Obsolete.
3059 (CHILL_LIB): Obsolete.
3060 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3061 ch-valprint.c.
3062 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3063 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3064 ch-lang.o.
3065 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3066 targets.
3067
3068 2002-07-31 Joel Brobecker <brobecker@gnat.com>
3069
3070 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3071 This does not change anything at the moment, but will be helpful
3072 later when full Ada support is integrated.
3073
3074 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3075
3076 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3077 help message.
3078
3079 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3080
3081 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3082 and save it in a local variable. Use variable in later test.
3083
3084 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3085
3086 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3087 test. (Thanks to Daniel Jacobowitz.)
3088
3089 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3090
3091 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3092 (mips_abi_strings): Add "n64".
3093 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3094
3095 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3096
3097 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3098 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3099
3100 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3101
3102 * utils.c (host_pointer_to_address, address_to_host_pointer):
3103 Use gdb_assert() instead of explicit call to internal_error().
3104
3105 2002-07-30 Kevin Buettner <kevinb@redhat.com>
3106
3107 * Makefile.in (rs6000-nat.o): Update dependencies.
3108
3109 From Nicholas Duffek:
3110 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3111 (aix-thread.o): New rule.
3112 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3113 * config/powerpc/aix432.mh: New file.
3114
3115 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3116
3117 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3118 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3119 (fetch_core_registers, ppc_linux_supply_gregset)
3120 (ppc_linux_supply_fpregset): New functions.
3121 (ppc_linux_regset_core_fns): New.
3122 (_initialize_ppc_linux_tdep): Call add_core_fns.
3123 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3124 and ppc_linux_supply_gregset.
3125 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3126 (supply_fpregset): Call ppc_linux_supply_fpregset.
3127 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3128 corelow.o.
3129 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3130
3131 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3132
3133 * symtab.c (lookup_symbol): Demangle before lowercasing.
3134
3135 2002-07-30 Andrew Cagney <ac131313@redhat.com>
3136
3137 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3138 declaration.
3139 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3140 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3141 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3142 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3143 "gdb_string.h".
3144 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3145 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3146 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3147 (avr-tdep.o, mon960-rom.o): Ditto.
3148 (aout_stabs_gnu_h): Define.
3149 (symtab_h): Remove $(gdb_obstack_h).
3150
3151 2002-07-30 Jim Blandy <jimb@redhat.com>
3152
3153 Patch from David Carlton <carlton@math.stanford.edu>:
3154 * gdbinit.in: Move the `dir' commands that add GDB's own source
3155 directory to the search path to the end, so that the `gdb' source
3156 directory will be searched first.
3157
3158 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3159
3160 * gdb_obstack.h: New file.
3161 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3162 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3163 * objfiles.h: Include "gdb_obstack.h".
3164 * Makefile.in (gdb_obstack_h): Define.
3165 (symtab_h): Add $(gdb_obstack_h).
3166 (objfiles_h): Add $(gdb_obstack_h).
3167
3168 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3169 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3170 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3171 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3172 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3173 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3174 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3175 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3176
3177 * Makefile.in (bcache.o): Update dependencies.
3178 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3179 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3180 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3181 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3182 (stabsread.o, symfile.o, symmisc.o): Ditto.
3183 (symtab.o, typeprint.o, macroexp.o): Ditto.
3184 (macrotab.o, mdebugread.o): Ditto.
3185 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3186 (coff_ecoff_h, aout_aout64_h): Define.
3187 (aout_stabs_gnu_h, libaout_h): Define.
3188
3189 2002-07-29 Andrew Cagney <cagney@redhat.com>
3190
3191 * regcache.c (struct regcache_descr): Rename nr_registers to
3192 nr_cooked_registers. Revise comments describing the structure
3193 member fields.
3194 (init_regcache_descr): Update.
3195 (init_legacy_regcache_descr): Update.
3196 (read_register_gen, write_register_gen): When a cooked register in
3197 the raw register range, directly access the value from the raw
3198 register cache.
3199
3200 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3201
3202 * z8k-tdep.c: Do not include "obstack.h".
3203 * h8300-tdep.c, h8500-tdep.c: Ditto.
3204 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3205 * valprint.c, v850-tdep.c: Ditto.
3206 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3207 * mn10200-tdep.c: Ditto.
3208
3209 * Makefile.in (z8k-tdep.o): Update dependencies.
3210 (m68hc11-tdep.o, valprint.o): Ditto.
3211 (v850-tdep.o, d10v-tdep.o): Ditto.
3212 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3213 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3214 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3215 (sh_opc_h, gdb_sim_sh_h): Define.
3216 (elf_sh_h, elf_bfd_h): Define.
3217 (opcode_m68hc11_h): Define.
3218 (OPCODES_SRC, OPCODES_DIR): define.
3219 (OPCODES): Use $(OPCODES_DIR).
3220 (gdb_sim_d10v_h): Rename sim_d10v_h.
3221 (gdb_sim_arm_h): Rename sim_arm_h.
3222
3223 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3224
3225 * utils.c (host_pointer_to_address, address_to_host_pointer):
3226 Change internal_error() message to indicate function responsible
3227 for the error.
3228
3229 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3230
3231 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3232 calls to local_hex_string_custom().
3233
3234 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3235
3236 * irix5-nat.c: Move IRIX shared library support from here...
3237 * solib-irix.c: ...to here. Revised substantially to work with
3238 generic solib framework.
3239
3240 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3241 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3242 * mips-irix-tdep.c: New file.
3243
3244 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3245 (mips-irix-tdep.o, solib-irix.o): New rules.
3246 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3247 solib-irix.o.
3248 * config/mips/irix6.mt (TDEPFILES): Likewise.
3249 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3250
3251 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3252
3253 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3254 disabled (via ``#if 0'') includes.
3255
3256 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3257
3258 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3259 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3260 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3261 Add support for the fpscr register.
3262 * rs6000-nat.c (regmap, fetch_inferior_registers)
3263 (store_inferior_registers, fetch_core_registers): Likewise.
3264
3265 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3266
3267 * rs6000-nat.c (language.h): Include.
3268 (special_regs): Delete this array.
3269 (regmap): New function.
3270 (fetch_register, store_register): Use regmap() to map gdb
3271 register numbers to ptrace register numbers. Also, use
3272 outputs from regmap() to make decisions regarding type of
3273 ptrace() call to make. In particular, don't compare against
3274 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3275 (fetch_inferior_registers, store_inferior_registers): Where
3276 possible, obtain register numbers from tdep struct. Don't
3277 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3278 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3279 (LAST_UISA_SP_REGNUM): Delete.
3280
3281 2002-07-25 Kevin Buettner <kevinb@redhat.com>
3282
3283 * rs6000-nat.c (ppc-tdep.h): Include.
3284 (fetch_registers, store_register, fetch_core_registers): Don't
3285 access registers[] directly. Instead, use supply_register() or
3286 regcache_collect() as appropriate.
3287 (find_toc_address): Format hex address with local_hex_string().
3288
3289 2002-07-25 Andrew Cagney <ac131313@redhat.com>
3290
3291 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3292 bfd/elf32-frv.c.
3293
3294 2002-07-24 Tom Tromey <tromey@redhat.com>
3295
3296 * jv-exp.y: Marked all strings with _().
3297 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3298 internal_error.
3299 (MethodInvocation, CastExpression, parse_number, yyerror,
3300 java_type_from_name, push_expression_name, yylex): Typo fixes.
3301
3302 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
3303
3304 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3305 (tee_file_flush, tee_file_write, tee_file_fputs)
3306 (tee_file_isatty): New.
3307 * ui-file.h (tee_file_new): Add prototype.
3308
3309 2002-07-24 Aidan Skinner <aidan@velvet.net>
3310
3311 * ada-lang.c: Change k&r style function definitions to prototyped
3312 form.
3313 * ada-typeprint.c: Change k&r style function definitions to prototyped
3314 form.
3315 * ada-valprint.c: Change k&r style function definitions to prototyped
3316 form.
3317
3318 2002-07-24 Andrew Cagney <cagney@redhat.com>
3319
3320 * README: Remove reference to remote-bug.
3321 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3322 remote-bug.c.
3323 (m88k-nat.o): Delete rule.
3324 (m88k-tdep.o): Delete rule.
3325 (remote-bug.o): Delete rule.
3326 * MAINTAINERS: Mark as obsolete.
3327 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3328 * m88k-tdep.c: Make file obsolete.
3329 * config/m88k/m88k.mh: Ditto.
3330 * config/m88k/delta88v4.mh: Ditto.
3331 * config/m88k/delta88v4.mt: Ditto.
3332 * config/m88k/delta88.mt: Ditto.
3333 * config/m88k/delta88.mh: Ditto.
3334 * remote-bug.c: Ditto.
3335 * config/m88k/tm-delta88.h: Ditto.
3336 * config/m88k/nm-delta88v4.h: Ditto.
3337 * config/m88k/xm-delta88.h: Ditto.
3338 * config/m88k/xm-dgux.h: Ditto.
3339 * config/m88k/tm-m88k.h: Ditto.
3340 * config/m88k/nm-m88k.h: Ditto.
3341 * config/m88k/tm-delta88v4.h: Ditto.
3342 * m88k-nat.c: Ditto.
3343 * cxux-nat.c: Ditto.
3344 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3345 and m88*-*-* obsolete.
3346 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3347 m88*-*-* obsolete.
3348
3349 2002-07-24 Andrew Cagney <cagney@redhat.com>
3350
3351 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3352 constant. Same for local pointer variables.
3353 (extract_signed_integer): Ditto.
3354 * defs.h (extract_unsigned_integer): Update.
3355 (extract_signed_integer): Update.
3356
3357 2002-07-24 Andrew Cagney <cagney@redhat.com>
3358
3359 * regcache.c (regcache_raw_write): Change buf parameter to a
3360 constant void pointer.
3361 (regcache_raw_read): Change buf parameter to a void pointer.
3362 (legacy_write_register_gen): Change myaddr parameter a constant
3363 void pointer.
3364 (supply_register): Change val parameter to a const void pointer.
3365 * regcache.h (regcache_raw_write): Update declaration.
3366 (regcache_raw_read): Update declaration.
3367 (supply_register): Update declaration.
3368
3369 2002-07-24 Tom Tromey <tromey@redhat.com>
3370
3371 * defs.h (gdb_readline_wrapper): Declare.
3372 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3373 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3374 * top.c (gdb_readline_wrapper): New function.
3375 (command_line_input): Use it.
3376
3377 2002-07-24 Andrew Cagney <cagney@redhat.com>
3378
3379 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3380 regcache_read and regcache_write.
3381 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3382 * regcache.c: Update.
3383 * sh-tdep.c (sh64_push_arguments): Update comment.
3384 (sh_pseudo_register_read): Update.
3385 (sh_pseudo_register_write): Update.
3386 (sh4_register_read): Update.
3387 (sh4_register_write): Update.
3388 (sh64_pseudo_register_read): Update.
3389 (sh64_pseudo_register_write): Update.
3390 (sh64_register_read): Update.
3391 (sh64_register_write): Update.
3392 * i386-tdep.c (i386_extract_return_value): Update.
3393 (i386_extract_struct_value_address): Update.
3394 (i386_extract_return_value): Update.
3395 * blockframe.c (generic_read_register_dummy): Update.
3396 (generic_call_dummy_register_unwind): Update
3397 * infrun.c (write_inferior_status_register): Update.
3398
3399 2002-07-23 Jim Blandy <jimb@redhat.com>
3400
3401 * parser-defs.h (expression_context_pc): Make this extern.
3402 (Thanks to Michael Snyder.)
3403
3404 2002-07-23 Andrew Cagney <ac131313@redhat.com>
3405
3406 GDB 5.2.1 released from 5.2 branch.
3407 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3408 * README: Update to mention 5.2.1.
3409
3410 2002-07-23 Mark Salter <msalter@redhat.com>
3411
3412 * remote.c (remote_read_bytes): Fix check for error.
3413
3414 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3415
3416 * aix-thread.c (language.h): Include.
3417 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3418 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3419 Print newlines at end of debug messages.
3420 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3421 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3422
3423 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3424
3425 * aix-thread.c (ppc-tdep.h): Include.
3426 (special_register_p): New function.
3427 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3428 (store_regs_user_thread): Use register number information from
3429 gdbarch_tdep struct instead of hardcoded offsets relative to
3430 FIRST_UISA_SP_REGNUM.
3431 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3432 special_register_p() instead of using FPLAST_REGNUM and
3433 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3434 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3435 will be MQ's register number.
3436
3437 2002-07-22 Michael Snyder <msnyder@redhat.com>
3438
3439 * aix-thread.c (ops): Rename to aix_thread_ops.
3440 (base_ops): Rename to base_target.
3441 (ops_attach): Rename to aix_thread_attach.
3442 (ops_detach): Rename to aix_thread_detach.
3443 (ops_resume): Rename to aix_thread_detach.
3444 (ops_wait): Rename to aix_thread_wait.
3445 (ops_kill): Rename to aix_thread_kill.
3446 (init_ops): Rename to init_aix_thread_ops.
3447 (ops_fetch_register): Rename to aix_thread_fetch_register.
3448 (ops_store_register): Rename to aix_thread_store_register.
3449 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3450 (ops_thread_alive): Rename to aix_thread_thread_alive.
3451 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3452 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3453 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3454 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3455 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3456 (store_regs_lib): Rename to store_regs_user_thread.
3457 (store_regs_kern): Rename to store_regs_kernel_thread.
3458
3459 2002-07-22 Michael Snyder <msnyder@redhat.com>
3460
3461 * aix-thread.c (ops_prepare_to_store): Eliminate.
3462 (init_ops): Don't initialize ops.prepare_to_store.
3463 (store_regs_kern): Pre-fetch register buffers from child,
3464 because some registers may not be in the cache. Copy
3465 regs from register cache only if they are cached.
3466 (store_regs_lib): Copy regs from register cache only
3467 if they are cached.
3468 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3469 fill_gprs64): Ditto.
3470
3471 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3472
3473 * aix-thread.c (gdb_assert.h): Include.
3474 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3475 register sizes (from register cache) match size of buffer holding
3476 register data.
3477 (fill_sprs32): Change parameter types to match those in the ptrace()
3478 buffer.
3479 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3480 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3481
3482 2002-07-22 Michael Snyder <msnyder@redhat.com>
3483
3484 * aix-thread.c (supply_sprs64): Cosmetic change.
3485 (supply_sprs32): Cosmetic change.
3486 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3487 (fill_sprs64): Use regcache_collect instead of read_register.
3488 (store_regs_lib): Use regcache_collect instead of
3489 read_register. Use fill_sprs32 instead of fill_sprs64,
3490 if debugging a 32-bit architecture.
3491 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3492 out of the register cache, instead of passing a pointer into
3493 the register cache directly to ptrace. Use regcache_collect
3494 insteaad of read_register.
3495 (ops_prepare_to_store): Use target_read_registers instead
3496 of read_register_bytes.
3497
3498 2002-07-20 Aidan Skinner <aidan@velvet.net>
3499
3500 * MAINTAINERS: Add self under write after approval.
3501
3502 2002-07-20 Aidan Skinner <aidan@velvet.net>
3503
3504 * ada-tasks.c: Change k&r style function definitions to prototyped
3505 form.
3506
3507 2002-07-19 Andrew Cagney <ac131313@redhat.com>
3508
3509 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3510 * x86-64-tdep.c: Include "objfiles.h".
3511 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3512 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3513
3514 2002-07-17 Michal Ludvig <michal@suse.cz>
3515
3516 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3517 (update_context): Initialise cfa variable.
3518
3519 2002-07-17 Michael Snyder <msnyder@redhat.com>
3520
3521 * aix-thread.c: Shorten some long lines.
3522 Bring comments into line with code spec.
3523
3524 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3525
3526 * infrun.c: Re-indent using gdb_indent.sh.
3527
3528 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3529
3530 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3531 Leave the indentation temporarily untouched, to minimize the diffs.
3532
3533 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
3534
3535 * stabsread.c: Make os9k sections of the code obsolete,
3536 for real this time.
3537 * stabsread.h: Make os9k sections of the code obsolete.
3538
3539 2002-07-18 Michal Ludvig <mludvig@suse.cz>
3540
3541 * linux-low.c (regsets_store_inferior_registers): Add free()
3542 at the end of a loop to prevent memory leak.
3543 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3544 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3545 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3546 line a comment.
3547 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3548
3549 2002-07-17 Jim Blandy <jimb@redhat.com>
3550
3551 * macrocmd.c (info_macro_command): Remove newline from error
3552 message.
3553
3554 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
3555
3556 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3557 (sh_gdbarch_init): Use it for sh-dsp.
3558
3559 2002-07-16 Kevin Buettner <kevinb@redhat.com>
3560
3561 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3562 64-bit DWARF2 format.
3563
3564 2002-07-16 Joel Brobecker <brobecker@gnat.com>
3565
3566 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3567 <sys/proc.h> when not available.
3568
3569 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3570
3571 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3572 * stabsread.c: Make os9k sections of the code obsolete.
3573 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3574 * config/i386/i386os9k.mt: Make file obsolete.
3575 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3576 (COMMON_OBS): Remove os9kread.o
3577 (SFILES): Remove os9kread.c.
3578 (os9kread.o, remote-os9k.o): Make target obsolete.
3579 * remote-os9k.c: Make file obsolete.
3580 * os9kread.c: Make file obsolete.
3581 * Makefile.in
3582
3583 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3584
3585 * NEWS: Mention that the FR30 has been made obsolete.
3586 * fr30-tdep.c: Make file obsolete.
3587 * config/fr30/tm-fr30.h: Ditto.
3588 * config/fr30/fr30.mt: Ditto.
3589 * configure.tgt: Make fr30-*-elf obsolete.
3590 * MAINTAINERS: Make fr30-elf obsolete.
3591
3592 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3593
3594 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3595 found is not inside a section.
3596
3597 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3598
3599 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3600 strerror().
3601 (pdc_realloc): Use xrealloc() instead of realloc().
3602
3603 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3604
3605 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3606 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3607 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3608 macros.
3609
3610 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3611
3612 * aix-thread.c (ptrace_check): Eliminate goto.
3613 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3614 problem.
3615
3616 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3617
3618 * aix-thread.c (gdbcmd.h): Include.
3619 (DEBUG, DBG, DBG2, dbg): Eliminate.
3620 (debug_aix_thread): New static global.
3621 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3622 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3623 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3624 invocations to DBG and DBG2 macros to test against
3625 ``debug_aix_thread'' and call fprintf_unfiltered().
3626 (_initialize_aix_thread): Add new command "set debug aix-thread".
3627
3628 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3629
3630 From Gerhard Tonn <TON@de.ibm.com>:
3631 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3632 instead of supply_register.
3633
3634 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3635
3636 * dwarf2cfi.c: Include "gdb_assert.h".
3637 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3638 non-NULL.
3639 (update_context): Do not use __func__. Add missing ``break''.
3640 (update_context): Do not use __func__.
3641
3642 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
3643
3644 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3645 and its setting. Set gdbarch instruction printing functions
3646 directly. For non-rs6000 case use new function
3647 gdb_print_insn_powerpc.
3648 (gdb_print_insn_powerpc): New function.
3649
3650 2002-07-13 Andrew Cagney <ac131313@redhat.com>
3651
3652 * NEWS: Mention that the d30v has been marked obsolete.
3653 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3654 * configure.tgt: Mark d30v-*-* as obsolete.
3655 * d30v-tdep.c: Mark file as obsolete.
3656 * config/d30v/d30v.mt: Ditto.
3657 * config/d30v/tm-d30v.h: Ditto.
3658
3659 2002-07-13 Aidan Skinner <aidan@velvet.net>
3660
3661 * ada-tasks.c (add_task_entry): replace calls to
3662 malloc() with xmalloc
3663 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3664
3665 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3666 ada_finish_decode_line_1, all_sals_for_line
3667 ada_breakpoint_rewrite): replace calls to free() with xfree()
3668
3669 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3670
3671 From Nicholas Duffek (with minor changes by Martin Hunt,
3672 Louis Hamilton, and Kevin Buettner):
3673 * aix-thread.c: New file.
3674
3675 2002-07-12 Petr Sorfa <petrs@caldera.com>
3676
3677 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3678 complaint for invalid attribute class or form.
3679 (read_func_scope): DW_AT_frame_base
3680 better handling of DW_AT_block*.
3681 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3682 better handling of DW_AT_block*.
3683 (read_common_block): DW_AT_location
3684 better handling of DW_AT_block*.
3685 (read_partial_die): DW_AT_location better handling
3686 of DW_AT_block*.
3687 (new_symbol): DW_AT_external better handling of
3688 DW_AT_block*. Proper initialization of variable
3689 "addr".
3690 (attr_form_is_block): New function that returns true
3691 if the attribute's form is of DW_FORM_block*.
3692
3693 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3694
3695 * valops.c (find_method_list): Remove comment about
3696 removed STATIC_MEMFUNCP argument.
3697 (value_find_oload_method_list): Likewise.
3698
3699 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3700
3701 From Nicholas Duffek:
3702 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3703 target_new_objfile_hook.
3704
3705 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3706
3707 From Nicholas Duffek:
3708 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3709 csect.
3710
3711 2002-07-12 Andrew Cagney <cagney@redhat.com>
3712
3713 * MAINTAINERS: Mention --enable-sim-build-warnings.
3714 (m68hc11-elf): Disable sim build warnings.
3715 (m32r-elf): Mark as broken obsolete candidate.
3716 (x86_64-linux-gnu): Mark as buildable with -Werror.
3717 (arm-elf): Change -w to ``,'' which enables warnings but not
3718 -Werror.
3719
3720 2002-07-12 Andrew Cagney <ac131313@redhat.com>
3721
3722 * bcache.h: Update copyright.
3723 (struct bstring, struct bcache): Move definition to "bcache.c".
3724 Replaced by opaque declaration.
3725 (bcache_xfree): Replace free_bcache.
3726 (bcache_xmalloc, bcache_memory_used): Declare.
3727
3728 * bcache.c: Update copyright.
3729 (struct bstring, struct bcache): Moved to here from "bcache.h".
3730 Update comments.
3731 (bcache_xmalloc, bcache_memory_used): New functions.
3732 (bcache_xfree): Replace function free_bcache.
3733
3734 * Makefile.in (objfiles.o): Add $(bcache_h).
3735 (objfiles_h): Remove $(bcache_h).
3736 (symfile.o): Add $(bcache_h).
3737
3738 * symmisc.c: Update copyright.
3739 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3740 (print_objfile_statistics): Use bcache_memory_used.
3741
3742 * symfile.c: Include "bcache.h".
3743 (reread_symbols): Use bcache_xfree.
3744 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3745 (add_psymbol_to_list): Pass psymbol_cache by value.
3746 (add_psymbol_with_dem_name_to_list): Ditto.
3747
3748 * objfiles.h: Update copyright.
3749 (struct bcache): Declare opaque. Do not include "bcache.h".
3750 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3751 bcache'' pointers.
3752 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3753
3754 * objfiles.c: Include "bcache.h". Update copyright.
3755 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3756 macro_cache.
3757 (free_objfile): Use bcache_xfree.
3758
3759 2002-07-11 Grace Sainsbury <graces@redhat.com>
3760
3761 * monitor.c (monitor_fetch_register): Make name a constant.
3762 (monitor_store_register): Same.
3763
3764 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
3765
3766 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3767 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3768 (finish_block) For non-function blocks, hash the symbol table. For
3769 function blocks, mark the symbol table as unhashed.
3770 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3771 (msymbol_hash_iw): Likewise.
3772 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3773 value.
3774 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3775 (lookup_minimal_symbol): Likewise for both.
3776 * symtab.h (struct block): Add `hashtable' flag. Comment the
3777 hashtable.
3778 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3779 (ALL_BLOCK_SYMBOLS): Update.
3780 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3781 (struct symbol): Add `hash_next' pointer.
3782 * symtab.c (lookup_block_symbol): Search using the hash table when
3783 possible.
3784 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3785 (search_symbols, find_addr_symbol): Likewise.
3786
3787 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3788 (read_dst_symtab): Likewise.
3789 * jv-lang.c (get_java_class_symtab): Likewise.
3790 * mdebugread.c: Include "gdb_assert.h".
3791 (shrink_block): Assert that the block being modified is not hashed.
3792 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3793 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3794 symbols.
3795 (dump_symtab): Recognize hashed blocks.
3796 * printcmd.c (print_frame_args): Assert that function blocks do not
3797 have hashed symbol tables.
3798 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3799 (fill_in_ada_prototype, debug_print_block): Likewise.
3800 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3801
3802 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
3803
3804 * stack.c (print_frame): Use result of frame_address_in_block()
3805 instead of fi->pc when evaluating symbols.
3806 (backtrace_command_1): Ditto.
3807
3808 2002-07-11 Andrew Cagney <cagney@redhat.com>
3809
3810 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3811 Make static.
3812
3813 * arm-tdep.c (arm_register_name): Make return type constant.
3814
3815 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3816
3817 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3818 prototype.
3819 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3820 * s390-tdep.c (s390_fp_regnum): Ditto.
3821 (s390_read_fp): Ditto.
3822 (s390_pop_frame): Ditto.
3823 (_initialize_s390_tdep): Ditto.
3824 * remote.c (get_remote_state): Ditto.
3825 * procfs.c (mappingflags): Ditto.
3826 * memattr.c (_initialize_mem): Ditto.
3827 * mcore-tdep.c (mcore_pop_frame): Ditto.
3828 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3829 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3830 * language.c (set_case_str): Ditto.
3831 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3832 * frv-tdep.c (new_variant): Ditto.
3833 (frv_stopped_data_address): Ditto.
3834 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3835 (context_alloc): Ditto.
3836 (frame_state_alloc): Ditto.
3837 (unwind_tmp_obstack_init): Ditto.
3838 (unwind_tmp_obstack_free): Ditto.
3839 (cfi_read_fp): Ditto.
3840 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3841 (cris_pop_frame): Ditto.
3842 * c-lang.c (scanning_macro_expansion): Ditto.
3843 (finished_macro_expansion): Ditto.
3844 (c_preprocess_and_parse): Ditto.
3845 * gdbarch.sh: Ditto.
3846 * gdbarch.h, gdbarch.c: Regenerate.
3847 * config/mn10200/tm-mn10200.h: Adjust indentation.
3848 * target.c: Adjust indentation.
3849 * symtab.h: Adjust indentation.
3850 * stabsread.h: Adjust indentation.
3851 * remote-es.c: Adjust indentation.
3852 * os9kread.c: Adjust indentation.
3853
3854 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3855
3856 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3857 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3858
3859 2002-07-10 Grace Sainsbury <graces@redhat.com>
3860
3861 * NEWS: Mention m68k, mcore multi-arching.
3862 * MAINTAINERS: Change status of m68k, mcore to reflect
3863 multi-arching.
3864
3865 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
3866
3867 * valops.c (find_overload_match): Free oload_syms.
3868
3869 2002-07-09 Joel Brobecker <brobecker@gnat.com>
3870
3871 Define HAVE_SYS_PROC_H if sys/proc.h exists
3872 * configure.in: Add check for sys/proc.h
3873 * config.in: Regenerate.
3874 * configure: Regenerate.
3875
3876 2002-07-09 Grace Sainsbury <graces@redhat.com>
3877
3878 * config/m68k/tm-m68k.h: Remove macros wrapped in
3879 #if !GDB_MULTI_ARCH.
3880
3881 2002-07-08 Andrew Cagney <ac131313@redhat.com>
3882
3883 * config.in, configure: Regenerate.
3884
3885 2002-07-08 Mark Kettenis <kettenis@gnu.org>
3886
3887 * dwarf2cfi.c: Include "gcore.h".
3888 (execute_stack_op): Fix implementation of the
3889 DW_OP_deref and DW_OP_deref_size operators by letting do their
3890 lookup in the target.
3891
3892 2002-07-07 Mark Kettenis <kettenis@gnu.org>
3893
3894 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3895 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3896 tdep->sc_sp_offset.
3897
3898 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
3899
3900 Fix PR gdb/595, gdb/602
3901 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3902 Don't call value_cast, just read the vtable pointer; update comments
3903 to match.
3904
3905 2002-07-05 Grace Sainsbury <graces@redhat.com>
3906
3907 * config/mcore/tm-mcore.h: Remove file.
3908 * config/mcore/mcore.mt: Remove definition of TM_FILE
3909 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3910
3911 2002-07-05 Mark Kettenis <kettenis@gnu.org>
3912
3913 * i386bsd-tdep.c: Include "gdb_string.h".
3914
3915 2002-07-04 Grace Sainsbury <graces@redhat.com>
3916
3917 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3918 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3919 mcore-tdep.
3920 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3921 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3922 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3923 (RETVAL_REGNUM): Move macros from tm-mcore.h
3924 (mcore_reg_struct_has_addr): New function.
3925 (mcore_gdbarch_init): Added initializations for the macros removed
3926 from tm-mcore.h.
3927
3928 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3929
3930 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3931 traditonal string branding within the ELF header.
3932
3933 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
3934
3935 * symtab.c (remove_params): New function.
3936 (make_symbol_overload_list): Use it instead of cplus_demangle.
3937 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3938
3939 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3940
3941 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3942
3943 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3944 New variables.
3945 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3946 and tdep->sigtramp_end.
3947 * i386obsd-nat.c: New file.
3948 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3949
3950 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3951 Don't call get_current_frame().
3952
3953 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3954
3955 * i386-nat.c (child_post_startup_inferior): New function
3956 calling i386_cleanup_dregs if
3957 I386_USE_GENERIC_WATCHPOINTS is defined.
3958 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3959 conditional to acknowledge that i386-nat.c has its
3960 own child_post_startup_inferior function.
3961
3962 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3963
3964 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3965 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3966 instead of MAX_REGISTER_RAW_SIZE.
3967 (i386_extract_return_value, i386_extract_struct_value_address):
3968 Convert to use regcache.
3969 (i386_gdbarch_init): Set max_register_raw_size and
3970 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3971 Set extract_return_value and extract_struct_value_address instead
3972 of their deprecated variants.
3973
3974 Convert i386 target to generic dummy frames.
3975 * i386-tdep.c: Include "symfile.h".
3976 (i386_frameless_signal_p): Consider a function to be frameless if
3977 the pc points at the first instruction of the function.
3978 (i386_frame_chain): Handle (generic) call dummies.
3979 (i386_frame_saved_pc): Likewise.
3980 (i386_frame_init_saved_regs): Remove code dealing with call
3981 dummies on the stack.
3982 (i386_push_dummy_frame): Removed.
3983 (i386_call_dummy_words): Removed.
3984 (i386_fix_call_dummy): Removed.
3985 (i386_push_return_address): New function.
3986 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3987 parameter, and don't call get_current_frame.
3988 (i386_pop_frame): New function.
3989 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3990 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3991 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3992 call_dummy_length to 0, set call_dummy_words to NULL, set
3993 sizeof_call_dummy_words to 0, set fix_call_dummy to
3994 generic_fix_call_dummy, set pc_in_call_dummy to
3995 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3996 generic_push_dummy_frame, set push_return_address to
3997 i386_push_return_address and set frame_chain_valid to
3998 generic_file_frame_chain_valid.
3999
4000 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4001
4002 * gdbarch.sh (struct regcache): Add opaque declaration.
4003 (EXTRACT_RETURN_VALUE): New architecture method.
4004 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4005 * gdbarch.h, gdbarch.c: Regenerate.
4006 * arch-utils.c (legacy_extract_return_value): New function.
4007 * arch-utils.h (legacy_extract_return_value): Declare.
4008 * values.c (value_being_returned): Re-enable code handling
4009 EXTRACT_STRUCT_VALUE_ADDRESS. Move
4010 deprecated_grub_regcache_for_registers call to block handling
4011 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4012 (EXTRACT_RETURN_VALUE): Do not define.
4013
4014 2002-07-03 Grace Sainsbury <graces@redhat.com>
4015
4016 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4017 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4018 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4019 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4020 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4021 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4022 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4023 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4024 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4025 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4026 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4027 argument so the function fits the prototype in the architecture
4028 vector.
4029 (mcore_pop_frame): Remove argument so the function fits the
4030 prototype. Use get_current_frame instead of the argument.
4031 (mcore_push_arguments): Change type of struct_return so the
4032 function can be used in the architecture vector.
4033 (mcore_store_struct_return): Add.
4034 (mcore_frame_init_saved_regs): Add.
4035 (mcore_gdbarch_init): Add function calls to replace the macros
4036 removed from tm-mcore.h
4037
4038 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4039
4040 * infcmd.c (print_return_value): Remove compatibility code calling
4041 deprecated_grub_regcache_for_registers.
4042
4043 * values.c: Include "regcache.h".
4044 (value_being_returned): Update. Use
4045 deprecated_grub_regcache_for_registers to extract the register
4046 buffer address.
4047 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4048 ``struct regcache''.
4049 * Makefile.in (values.o): Add dependency on $(regcache_h).
4050
4051 * inferior.h (run_stack_dummy): Change type of second parameter to
4052 a ``struct regcache''.
4053 * valops.c (hand_function_call): Change type of retbuf to ``struct
4054 regcache''. Allocate using regcache_xmalloc, clean using
4055 make_cleanup_regcache_xfree.
4056 * infcmd.c (run_stack_dummy): Update. Use
4057 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4058
4059 * regcache.c (do_regcache_xfree): New function.
4060 (make_cleanup_regcache_xfree): New function.
4061 * regcache.h (make_cleanup_regcache_xfree): Declare.
4062
4063 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4064
4065 * event-top.c (command_line_handler): Don't read past
4066 beginning of buffer.
4067
4068 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4069
4070 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4071 struct frame_id.
4072 (varobj_create): Store frame_id for root.
4073 (varobj_gen_name): Use xasprintf.
4074 (varobj_update): Save and restore frame using get_frame_id() and
4075 frame_find_by_id().
4076 (create_child): Use xasprintf.
4077 (new_root_variable): Initialize frame_id.
4078 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4079 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4080 to prevent memory leak.
4081
4082 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4083
4084 * valops.c (hand_function_call): Move declaration of retbuf to
4085 start of function, allocate using malloc, add a cleanup but before
4086 the inf_status cleanup, cleanup the buffer. Rename local variable
4087 old_chain to inf_status_cleanup.
4088
4089 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4090
4091 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4092
4093 * cli/cli-decode.c (cmd_func_p): New function.
4094 (cmd_func): New function.
4095
4096 * command.h: Add cmd_func() and cmd_func_p().
4097
4098 2002-07-03 Grace Sainsbury <graces@redhat.com>
4099
4100 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4101 (REGISTER_SIZE): Remove.
4102 (MAX_REGISTER_RAW_SIZE): Remove.
4103 (REGISTER_VIRTUAL_TYPE): Remove.
4104 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4105 (REGISTER_NAME): Remove.
4106 (USE_GENERIC_DUMMY_FRAMES): Remove.
4107 (CALL_DUMMY): Remove.
4108 (CALL_DUMMY_START_OFFSET): Remove.
4109 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4110 (CALL_DUMMY_LOCATION): Remove.
4111 (FIX_CALL_DUMMY): Remove.
4112 (CALL_DUMMY_ADDRESS): Remove.
4113 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4114 (SAVE_DUMMY_FRAME_TOS): Remove.
4115 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4116 (mcore_register_virtual_type): New function.
4117 (mcore_register_byte): New function.
4118 (mcore_register_size): New function.
4119 (mcore_register_name): New function.
4120 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4121 macros removed from tm-mcore.h.
4122 (mcore_dump_tdep): Add.
4123 (_initialize_mcore_tdep): Add gdbarch_register call.
4124
4125 2002-07-03 Mark Kettenis <kettenis@gnu.org>
4126
4127 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4128 frameless_look_for_prologue, such that we actually call this
4129 function.
4130
4131 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4132
4133 * frame.h (frame_address_in_block): New function.
4134
4135 * blockframe.c (frame_address_in_block): New function extracted
4136 from get_frame_block().
4137 (get_frame_block): Use frame_address_in_block().
4138 (block_innermost_frame): Use frame_address_in_block() to match
4139 the frame pc address against the block boundaries rather than
4140 the frame pc directly. This prevents a failure when a frame pc
4141 is actually a return-address pointing immediately after the end
4142 of the given block.
4143
4144 2002-07-02 Grace Sainsbury <graces@redhat.com>
4145
4146 * MAINTAINERS: Add self under write after approval.
4147
4148 2002-07-02 Grace Sainsbury <graces@redhat.com>
4149
4150 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4151 used in architecture vector. The default is
4152 m68k_local_breakpoint_from_pc.
4153 (m68k_local_breakpoint_from_pc): Add.
4154 (enum): Add register numbers from tm-m68k.h.
4155 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4156 vector.
4157 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4158 GDB_MULTI_ARCH_PARTIAL.
4159 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4160 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4161 m68k-tdep.c.
4162 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4163 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4164 to enum in m68k-tdep.c
4165
4166 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4167
4168 * solib-osf.c (open_map): Compute the list of shared libraries
4169 loaded by the inferior, rather than the list of libraries loaded
4170 by GDB itself. Otherwise, GDB ends up reading the symbols from
4171 the wrong shared libraries...
4172
4173 2002-07-02 Mark Kettenis <kettenis@gnu.org>
4174
4175 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4176 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4177 macros.
4178 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4179 Remove functions.
4180 (FRAMELESS_SIGNAL): Remove function.
4181 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4182 i386_linux_saved_pc_after_call): Removed.
4183 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4184 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4185 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4186
4187 * i386-tdep.c (i386_frameless_signal_p): New function.
4188 (i386_frame_chain): Deal with frameless signals.
4189 (i386_sigtramp_saved_sp): New function.
4190 (i386_frame_saved_pc): Deal with frameless signals.
4191 (i386_saved_pc_after_call): Make sure the correct value is
4192 returned just after entry into a sigtramp.
4193 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4194 i386fbsd4_sc_sp_offset): New variables.
4195 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4196 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4197 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4198 similiar to what we already did for sc_pc_offset.
4199 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4200 tdep->sc_sp_offset.
4201
4202 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4203
4204 2002-07-02 Michal Ludvig <mludvig@suse.cz>
4205
4206 * config/i386/tm-x86-64linux.h: New.
4207 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4208 definitions.
4209 * config/i386/nm-x86-64.h: Rename to ...
4210 * config/i386/nm-x86-64linux.h: ... this one.
4211 * config/i386/x86-64linux.mh: Reflect the above change.
4212
4213 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4214
4215 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4216 with sigcontext_addr. Add sc_sp_offset.
4217 (i386bsd_sigtramp_saved_pc): Remove prototype.
4218 (i386bsd_sicontext_addr): Add prototype.
4219 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4220 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4221 (i386_svr4_sigtramp_saved_pc): Removed.
4222 (i386_svr4_sigcontext_addr): New function.
4223 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4224 Initialize tdep->sigcontext_addr instead. Initialize
4225 tdep->sc_pc_offset and tdep->sc_sp_offset.
4226 (i386_gdbarch_init): Likewise.
4227 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4228 any more.
4229 (i386bsd_sigtramp_saved_pc): Remove function.
4230 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4231 Initialize tdep->sigcontext_addr instead. Initialize
4232 tdep->sc_pc_offset.
4233 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4234 of tdep->sigtramp_saved_pc.
4235 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4236 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4237 instead.
4238
4239 * i386-tdep.c (i386_frameless_function_invocation,
4240 i386_frame_num_args, i386_frame_init_saved_regs,
4241 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4242 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4243 i386_extract_return_value, i386_store_return_value,
4244 i386_extract_struct_value_address, i386_register_virtual_type,
4245 i386_register_convertible, i386_register_convert_to_virtual,
4246 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4247 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4248 static.
4249
4250 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4251
4252 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4253
4254 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4255 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4256 this macro. Include "value.h".
4257
4258 2002-06-30 Aidan Skinner <aidan@velvet.net>
4259
4260 * ada-exp.tab.c: remove as it's a generated file
4261 * ada-lex.c: remove as it's a generated file
4262
4263 2002-06-30 Mark Kettenis <kettenis@gnu.org>
4264
4265 * config/i386/tm-i386.h (struct frame_info, struct
4266 frame_saved_regs, struct value, struct type): Remove forward
4267 declarations.
4268
4269 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4270 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4271 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4272 (FILL_FPXREGSET): Define.
4273
4274 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4275
4276 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4277 i[3456]86-*-netbsd* case.
4278 * config/i386/tm-obsd.h: Removed.
4279 * config/i386/obsd.mt: Removed.
4280 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4281 core-aout.o.
4282 (MH_CFLAGS): Add -DYYDEBUG=0.
4283
4284 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4285 i386nbsd_sc_pc_offset on OpenBSD too.
4286
4287 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4288 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4289 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4290 define.
4291 * i386bsd-tdep.c: Include "arch-utils.h".
4292 (i386bsd_aout_in_solib_call_trampoline): New function.
4293 (i386bsd_init_abi): Set in_solib_call_trampoline to
4294 i386bsd_aout_in_solib_call_trampoline.
4295 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4296 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4297
4298 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4299
4300 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4301 (struct obstack, struct bcache): Add opaque declarations.
4302 * Makefile.in (macrotab_h): Update
4303
4304 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4305
4306 * blockframe.c (generic_find_dummy_frame): Change return type to
4307 ``struct regcache''.
4308 (struct dummy_frame): Replace field ``registers'' with regcache, a
4309 struct regcache object.
4310 (generic_find_dummy_frame): Update.
4311 (generic_push_dummy_frame): Update. Use regcache_xfree,
4312 regcache_xmalloc and regcache_cpy.
4313 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4314 regcache_xfree.
4315 (deprecated_generic_find_dummy_frame): Update.
4316 (generic_read_register_dummy): Update. Use
4317 regcache_read_as_address.
4318 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4319 (generic_get_saved_register): Update. Use regcache_read.
4320
4321 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4322
4323 * Makefile.in (objfiles_h): Add $(bcache_h).
4324 * objfiles.h: Include "bcache.h".
4325
4326 * Makefile.in (symtab_h): Remove $(bcache_h).
4327 * symtab.h: Do not include "bcache.h".
4328
4329 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4330
4331 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4332 generic_func_frame_chain_valid.
4333
4334 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4335
4336 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4337 * config/i386/tm-fbsd.h: Likewise.
4338
4339 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4340
4341 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4342 generic_unwind_get_saved_register.
4343
4344 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4345
4346 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4347 * regcache.c (supply_register): Add missing argument to
4348 register_buffer call.
4349
4350 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4351
4352 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4353 Solaris /bin/grep does not not like it. From Peter Schauer.
4354
4355 2002-06-26 Tom Tromey <tromey@redhat.com>
4356
4357 * command.h (add_setshow_cmd): Declare.
4358 (add_setshow_cmd_full): Declare.
4359 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4360 returns void. Use add_setshow_cmd_full.
4361 (add_setshow_cmd_full): New function.
4362 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4363 (add_setshow_boolean_cmd): Likewise.
4364
4365 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4366
4367 * config/vax/tm-vax.h: Protect from multiple inclusion.
4368 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4369 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4370 * config/vax/tm-vaxbsd.h: ...here. New file.
4371 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4372
4373 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4374
4375 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4376 (BELIEVE_PCC_PROMOTION): Remove.
4377 (AP_REGNUM): Move to...
4378 * config/vax/nm-vax.h: ...here.
4379 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4380 (vax_breakpoint_from_pc): New function.
4381 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4382 and gdbarch_believe_pcc_promotion.
4383
4384 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4385
4386 * Makefile.in (vax_tdep_h): Define.
4387 (vax-tdep.o): Use $(vax_tdep_h).
4388 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4389 (vax_dump_tdep): New function.
4390 (_initialize_vax_tdep): Register vax_dump_tdep.
4391 * vax-tdep.h: Include osabi.h.
4392 (struct gdbarch_tdep): New.
4393
4394 2002-06-26 Andrew Cagney <cagney@redhat.com>
4395
4396 * frame.h (deprecated_generic_find_dummy_frame): Rename
4397 generic_find_dummy_frame.
4398 * blockframe.c (generic_find_dummy_frame): Make static.
4399 (deprecated_generic_find_dummy_frame): New function.
4400 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4401 generic_find_dummy_frame with deprecated_find_dummy_frame.
4402 (sh64_nofp_frame_init_saved_regs): Ditto.
4403 (sh_fp_frame_init_saved_regs): Ditto.
4404 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4405 (s390_frame_chain): Ditto.
4406 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4407
4408 2002-06-26 Grace Sainsbury <graces@redhat.com>
4409
4410 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4411 gdbarch vector are at the top.
4412 (NUM_REGS): Remove.
4413 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4414 (FRAME_ARGS_ADDRESS): Remove.
4415 (FRAME_LOCALS_ADDRESS): Remove.
4416 (FRAME_NUM_ARGS): Remove.
4417 (FRAME_ARGS_SKIP): Remove.
4418 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4419 (m68k_gdbarch_init): Add gdbarch initializations for macros
4420 undefined in tm-m68k.h
4421
4422 2002-06-26 Grace Sainsbury <graces@redhat.com>
4423
4424 * monitor.h: Add the function regname to monitor_ops
4425 structure. This way NUM_REGS does not have to be a constant.
4426 * monitor.c (monitor_fetch_register): Added support for regname
4427 function. The function is called if the array regnames is NULL.
4428 (monitor_store_register): Same.
4429 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4430 regnames array.
4431 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4432 cpu32bug_cmds.regname to point to new function.
4433 * abug-rom.c (abug_regname): Same as above.
4434 (init_abug_cmds): Same.
4435 * dbug-rom.c (dbug_regname): Same as above.
4436 (init_dbug_cmds): Same.
4437 * remote-est.c (est_regname): Same.
4438 (init_est_cmds): Same.
4439 * rom68k-rom.c (rom68k_regname): Same.
4440 (init_rom68k_cmds): Same.
4441
4442 2002-06-25 Tom Tromey <tromey@redhat.com>
4443
4444 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4445
4446 2002-06-25 Andrew Cagney <cagney@redhat.com>
4447
4448 * infrun.c (stop_registers): Change variable's type to ``struct
4449 regcache'''.
4450 (xmalloc_inferior_status): Delete function.
4451 (free_inferior_status): Delete function.
4452 (normal_stop): Use regcache_cpy.
4453 (struct inferior_status): Change type of fields ``stop_registers''
4454 and ``registers'' to ``struct regcache''.
4455 (write_inferior_status_register): Use regcache_write.
4456 (save_inferior_status): Instead of calling
4457 xmalloc_inferior_status, allocate the inf_status buffer directly.
4458 Use regcache_dup_no_passthrough and regcache_dup to save the
4459 buffers.
4460 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4461 Replace the stop_registers regcache instead of overriding it. Use
4462 regcache_xfree. Instead of calling free_inferior_status, xfree
4463 the buffer directly.
4464 (discard_inferior_status): Use regcache_xfree. Instead of calling
4465 free_inferior_status, xfree the buffer directly.
4466 (build_infrun): Use regcache_xmalloc.
4467 (_initialize_infrun): Delete redundant call to build_infrun.
4468
4469 * Makefile.in (infcmd.o): Add $(regcache_h).
4470
4471 * infcmd.c: Include "regcache.h".
4472 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4473 obtain the address of `stop_registers' register buffer.
4474 (print_return_value): Ditto.
4475
4476 * inferior.h (struct regcache): Add opaque declaration.
4477 (stop_registers): Change variable's declared type to ``struct
4478 regcache''.
4479
4480 2002-06-24 Tom Tromey <tromey@redhat.com>
4481
4482 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4483 * target.c (initialize_targets): Fixed typo in
4484 trust-readonly-sections `show' documentation.
4485
4486 * main.c: Marked all strings with _().
4487
4488 2002-06-24 Don Howard <dhoward@redhat.com>
4489
4490 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4491 that means max CORE_ADDR+1.
4492 (lookup_mem_region): Ditto.
4493 (mem_info_command): Ditto.
4494
4495 2002-06-24 Grace Sainsbury <graces@redhat.com>
4496
4497 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4498 (REGISTER_BYTES_OK): Remove.
4499 (REGISTER_BYTES): Remove.
4500 (STORE_STRUCT_RETURN): Remove.
4501 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4502 (STORE_RETURN_VALUE): Remove.
4503 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4504 (FRAME_CHAIN): Remove.
4505 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4506 (FRAME_SAVED_PC): Remove.
4507 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4508 (m68k_store_struct_return): Add.
4509 (m68k_deprecated_extract_return_value): Add.
4510 (m68k_deprecated_extract_struct_value_address): Add.
4511 (m68k_store_return_value): Add.
4512 (m68k_frame_chain): Add.
4513 (m68k_frameless_function_invocation): Add.
4514 (m68k_frame_saved_pc): Add.
4515 (m68k_gdbarch_init): added set_gdbarch calls for new
4516 functions and deleted macros.
4517
4518 2002-06-23 Tom Tromey <tromey@redhat.com>
4519
4520 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4521 (ALLDEPFILES): Likewise.
4522 (udiheaders): Removed.
4523 (udip2soc.o): Likewise.
4524 (udi2go32.o): Likewise.
4525 (udr.o): Likewise.
4526 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4527
4528 2002-06-22 Andrew Cagney <ac131313@redhat.com>
4529
4530 * infrun.c (_initialize_infrun): Delete unnecessary call to
4531 build_infrun.
4532
4533 * regcache.h: Update comments describing the regcache_cpy family
4534 of functions.
4535 (regcache_save, regcache_restore): Delete declaration.
4536 (regcache_save_no_passthrough): Delete declaration.
4537 (regcache_restore_no_passthrough): Delete declaration.
4538 * regcache.c (regcache_save): Delete function.
4539 (regcache_save_no_passthrough): Delete function.
4540 (regcache_restore): Delete function.
4541 (regcache_restore_no_passthrough): Delete function.
4542
4543 2002-06-21 Andrew Cagney <ac131313@redhat.com>
4544
4545 * config/m68k/tm-m68k.h: Fix typo.
4546 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4547 (m68k_frame_init_saved_regs): Declare.
4548
4549 2002-06-21 Jim Blandy <jimb@redhat.com>
4550
4551 Remove some vestiges of Harris 88k support.
4552 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4553 register numbering quirk.
4554 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4555 odd symbols occurring in Harris 88k ELF targets.
4556
4557 2002-06-21 Tom Tromey <tromey@redhat.com>
4558
4559 * gdb_locale.h: New file.
4560 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4561 (defs_h): Added gdb_locale.h.
4562 * configure, config.in: Rebuilt.
4563 * configure.in (PACKAGE): Define.
4564 * defs.h: Include gdb_locale.h.
4565 * main.c (captured_main): Call setlocale, bindtextdomain,
4566 textdomain.
4567
4568 2002-06-21 Dave Brolley <brolley@redhat.com>
4569
4570 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4571 * config/frv/frv.mt: New file.
4572 * config/frv/tm-frv.h: New file.
4573 * configure.tgt: Support frv-*-*.
4574 * Makefile.in (frv-tdep.o): New target.
4575 * frv-tdep.c: New file.
4576 * NEWS: Mention frv.
4577
4578 2002-06-21 Dave Brolley <brolley@redhat.com>
4579
4580 * MAINTAINERS: Add self to "Write After Approval" list.
4581
4582 2002-06-21 Grace Sainsbury <graces@redhat.com>
4583
4584 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4585 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4586 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4587 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4588 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4589
4590 * m68k-tdep.c: Include arch-utils.h
4591 (m68k_register_raw_size): Add.
4592 (m68k_register_virtual_size): Add.
4593 (m68k_register_virtual_type): Add.
4594 (m68k_register_name): Add.
4595 (m68k_stack_align): Add.
4596 (m68k_register_byte): Add.
4597 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4598 tm-m68k.h.
4599
4600 2002-06-21 Grace Sainsbury <graces@redhat.com>
4601
4602 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4603 m68k_find_saved_regs.
4604 (m68k_pop_frame): Removed saved_regs structure, and replaced
4605 references to it with frame->saved_regs.
4606 (m68k_gdbarch_init): Added function calls to initialize the
4607 gdbarch structure.
4608 (m68k_fix_call_dummy): Add.
4609 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4610 (CALL_DUMMY): Remove.
4611 (CALL_DUMMY_LENGTH): Remove.
4612 (CALL_DUMMY_START_OFFSET): Remove.
4613 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4614 (FIX_CALL_DUMMY): Remove.
4615 (PUSH_DUMMY_FRAME): Remove.
4616 (POP_FRAME): Remove.
4617
4618 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4619
4620 * parse.c (parse_fprintf): New function used to avoid calls to
4621 fprintf in bison parser generated debug code.
4622 * parser-defs.h: Declaration of new parse_fprintf function.
4623 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4624 Set YYDEBUG to 1 by default.
4625 Set YYFPRINTF as parse_fprintf.
4626
4627 2002-06-21 Michal Ludvig <mludvig@suse.cz>
4628
4629 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4630 encoding anymore.
4631 (pointer_encoding, enum ptr_encoding): New.
4632 (execute_cfa_program): Take care about pointer encoding.
4633 (dwarf2_build_frame_info): Only call parse_frame_info for
4634 .debug_frame and .eh_frame.
4635 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4636 fixed augmentation handling, added relative addressing,
4637 ignore duplicate FDEs. Added comments.
4638 * dwarf2cfi.c: Reindented.
4639
4640 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
4641
4642 * event-top.c (command_handler): Don't use space_at_cmd_start
4643 unless there is sbrk() on the host. Assign time and space data
4644 to union fields of the appropriate length.
4645
4646 2002-06-20 Michal Ludvig <mludvig@suse.cz>
4647
4648 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4649 x86_64_register_name. Return type changed to 'const char *'.
4650 (x86_64_register_name2nr): Rename to x86_64_register_number.
4651 (x86_64_gdbarch_init): Update to reflect the change.
4652 * x86-64-tdep.h: Ditto.
4653 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4654 (supply_fpregset): Ditto.
4655
4656 2002-06-19 Andrew Cagney <cagney@redhat.com>
4657
4658 * regcache.h: Update copyright.
4659 (struct regcache, struct gdbarch): Add opaque declarations.
4660 (current_regcache): Declare global variable.
4661 (regcache_read, regcache_write): Add gdbarch parameter.
4662 (regcache_save, regcache_save_no_passthrough)
4663 (regcache_restore, regcache_restore_no_passthrough)
4664 (regcache_dup, regcache_dup_no_passthrough)
4665 (regcache_cpy, regcache_cpy_no_passthrough)
4666 (deprecated_grub_regcache_for_registers)
4667 (deprecated_grub_regcache_for_register_valid)
4668 (regcache_valid_p): Add function declarations.
4669
4670 * regcache.c: Update copyright.
4671 (regcache_descr_handle): New global variable.
4672 (struct regcache_descr): Define.
4673 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4674 (regcache_descr, xfree_regcache_descr): New functions.
4675 (struct regcache): Define.
4676 (regcache_xmalloc, regcache_xfree): New functions.
4677 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4678 (regcache_dup, regcache_dup_no_passthrough): New functions.
4679 (regcache_valid_p, regcache_read_as_address): New functions.
4680 (deprecated_grub_regcache_for_registers): New function.
4681 (deprecated_grub_regcache_for_register_valid): New function.
4682 (current_regcache): New global variable.
4683 (register_buffer): Add regcache parameter. Update calls.
4684 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4685 (read_register_gen, write_register_gen): Update register_buffer
4686 call. Test for legacy_p instead of gdbarch_register_read_p or
4687 gdbarch_register_write_p.
4688 (regcache_collect): Update register_buffer call.
4689 (build_regcache): Rewrite. Use deprecated grub functions.
4690 (regcache_save, regcache_save_no_passthrough): New functions.
4691 (regcache_restore, regcache_restore_no_passthrough): New
4692 functions.
4693 (_initialize_regcache): Create the regcache_data_handle. Swap
4694 current_regcache global variable.
4695
4696 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4697 parameter to regcache_read and regcache_write calls.
4698 (sh4_register_read): Ditto.
4699 (sh64_pseudo_register_read): Ditto.
4700 (sh64_register_read): Ditto.
4701 (sh_pseudo_register_write): Ditto.
4702 (sh4_register_write): Ditto.
4703 (sh64_pseudo_register_write): Ditto.
4704 (sh64_register_write): Ditto.
4705
4706 * defs.h (XCALLOC): Define.
4707
4708 2002-06-19 Grace Sainsbury <graces@redhat.com>
4709
4710 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4711 * m68k-tdep.c (m68k_gdbarch_init): Added.
4712 (m68k_dump_tdep): Added.
4713
4714 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4715
4716 * ada-lang.c (fill_in_ada_prototype): Update comment.
4717
4718 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4719
4720 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4721 MIPS_ABI_LAST.
4722 (mips_abi_string, mips_abi_strings): New.
4723 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4724 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4725 tdep->mips_abi_string. Honor mips_abi_string. Default to
4726 O32 if no ABI is found.
4727 (mips_dump_tdep): Use mips_abi_strings.
4728 (mips_abi_update): New function.
4729 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4730 ``set mips abi'' and ``show mips abi''. Check the size of
4731 mips_abi_strings.
4732
4733 2002-06-19 Andrew Cagney <cagney@redhat.com>
4734
4735 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4736 constant.
4737
4738 2002-06-18 Joel Brobecker <brobecker@gnat.com>
4739
4740 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4741 current frame using only the first stack size adjustment. All
4742 subsequent size adjustments are not considered to be part of
4743 the "static" part of the current frame.
4744 Compute the address of the saved registers relative to the
4745 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4746 in use in this frame.
4747
4748 2002-06-18 Don Howard <dhoward@redhat.com>
4749
4750 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4751 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4752 suggesting this solution.
4753
4754 2002-06-18 Andrew Cagney <ac131313@redhat.com>
4755
4756 * config/romp/xm-rtbsd.h: Delete file.
4757 * config/romp/rtbsd.mh: Delete file.
4758
4759 2002-06-18 Keith Seitz <keiths@redhat.com>
4760
4761 * breakpoint.c (condition_command): Post breakpoint_modify
4762 when a condition is added to an existing breakpoint.
4763 (commands_command): Likewise for commands.
4764 (set_ignore_count): Likewise for ignore counts.
4765 If no tty, do not simply return, still need to send event
4766 notification.
4767 (ignore_command): Only print a newline if the command came
4768 from a tty.
4769 Don't call breakpoints_changed, since this is now properly
4770 handled by set_ignore_count.
4771
4772 2002-06-18 Andrew Cagney <cagney@redhat.com>
4773
4774 * MAINTAINERS: Note that cris-elf target can be compiled with
4775 -Werror.
4776 * cris-tdep.c (cris_register_name): Make return type constant.
4777 (cris_breakpoint_from_pc): Ditto.
4778
4779 2002-06-18 Michal Ludvig <mludvig@suse.cz>
4780
4781 * frame.h (struct frame_info): Change type of context to
4782 'struct context'.
4783
4784 2002-06-17 Andrew Cagney <cagney@redhat.com>
4785
4786 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4787 pointer.
4788 * gdbarch.h, gdbarch.c: Regenerate.
4789 * config/mips/tm-mips.h (mips_register_name): Update.
4790 * i386-tdep.h (i386_register_name): Update.
4791 * mips-tdep.c (mips_register_name): Update
4792 * alpha-tdep.c (alpha_register_name): Update.
4793 * arch-utils.c (legacy_register_name): Update.
4794 * arch-utils.h (legacy_register_name): Update.
4795 * avr-tdep.c (avr_register_name): Update.
4796 * ia64-tdep.c (ia64_register_name): Update.
4797 * i386-tdep.c (i386_register_name): Update.
4798 * sparc-tdep.c (sparc32_register_name): Update.
4799 (sparc64_register_name): Update.
4800 (sparclite_register_name): Update.
4801 (sparclet_register_name): Update.
4802 * sh-tdep.c (sh_generic_register_name): Update.
4803 (sh_sh_register_name): Update.
4804 (sh_sh3_register_name): Update.
4805 (sh_sh3e_register_name): Update.
4806 (sh_sh_dsp_register_name): Update.
4807 (sh_sh3_dsp_register_name): Update.
4808 (sh_sh4_register_name): Update.
4809 (sh_sh64_register_name): Update.
4810 * s390-tdep.c (s390_register_name): Update.
4811 * rs6000-tdep.c (rs6000_register_name): Update.
4812 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4813 (ns32k_register_name_32382): Update.
4814 * d10v-tdep.c (d10v_ts2_register_name): Update.
4815 (d10v_ts3_register_name): Update.
4816 * xstormy16-tdep.c (xstormy16_register_name): Update.
4817 * vax-tdep.c (vax_register_name): Update.
4818 * v850-tdep.c (v850_register_name): Update.
4819 * m68hc11-tdep.c (m68hc11_register_name): Update.
4820 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4821 (am33_register_name): Update.
4822
4823 2002-06-17 Grace Sainsbury <graces@redhat.com>
4824
4825 * m68k-tdep.c: Reindented.
4826
4827 2002-06-17 Andrew Cagney <ac131313@redhat.com>
4828
4829 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4830 list of predefined types.
4831
4832 2002-06-16 Mark Kettenis <kettenis@gnu.org>
4833
4834 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4835 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4836 REGISTER_CONVERT_TO_RAW): Remove defines.
4837 (i386_register_virtual_type, i386_register_convertible,
4838 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4839 Remove prototypes.
4840 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4841 macros mentioned above.
4842
4843 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4844 (i386lynx_saved_pc_after_call): Remove prototype.
4845 * i386ly-tdep.c: Include "i386-tdep.h".
4846 (i386lynx_saved_pc_after_call): Make static. Use
4847 read_memory_nobpt instead of read_memory. Use
4848 read_memory_unsigned_integer instead of read_memory_integer.
4849 (i386lynx_init_abi): New function.
4850 (i386lynx_coff_osabi_sniffer): New function.
4851 (_initialize_i386bsd_tdep): New function.
4852
4853 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4854 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4855 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4856 (i386_fix_call_dummy): Remove prototype.
4857 * i386-tdep.c (i386_call_dummy_words): New variable.
4858 (i386_gdbarch_init): Adjust for removal of the
4859 macros mentioned above.
4860
4861 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4862
4863 * command.h (add_setshow_auto_boolean_cmd): Replace
4864 add_set_auto_boolean_cmd.
4865 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4866 add_set_auto_boolean_cmd.
4867 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4868 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4869 mask-address'' command.
4870 (show_mask_address): Add cmd parameter.
4871 * remote.c (add_packet_config_cmd): Update. Change type of
4872 set_func and show_func to cmd_sfunc_ftype.
4873 (_initialize_remote): Update `set remote Z-packet'
4874 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4875 (show_remote_protocol_e_packet_cmd): Ditto.
4876 (show_remote_protocol_E_packet_cmd): Ditto.
4877 (show_remote_protocol_P_packet_cmd): Ditto.
4878 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4879 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4880 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4881 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4882 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4883 (show_remote_protocol_Z_packet_cmd): Ditto.
4884 (show_remote_protocol_binary_download_cmd): Ditto.
4885 (show_remote_cmd): Pass NULL to all of above.
4886
4887 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4888
4889 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4890 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4891 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4892 POP_FRAME): Remove defines.
4893 (i386_push_arguments, i386_store_struct_return,
4894 i386_extract_return_value, i386_store_return_value,
4895 i386_extract_struct_value_address, i386_push_dummy_frame,
4896 i386_pop_frame): Renove prototypes.
4897 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4898 macros mentioned above.
4899
4900 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4901
4902 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4903 add_set_boolean_cmd.
4904 (add_setshow_cmd): New function.
4905 * command.h (add_setshow_boolean_cmd): Replace
4906 add_set_boolean_cmd.
4907 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4908 and ``set rdiromatzero''.
4909 * maint.c (_initialize_maint_cmds): Update commented out code.
4910 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4911 * target.c (initialize_targets): Update `set
4912 trust-readonly-sections'.
4913 * remote.c (_initialize_remote): Update `set remotebreak'.
4914
4915 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4916
4917 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4918 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4919 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4920 fit into multi-arch framework.
4921 (i386_breakpoint_from_pc): New function.
4922 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4923 above.
4924
4925 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4926 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4927 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4928 (i386_frameless_function_invocation, i386_frame_num_args,
4929 i386_frame_init_saved_regs): Remove prototypes.
4930 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4931 macros mentioned above.
4932
4933 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4934
4935 * cli/cli-decode.c (set_cmd_cfunc): Update.
4936 (set_cmd_sfunc): Update.
4937 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4938 (set_cmd_sfunc, set_cmd_cfunc): Update.
4939 * cli/cli-decode.h: Update.
4940
4941 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4942
4943 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4944 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4945
4946 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4947
4948 * defs.h (auto_boolean): Declare enum.
4949 * command.h (cmd_auto_boolean): Delete enum.
4950 * mips-tdep.c (mask_address_var): Update.
4951 (mips_mask_address_p): Update.
4952 (show_mask_address): Update.
4953 * remote.c (struct packet_config): Update.
4954 (update_packet_config): Update.
4955 (show_packet_config_cmd): Update.
4956 (packet_ok): Update.
4957 (add_packet_config_cmd): Update.
4958 (_initialize_remote):
4959 * command.h: Update.
4960 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4961 (do_setshow_command): Update.
4962 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4963 * cli/cli-decode.h: Update.
4964
4965 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4966
4967 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4968 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4969 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4970 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4971 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4972 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4973
4974 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4975 list of DJGPP COFF targets.
4976
4977 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4978 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4979 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4980 (FP0_REGNUM): Remove define.
4981 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4982 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4983 (i386_register_virtual_size): Remove protoype.
4984 * i386-tdep.c (i386_register_virtual_size): Removed.
4985 (i386_extract_return_value, i386_store_return_value): Use
4986 FP0_REGNUM instead of NUM_FREGS to determine whether the
4987 floating-point registers are available.
4988 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4989 Adjust for removal of macros mentioned above.
4990
4991 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4992
4993 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4994 comments.
4995 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4996 Remove prototypes.
4997 (supply_gregset, fill_gregset): Remove use of register keyword and
4998 remove declaration for regmap. Use I386_NUM_GREGS instead of
4999 NUM_REGS and NUM_FREGS.
5000 (FPREGSET_FSAVE_OFFSET): Remove.
5001 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5002 NUM_FREGS to determine whether the floating-point registers are
5003 available.
5004
5005 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5006 gnu_store_registers): Replace usage of NUM_GREGS with
5007 I386_NUM_GREGS.
5008
5009 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5010 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5011 usage of NUM_GREGS with I386_NUM_GREGS.
5012
5013 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5014
5015 * i386bsd-nat.c: Include "i386-tdep.h".
5016 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5017 I386_NUM_GREGS.
5018
5019 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5020 and associated comment. They no longer make any sense, since we
5021 don't use this file anymore on Linux.
5022
5023 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5024 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5025 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5026 elements in these arrays.
5027 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5028 MAX_NUM_REGS.
5029
5030 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5031
5032 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5033 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5034
5035 2002-06-14 Andrew Cagney <cagney@redhat.com>
5036
5037 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5038 EXTRACT_RETURN_VALUE.
5039 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5040 EXTRACT_STRUCT_VALUE_ADDRESS.
5041 * gdbarch.h, gdbarch.c: Regenerate.
5042
5043 * values.c (value_being_returned): Handle
5044 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5045 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5046
5047 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5048 * arm-tdep.c (arm_gdbarch_init): Update.
5049 * avr-tdep.c (avr_gdbarch_init): Update.
5050 * cris-tdep.c (cris_gdbarch_init): Update.
5051 * d10v-tdep.c (d10v_gdbarch_init): Update.
5052 * ia64-tdep.c (ia64_gdbarch_init): Update.
5053 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5054 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5055 * s390-tdep.c (s390_gdbarch_init): Update.
5056 * sh-tdep.c (sh_gdbarch_init): Update.
5057 * s390-tdep.c (s390_gdbarch_init): Update.
5058 * sparc-tdep.c (sparc_gdbarch_init): Update.
5059 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5060 * v850-tdep.c (v850_gdbarch_init): Update.
5061 * vax-tdep.c (vax_gdbarch_init): Update.
5062 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5063 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5064
5065 * config/arc/tm-arc.h: Update.
5066 * config/d30v/tm-d30v.h: Update.
5067 * config/fr30/tm-fr30.h: Update.
5068 * config/h8300/tm-h8300.h: Update.
5069 * config/h8500/tm-h8500.h: Update.
5070 * config/i386/tm-i386.h: Update.
5071 * config/i386/tm-ptx.h: Update.
5072 * config/i386/tm-symmetry.h: Update.
5073 * config/i960/tm-i960.h: Update.
5074 * config/m32r/tm-m32r.h: Update.
5075 * config/m68k/tm-delta68.h: Update.
5076 * config/m68k/tm-linux.h: Update.
5077 * config/m68k/tm-m68k.h: Update.
5078 * config/m88k/tm-m88k.h: Update.
5079 * config/mcore/tm-mcore.h: Update.
5080 * config/mips/tm-mips.h: Update.
5081 * config/mn10200/tm-mn10200.h: Update.
5082 * config/pa/tm-hppa.h: Update.
5083 * config/pa/tm-hppa64.h: Update.
5084 * config/sparc/tm-sp64.h: Update.
5085 * config/sparc/tm-sparc.h: Update.
5086 * config/sparc/tm-sparclet.h: Update.
5087 * config/z8k/tm-z8k.h: Update.
5088
5089 2002-06-14 Andrew Cagney <cagney@redhat.com>
5090
5091 * Makefile.in (i386_linux_tdep_h): Define.
5092 (i386_tdep_h, i387_tdep_h): Define.
5093 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5094 $(i386_tdep_h) and $(i387_tdep_h).
5095 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5096
5097 2002-06-14 Mark Kettenis <kettenis@gnu.org>
5098
5099 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5100 Already covered by the default.
5101
5102 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5103 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5104 (i386_gdbarch_init): Initialize long_double_format and long_double
5105 bit.
5106
5107 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5108 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5109 Move these to ...
5110 * config/i386/i386sol2.mh: ... here.
5111 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5112 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5113 (SIGCONTEXT_PC_OFFSET): Remove define.
5114 (IN_SIGTRAMP): Remove define.
5115 * i386-sol2-tdep.c: New file.
5116
5117 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5118 * config/i386/tm-i386nw.h: Removed.
5119
5120 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5121 USE_STRUCT_CONVENTION): Remove defines.
5122 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5123 (get_longjmp_target): Remove prototype.
5124 (IN_SIGTRAMP): Remove define.
5125 (i386bsd_in_sigtramp): Remove prototype.
5126 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5127 function. Update comment accordingly
5128 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5129 (FRAME_SAVED_PC): Remove define.
5130 (i386bsd_frame_saved_pc): Remove prototype.
5131 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5132 GET_LONGJMP_TARGET): Remove defines.
5133 (get_longjmp_target): Remove prototype.
5134 (IN_SIGTRAMP): Remove define.
5135 (i386bsd_in_sigtramp): Remove prototype.
5136 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5137 function. Update comment accordingly
5138 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5139 (FRAME_SAVED_PC): Remove define.
5140 (i386bsd_frame_saved_pc): Remove prototype.
5141 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5142 Remove prototype.
5143 (USE_STRUCT_CONVENTION): Remove prototype.
5144 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5145 declaration.
5146 (_initialize_i386bsd_nat): Revise logic to determine some
5147 constants at compile time when compiling a native GDB. Warn if
5148 things don't match up with what we expect.
5149 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5150 Remove variables.
5151 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5152 to use date stored in `struct gdbarch_tdep'.
5153 (i386bsd_sigcontext_offset): Remove varaible.
5154 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5155 stored in `struct gdbarch_tdep'.
5156 (i386bsd_frame_saved_pc): Make static.
5157 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5158 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5159 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5160 i386fbsd4_sc_pc_offset): New variables.
5161 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5162 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5163 functions.
5164 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5165 functions.
5166 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5167 Modify the value of i386fbsd_sigtramp_start and
5168 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5169 i386fbsd_sigtramp_end.
5170 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5171 function.
5172
5173 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5174 define to i386-linux-tdep.h.
5175 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5176 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5177 defines.
5178 (i386_linux_register_name, i386_linux_register_byte,
5179 i386_linux_register_raw_size): Remove prototypes.
5180 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5181 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5182 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5183 TARGET_WRITE_PC): Remove defines.
5184 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5185 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5186 i386_linux_write_pc): Remove prototypes.
5187 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5188 (get_longjmp_target): Remove prototype.
5189 * i386-linux-tdep.h: New file.
5190 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5191 * i386-linux-tdep.c: Include "i386-tdep.h" and
5192 "i386-linux-tdep.h".
5193 (i386_linux_register_name, i386_linux_register_byte,
5194 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5195 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5196 Make static.
5197 (i386_linux_init_abi): New function.
5198 (_initialize_i386_linux_tdep): New function.
5199
5200 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5201 (i386_saved_pc_after_call): Remove prototype.
5202 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5203 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5204 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5205 (i386_register_name, i386_stab_reg_to_regnum,
5206 i386_dwarf_reg_to_regnum): Remove prototypes.
5207 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5208 SIZEOF_SSE_REGS): Remove defines.
5209 (REGISTER_BYTES): Remove define.
5210 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5211 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5212 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5213 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5214 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5215 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5216 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5217 (get_longjmp_target): Remove prototype.
5218 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5219 (sigtramp_saved_pc): Remove define.
5220 (i386v4_sigtramp_saved_pc): Remove prototype.
5221 * config/i386/tm-go32.h (FRAME_CHAIN,
5222 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5223 (i386go32_frame_saved_pc): Remove prototype.
5224 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5225 (get_longjmp_target): Remove prototype.
5226 * i386-tdep.h: Include "osabi.h".
5227 (enum i386_abi): Removed.
5228 (enum struct_return): New enum.
5229 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5230 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5231 sc_pc_offset members.
5232 (i386_gdbarch_register_os_abi): Remove prototype.
5233 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5234 I386_SSE_NUM_REGS): New defines.
5235 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5236 I386_SSE_SIZEOF_REGS): New defines.
5237 (i386_register_name, i386_register_byte, i386_register_raw_size):
5238 New prototypes.
5239 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5240 (i386bsd_sigtramp_saved_pc): New prototype.
5241 * i386-tdep.c: Don't include "elf-bfd.h".
5242 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5243 i386_frame_chain, i386_saved_pc_after_call): Make static.
5244 (i386_frame_saved_pc): Rewrite to call architecture dependent
5245 function to deal with signal handlers. Make static.
5246 (i386go32_frame_saved_pc): Removed.
5247 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5248 Removed.
5249 (i386_get_longjmp_target): New function.
5250 (default_struct_convention, pcc_struct_convention,
5251 reg_struct_convention, valid_conventions, struct_convention): New
5252 variables.
5253 (i386_use_struct_convention): New function.
5254 (i386v4_sigtramp_saved_pc): Renamed to
5255 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5256 (i386_pc_in_sigtramp): New function.
5257 (i386_abi_names): Removed.
5258 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5259 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5260 Removed.
5261 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5262 i386_gdbarch_register_os_abi): Removed.
5263 (struct i386_abi_handler): Removed.
5264 (i386_abi_handler_list): Removed.
5265 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5266 functions.
5267 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5268 i386_nw_init_abi): New functions.
5269 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5270 Use set_gdbarch_xxx() calls instead of relying on macros for a
5271 number of calls.
5272 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5273 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5274 Register the various architecture variants defined in this file.
5275
5276 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
5277
5278 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5279 (struct main_type): Remove arg_types member. Update comments for
5280 struct field.
5281 (TYPE_ARG_TYPES): Remove.
5282 (TYPE_FN_FIELD_ARGS): Update.
5283 (smash_to_method_type): Update prototype.
5284
5285 * c-typeprint.c (cp_type_print_method_args): Take method type
5286 instead of argument list. Use new argument layout. Simplify.
5287 (c_type_print_args): Use new argument layout. Simplify.
5288 (c_type_print_base): Update call to cp_type_print_method_args.
5289 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5290 argument; use die->type instead. Update call to
5291 smash_to_method_type.
5292 (read_structure_scope): Update call to dwarf2_add_member_fn.
5293 * gdbtypes.c (allocate_stub_method): Update comment.
5294 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5295 Use new argument layout.
5296 (check_stub_method): Use new argument layout. Don't count
5297 void as an argument.
5298 (print_arg_types): Update comments. Use new argument layout.
5299 (recursive_dump_type): Don't print arg_types member.
5300 * hpread.c (hpread_read_struct_type): Use new argument layout.
5301 (fixup_class_method_type): Likewise.
5302 (hpread_type_lookup): Likewise.
5303 * stabsread.c (read_type): Update calls to read_args and
5304 smash_to_method_type.
5305 (read_args): Use new argument layout. Simplify.
5306 * valops.c (typecmp): Use new argument layout. Update parameters
5307 and comments. Simplify.
5308 (hand_function_call): Use new argument layout.
5309 (search_struct_method): Update call to typecmp.
5310 (find_overload_match): Use new argument layout.
5311
5312 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5313
5314 * NEWS: Mention multithreaded debug support for gdbserver.
5315
5316 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5317
5318 * MAINTAINERS: Mention NEWS.
5319
5320 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5321
5322 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5323 (struct mips_objfile_private, compare_pdr_entries): New.
5324 (non_heuristic_proc_desc): Read the ".pdr" section if it
5325 is present.
5326
5327 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5328
5329 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5330 (arm_debug): New static variable.
5331 (_initialize_arm_tdep): Add ``set debug arm'' command.
5332
5333 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5334
5335 * Makefile.in (sim_arm_h): Define.
5336 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5337 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5338 (arm_register_sim_regno): New function, map an internal REGNUM
5339 onto a simulator register number.
5340 (arm_gdbarch_init): Set register_sim_regno.
5341
5342 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
5343
5344 * MAINTAINERS: Add self.
5345
5346 2002-06-11 Jim Blandy <jimb@redhat.com>
5347
5348 * source.c (source_info): Mention whether the symtab has
5349 information about preprocessor macros.
5350
5351 Call the command `info macro', not `show macro'.
5352 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5353 Fix error message.
5354 (_initialize_macrocmd): Register `info_macro_command' in
5355 `infolist', not `showlist'.
5356
5357 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
5358
5359 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5360 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5361 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5362 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5363 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5364 unconditionally.
5365 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5366 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5367 (_initialize_mips_tdep): Remove dead code.
5368 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5369 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5370 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5371 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5372 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5373 MIPS_LAST_FP_ARG_REGNUM): Remove.
5374
5375 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5376
5377 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5378 (unwind_tmp_obstack_free, parse_frame_info)
5379 (update_context, cfi_read_fp, cfi_write_fp)
5380 (cfi_frame_chain, cfi_init_extra_frame_info)
5381 (cfi_virtual_frame_pointer): Use the above function.
5382 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5383
5384 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
5385
5386 * v850-tdep.c (v850_type_is_scalar): New function.
5387 (v850_use_struct_convention): Match current gcc implementation
5388 as close as possible.
5389 (v850_push_arguments): Fix stack_offset handling. Don't write
5390 struct_addr into register. This is done by v850_store_struct_return.
5391 (v850_extract_return_value): Care for structs.
5392 (v850_store_return_value): Ditto.
5393 (v850_store_struct_return): Actually write address.
5394
5395 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5396
5397 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5398 without debug information too.
5399
5400 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5401
5402 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5403 Make multi-arch pure.
5404 * gdbarch.h, gdbarch.c: Re-generate.
5405 * arm-tdep.c (arm_print_float_info): Update.
5406 * arch-utils.h (default_print_float_info): Update.
5407 * arch-utils.c (default_print_float_info): Update.
5408 * infcmd.c (float_info): Update call.
5409
5410 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5411
5412 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5413 the front of the initialize list.
5414
5415 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5416
5417 * infrun.c (struct inferior_status): Replace fields
5418 selected_frame_address and selected_level with field
5419 selected_frame_id.
5420 (save_inferior_status): Update. Use get_frame_id.
5421 (struct restore_selected_frame_args): Delete.
5422 (restore_selected_frame): Update. Use frame_find_by_id.
5423 (restore_inferior_status): Update.
5424
5425 * breakpoint.h (struct breakpoint): Change type of
5426 watchpoint_frame to frame_id.
5427 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5428 call to get_current_frame.
5429 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5430 get_current_frame.
5431 (watchpoint_check): Use frame_find_by_id.
5432
5433 * frame.h (record_selected_frame): Delete declaration.
5434 * stack.c (record_selected_frame): Delete function.
5435
5436 * frame.h (struct frame_id): Define.
5437 (get_frame_id): Declare.
5438 (frame_find_by_id): Declare.
5439 * frame.c (frame_find_by_id): New function.
5440 (get_frame_id): New function.
5441
5442 2002-06-10 Andrey Volkov <avolkov@transas.com>
5443
5444 * ser-e7kpc.c: Fix duplicated define and call of
5445 _initialize_ser_e7000pc
5446
5447 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5448
5449 * signals/signals.c (target_signal_from_host): Fix #ifdef
5450 SIGRTMIN case.
5451 (do_target_signal_to_host): Likewise.
5452
5453 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5454
5455 * mips-tdep.c (mips_find_abi_section): New function.
5456 (mips_gdbarch_init): Call it.
5457
5458 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5459
5460 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5461 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5462 after Andrew's 2002-06-08 gdbarch change.
5463
5464 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5465
5466 * i386-linux-nat.c (suppy_gregset): Don't supply
5467 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5468 register cache.
5469 (fill_gregset): Don't fetch it under the same circumstances.
5470
5471 2002-06-09 Andrew Cagney <cagney@redhat.com>
5472
5473 * Makefile.in (callback_h): Define.
5474 (remote_sim_h): Update path to remote-sim.h.
5475 (remote-rdp.o): Add $(callback_h).
5476 (remote-sim.o): Use $(callback_h).
5477 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5478 * remote-rdp.c: Include "gdb/callback.h".
5479
5480 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5481
5482 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5483 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5484
5485 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5486
5487 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5488 * rdi-share/serpardr.c: Ditto.
5489 * rdi-share/unixcomm.c: Ditto.
5490 * rdi-share/serdrv.c: Ditto.
5491 * rdi-share/hostchan.h: Ditto.
5492 * rdi-share/hostchan.c: Ditto.
5493 * rdi-share/host.h: Ditto.
5494 * rdi-share/devsw.c: Ditto.
5495
5496 * objfiles.h: Change type of obj_private to void pointer.
5497 * pa64solib.c: Update copyright. Don't include "assert.h", use
5498 strcmp instead of STREQ, use LONGEST, do not use PTR
5499 * somsolib.c: Ditto.
5500
5501 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5502 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5503 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5504
5505 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5506
5507 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5508 (default_get_saved_register): Delete function.
5509 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5510 generic_unwind_get_saved_register.
5511 * gdbarch.h, gdbarch.c: Re-generate.
5512
5513 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5514
5515 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5516 generic_func_frame_chain_valid.
5517 * gdbarch.h, gdbarch.c: Re-generate.
5518 * blockframe.c (generic_func_frame_chain_valid): Only check
5519 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5520 passing FP to PC_IN_CALL_DUMMY.
5521 Fix PR gdb/360.
5522
5523 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5524
5525 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5526 (register_gdbarch_data): Initialize init_p.
5527 (gdbarch_data): Initialize data pointer using the init function.
5528 (init_gdbarch_data): Delete function.
5529 (gdbarch_update_p): Update.
5530 (initialize_non_multiarch): Update.
5531 (struct gdbarch): Add field initialized_p.
5532 * gdbarch.h, gdbarch.c: Re-generate.
5533
5534 2002-06-07 Michal Ludvig <mludvig@suse.cz>
5535
5536 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5537 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5538 better do the things actually here.
5539 * x86-64-tdep.c (x86_64_register_name2nr): New.
5540 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5541 (x86_64_gdbarch_init): Respect the above change.
5542 * x86-64-tdep.h (x86_64_register_name2nr)
5543 (x86_64_register_nr2name): Add prototypes.
5544 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5545
5546 2002-06-06 Michael Snyder <msnyder@redhat.com>
5547
5548 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5549 Delete extra braces and re-indent.
5550 (d10v_store_return_value): Char return values
5551 must be shifted over by one byte in R0.
5552 (d10v_extract_return_value): Delete extra braces, re-indent.
5553
5554 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5555
5556 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5557 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5558 (d10v_integer_to_address): Rewrite.
5559 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5560 the d10v specific functions which take care of converting to the
5561 correct space.
5562
5563 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5564
5565 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5566 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5567
5568 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5569
5570 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5571 includes.
5572 * config/tm-linux.h: Ditto.
5573 * config/alpha/tm-alphalinux.h: Ditto.
5574 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5575 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5576 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5577 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5578 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5579 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5580 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5581 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5582 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5583 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5584 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5585 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5586 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5587 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5588 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5589 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5590 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5591 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5592 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5593 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5594 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5595 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5596 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5597 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5598 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5599 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5600 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5601 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5602 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5603 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5604 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5605 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5606 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5607 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5608 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5609 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5610 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5611
5612 2002-05-04 Aidan Skinner <aidan@velvet.net>
5613
5614 * ada-exp.tab.c: New file
5615 * ada-exp.y: New file
5616 * ada-lang.c: New file
5617 * ada-lang.h: New file
5618 * ada-lex.c: New file
5619 * ada-lex.l: New file
5620 * ada-tasks.c: New file
5621 * ada-typeprint.c: New file
5622 * ada-valprint.c: New file
5623
5624 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5625
5626 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5627 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5628
5629 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5630
5631 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5632 insetead of ppc-linux-tdep.o.
5633 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5634 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5635
5636 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5637
5638 2002-05-07 Christian Groessler <chris@groessler.org>
5639 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5640 bit register contents for little endian hosts.
5641
5642 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5643
5644 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5645 any maintainer.
5646
5647 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5648
5649 * gdbarch.h: Regenerate.
5650
5651 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5652
5653 * MAINTAINERS: Add everyone to write-after-approval list.
5654
5655 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5656
5657 * stack.c (frame_info): Use frame_register_unwind instead of
5658 saved_regs. Mention when the SP is on the stack or in a register.
5659
5660 * frame.h (frame_register_unwind_ftype): Define. Document.
5661 (struct frame_info): Add field register_unwind and
5662 register_unwind_cache.
5663 (frame_register_unwind): Declare.
5664 (generic_unwind_get_saved_register): Declare.
5665
5666 * frame.c (frame_register_unwind): New function.
5667 (generic_unwind_get_saved_register): New function.
5668
5669 * blockframe.c (generic_call_dummy_register_unwind): New function.
5670 (frame_saved_regs_register_unwind): New function.
5671 (set_unwind_by_pc): New function.
5672 (create_new_frame): New function.
5673 (get_prev_frame): New function.
5674
5675 2002-05-30 Andrew Cagney <ac131313@redhat.com>
5676
5677 * a29k-share/: Delete directory.
5678 * remote-vx29k.c: Delete file.
5679
5680 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5681
5682 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5683 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5684
5685 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5686
5687 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5688 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5689 (sparc64nbsd-nat.o)
5690 (sparcnbsd-nat.o)
5691 (sparcnbsd-tdep.o): New dependency lists.
5692 * NEWS: Note new UltraSPARC NetBSD native configuration.
5693 * configure.host (sparc64-*-netbsd*): New host.
5694 * configure.tgt (sparc-*-netbsdelf*)
5695 (sparc-*-netbsd*): Set gdb_target to nbsd.
5696 (sparc64-*-netbsd*): New target.
5697 * sparc64nbsd-nat.c: New file.
5698 * sparcnbsd-nat.c: New file.
5699 * sparcnbsd-tdep.c: New file.
5700 * sparcnbsd-tdep.h: New file.
5701 * config/sparc/nbsd.mt: New file.
5702 * config/sparc/nbsd64.mh: New file.
5703 * config/sparc/nbsd64.mt: New file.
5704 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5705 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5706 (HOST_IPC): Remove.
5707 * config/sparc/nbsdaout.mt: Remove.
5708 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5709 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5710 (HOST_IPC): Remove.
5711 * config/sparc/nbsdelf.mt: Remove.
5712 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5713 sparc-nat.c compatiblity defines.
5714 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5715 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5716 * config/sparc/tm-nbsd64.h: New file.
5717 * config/sparc/tm-nbsdaout.h: Remove.
5718 * config/sparc/xm-nbsd.h: Remove.
5719
5720 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5721
5722 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5723 * sparc-tdep.c: Include osabi.h.
5724 (gdbarch_tdep): Add osabi member.
5725 (_initialize_sparc_tdep): Use gdbarch_register.
5726 (sparc_gdbarch_init): Use generic OS ABI framework.
5727 (sparc_dump_tdep): New function.
5728
5729 2002-05-30 Kevin Buettner <kevinb@redhat.com>
5730
5731 * corefile.c (do_captured_read_memory_integer): Return non-zero
5732 result.
5733 (safe_read_memory_integer): Copy result of memory read when
5734 status is non-zero. Also, add comments.
5735
5736 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5737
5738 * Makefile.in (ppc_tdep_h): Define.
5739 (ppc-linux-nat.o)
5740 (ppc-linux-tdep.o)
5741 (rs6000-tdep.o): Use $(ppc_tdep_h).
5742 (ppc-sysv-tdep.o)
5743 (ppcnbsd-nat.o)
5744 (ppcnbsd-tdep.o): New dependency lists.
5745 * ppc-tdep.h: Use generic OS ABI framework.
5746 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5747 (ppc_linux_init_abi): New functions.
5748 (ppc_sysv_abi_broken_use_struct_convention)
5749 (ppc_sysv_abi_use_struct_convention)
5750 (ppc_sysv_abi_push_arguments): Move to...
5751 * ppc-sysv-tdep.c: ...here.
5752 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5753 * rs6000-tdep.c (process_note_abi_tag_sections)
5754 (get_elfosabi): Remove.
5755 (rs6000_gdbarch_init): Use generic OS ABI framework.
5756 (rs6000_dump_tdep): New function.
5757 (_initialize_rs6000_tdep): Use gdbarch_register.
5758 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5759 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5760 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5761 of ppc-linux-tdep.o.
5762 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5763 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5764 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5765 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5766 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5767 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5768
5769 2002-05-29 Jim Blandy <jimb@redhat.com>
5770
5771 * macroscope.c (default_macro_scope): Put `void' in empty argument
5772 list.
5773
5774 2002-05-29 Andrew Cagney <ac131313@redhat.com>
5775
5776 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5777 * arch-utils.c: Include "sim-regno.h".
5778 * gdbarch.sh: Don't include "sim-regno.h".
5779 * gdbarch.h, gdbarch.c: Regenerate.
5780 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5781 here.
5782 * arch-utils.h (legacy_register_sim_regno): To here.
5783 * remote-sim.c (legacy_register_sim_regno): Move function from
5784 here.
5785 * arch-utils.c (legacy_register_sim_regno): To here.
5786
5787 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5788
5789 * sim-regno.h: New file.
5790 * Makefile.in (sim_regno_h): Define.
5791 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5792 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5793 (legacy_register_sim_regno): New function.
5794 (one2one_register_sim_regno): New function.
5795 (gdbsim_fetch_register): Rewrite.
5796 (gdbsim_store_register): Only store a register when
5797 REGISTER_SIM_REGNO is valid.
5798 * d10v-tdep.c: Include "sim-regno.h".
5799 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5800 (d10v_ts3_register_sim_regno): Ditto.
5801 * gdbarch.sh: Include "sim-regno.h".
5802 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5803 * gdbarch.h, gdbarch.c: Regenerate.
5804 * arch-utils.h (default_register_sim_regno): Delete declaration.
5805 * arch-utils.c (default_register_sim_regno): Delete function.
5806
5807 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5808
5809 * ppcnbsd-nat.c: Rewrite.
5810 * ppcnbsd-tdep.c: New file.
5811 * ppcnbsd-tdep.h: New file.
5812 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5813 solib.o, and solib-svr4.o.
5814 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5815 nbsd-tdep.o, and corelow.o.
5816
5817 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5818
5819 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5820 `tr' and `sed'. Mention that `broken' targets are not expected to
5821 build.
5822
5823 2002-05-27 Michal Ludvig <mludvig@suse.cz>
5824
5825 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5826 Let PC point right after the prologue before looking up symbols.
5827
5828 2002-05-27 Martin M. Hunt <hunt@redhat.com>
5829
5830 * i386-tdep.c (i386_register_virtual_type): Return
5831 builtin_type_vec128i for SSE registers.
5832
5833 * gdbtypes.h (builtin_type_vec128i): Declare.
5834
5835 * gdbtypes.c (build_builtin_type_vec128i): New function.
5836 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5837 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5838 (build_gdbtypes): Initialize new builtin vector types.
5839 (_initialize_gdbtypes): Register new vector types with gdbarch.
5840
5841 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5842
5843 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5844 since it has been multi-arch'd.
5845 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5846 Move Alpha and VAX multi-arch news entries to same section
5847 as other multi-arch news.
5848
5849 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5850
5851 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5852 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5853 static. Rename some register numbers to put them in ns32k-tdep
5854 private namespace.
5855 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5856 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5857 functions.
5858 (_initialize_ns32k_tdep): Use gdbarch_register.
5859 * ns32k-tdep.h: New file.
5860 * ns32knbsd-tdep.c: New file.
5861 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5862 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5863 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5864 REGISTER_BYTES, REGISTER_BYTE): Remove.
5865 * config/ns32k/tm-ns32k.h: New file.
5866 * config/ns32k/tm-umax.h: Remove.
5867
5868 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5869
5870 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5871 ns32k_store_struct_return, ns32k_extract_return_value,
5872 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5873 functions.
5874 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5875 ns32k_saved_pc_after_call.
5876 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5877 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5878 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5879 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5880 ns32k_extract_struct_value_address.
5881
5882 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5883
5884 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5885 ns32k_fix_call_dummy): New.
5886 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5887 ns32k_call_dummy_words.
5888 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5889 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5890 CALL_DUMMY_NARGS): Remove.
5891 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5892
5893 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5894
5895 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5896 ns32k_frame_saved_pc, ns32k_frame_args_address,
5897 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5898 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5899 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5900 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5901 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5902 (BREAKPOINT): Remove..
5903 (FRAME_CHAIN): Define as ns32k_frame_chain.
5904 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5905 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5906 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5907 (FRAME_FIND_SAVED_REGS): Remove.
5908 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5909 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5910 (POP_FRAME): Define as ns32k_pop_frame.
5911
5912 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5913
5914 * ns32k-tdep.c (ns32k_register_byte_32082,
5915 ns32k_register_byte_32382, ns32k_register_raw_size,
5916 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5917 functions.
5918 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5919 ns32k_register_byte_32382.
5920 * config/ns32k/tm-umax.h: Update copyright years.
5921 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5922 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5923 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5924 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5925 (ns32k_get_enter_addr): Fix prototype.
5926
5927 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5928
5929 * ns32k-tdep.c: Update copyright years.
5930 (ns32k_register_name_32082): New function.
5931 (ns32k_register_name_32382): Ditto.
5932 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5933 (REGISTER_NAME): Define as ns32k_register_name_32382.
5934 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5935 (REGISTER_NAME): Define as ns32k_register_name_32082.
5936
5937 2002-05-24 Jim Blandy <jimb@redhat.com>
5938
5939 * dwarf2read.c (free_line_header): Use xfree, not free.
5940
5941 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5942
5943 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5944 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5945
5946 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5947
5948 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5949
5950 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5951
5952 From Ross Alexander at NEC Europe:
5953 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5954
5955 2002-05-23 Michael Snyder <msnyder@redhat.com>
5956
5957 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5958 for input, rather than parse_and_eval_address.
5959
5960 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5961
5962 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5963 * Makefile.in (sim_d10v_h): Update definition.
5964
5965 2002-05-24 Andrew Cagney <cagney@redhat.com>
5966
5967 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5968 change `2002-05-22 Michael Snyder' below.
5969 (d10v_push_arguments): Ditto.
5970 (d10v_extract_return_value): Ditto.
5971
5972 2002-05-23 Jim Blandy <jimb@redhat.com>
5973
5974 * macrotab.c (check_for_redefinition): Don't complain if the new
5975 definition is the same as the previous one. Take more arguments
5976 to allow the comparison.
5977 (macro_define_object, macro_define_function): Pass more arguments
5978 to check_for_redefinition.
5979
5980 2002-05-22 Michael Snyder <msnyder@redhat.com>
5981
5982 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5983 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5984 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5985 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5986 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5987 Add a temp variable to save a call (and a memory read).
5988 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5989 if possible (so that PC_IN_CALL_DUMMY will work).
5990
5991 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
5992
5993 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5994
5995 2002-05-22 Michal Ludvig <mludvig@suse.cz>
5996
5997 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5998 fde->cie_ptr.
5999 (dwarf2_build_frame_info): Corrected handling of eh_frame.
6000 (dwarf2_build_frame_info): Add offset to fde->initial_location
6001 so that frames of shared libraries are mapped correctly.
6002 (execute_stack_op): Change type of 'result' from ULONGEST to
6003 CORE_ADDR.
6004
6005 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6006
6007 * config/alpha/tm-nbsd.h: Include solib.h.
6008
6009 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6010
6011 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6012 assumptions about the host's byte order.
6013
6014 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6015
6016 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6017 to dependency list.
6018 * alphanbsd-tdep.c: Include solib-svr4.h.
6019 * shnbsd-tdep.c: Ditto.
6020
6021 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6022
6023 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6024 nbsd-tdep.h to dependency list.
6025 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6026 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6027 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6028 nbsdaout.mh and nbsdelf.mh consistently.
6029 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6030 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6031 nbsdaout.mt and nbsdelf.mh consistently.
6032 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6033 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6034 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6035 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6036 a.out shared library stuff from here...
6037 * config/nm-nbsdaout.h: ...to here.
6038 * config/tm-nbsd.h: Remove.
6039 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6040 * config/arm/nbsd.mh: Remove.
6041 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6042 nbsd-tdep.o.
6043 * config/arm/nbsdaout.mh: New file.
6044 * config/arm/nbsdelf.mh: New file.
6045 * config/arm/nm-nbsdaout.h: New file.
6046 * config/i386/nbsd.mh: Remove.
6047 * config/i386/nbsd.mt: Remove.
6048 * config/i386/nbsdaout.mh: New file.
6049 * config/i386/nbsdaout.mt: New file.
6050 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6051 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6052 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6053 i386_register_u_addr): Remove.
6054 * config/i386/nm-nbsdaout.h: New file.
6055 * config/i386/nm-nbsdelf.h: Remove.
6056 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6057 (USE_STRUCT_CONVENTION): Remove.
6058 * config/i386/tm-nbsdaout.h: New file.
6059 * config/i386/tm-nbsdelf.h: Remove.
6060 * config/m68k/nbsd.mh: Remove.
6061 * config/m68k/nbsd.mt: Remove.
6062 * config/m68k/nbsdaout.mh: New file.
6063 * config/m68k/nbsdaout.mt: New file.
6064 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6065 * config/m68k/nm-nbsdaout.h: New file.
6066 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6067 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6068 * config/ns32k/nbsd.mh: Remove.
6069 * config/ns32k/nbsd.mt: Remove.
6070 * config/ns32k/nbsdaout.mh: New file.
6071 * config/ns32k/nbsdaout.mt: New file.
6072 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6073 * config/ns32k/nm-nbsdaout.h: New file.
6074 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6075 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6076 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6077 (SVR4_SHARED_LIBS): Remove.
6078 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6079 * config/sparc/nbsd.mh: Remove.
6080 * config/sparc/nbsd.mt: Remove.
6081 * config/sparc/nbsdaout.mh: New file.
6082 * config/sparc/nbsdaout.mt: New file.
6083 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6084 * config/sparc/nbsdelf.mt: New file.
6085 * config/sparc/nm-nbsdaout.h: New file.
6086 * config/sparc/nm-nbsdelf.h: Remove.
6087 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6088 * config/sparc/tm-nbsdaout.h: New file.
6089
6090 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6091
6092 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6093 mipsnbsd-tdep.c
6094 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6095
6096 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6097
6098 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6099 shnbsd-nat.c.
6100 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6101
6102 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6103
6104 * NEWS: Note new MIPS NetBSD native configuration.
6105 * configure.host (mips*-*-netbsd*): New host.
6106 * configure.tgt (mips*-*-netbsd*): New target.
6107 * mipsnbsd-nat.c: New file.
6108 * mipsnbsd-tdep.c: New file.
6109 * mipsnbsd-tdep.h: New file.
6110 * config/mips/nbsd.mh: New file.
6111 * config/mips/nbsd.mt: New file.
6112 * config/mips/nm-nbsd.h: New file.
6113 * config/mips/tm-nbsd.h: New file.
6114
6115 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6116
6117 * Makefile.in (SFILES): Add osabi.c.
6118 (COMMON_OBS): Add osabi.o.
6119 (osabi.o): New dependency list.
6120 * osabi.c: New file.
6121 * osabi.h: New file.
6122 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6123
6124 * Makefile.in (alpha_tdep_h): Define and use instead of
6125 alpha-tdep.h.
6126 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6127 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6128 Remove.
6129 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6130 * alpha-tdep.h: Include osabi.h.
6131 (alpha_abi): Remove.
6132 (gdbarch_tdep): Use generic OS ABI framework.
6133 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6134 gdbarch_register_osabi.
6135 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6136 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6137 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6138
6139 * Makefile.in (sh_tdep_h): Add osabi.h.
6140 * sh-tdep.h (sh_osabi): Remove.
6141 (gdbarch_tdep): Use generic OS ABI framework.
6142 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6143 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6144 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6145 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6146
6147 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6148 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6149 gdbarch_register_osabi.
6150 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6151 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6152 (get_elfosabi): Rename to...
6153 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6154 ABI framework support routines.
6155 (arm_gdbarch_init): Use generic OS ABI framework.
6156 (arm_dump_tdep): Likewise.
6157 (_initialize_arm_tdep): Likewise.
6158 * arm-tdep.h: Include osabi.h.
6159 (arm_abi): Remove.
6160 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6161 osabi member.
6162 (arm_gdbarch_register_os_abi): Remove prototype.
6163 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6164 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6165
6166 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6167 * mips-tdep.c: Include osabi.h.
6168 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6169 OS ABI framework.
6170
6171 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6172
6173 * h8300-tdep.c: Fix formatting.
6174
6175 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
6176
6177 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6178 printing vector registers.
6179
6180 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6181
6182 From Fernando Nasser:
6183 * remote.c (remote_async_open_1): Re-throw the exception when the
6184 connection fails.
6185 (remote_cisco_open): Ditto.
6186 (remote_open_1): Ditto.
6187
6188 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6189
6190 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6191 (remote_start_remote): Add uiout parameter. Pass through to
6192 remote_start_remote_dummy.
6193 (remote_open_1): Use catch_exception instead of catch_errors.
6194 (remote_async_open_1): Ditto.
6195 (remote_cisco_open): Ditto.
6196
6197 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6198
6199 * remote.c (remote_start_remote): Replace PTR with void pointer.
6200 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6201 static.
6202
6203 2002-05-18 Andrew Cagney <ac131313@redhat.com>
6204
6205 * gdb_indent.sh: Allow the script to be run in the sim directory.
6206
6207 2002-05-18 Mark Kettenis <kettenis@gnu.org>
6208
6209 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6210 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6211
6212 * corelow.c (core_open): Only call set_gdbarch_from_file if
6213 exec_bfd is NULL.
6214
6215 2002-05-17 Andrey Volkov <avolkov@transas.com>
6216
6217 * h8300-tdep.c: Add support of EXR register
6218 * config/h8300/tm-h8300.h: Ditto.
6219
6220 2002-05-17 Andrey Volkov <avolkov@transas.com>
6221
6222 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6223
6224 2002-05-17 Andrey Volkov <avolkov@transas.com>
6225
6226 * h8300-tdep.c: Change literal regnums to REGNO.
6227
6228 2002-05-17 Jim Blandy <jimb@redhat.com>
6229
6230 * NEWS: Note addition of macro support.
6231
6232 Expand preprocessor macros in C expressions.
6233 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6234 (scan_macro_expansion, scanning_macro_expansion,
6235 finished_macro_expansion): New function declarations.
6236 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6237 variable declarations.
6238 * parser-defs.h (expression_context_pc): New declaration.
6239 * parse.c (expression_context_pc): New variable.
6240 (parse_exp_1): Set expression_context_pc, as well as
6241 expression_context_block.
6242 * c-exp.y (yylex): If we're not already reading the result of a
6243 macro expansion, try to macro-expand the next token. When we're
6244 done scanning a macro expansion, switch back to the mainline text.
6245 Commas and `if's in a macro's expansion don't terminate the input.
6246 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6247 (macro_original_text, macro_expanded_text,
6248 expression_macro_lookup_func, expression_macro_lookup_baton): New
6249 variables.
6250 (scan_macro_expansion, scanning_macro_expansion,
6251 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6252 c_preprocess_and_parse): New functions.
6253 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6254 c_preprocess_and_parse, instead of c_parse.
6255 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6256 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6257
6258 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6259
6260 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6261 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6262 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6263
6264 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
6265
6266 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6267
6268 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6269
6270 * Makefile.in (sh_tdep_h): Define and use.
6271 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6272 register enum): Move to...
6273 * * sh-tdep.h: ...here.
6274 * sh-tdep.c: Include sh-tdep.h.
6275 * sh3-rom.c: Likewise.
6276 * shnbsd-tdep.c: Likewise.
6277
6278 2002-05-16 Michael Snyder <msnyder@redhat.com>
6279
6280 * arm-tdep.c: Spelling fix in comment.
6281
6282 2002-05-16 Jim Blandy <jimb@redhat.com>
6283
6284 Add commands for manually expanding macros and showing their
6285 definitions.
6286 * macrocmd.c, macroscope.c, macroscope.h: New files.
6287 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6288 (macroscope_h): New variable.
6289 (HFILES_NO_SRCDIR): Add macroscope.h.
6290 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6291 (macroscope.o, macrocmd.o): New rules.
6292
6293 Teach the Dwarf 2 reader to read macro information.
6294 * dwarf2read.c: #include "macrotab.h".
6295 (dwarf_macinfo_buffer): New variable.
6296 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6297 dwarf_macinfo_size.
6298 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6299 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6300 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6301 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6302 dwarf2_macro_spaces_in_definition): New complaints.
6303 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6304 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6305 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6306 the partial symbol table.
6307 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6308 from what's recorded in the partial symbol table.
6309 (read_file_scope): If the compilation unit has a
6310 `DW_AT_macro_info' attribute, read its macro information.
6311 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6312
6313 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6314
6315 Fix PR gdb/546
6316 * ser-tcp.c: Don't include <netinet/udp.h>.
6317
6318 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6319
6320 * MAINTAINERS: Update my email address.
6321
6322 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
6323
6324 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6325 include file of the same name.
6326
6327 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6328
6329 * configure.tgt: Mark v850 as multi-arched.
6330 * config/v850/tm-v850.h: Remove file.
6331 * config/v850/v850.mt: Eliminate TM_FILE.
6332
6333 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6334
6335 * v850-tdep.c: Full multi-arch.
6336 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6337 Define GDB_MULTI_ARCH to 2.
6338
6339 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6340
6341 * p-exp.y (current_type): New static variable.
6342 Carries the type of the expression at the position that is parsed.
6343 (push_current_type, pop_current_type): Two new functions. Used
6344 to store/restore current_type in expression on specific tokens.
6345 (search_field): New static variable. Set to one after parsing a point
6346 as at that point only a FIELDNAME token should be searched.
6347 (FIELDNAME): New token. After a point only a token belonging to
6348 current_type type definition is allowed.
6349 (all over token rules): reset and change current_type according
6350 to rules.
6351 (exp '[' rule): insert implicit array index field if
6352 exp is a pascal string type.
6353
6354 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6355
6356 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6357 frame info. Use frame_info's saved_regs instead of matching member
6358 in extra_frame_info throughout.
6359 (v850_frame_init_saved_regs): New function.
6360 (v850_init_extra_frame_info): Move most functionality into
6361 v850_frame_init_saved_regs().
6362 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6363 (v850_frame_find_saved_regs): Remove declaration.
6364 (FRAME_FIND_SAVED_REGS): Remove definition.
6365 (v850_frame_init_saved_regs): Add declaration.
6366 (FRAME_INIT_SAVED_REGS): Add definition.
6367
6368 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6369
6370 * v850-tdep.c: Begin multi-arch'ing v850.
6371 (v850_target_architecture_hook): Remove function.
6372 (v850_gdbarch_init): New function. Add code previously in
6373 v850_target_architecture_hook().
6374 (_initialize_v850_tdep): Don't set target_architecture_hook.
6375 Call register_gdbarch_init() instead.
6376
6377 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6378
6379 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6380 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6381 (fixup_class_method_type): Likewise.
6382
6383 2002-05-15 Jim Blandy <jimb@redhat.com>
6384
6385 Add macro structures to GDB's symbol tables. Nobody puts anything
6386 in them yet.
6387 * symtab.h (struct symtab): New member: `macro_table'.
6388 * buildsym.h (pending_macros): New global variable.
6389 * buildsym.c: #include "macrotab.h".
6390 (buildsym_init): Initialize `pending_macros'.
6391 (end_symtab): If we found macro information while reading a CU's
6392 debugging info, do build a symtab structure for it. Make the
6393 symtab point to the macro information, and clear the
6394 `pending_macros' pointer which held it while we were reading the
6395 debug info.
6396 (really_free_pendings): Free any pending macro table.
6397 * objfiles.h (struct objfile): New member: `macro_cache'.
6398 * objfiles.c (allocate_objfile): Set allocate and free functions
6399 for the macro cache's objstack.
6400 (free_objfile): Empty the macro cache's obstack.
6401 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6402 set new allocate and free functions for it.
6403 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6404 free functions for the macro cache's objstack. (Why is this
6405 function building its own objfile?)
6406 * symmisc.c (print_objfile_statistics): Print statistics on the
6407 macro bcache.
6408 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6409
6410 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6411
6412 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6413 (REGISTER_U_ADDR): Delete definition.
6414 (arm_register_u_addr): Delete declaration.
6415
6416 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6417
6418 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6419 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6420
6421 2002-05-14 Andrew Cagney <ac131313@redhat.com>
6422
6423 * regcache.c (register_valid): Revise comments refering to "Not
6424 available" and "unavailable".
6425 * frame.c (frame_register_read): Ditto.
6426 * findvar.c (value_of_register): Ditto.
6427
6428 2002-05-15 Andrew Cagney <cagney@redhat.com>
6429
6430 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6431 (remote-sim.o): Update dependencies.
6432 (d10v-tdep.o): Specify dependencies.
6433 (sim_d10v_h): Define.
6434
6435 2002-05-14 Jim Blandy <jimb@redhat.com>
6436
6437 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6438 * macrotab.c (macro_lookup_inclusion, find_definition,
6439 new_macro_table): Same.
6440
6441 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6442 not `! strcmp ()'. This is a dubious improvement.
6443 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6444
6445 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6446 although it's not necessary, to avoid a warning.
6447
6448 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6449
6450 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6451 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6452 TYPE_INSTANCE_FLAGS.
6453 (struct main_type): New.
6454 (struct type): Move most members to struct main_type. Change
6455 cv_type and as_type to new type_chain member. Add instance_flags.
6456 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6457 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6458 (finish_cv_type): Remove prototype.
6459 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6460 Set TYPE_CHAIN.
6461 (alloc_type_instance): New function.
6462 (smash_type): New function.
6463 (make_pointer_type, make_reference_type, make_function_type)
6464 (smash_to_member_type, smash_to_method_type): Call smash_type.
6465 (make_qualified_type): New function.
6466 (make_type_with_address_space): Call make_qualified_type.
6467 (make_cv_type): Likewise.
6468 (finish_cv_type): Remove unnecessary function.
6469 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6470 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6471 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6472 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6473 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6474 * hpread.c (hpread_read_struct_type): Likewise.
6475 * stabsread.c (read_struct_type): Likewise.
6476
6477 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
6478
6479 * configure.tgt: Add a catch all sh* target, for cases like
6480 sh[2,3,4]-elf and sh-hms.
6481
6482 2002-05-14 Keith Seitz <keiths@redhat.com>
6483
6484 * event-loop.c (create_file_handler): Don't do anything but
6485 update data when we are given a fd which we are already
6486 monitoring.
6487
6488 2002-05-14 Michal Ludvig <mludvig@suse.cz>
6489
6490 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6491 (update_context): Use __func__ in warnings.
6492
6493 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6494
6495 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6496 and tcp_close to net_open and net_close.
6497 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6498 using UDP if requested. Don't try to disable Nagle on UDP
6499 sockets.
6500 * remote.c (remote_serial_open): New function. Warn about UDP.
6501 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6502
6503 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6504
6505 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6506
6507 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6508
6509 * configure.tgt: Remove sh-hms target.
6510 * MAINTAINERS: Don't list sh-hms as a separate target.
6511
6512 2002-05-13 Jim Blandy <jimb@redhat.com>
6513
6514 Add first preprocessor macro-expansion files.
6515 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6516 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6517 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6518 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6519 (COMMON_OBS): Add macrotab.o, macroexp.o.
6520 (macroexp.o, macrotab.o): New rules.
6521
6522 2002-05-13 Andrew Cagney <ac131313@redhat.com>
6523
6524 * config/m88k/tm-m88k.h: Update copyright.
6525 (m88k_target_write_pc): Declare
6526 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6527 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6528 (SHIFT_INST_REGS): Update definition.
6529 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6530 using old definition of TARGET_WRITE_PC.
6531 * regcache.c (generic_target_write_pc): Delete code handling
6532 NNPC_REGNUM.
6533 * gdbarch.sh (NNPC_REGNUM): Delete.
6534 * gdbarch.h, gdbarch.c: Regenerate.
6535
6536 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
6537
6538 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6539 builtin reg number.
6540
6541 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
6542
6543 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6544 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6545 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6546 access macros.
6547 * c-typeprint.c (cp_type_print_method_args): Likewise.
6548 (c_type_print_args): Likewise.
6549 * d10v-tdep.c (d10v_push_arguments): Likewise.
6550 (d10v_extract_return_value): Likewise.
6551 * expprint.c (print_subexp): Likewise.
6552 * gdbtypes.c (lookup_primitive_typename): Likewise.
6553 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6554 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6555 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6556 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6557 (TYPE_VECTOR): Likewise.
6558 * hpread.c (hpread_read_struct_type)
6559 (fix_static_member_physnames, fixup_class_method_type)
6560 (hpread_type_lookup): Likewise.
6561 * mdebugread.c (parse_symbol, parse_type): Likewise.
6562 * p-lang.c (is_pascal_string_type): Likewise.
6563 * valops.c (hand_function_call): Likewise.
6564 * x86-64-tdep.c (classify_argument): Likewise.
6565
6566 * hpread.c (hpread_read_function_type)
6567 (hpread_read_doc_function_type): Call replace_type.
6568 * dstread.c (create_new_type): Delete.
6569 (decode_dst_structure, process_dst_function): Call alloc_type.
6570 Use type access macros.
6571
6572 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6573
6574 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6575 the're not supported by the current architecture.
6576 (i387_fill_fxsave): Likewise.
6577
6578 2002-05-12 Fred Fish <fnf@redhat.com>
6579
6580 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6581 sect_index_xxx members to index the first slot in section_offsets
6582 if all of the section_offsets are zero.
6583
6584 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6585
6586 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6587 checked in with last change.
6588
6589 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6590
6591 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6592 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6593 config.sub.
6594
6595 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
6596
6597 * Makefile.in: Update dependencies.
6598
6599 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6600
6601 * language.c (local_hex_string_custom): Simplify. Do not depend
6602 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6603
6604 * memattr.c (mem_info_command): Replace calls to
6605 longest_local_hex_string and longest_local_hex_string_custom.
6606 * buildsym.c (make_blockvector): Ditto.
6607 * solib.c (info_sharedlibrary_command): Ditto.
6608 * tracepoint.c (tracepoints_info): Ditto.
6609 * symtab.c (print_msymbol_info): Ditto.
6610
6611 * language.c (local_hex_string): Delete.
6612 (local_hex_string_custom): Delete.
6613 (longest_local_hex_string): Rename to local_hex_string.
6614 (longest_local_hex_string_custom): Rename to
6615 local_hex_string_custom.
6616 * language.h (local_hex_string): Change parameter type to LONGEST.
6617 (local_hex_string_custom): Ditto.
6618 (longest_local_hex_string): Delete declaration.
6619 (longest_local_hex_string_custom): Ditto.
6620
6621 * solib.c: Update copyright.
6622 * memattr.c: Update copyright.
6623
6624 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6625
6626 * arch-utils.h (legacy_register_to_value): Declare.
6627 (legacy_value_to_register): Declare.
6628 (legacy_convert_register_p): Declare.
6629 * arch-utils.c (legacy_register_to_value): New function.
6630 (legacy_value_to_register): New function.
6631 (legacy_convert_register_p): New function.
6632
6633 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6634 (VALUE_TO_REGISTER): Define.
6635 (CONVERT_REGISTER_P): Define.
6636 * gdbarch.h, gdbarch.c: Regenerate.
6637
6638 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6639 VALUE_TO_REGISTER.
6640 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6641 CONVERT_REGISTER_P.
6642
6643 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
6644 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6645
6646 * Makefile.in: Update dependencies for valops.c.
6647 * valops.c: Include "gdb_assert.h".
6648 (typecmp): Skip THIS parameter to methods.
6649 (find_method_list): Remove static_memfuncp argument,
6650 update callers. Check for stub methods.
6651 (find_value_oload_method_list): Don't set *static_memfuncp.
6652 (find_overload_match): Don't check for stub methods. Assert
6653 that methods are not stubbed. Handle static methods.
6654 (value_find_oload_method_list): Remove static_memfuncp argument.
6655 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6656 to the argument list for static stub methods.
6657 * value.h (value_find_oload_method_list): Update prototype.
6658
6659 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6660
6661 * arch-utils.h (generic_register_size): Declare.
6662 (generic_register_raw_size, generic_register_virtual_size): Delete
6663 declarations.
6664 * arch-utils.c (generic_register_raw_size): Delete.
6665 (generic_register_size): New function.
6666 (generic_register_virtual_size): Delete.
6667
6668 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6669 default generic_register_size.
6670 * gdbarch.h, gdbarch.c: Re-generate.
6671
6672 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6673 register_virtual_size.
6674 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6675 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6676
6677 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6678
6679 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6680 * gdbarch.h, gdbarch.c: Regenerate.
6681 * gnu-v3-abi.c: Update copyright.
6682 (vtable_address_point_offset): Update.
6683 (gnuv3_rtti_type): Update.
6684 (gnuv3_baseclass_offset): Update.
6685 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6686 (init_fetch_link_map_offsets): Update.
6687 * remote.c (get_remote_state): Update.
6688
6689 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6690
6691 * TODO: Remove value_headof/value_from_vtable_info comment.
6692 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6693 * values.c (value_headof, value_from_vtable_info): Delete.
6694 * value.h (value_from_vtable_info): Delete prototype.
6695
6696 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6697
6698 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6699 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6700 $(gdb_regex_h).
6701 (gdb_assert_h): Define.
6702 (gdb_wait_h): Define.
6703 (gdb_regex_h): Define.
6704
6705 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6706
6707 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6708 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6709
6710 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6711
6712 * nbsd-tdep.c: Fix comment.
6713
6714 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6715
6716 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6717 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6718 (nbsd-tdep.o): New dependency list.
6719 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6720 nbsd-tdep.h.
6721 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6722 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6723 * nbsd-tdep.c: New file.
6724 * nbsd-tdep.h: New file.
6725 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6726 nbsd-tdep.h.
6727 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6728 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6729 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6730 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6731
6732 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6733
6734 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6735 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6736 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6737 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6738 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6739 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6740
6741 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6742
6743 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6744 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6745 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6746 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6747 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6748 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6749 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6750
6751 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6752
6753 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6754 fetch_elfcore_registers to...
6755 * i386nbsd-tdep.c: ...here.
6756 (i386nbsd_use_struct_convention): Rename to...
6757 (i386nbsd_aout_use_struct_convention): ...this.
6758 (i386nbsd_supply_reg): New function.
6759 (i386nbsd_fill_reg): New function.
6760 (fetch_core_registers): Use i386nbsd_supply_reg.
6761 (fetch_elfcore_registers): Likewise.
6762 (_initialize_i386nbsd_tdep): New function.
6763 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6764 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6765 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6766 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6767 (i386nbsd_aout_use_struct_convention): ...this.
6768
6769 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6770
6771 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6772 (store_inferior_registers): Use shnbsd_fill_reg.
6773 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6774 sh_nbsd_supply_register): Collapse into...
6775 (shnbsd_supply_reg): ...this.
6776 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6777 (shnbsd_fill_reg): ...this.
6778 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6779 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6780 (fetch_core_registers): Use shnbsd_supply_reg.
6781 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6782 (sh_nbsd_core_fns): Rename to...
6783 (shnbsd_core_fns): ...this.
6784 (sh_nbsd_elfcore_fns): Rename to...
6785 (shnbsd_elfcore_fns): ...this.
6786 (sh_nbsd_init_abi): Rename to...
6787 (shnbsd_init_abi): ...this.
6788 (_initialize_sh_nbsd_tdep): Rename to...
6789 (_initialize_shnbsd_tdep): ...this.
6790 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6791 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6792 sh_nbsd_fill_register): Remove prototypes.
6793 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6794
6795 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6796
6797 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6798 (i387-nat.o): Delete dependency list.
6799 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6800 (x86-64-linux-nat.o): Likewise.
6801 * i387-nat.c: Delete file, moving contents to...
6802 * i387-tdep.c: ...here.
6803 * i387-nat.h: Rename...
6804 * i387-tdep.h: ...to this.
6805 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6806 * i386-linux-nat.c: Likewise.
6807 * i386bsd-nat.c: Likewise.
6808 * i386gnu-nat.c: Likewise.
6809 * i386nbsd-nat.c: Likewise.
6810 * i386v4-nat.c: Likewise.
6811 * x86-64-linux-nat.c: Likewise.
6812 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6813 * config/i386/go32.mh (NATDEPFILES): Likewise.
6814 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6815 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6816 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6817 * config/i386/linux.mh (NATDEPFILES): Likewise.
6818 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6819 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6820 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6821 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6822
6823 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6824
6825 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6826 (alphanbsd-nat.o): Remove dependency list.
6827 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6828 * alphanbsd-nat.c: Delete. Contents moved to...
6829 * alphanbsd-tdep.c: ...here.
6830 (_initialize_alphanbsd_tdep): Register core functions.
6831 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6832
6833 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6834
6835 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6836 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6837 (alphanbsd-nat.o): Likewise.
6838 (alphabsd-tdep.o): New dependency list.
6839 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6840 (fill_gregset): Use alphabsd_fill_reg.
6841 (supply_fpregset): Use alphabsd_supply_fpreg.
6842 (fill_fpregset): Use alphabsd_fill_fpreg.
6843 (fetch_inferior_registers): Use struct reg and struct fpreg
6844 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6845 and alphabsd_supply_fpreg.
6846 (store_inferior_registers): Use struct reg and struct fpreg
6847 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6848 and alphabsd_fill_fpreg.
6849 * alphabsd-tdep.c: New file.
6850 * alphabsd-tdep.h: New file.
6851 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6852 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6853 alphabsd_supply_fpreg.
6854 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6855 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6856
6857 2002-05-11 Eric Christopher <echristo@redhat.com>
6858
6859 * mips-tdep.c (mips_double_register_type): Fix thinko.
6860 (mips_single_register_type): Ditto.
6861 * MAINTAINERS: Add self.
6862
6863 2002-05-11 Mark Kettenis <kettenis@gnu.org>
6864
6865 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6866 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6867 right thing on architectures with different endianness and/or
6868 integer sizes.
6869
6870 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6871
6872 From Christian Limpach <chris@Pin.LU>
6873 * configure.in: Change sed expression which comments out
6874 NATDEPFILES to also comment out continuation lines.
6875 * configure: Regenerate.
6876
6877 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6878
6879 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6880 big patch.
6881
6882 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6883
6884 * sh-tdep.c: Include correct file.
6885
6886 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6887
6888 New support for sh64-elf (sh5) target.
6889
6890 * configure.tgt: For sh64-elf target, default to sh-elf.
6891
6892 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6893 (struct gdbarch_tdep): Add new fields for new registers and ABI
6894 info.
6895
6896 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6897 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6898 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6899 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6900 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6901 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6902 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6903 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6904 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6905 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6906 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6907 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6908 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6909 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6910 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6911 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6912 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6913 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6914 sign_extend, sh64_nofp_frame_init_saved_regs,
6915 sh64_init_extra_frame_info, sh64_get_saved_register,
6916 sh64_extract_struct_value_address, sh64_pop_frame,
6917 sh64_push_arguments, sh64_extract_return_value,
6918 sh64_store_return_value, sh64_show_media_regs,
6919 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6920 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6921 sh_sh64_register_virtual_type,
6922 sh_sh64_register_convert_to_virtual,
6923 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6924 sh64_register_read, sh64_pseudo_register_write,
6925 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6926 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6927 sh64_do_pseudo_register, sh_compact_do_registers_info,
6928 sh64_do_registers_info, sh_gdbarch_init): New functions.
6929
6930 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6931
6932 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6933
6934 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
6935
6936 * linespec.c (decode_line_1): Check for a double quote after
6937 a filename correctly.
6938
6939 2002-05-10 Jim Blandy <jimb@redhat.com>
6940
6941 Properly track the size of the current objfile's .debug_line section.
6942 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6943 (DWARF_LINE_SIZE): New macro.
6944 (dwarf2_build_psymtabs_hard): Record the line section's size in
6945 the partial symbol table.
6946 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6947 symbol table.
6948
6949 2002-05-10 Petr Sorfa <petrs@caldera.com>
6950
6951 * ia64-tdep.c: Handle breakpoints on L instruction type
6952 in MLX instruction bundle by moving the breakpoint to
6953 the third slot (X instruction type) as L holds only data.
6954
6955 2002-05-10 Kevin Buettner <kevinb@redhat.com>
6956
6957 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6958 (process_one_symbol): Complain about discarding local symbols
6959 due to a misplaced N_LBRAC entry.
6960
6961 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
6962
6963 From Daniel Berlin <dan@cgsoftware.com>
6964 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6965 decrease the depth we are at, in the case of templates.
6966
6967 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6968
6969 * mips-tdep.c (mips_float_register_type): New function.
6970 (mips_double_register_type): New function.
6971 (mips_print_register): Use them.
6972 (do_fp_register_row): Likewise.
6973
6974 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6975
6976 * signals/signals.c (signals): Remove conditional compilation around
6977 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6978 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
6979
6980 2002-05-09 Michael Snyder <msnyder@redhat.com>
6981
6982 * remote-rdp.c (remote_rdp_can_run): Remove.
6983
6984 2002-05-09 Tom Tromey <tromey@redhat.com>
6985
6986 * jv-valprint.c (java_val_print): Handle `char' as a special case
6987 of TYPE_CODE_INT.
6988
6989 2002-05-09 Michael Snyder <msnyder@redhat.com>
6990
6991 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6992 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
6993 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
6994 str r(0123),[sp,#nn].
6995 (arm_skip_prologue): Ditto. Also make disassembly
6996 order-independent by placing it in a loop.
6997
6998 2002-05-06 Michael Snyder <msnyder@redhat.com>
6999
7000 * stabsread.c (read_type): Add recognition for new attribute:
7001 "@V;" means that an array type is actually a vector.
7002 This is analogous to the vector flag that's been added to dwarf2.
7003
7004 2002-05-09 Mark Kettenis <kettenis@gnu.org>
7005
7006 * i386-tdep.h (i386_abi): New enum.
7007 (struct gdbarch_tdep): Replace os_ident member with abi.
7008 (i386_gdbarch_register_os_abi): New prototype.
7009 * i386-tdep.c (i386_abi_names): New array.
7010 (process_note_abi_tag_sections): Removed.
7011 (process_note_sections): New function.
7012 (i386_elf_abi_from_note, i386_elf_abi): New functions.
7013 (struct i386_abi_handler): New struct.
7014 (i386_abi_handler_list): New variable.
7015 (i386_gdbarch_register_os_abi): New function.
7016 (i386_gdbarch_init): Adapt for the changes given above.
7017
7018 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
7019
7020 * gregset.h: Say "GNU/Linux".
7021
7022 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
7023
7024 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7025 (build_gdbtypes): Build builtin_type_v2_float.
7026 (_initialize_gdbtypes): Register new builtin type.
7027
7028 2002-05-08 Andrew Cagney <ac131313@redhat.com>
7029
7030 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7031 (clear_gdbarch_swap): New function.
7032 (initialize_non_multiarch): Call.
7033 (gdbarch_update_p): Before calling init(), swap out and clear the
7034 existing architecture.
7035 * gdbarch.c: Regenerate.
7036
7037 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7038
7039 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7040 alphanbsd-tdep.c.
7041
7042 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7043
7044 * sh-nbsd-nat.c: Rename to...
7045 * shnbsd-nat.c: ...this.
7046 * sh-nbsd-tdep.c: Rename to...
7047 * shnbsd-tdep.c: ...this.
7048 * sh-nbsd-tdep.h: Rename to...
7049 * shnbsd-tdep.h: ...this.
7050 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7051 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7052
7053 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
7054
7055 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7056 concatenation for command help messages.
7057
7058 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7059
7060 * NEWS: Note new sh*-*-netbsdelf* configuration.
7061 * configure.host: Set gdb_host_cpu to sh for all sh*.
7062 (sh*-*-netbsdelf*): New host.
7063 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7064 (sh*-*-netbsdelf*): New target.
7065 * sh-nbsd-nat.c: New file.
7066 * sh-nbsd-tdep.c: New file.
7067 * sh-nbsd-tdep.h: New file.
7068 * config/sh/nbsd.mh: New file.
7069 * config/sh/nbsd.mt: New file.
7070 * config/sh/nm-nbsd.h: New file.
7071 * config/sh/tm-nbsd.h: New file.
7072
7073 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7074
7075 * sh-tdep.c (sh_osabi_names): Declare.
7076 (process_note_abi_tag_sections): New function.
7077 (get_elfosabi): Ditto.
7078 (sh_gdbarch_register_os_abi): Ditto.
7079 (sh_dump_tdep): Ditto.
7080 _initialize_sh_tdep): Use gdbarch_register to register
7081 sh_gdbarch_init and sh_dump_tdep.
7082 * config/sh/tm-sh.h (sh_osabi): Declare.
7083 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7084
7085 2002-05-07 Andrew Cagney <ac131313@redhat.com>
7086
7087 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7088 (thumb_scan_prologue): Ditto.
7089 (arm_find_callers_reg): Ditto.
7090 (arm_frame_chain): Ditto.
7091 (arm_init_extra_frame_info): Ditto.
7092 (arm_frame_saved_pc): Ditto.
7093 (arm_pop_frame): Ditto.
7094 (arm_push_return_address): New function.
7095 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7096 call_dummy_location, call_dummy_breakpoint_offset_p,
7097 call_dummy_breakpoint_offset, call_dummy_p,
7098 call_dummy_stack_adjust_p, call_dummy_words,
7099 sizeof_call_dummy_words, call_dummy_start_offset,
7100 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7101 call_dummy_address, push_return_address and push_dummy_frame for
7102 generic dummy frames.
7103
7104 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7105
7106 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7107 size computation for alloca.
7108 (sh_fp_frame_init_saved_regs): Likewise.
7109
7110 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
7111
7112 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7113 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
7114 * arm-tdep.c (arm_store_return_value): Use them.
7115 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7116 * remote-rdp.c (remote_rdp_fetch_register): Use
7117 ARM_MAX_REGISTER_RAW_SIZE.
7118 (remote_rdp_store_register): Likewise.
7119
7120 2002-05-07 Michal Ludvig <mludvig@suse.cz>
7121
7122 * dwarf2cfi.c: Code cleanup, removed unused variables,
7123 added default labels to switch {} statements.
7124 * x86-64-tdep.c: Ditto.
7125 * x86-64-linux-nat.c: Ditto.
7126
7127 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7128
7129 * solib.h: Protect against multiple inclusion.
7130
7131 2002-05-06 Jim Blandy <jimb@redhat.com>
7132
7133 Add first preprocessor macro-expansion files.
7134 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7135 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7136 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7137 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7138 (COMMON_OBS): Add macrotab.o, macroexp.o.
7139 (macroexp.o, macrotab.o): New rules.
7140
7141 Separate the job of reading the line number info statement program
7142 header (...expialidocious) out into its own function.
7143 * dwarf2read.c (struct line_head, struct filenames, struct
7144 directories): Replace with...
7145 (struct line_header): New structure, containing the full
7146 contents of the statement program header, including the
7147 include directory and file name tables.
7148 (read_file_scope): If we have line number info, instead of just
7149 calling dwarf_decode_lines to do all the work, call
7150 dwarf_decode_line_header first to get a `struct line_header'
7151 containing the data in the statement program header, and then
7152 pass that to dwarf_decode_lines, which will pick up where that
7153 left off. Be sure to clean up the `struct line_header' object.
7154 (dwarf_decode_line_header, free_line_header, add_include_dir,
7155 add_file_name): New functions.
7156 (dwarf_decode_lines): Move all the code to read the statement
7157 program header into dwarf_decode_line_header. Take the line
7158 header it built as the first argument, instead of the offset to
7159 the compilation unit's line number info. Use the new `struct
7160 line_header' type instead of the old structures. No need to do
7161 cleanups here now, since we don't allocate anything.
7162 (dwarf2_statement_list_fits_in_line_number_section,
7163 dwarf2_line_header_too_long): New complaints.
7164
7165 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
7166
7167 * gdbtypes.c (init_vector_type): New function.
7168 (build_builtin_type_vec128): Simplify the representation of SIMD
7169 registers.
7170 (build_gdbtypes): Initialize new builtin vector types.
7171 (_initialize_gdbtypes): Register new vector types with gdbarch.
7172 (builtin_type_v4_float, builtin_type_v4_int32,
7173 builtin_type_v8_int16, builtin_type_v16_int8,
7174 builtin_type_v2_int32, builtin_type_v4_int16,
7175 builtin_type_v8_int8): New (renamed) SIMD types.
7176
7177 2002-05-06 Mark Kettenis <kettenis@gnu.org>
7178
7179 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7180 (i387_fill_fxsave): Likewise.
7181
7182 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
7183
7184 * alpha-tdep.c (alpha_extract_return_value): Don't use
7185 non-constant array size in prototype.
7186
7187 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7188
7189 From Brian Taylor <briant at model dot com>:
7190 * ui-out.c (ui_out_field_core_addr): Use the function
7191 longest_local_hex_string_custom'to format addresses > 32 bits
7192 wide.
7193
7194 * ui-out.c (ui_out_field_core_addr): Update comment.
7195
7196 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7197
7198 * stack.c (select_and_print_frame): Make static. Delete the
7199 parameter `level'.
7200 (func_command): Update call.
7201 (select_frame_command): Delete code computing the frame level.
7202 * frame.h (select_and_print_frame): Delete declaration.
7203
7204 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7205
7206 * sparc-tdep.c (sparc_get_saved_register): Comment why
7207 get_prev_frame call is safe.
7208
7209 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7210
7211 * frame.h (select_frame): Delete level parameter.
7212 * stack.c (select_frame): Update. Use frame_relative_level to
7213 obtain the frame's level.
7214 (select_and_print_frame): Update call.
7215 (select_frame_command): Ditto.
7216 (up_silently_base): Ditto.
7217 (down_silently_base): Ditto.
7218 * ocd.c (ocd_start_remote): Ditto.
7219 * remote-rdp.c (remote_rdp_open): Ditto.
7220 * remote-mips.c (mips_initialize): Ditto.
7221 (common_open): Ditto.
7222 * remote-e7000.c (e7000_start_remote): Ditto.
7223 * m3-nat.c (select_thread): Ditto.
7224 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7225 (child_get_current_exception_event): Ditto.
7226 * varobj.c (varobj_create): Ditto.
7227 (varobj_update): Ditto.
7228 (c_value_of_root): Ditto.
7229 * tracepoint.c (finish_tfind_command): Ditto.
7230 * corelow.c (core_open): Ditto.
7231 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7232 * thread.c (info_threads_command): Ditto.
7233 (switch_to_thread): Ditto.
7234 * infrun.c (normal_stop): Ditto.
7235 (restore_selected_frame): Ditto.
7236 (restore_inferior_status): Ditto.
7237 * breakpoint.c (insert_breakpoints): Ditto.
7238 (watchpoint_check): Ditto.
7239 (bpstat_stop_status): Ditto.
7240 (do_enable_breakpoint): Ditto.
7241 * blockframe.c (flush_cached_frames): Ditto.
7242 (reinit_frame_cache): Ditto.
7243
7244 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7245
7246 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7247 maintainer.
7248
7249 2002-05-04 Jim Blandy <jimb@redhat.com>
7250
7251 * gdbtypes.c (replace_type): Doc fix.
7252
7253 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7254
7255 * valprint.c (strcat_longest): Delete commented out function.
7256 Update copyright.
7257
7258 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7259
7260 * MAINTAINERS: Mark a29k as deleted.
7261 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7262 Move new configurations to the top.
7263 * configure.tgt: Remove a29k.
7264 * config/a29k/tm-vx29k.h: Delete.
7265 * config/a29k/vx29k.mt: Delete.
7266 * config/a29k/tm-a29k.h: Delete.
7267 * config/a29k/a29k-udi.mt: Delete.
7268 * config/a29k/a29k.mt: Delete.
7269 * a29k-tdep.c: Delete.
7270 * remote-udi.c: Delete.
7271 * remote-mm.c: Delete.
7272 * remote-eb.c: Delete.
7273 * remote-adapt.c: Delete.
7274 * Makefile.in: Remove obsolete code.
7275 * config/s390/s390x.mt: Ditto.
7276 * config/s390/s390.mt: Ditto.
7277 * config/sparc/sparclynx.mh: Ditto.
7278 * config/sparc/linux.mh: Ditto.
7279 * config/pa/hppaosf.mh: Ditto.
7280 * config/pa/hppabsd.mh: Ditto.
7281 * config/ns32k/nbsd.mt: Ditto.
7282 * config/mips/vr5000.mt: Ditto.
7283 * config/m68k/sun3os4.mh: Ditto.
7284 * config/m68k/nbsd.mt: Ditto.
7285 * config/m68k/m68klynx.mh: Ditto.
7286 * config/m32r/m32r.mt: Ditto.
7287 * config/i386/x86-64linux.mt: Ditto.
7288 * config/i386/nbsdelf.mt: Ditto.
7289 * config/i386/nbsd.mt: Ditto.
7290 * config/i386/i386lynx.mh: Ditto.
7291
7292 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7293
7294 * target.c (debug_print_register): New function. Handle oversize
7295 registers.
7296 (debug_to_fetch_registers): Call.
7297 (debug_to_store_registers): Call.
7298
7299 2002-05-03 Jim Blandy <jimb@redhat.com>
7300
7301 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7302 (read_type): Doc fix.
7303 * gdbtypes.c (replace_type): Doc fix.
7304
7305 * stabsread.c (multiply_defined_struct): New complaint.
7306 (read_struct_type): If the type we were passed isn't empty, or
7307 incomplete, don't read the new struct type into it; complain,
7308 and return the original type unchanged. Take a new `type_code'
7309 argument, which is the type code for the new type.
7310 (read_type): Rather than storing the type's type code here, pass
7311 it as an argument to read_struct_type, and let that take care of
7312 storing it. That way, we don't overwrite the original type code,
7313 so read_struct_type can use it to decide whether we're overwriting
7314 something we shouldn't.
7315 (complain_about_struct_wipeout): New function.
7316
7317 2002-05-03 Andrew Cagney <ac131313@redhat.com>
7318
7319 * gdbarch.sh: Assert that gdbarch is non-NULL.
7320 * gdbarch.c: Regenerate.
7321
7322 2002-05-03 Jason Merrill <jason@redhat.com>
7323
7324 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7325 and return NULL.
7326
7327 2002-05-03 Michal Ludvig <mludvig@suse.cz>
7328
7329 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7330 (x86_64_dwarf2gdb_regno_map_length),
7331 (x86_64_dwarf2_reg_to_regnum): Added.
7332 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7333 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7334 (_initialize_x86_64_tdep): Synced with the change above.
7335 (x86_64_skip_prologue): Reformulated message.
7336
7337 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7338
7339 * f-exp.y: Also use new prev_lexptr variable
7340 to improve error reporting. Based on Michael Snyder
7341 2002-04-24 dated patch to c-exp.y.
7342 * jv-exp.y: Likewise.
7343 * m2-exp.y: Likewise.
7344
7345 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
7346
7347 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7348 we are dealing with vectors.
7349
7350 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7351
7352 * config/m68k/tm-nbsd.h: Obvious fix,
7353 correct machine name.
7354
7355 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7356
7357 * p-typeprint.c (pascal_type_print_base): Add support
7358 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7359
7360 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7361
7362 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7363 for fondamental pascal 'char' type.
7364
7365 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7366
7367 * p-lang.h (is_pascal_string_type): Declaration changed,
7368 new sixth argument of type char ** added.
7369 * p-lang.c (is_pascal_string_type): Implementation
7370 changed. Args length_pos, length_size, string_pos, char_size
7371 can now be NULL. New argument arrayname set to the field
7372 name of the char array. Return value set to char array
7373 field index plus one.
7374 * p-valprint.c (pascal_val_print): Adapt to new declaration of
7375 is_pascal_string_type function.
7376
7377 2002-05-02 Andrew Cagney <cagney@redhat.com>
7378
7379 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7380 <cagney@redhat.com> change.
7381 * gdbarch.c: Regenerate.
7382
7383 2002-05-02 Andrew Cagney <cagney@redhat.com>
7384
7385 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7386 before probing for a new one. Detect errorenous gdbarch_init
7387 functions.
7388 * gdbarch.c: Regenerate.
7389
7390 2002-05-01 Andrew Cagney <cagney@redhat.com>
7391
7392 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7393 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7394 * config/v850/tm-v850.h: Ditto. Update copyright.
7395
7396 2002-04-30 Andrew Cagney <ac131313@redhat.com>
7397
7398 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7399 current_gdbarch.
7400
7401 2002-04-30 Michael Snyder <msnyder@redhat.com>
7402
7403 * arm-tdep.c: Whitespace clean-ups.
7404 (arm_skip_prologue): Fix thinko; two lines
7405 should have been removed as part of 4/24 change.
7406
7407 2002-04-30 Kevin Buettner <kevinb@redhat.com>
7408
7409 * rs6000-tdep.c: Added comment describing how fpscr register
7410 numbers were chosen.
7411
7412 2002-04-30 Michael Snyder <msnyder@redhat.com>
7413
7414 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7415
7416 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7417
7418 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7419 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7420 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7421
7422 2002-04-29 Kevin Buettner <kevinb@redhat.com>
7423
7424 From Louis Hamilton <hamilton@redhat.com>:
7425 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7426 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7427 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7428 not bfd-private xcoff data, to determine wordsize.
7429 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7430
7431 2002-04-29 Andrew Cagney <ac131313@redhat.com>
7432
7433 GDB 5.2 released from 5.2 branch.
7434
7435 2002-04-29 Michal Ludvig <mludvig@suse.cz>
7436
7437 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7438 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7439 (x86_64_register_info_table): Added comments with register numbers.
7440
7441 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7442
7443 * rs6000-tdep.c (rs6000_extract_return_value,
7444 rs6000_store_return_value): Handle returning vectors.
7445 (rs6000_gdbarch_init): Use
7446 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7447 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7448 New function.
7449 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7450 vectors.
7451 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7452 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7453
7454 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7455
7456 * hpread.c (hpread_psymtab_to_symtab_1,
7457 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7458 with fprintf_unfiltered (gdb_stderr,...).
7459
7460 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7461
7462 * remote-array.c (printf_monitor, write_monitor,
7463 array_insert_breakpoint, array_remove_breakpoint ):
7464 Replace fprintf (stderr,...
7465 with fprintf_unfiltered (gdb_stderr,....
7466 * remote-es.c: Likewise.
7467 * remote-os9k.c: Likewise.
7468 * remote-st.c: Likewise.
7469
7470 2002-04-28 Andreas Schwab <schwab@suse.de>
7471
7472 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7473 linux-proc.o and gcore.o.
7474
7475 2002-04-26 Michal Ludvig <mludvig@suse.cz>
7476
7477 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7478 code without frame pointers.
7479
7480 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7481
7482 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7483 ON_STACK is needed.
7484
7485 2002-04-26 Ben Elliston <bje@redhat.com>
7486
7487 * target.c (do_xfer_memory): Correct reference to the new option
7488 "trust-readonly-sections".
7489
7490 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
7491
7492 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7493 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7494 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7495 vectors.
7496 (read_array_type): Record the fact that this array type is really a
7497 vector (i.e. are passed in by value).
7498
7499 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7500
7501 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7502 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7503 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7504 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7505 * alpha-linux-tdep.c: Include frame.h.
7506 (alpha_linux_sigcontext_addr): New function.
7507 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7508 alpha_linux_sigcontext_addr.
7509 * alpha-osf1-tdep.c: Include gdbcore.h.
7510 (alpha_osf1_sigcontext_addr): New function.
7511 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7512 alpha_osf1_sigcontext_addr.
7513 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7514 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7515
7516 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7517
7518 * stack.c (selected_frame_level):
7519 (select_frame): Do not set selected_frame_level.
7520 * frame.h (selected_frame_level): Delete declaration.
7521
7522 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7523
7524 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7525 convert_from_func_ptr-addr when AIX / PowerOpen.
7526
7527 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7528
7529 * valops.c (hand_function_call): Call
7530 generic_save_call_dummy_addr.
7531 * frame.h (generic_save_call_dummy_addr): Declare.
7532 * blockframe.c (struct dummy_frame): Add fields call_lo and
7533 call_hi.
7534 (generic_find_dummy_frame): Check for PC in range call_lo to
7535 call_hi instead of entry_point_address.
7536 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7537 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7538 (generic_save_call_dummy_addr): New function.
7539
7540 2002-04-24 David S. Miller <davem@redhat.com>
7541
7542 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7543 sparc_skip_prologue.
7544 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7545 information to find prologue when possible.
7546 (sparc_prologue_frameless_p): Call examine_prologue directly.
7547 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7548 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7549 second argument.
7550 (SKIP_PROLOGUE): Likewise.
7551
7552 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7553
7554 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7555 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7556 indicate that the condition it was testing is always true.
7557 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7558 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7559 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7560
7561 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7562
7563 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7564 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7565 tdep->jb_pc and tdep->jb_elt_size.
7566 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7567 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7568 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7569 * alpha-nat.c (get_longjmp_target): Remove.
7570 (JB_ELEMENT_SIZE): Ditto.
7571 (JB_PC): Ditto.
7572 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7573 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7574 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7575 to alpha_get_longjmp_target.
7576 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7577 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7578 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7579
7580 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7581
7582 * README: Update to GDB 5.2.
7583
7584 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7585
7586 * gdbarch.sh (LC_ALL): Set to `c'.
7587
7588 2002-04-25 Theodore A. Roth <troth@verinet.com>
7589
7590 * avr-tdep.c: Ran through gdb_indent.sh.
7591
7592 2002-04-25 Theodore A. Roth <troth@verinet.com>
7593
7594 * MAINTAINERS: Add myself as AVR maintainer.
7595 * NEWS: Note new target avr.
7596
7597 2002-04-25 Theodore A. Roth <troth@verinet.com>
7598
7599 * Makefile.in: Add support for AVR target.
7600 * configure.tgt: Add support for AVR target.
7601 * avr-tdep.c: New file
7602 * config/avr/avr.mt: New file.
7603
7604 2002-04-25 Theodore A. Roth <troth@verinet.com>
7605
7606 * MAINTAINERS: Add myself to write-after-approval.
7607
7608 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7609
7610 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7611 with fprintf_unfiltered (gdb_stderr,....
7612
7613 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7614
7615 Fix PR gdb/508.
7616 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7617
7618 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7619
7620 * p-exp.y: Also use new prev_lexptr variable
7621 to improve error reporting. Based on Michael Snyder
7622 2002-04-24 dated patch to c-exp.y.
7623
7624 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7625
7626 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7627 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7628 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7629 to 0.
7630 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7631 and struct value.
7632 (FUNCTION_START_OFFSET): Remove.
7633 (BREAKPOINT): Ditto.
7634
7635 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7636
7637 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7638 * NEWS: Ditto.
7639
7640 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7641
7642 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7643 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7644 alpha_linux_pc_in_sigtramp.
7645 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7646 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7647 alpha_osf1_pc_in_sigtramp.
7648 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7649 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7650 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7651 alphafbsd_pc_in_sigtramp.
7652 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7653 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7654 alphanbsd_pc_in_sigtramp.
7655 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7656 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7657
7658 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7659
7660 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7661
7662 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7663
7664 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7665 alphanbsd-tdep.c.
7666 (alphanbsd-nat.o): New dependency list.
7667 (alphanbsd-tdep.o): Ditto.
7668 * NEWS: Note new native NetBSD/alpha configuration.
7669 * alphanbsd-nat.c: New file.
7670 * alphanbsd-tdep.c: Ditto.
7671 * configure.host (alpha*-*-netbsd*): New host.
7672 * configure.tgt (alpha*-*-netbsd*): New target.
7673 * config/alpha/nbsd.mh: New file.
7674 * config/alpha/nbsd.mt: Ditto.
7675 * config/alpha/nm-nbsd.h: Ditto.
7676 * config/alpha/tm-nbsd.h: Ditto.
7677
7678 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7679
7680 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7681 (alpha-osf1-tdep.o): New dependency list.
7682 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7683 and skip_sigtramp_frame members.
7684 * alpha-linux-tdep.c: Include gdbcore.h.
7685 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7686 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7687 * alpha-osf1-tdep.c: New file.
7688 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7689 alpha-osf1-dep.c.
7690 (alpha_frame_past_sigtramp_frame): New function.
7691 (alpha_dynamic_sigtramp_offset): Ditto.
7692 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7693 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7694 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7695 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7696 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7697 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7698 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7699 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7700 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7701 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7702 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7703 to find_solib_trampoline_target.
7704 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7705 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7706 (SKIP_TRAMPOLINE_CODE): Remove.
7707 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7708 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7709 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7710 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7711 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7712 (PROC_SIGTRAMP_MAGIC): Ditto.
7713 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7714 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7715 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7716 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7717 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7718
7719 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7720
7721 * NEWS: Note that Alpha targets are now multi-arch.
7722
7723 2002-04-24 Michael Snyder <msnyder@redhat.com>
7724
7725 * parser-defs.h (prev_lexptr): New external variable.
7726 * parse.c (parse_exp_1): Set prev_lexptr to null before
7727 calling the language-specific parser.
7728 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7729 (yyerror): Use prev_lexptr in error reporting.
7730
7731 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
7732
7733 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7734 * gregset.h: If FILL_FPXREGSET is defined, provide
7735 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7736 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7737 is defined, call fill_fpxregset.
7738
7739 2002-04-24 Roland McGrath <roland@frob.com>
7740
7741 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7742 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7743 (supply_gregset, supply_fpregset): New functions.
7744
7745 * gnu-nat.c (gnu_find_memory_regions): New function.
7746 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7747 (gnu_xfer_memory): Add a cast.
7748
7749 2002-04-24 Michael Snyder <msnyder@redhat.com>
7750
7751 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
7752 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7753 of argument regs ("str r(0123), [r11, #-nn"]).
7754 (arm_skip_prologue): Better handling for frameless functions.
7755 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7756 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7757
7758 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7759
7760 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7761 NUM_PSEUDO_REGS can be used.
7762
7763 2002-04-24 Andrew Cagney <ac131313@redhat.com>
7764
7765 * arch-utils.h: Update copyright.
7766
7767 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7768 * gdbarch.h, gdbarch.c: Re-generate.
7769
7770 * inferior.h (IN_SIGTRAMP): Delete definition.
7771 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7772 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7773
7774 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7775 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7776 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7777 (find_proc_framesize): Ditto.
7778 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7779 (alpha_init_extra_frame_info): Ditto.
7780 * infrun.c (handle_inferior_event): Ditto.
7781 (handle_inferior_event): Ditto.
7782 (check_sigtramp2): Ditto.
7783 * blockframe.c (create_new_frame): Ditto.
7784 (get_prev_frame): Ditto.
7785 * ppc-linux-tdep.c: Update comments.
7786 * i386-linux-tdep.c: Update comments.
7787 * breakpoint.c (bpstat_what): Update comment.
7788
7789 2002-04-24 David S. Miller <davem@redhat.com>
7790
7791 * i960-tdep.c (register_in_window_p): New function.
7792 (i960_find_saved_register): Use it instead of
7793 REGISTER_IN_WINDOW_P.
7794 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7795
7796 * symtab.h (find_stab_function_addr): Kill extern.
7797 * minsyms.c (find_stab_function_addr): Remove from here...
7798 * dbxread.c: ... to here, and mark it static.
7799
7800 2002-04-20 David S. Miller <davem@redhat.com>
7801
7802 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7803 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7804
7805 2002-04-21 David S. Miller <davem@redhat.com>
7806
7807 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7808 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7809 (vx_write_register): Likewise.
7810
7811 2002-04-23 J. Brobecker <brobecker@gnat.com>
7812
7813 * source.c (is_regular_file): New function.
7814 (openp): Check wether file to open is a regular file
7815 to avoid opening directories.
7816
7817 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7818
7819 * findvar.c (extract_signed_integer): Cast printf argument
7820 to suppress format warning.
7821 (extract_unsigned_integer): Likewise.
7822 * infcmd.c (registers_info): Likewise.
7823 * top.c (get_prompt_1): Likewise.
7824 * valops.c (value_assign): Likewise.
7825 * valprint.c (print_decimal): Likewise.
7826
7827 2002-04-22 H.J. Lu (hjl@gnu.org)
7828
7829 * c-exp.y (typebase): Support
7830
7831 [long|long long|short] [signed|unsigned] [int|]
7832
7833 and
7834
7835 signed [long|long long|short] int
7836
7837 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7838
7839 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7840 and vax-tdep.h.
7841 * vax-tdep.h: New file.
7842 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7843 Make several routines static.
7844 (vax_get_saved_register): New function.
7845 (vax_gdbarch_init): New function.
7846 (_initialize_vax_tdep): Register vax_gdbarch_init.
7847 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7848 Remove macros now under the control of gdbarch.
7849
7850 2002-04-22 Michael Snyder <msnyder@redhat.com>
7851
7852 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7853 Some whitespace and coding standards tweaks.
7854
7855 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7856
7857 * vax-tdep.c: Include regcache.h.
7858 (vax_call_dummy_words): New.
7859 (sizeof_vax_call_dummy_words): New.
7860 (vax_fix_call_dummy): New function.
7861 (vax_saved_pc_after_call): Ditto.
7862 * config/vax/tm-vax.h: Don't include regcache.h.
7863 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7864 (CALL_DUMMY): Remove.
7865 (CALL_DUMMY_WORDS): Define.
7866 (SIZEOF_CALL_DUMMY_WORDS): Define.
7867 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7868
7869 2002-04-18 Michael Snyder <msnyder@redhat.com>
7870
7871 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7872
7873 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7874
7875 * vax-tdep.c (vax_frame_chain): New function.
7876 (vax_push_dummy_frame): Ditto.
7877 (vax_pop_frame): Ditto.
7878 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7879 (FRAMELESS_FUNCTION_INVOCATION): Use
7880 generic_frameless_function_invocation_not.
7881 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7882 (POP_FRAME): Use vax_pop_frame.
7883
7884 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7885
7886 * vax-tdep.c (vax_store_struct_return): New function.
7887 (vax_extract_return_value): Ditto.
7888 (vax_store_return_value): Ditto.
7889 (vax_extract_struct_value_address): Ditto.
7890 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7891 vax_store_struct_return.
7892 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7893 (STORE_RETURN_VALUE): Use vax_store_return_value.
7894 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7895
7896 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7897
7898 * vax-tdep.c (vax_frame_saved_pc): New function.
7899 (vax_frame_args_address_correct): Ditto.
7900 (vax_frame_args_address): Ditto.
7901 (vax_frame_locals_address): Ditto.
7902 (vax_frame_num_args): Move code to be in proximity to
7903 other frame-related functions.
7904 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7905 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7906 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7907 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7908 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7909
7910 2002-04-22 H.J. Lu (hjl@gnu.org)
7911
7912 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7913 includedir.
7914
7915 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7916
7917 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7918 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7919 (FRAME_INIT_SAVED_REGS): New macro.
7920
7921 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7922
7923 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7924
7925 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7926
7927 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7928 where needed.
7929 (fetch_osf_core_registers): Likewise.
7930 (supply_gregset): Likewise.
7931
7932 2002-04-22 J. Brobecker <brobecker@gnat.com>
7933
7934 * symfile.h (get_section_index): Define.
7935 * symfile.c (get_section_index): New function.
7936 * mdebugread.c (SC_IS_SBSS): New macro.
7937 (SC_IS_BSS): Return true for the scBss storage class only, as
7938 the scSBss storage class refers to the .sbss section.
7939 (parse_partial_symbols): Discard the symbols which associated
7940 section does not exist.
7941 Make sure to use the .sbss section index for symbols which
7942 storage class is scBss, rather than using the .bss section index.
7943
7944 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7945
7946 * vax-tdep.c: Update copyright years.
7947 (vax_register_name): New function.
7948 (vax_register_byte): Ditto.
7949 (vax_register_raw_size): Ditto.
7950 (vax_register_virtual_size): Ditto.
7951 (vax_register_virtual_type): Ditto.
7952 * config/vax/tm-vax.h: Update copyright years.
7953 (REGISTER_NAMES): Remove.
7954 (REGISTER_NAME): Define.
7955 (REGISTER_BYTE): Use vax_register_byte.
7956 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7957 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7958 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7959
7960 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7961
7962 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7963 declaration
7964 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7965
7966 2002-04-21 David S. Miller <davem@redhat.com>
7967
7968 * arch-utils.c (generic_prologue_frameless_p): Kill
7969 SKIP_PROLOGUE_FRAMELESS_P code.
7970 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7971 references.
7972 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7973 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7974 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7975 references.
7976 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7977 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7978 (sparc_gdbarch_init): Pass it to
7979 set_gdbarch_prologue_frameless_p.
7980
7981 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7982
7983 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7984 (alphabsd-nat.o): New dependency list.
7985
7986 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7987
7988 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7989 alphafbsd-tdep.c.
7990 (alpha-linux-tdep.o): New dependency list.
7991 (alphafbsd-tdep.o): Likewise.
7992
7993 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7994
7995 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7996 to here...
7997 * alpha-tdep.c: ...from here.
7998 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7999
8000 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8001
8002 * config/alpha/tm-alpha.h: Move alpha_software_single_step
8003 prototype from here...
8004 * alpha-tdep.h: ...to here.
8005
8006 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8007
8008 * frame.h (selected_frame_level): Document as deprecated.
8009 (frame_relative_level): Declare.
8010 * stack.c (frame_relative_level): New function.
8011 (selected_frame_level): Document as deprecated.
8012 (select_frame): Do not set the selected_frame_level.
8013
8014 * stack.c (frame_info, record_selected_frame): Update.
8015 (frame_command, current_frame_command): Update.
8016 (up_silently_base, up_command, down_silently_base): Update.
8017 (down_command): Update.
8018 * inflow.c (kill_command): Update.
8019 * tracepoint.c (finish_tfind_command): Update.
8020 * corelow.c (core_open): Update.
8021 * thread.c (info_threads_command): Update.
8022 (do_captured_thread_select): Update.
8023 * infcmd.c (finish_command): Update.
8024 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8025
8026 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8027
8028 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8029
8030 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8031
8032 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8033 type const.
8034
8035 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8036
8037 * alphafbsd-tdep.c: Update copyright years. Include
8038 alpha-tdep.h.
8039 (alphafbsd_use_struct_convention): Make static.
8040 (alphafbsd_init_abi): New function.
8041 (_initialize_alphafbsd_tdep): New function.
8042 * config/alpha/tm-fbsd.h: Update copyright years.
8043 (USE_STRUCT_CONVENTION): Remove.
8044
8045 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8046
8047 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8048 an Alpha ABI variant.
8049 (alpha_abi_handler_list): Declare.
8050 (alpha_gdbarch_register_os_abi): New function.
8051 (alpha_gdbarch_init): Give registered ABI variant handlers a
8052 chance to tweak the gdbarch once we have set up defaults.
8053 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8054
8055 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8056
8057 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8058 to standard_coerce_float_to_double.
8059 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8060
8061 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8062
8063 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8064 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8065 from gdbarch_tdep rather than a constant.
8066 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8067 the default text address for all Alpha Unix ABIs.
8068 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8069 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8070
8071 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8072
8073 * alpha-tdep.h: New file. Includes several Alpha target constants
8074 taken from...
8075 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8076 let gdbarch deal with.
8077 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8078 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8079 to dependency list.
8080 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8081 Alpha target register names.
8082 * alphabsd-nat.c: Likewise.
8083 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8084 Alpha target register names. Make serveral routines static.
8085 (alpha_get_saved_register): New function.
8086 (alpha_abi_names): New.
8087 (process_note_abi_tag_sections): New function.
8088 (get_elfosabi): New function.
8089 (alpha_gdbarch_init): New function.
8090 (alpha_dump_tdep): New function.
8091 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8092
8093 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8094
8095 * frame.c (find_saved_register): Delete #ifdef
8096 HAVE_REGISTER_WINDOWS code.
8097 * config/sparc/tm-sparc.h: Update comments.
8098 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8099
8100 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8101
8102 * i960-tdep.c (i960_find_saved_register): New function.
8103 (i960_get_saved_register): New function.
8104 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8105 (i960_get_saved_register): Declare.
8106 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8107
8108 2002-04-20 David S. Miller <davem@redhat.com>
8109
8110 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8111
8112 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8113
8114 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8115 instead of NUM_PSEUDO_REGS.
8116
8117 2002-04-20 David S. Miller <davem@redhat.com>
8118
8119 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8120 GDB_MULTI_ARCH_PARTIAL
8121 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8122 define, let tm-sp64.h do it.
8123
8124 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8125
8126 * frame.c (find_saved_register): Avoid a NULL pointer
8127 dereference and actually walk the frame list.
8128
8129 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8130
8131 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8132 sorted in most most-recent-used order. Document.
8133 * gdbarch.h, gdbarch.c: Regenerate.
8134
8135 2002-04-19 Andrew Cagney <ac131313@redhat.com>
8136
8137 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8138 instead of ->prev.
8139 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8140 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8141 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8142 instead of ->prev.
8143
8144 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
8145
8146 Fix PR gdb/471.
8147 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8148 (build_builtin_type_vec128): Ditto.
8149 (append_composite_type_field): Fix calculation of type length in
8150 union case.
8151
8152 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8153
8154 * config/djgpp/README: Update.
8155
8156 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8157 compiler warnings.
8158
8159 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8160
8161 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8162 (alpha_setup_arbitrary_frame): ...to this.
8163 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8164 for alpha_setup_arbitrary_frame.
8165
8166 2002-04-18 Andrew Cagney <cagney@redhat.com>
8167
8168 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8169 * gdbarch.h, gdbarch.c: Regenerate.
8170
8171 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8172 * target.h (memory_breakpoint_from_pc): Update declaration.
8173 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8174
8175 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8176 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8177 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8178 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8179 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8180 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8181 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8182 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8183 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8184 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8185 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8186 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8187
8188 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8189 const pointer.
8190 * monitor.c (monitor_insert_breakpoint): Ditto.
8191 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8192
8193 * config/mcore/tm-mcore.h: Update copyright.
8194 * mem-break.c: Ditto.
8195 * xstormy16-tdep.c: Ditto.
8196
8197 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8198
8199 * p-exp.y: Add precedence rule for '^' token.
8200 This removes the shift/reduce conflicts.
8201 Remove the comment concerning these shift/reduce conflicts.
8202
8203 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
8204
8205 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8206 (registers_powerpc_nofp): New register set for processors
8207 without floating point unit.
8208
8209 2002-04-18 David S. Miller <davem@redhat.com>
8210
8211 * MAINTAINERS: Add myself to write-after-approval.
8212
8213 2002-04-17 Michael Snyder <msnyder@redhat.com>
8214
8215 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8216
8217 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8218
8219 * rs6000-tdep.c (frame_initial_stack_address): Use
8220 frame_register_read to read the alloca_reg.
8221
8222 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8223
8224 * frame.c (find_saved_register): Find saved registers in the next
8225 not prev frame.
8226 Fix PR gdb/365.
8227
8228 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8229
8230 * gdbarch.sh (LANG): Set to ``c''.
8231
8232 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8233
8234 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8235
8236 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8237
8238 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8239 Update copyright.
8240
8241 * hpread.c (hpread_get_lntt): Add declaration.
8242 Also fix PR gdb/391.
8243
8244 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8245
8246 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8247 * aclocal.m4, configure: Re-generate.
8248 Fix PR gdb/391.
8249
8250 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8251
8252 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8253 instead of tm_print_insn.
8254
8255 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8256
8257 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8258
8259 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8260
8261 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8262 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8263 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8264
8265 2002-04-12 Don Howard <dhoward@redhat.com>
8266
8267 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8268 max_user_call_depth.
8269 (init_cmd_lists): Initialize the new value;
8270 * cli/cli-script.c (execute_user_command): Limit the call depth of
8271 user defined commands. This avoids a core-dump when user commands
8272 are infinitly recursive.
8273
8274 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8275
8276 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8277 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8278 from tdep struct instead of DEFAULT_LR_SAVE.
8279 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8280 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8281 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8282
8283 2002-04-12 Michael Snyder <msnyder@redhat.com>
8284
8285 * Remote.c: Spelling fix.
8286 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8287 If no symbol found for "sbrk", try "_sbrk".
8288 (make_output_phdrs): Use bfd_section_name.
8289 (gcore_copy_callback): Use bfd_section_name.
8290 * eval.c: Indentation fix-ups.
8291 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8292 in case it gets applied to an address that is already
8293 in the instruction space.
8294 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8295 * symfile.c: Fix indentation, long lines.
8296 * source.c: White space fix-up.
8297
8298 2002-04-12 Andrew Cagney <cagney@redhat.com>
8299
8300 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8301 * frame.c (frame_register_read): New function. Return non-zero on
8302 success.
8303 (read_relative_register_raw_bytes_for_frame): Delete.
8304 (read_relative_register_raw_bytes): Delete.
8305 * frame.h (frame_register_read): Declare.
8306 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8307 * sh-tdep.c: Ditto.
8308 * infcmd.c (do_registers_info): Ditto.
8309 * hppa-tdep.c: Ditto.
8310 * rs6000-tdep.c: Ditto.
8311 * h8500-tdep.c: Ditto.
8312 * mips-tdep.c: Ditto.
8313 * h8300-tdep.c: Ditto.
8314 * z8k-tdep.c: Ditto.
8315
8316 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8317
8318 From Jimi X <jimix@watson.ibm.com>:
8319 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8320 64-bit SysV ABI.
8321
8322 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8323
8324 From Jimi X <jimix@watson.ibm.com>:
8325 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8326 bfd info.
8327
8328 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8329
8330 From Jimi X <jimix@watson.ibm.com>:
8331 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8332 register sets for these processor variants.
8333
8334 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
8335
8336 * regformats/reg-ppc.dat: Support FPSCR.
8337
8338 2002-04-11 Kevin Buettner <kevinb@redhat.com>
8339
8340 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8341 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8342 Add fpscr as an invalid/unfetchable register.
8343 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8344 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8345 (fill_fpregset): Add support for register fpscr.
8346 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8347 (fill_gregset): Account for the fact that register ``mq'' might
8348 not exist.
8349 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8350 (registers_power): Add fpscr to register set at slot 71.
8351 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8352 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8353
8354 2002-04-11 Michael Snyder <msnyder@redhat.com>
8355
8356 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8357 * configure: Regenerate.
8358 * config.in: Regenerate.
8359 * acconfig.h: Add define for _SYSCALL32.
8360 * core-sol2.c: Remove #define _SYSCALL32.
8361 * solib-legacy.c: Remove #define _SYSCALL32.
8362
8363 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8364
8365 * stack.c (select_frame): Cleanup internal error message, do not
8366 use %p.
8367
8368 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8369
8370 * stack.c (select_frame): Check that selected_frame and the
8371 specified level are as expected.
8372 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8373 Update copyright.
8374 * frame.h (struct frame_info): Add field `level'. Update
8375 copyright.
8376 Work-in-progress PR gdb/464.
8377
8378 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8379
8380 * maint.c (maint_print_section_info): Rename print_section_info.
8381 (print_bfd_section_info, print_objfile_section_info): Update.
8382 * inferior.h (struct gdbarch): Add opaque declaration.
8383 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8384 * gdbarch.h: Regenerate.
8385
8386 2002-04-10 Michal Ludvig <mludvig@suse.cz>
8387
8388 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8389 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8390 (kernel_u_size): Added.
8391 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8392 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8393
8394 2002-04-04 Jim Ingham <jingham@apple.com>
8395
8396 * valarith.c (find_size_for_pointer_math): New function, either returns
8397 the size for a pointer's target, returns 1 for void *, or errors for
8398 incomplete types.
8399 (value_add, value_sub): use find_size_for_pointer_math.
8400
8401 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8402
8403 * linux-low.c (linux_look_up_symbols): New hook.
8404 (linux_target_ops): Add linux_look_up_symbols.
8405 * remote-utils.c (decode_address): New function.
8406 (look_up_one_symbol): New function.
8407 * server.c (handle_query): Call target look_up_symbols hook.
8408 * server.h (look_up_one_symbol): Add prototype.
8409 * target.h (struct target_ops): Add look_up_symbols hook.
8410
8411 2002-04-09 Andrew Cagney <ac131313@redhat.com>
8412
8413 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8414 override FP_REGNUM with frame->fp. Update copyright.
8415 * parse.c (num_std_regs, std_regs): Delete.
8416 (target_map_name_to_register): Do not search std_regs. Update
8417 function description.
8418 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8419 declarations. Update copyright.
8420 Fix PR gdb/251.
8421
8422 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8423
8424 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8425 after the last symbol in a block.
8426
8427 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8428
8429 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8430 is non zero as a found symbol.
8431
8432 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8433
8434 * findvar.c: Include "builtin-regs.h".
8435 (value_of_register): Call value_of_builtin_reg when applicable.
8436 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8437 (target_map_name_to_register): Call
8438 builtin_reg_map_name_to_regnum.
8439 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8440 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8441 (builtin_regs_h): Define.
8442 (builtin-regs.o): New target.
8443 (findvar.o): Add $(builtin_regs_h).
8444 * builtin-regs.c, builtin-regs.h: New files.
8445 * std-regs.c: New file.
8446 Partial fix for PR gdb/251.
8447
8448 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8449
8450 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8451 it's no longer required.
8452
8453 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8454
8455 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8456
8457 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8458
8459 From Jimi X <jimix@watson.ibm.com>:
8460 * rs6000-tdep.c (rs6000_software_single_step): Use
8461 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8462 and size. Use target_insert_breakpoint() and
8463 target_remove_breakpoint() to insert and remove breakpoints
8464 instead of explicit memory reads and writes.
8465
8466 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8467
8468 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8469 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8470 ELF_OBJECT_FORMAT ifdef.
8471
8472 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8473
8474 From Jimi X <jimix@watson.ibm.com>:
8475 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8476
8477 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8478
8479 From Jimi X <jimix@watson.ibm.com>:
8480 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8481 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8482
8483 2002-04-07 Mark Kettenis <kettenis@gnu.org>
8484
8485 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8486 s/asprintf/xasprintf/.
8487 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8488
8489 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8490
8491 I believe Jeff Law denies responsability for this one:
8492 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8493 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8494 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8495 Work-around for PR gdb/366.
8496
8497 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8498
8499 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8500 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8501 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8502
8503 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8504
8505 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8506 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8507 information.
8508
8509 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8510
8511 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8512 maintainer.
8513
8514 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8515
8516 * README (Reporting Bugs in GDB): Document the bug web page as the
8517 prefered way of submitting bugs.
8518 Fix PR gdb/402.
8519
8520 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8521
8522 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8523 -1. Update comment.
8524 * gdbarch.h, gdbarch.c: Re-generate.
8525
8526 2002-04-07 Andreas Schwab <schwab@suse.de>
8527
8528 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8529 buffer to regcache_collect.
8530
8531 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8532
8533 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8534 * gdbarch.c, gdbarch.h: Re-generate.
8535
8536 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8537
8538 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8539 declaration. Fix -Werror.
8540
8541 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
8542
8543 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8544 * gdbarch.c: Regenerate.
8545
8546 2002-04-05 Michael Snyder <msnyder@redhat.com>
8547
8548 * breakpoint.c (clear_command): Rewrite middle section to
8549 combine two loops with identical control conditions.
8550 Add a cleanup to eliminate a memory leak.
8551 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8552
8553 2002-04-05 H.J. Lu (hjl@gnu.org)
8554
8555 * solib-svr4.c (bkpt_names): Add "__start".
8556
8557 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8558
8559 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8560 as test for 64 bit target.
8561
8562 2002-04-05 Andrew Cagney <ac131313@redhat.com>
8563
8564 * h8500-tdep.c (h8500_write_fp): Delete function.
8565 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8566 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8567 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8568 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8569 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8570 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8571 (s390_write_fp):
8572 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8573 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8574 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8575 (d10v_write_fp): Delete function.
8576 * inferior.h (write_fp, generic_target_write_fp): Delete
8577 declarations.
8578 * regcache.c (generic_target_write_fp): Delete function.
8579 (write_fp): Delete function.
8580 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8581 * gdbarch.h, gdbarch.c: Regenerate.
8582 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8583 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8584 (sparc64_write_fp): Delete declaration.
8585 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8586 (h8500_write_fp): Delete declaration.
8587
8588 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8589
8590 * sparc-tdep.c (sparc64_write_fp): Delete.
8591 (sparc_push_dummy_frame): Replace write_fp call with code to store
8592 the FP directly.
8593 (sparc_gdbarch_init): Do not initialize write_fp.
8594
8595 2002-04-05 Kevin Buettner <kevinb@redhat.com>
8596
8597 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8598 clause.
8599
8600 2002-03-29 Jim Blandy <jimb@redhat.com>
8601
8602 * stack.c (get_selected_block): Add new argument `addr_in_block',
8603 used to return the exact code address we used to select the block,
8604 not just the block.
8605 * blockframe.c (get_frame_block, get_current_block): Same.
8606 * frame.h (get_frame_block, get_current_block,
8607 get_selected_block): Update declarations.
8608 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8609 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8610
8611 2002-04-05 Michael Snyder <msnyder@redhat.com>
8612
8613 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8614 warning message.
8615
8616 2002-04-05 J. Brobecker <brobecker@gnat.com>
8617
8618 * utils.c (xfullpath): New function.
8619 * defs.h (xfullpath): Add declaration.
8620 * source.c (openp): Use xfullpath in place of gdb_realpath to
8621 avoid resolving the basename part of filenames when the
8622 associated file is a symbolic link. This fixes a potential
8623 inconsistency between the filenames known to GDB and the
8624 filenames it prints in the annotations.
8625 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8626 to be able to match a filename with either the real filename, or
8627 the name of any symbolic link to this file.
8628 (lookup_partial_symtab): Ditto.
8629
8630 2002-04-04 Michael Snyder <msnyder@redhat.com>
8631
8632 * breakpoint.c: Add support for hardware breakpoints in overlays.
8633 (overlay_events_enabled): New state variable.
8634 (insert_breakpoints): Use overlay_events_enabled to decide
8635 whether to attempt to set a breakpoint at the overlay load addr.
8636 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8637 (remove_breakpoint): Use overlay_events_enabled to decide
8638 whether breakpoints need to be removed from overlay load addr.
8639 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8640 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8641 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8642 disable_overlay_breakpoints): Update overlay_events_enabled.
8643
8644 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
8645
8646 * dwarf2read.c (struct function_range): New.
8647 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8648 (check_cu_functions): New.
8649 (read_file_scope): Initialize global function lists.
8650 Call dwarf_decode_line after processing children.
8651 (read_func_scope): Add to global function list.
8652 (dwarf_decode_lines): Call check_cu_functions everywhere
8653 record_line is called. Call record_line with a linenumber
8654 of 0 to mark sequence ends.
8655
8656 2002-04-04 Michal Ludvig <mludvig@suse.cz>
8657
8658 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8659 change sync with glibc.
8660
8661 2002-04-03 Jim Blandy <jimb@redhat.com>
8662
8663 * configure.in: Call AC_C_INLINE.
8664 * configure: Regenerated.
8665
8666 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
8667
8668 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8669 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8670
8671 2002-03-31 Mark Kettenis <kettenis@gnu.org>
8672
8673 * NEWS: Mention gcore support on FreeBSD/i386.
8674
8675 * fbsd-proc.c: New file.
8676 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8677 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8678
8679 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8680 while statement.
8681
8682 2002-03-29 Jim Blandy <jimb@redhat.com>
8683
8684 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8685 unescaped newlines in string literals, but newer ones don't. So
8686 escape them.
8687
8688 2002-03-26 Michael Snyder <msnyder@redhat.com>
8689 Andrew Cagney <cagney@redhat.com>
8690
8691 * cli/cli-dump.c: New file. Dump memory to file,
8692 restore file to memory.
8693 * cli/cli-dump.h: New file.
8694 * Makefile.in: Add rules, dependencies for cli-dump.o.
8695 * NEWS: Mention new commands.
8696
8697 2002-03-28 Michael Snyder <msnyder@redhat.com>
8698
8699 * symfile.c (symbol_file_add): Move test for null symbols to later.
8700
8701 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8702
8703 From veksler at il.ibm.com:
8704 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8705 the xstrduped original path.
8706 Fix PR gdb/417.
8707
8708 2002-03-27 Michael Snyder <msnyder@redhat.com>
8709
8710 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8711 * infcmd.c (_initialize_infcmd): Ditto.
8712 * language.c (_initialize_language): Ditto.
8713 * symfile.c (_initialize_symfile): Ditto.
8714 * top.c (_init_main): Ditto.
8715 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8716
8717 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
8718
8719 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8720 vector registers handling.
8721 (skip_prologue): Handle new AltiVec instructions. Fill in new
8722 fields of frame data.
8723 (frame_get_saved_regs): Fill in information for AltiVec registers.
8724
8725 2002-03-27 Jim Blandy <jimb@redhat.com>
8726
8727 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8728 a function; leave this macro here to invoke that function.
8729 (symbol_init_mangled_name): Declaration for that function.
8730 * symtab.c (symbol_init_mangled_name): New function.
8731
8732 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8733
8734 * valarith.c: Replace strerror with safe_strerror.
8735 * tracepoint.c: Ditto.
8736 * lin-lwp.c: Ditto.
8737 * go32-nat.c: Ditto.
8738 * inflow.c: Ditto.
8739 * gnu-nat.c: Ditto.
8740
8741 2002-03-27 Andreas Schwab <schwab@suse.de>
8742
8743 * event-top.c (command_line_handler): Remove useless if.
8744
8745 2002-03-27 Andreas Jaeger <aj@suse.de>
8746
8747 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8748 comment.
8749
8750 2002-03-27 Michal Ludvig <mludvig@suse.cz>
8751
8752 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8753 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8754 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8755 (x86_64_linux_dr_get_status, supply_gregset),
8756 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8757 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8758 (x86_64_register_info_table): Add.
8759 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8760 (x86_64_register_raw_size, x86_64_register_virtual_type),
8761 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8762 general x86_64_register_info_table.
8763 (i386_gdbarch_init): gdbarch_register_bytes is now set
8764 dynamicaly during initialization.
8765 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8766 * gdbserver/linux-x86-64-low.c: Ditto.
8767
8768 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8769
8770 * gdbserver/server.c (main): Call target_signal_to_host_p
8771 and target_signal_to_host on signals received from the remote.
8772 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8773 target_signal_from_host on signals sent to the remote.
8774 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8775 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8776
8777 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8778
8779 * signals/signals.c: Include "server.h" in gdbserver build.
8780 (target_signal_from_name): Don't use STREQ.
8781 (_initialize_signals): Likewise. Don't include function in
8782 gdbserver build.
8783
8784 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8785
8786 * signals.c: Moved to...
8787 * signals/signals.c: Here.
8788 * Makefile (signals.o): Update.
8789
8790 2002-03-26 Jeff Law (law@redhat.com)
8791
8792 * somread.c (som_symtab_read): Remove some commented out code and
8793 updated related comments. Do not set the minimal symbol table to
8794 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8795 in a dynamic executable.
8796 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8797 where we are unable to find the minimal symbol for the given
8798 PC value.
8799
8800 2002-03-25 Jeff Law (law@redhat.com)
8801
8802 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8803
8804 2002-03-25 Michal Ludvig <mludvig@suse.cz>
8805
8806 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8807
8808 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8809
8810 * command.h: Update copyright.
8811 (struct cmd_list_element): Replace definition with opaque
8812 declaration.
8813 (enum cmd_types): Document that it will eventually be moved to
8814 cli/cli-decode.h
8815 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8816 (MALLOCED_REPLACEMENT): Delete macro.
8817 * Makefile.in (cli_decode_h): Add $(command_h).
8818 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8819 * top.c: Include "cli/cli-decode.h".
8820 * completer.c: Include "cli/cli-decode.h".
8821 * maint.c: Include "cli/cli-decode.h".
8822 * cli/cli-decode.h: Include "command.h".
8823 (enum command_class): Delete.
8824 (enum cmd_types): Comment out.
8825 (enum cmd_auto_boolean): Delete.
8826 (enum var_types): Delete.
8827
8828 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8829
8830 * cli/cli-decode.c: Include "gdb_assert.h".
8831 (add_set_or_show_cmd): New static function.
8832 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8833 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8834 all fields, such as func, from the set command.
8835
8836 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8837
8838 * MAINTAINERS (sh-elf): Change warning flag to -w.
8839
8840 2002-03-23 Andrew Cagney <cagney@redhat.com>
8841
8842 * defs.h (error): Add printf format attribute.
8843 * thread-db.c (thread_from_lwp): Fix error format string.
8844 * stack.c (parse_frame_specification): Ditto.
8845 * cli/cli-decode.c (undef_cmd_error): Ditto.
8846 * scm-lang.c (scm_lookup_name): Ditto.
8847 * tracepoint.c (trace_error): Ditto.
8848 * remote-utils.c (usage): Ditto.
8849 * remote.c (compare_sections_command): Ditto.
8850 Fix PR gdb/328.
8851
8852 2002-03-22 Andrew Cagney <ac131313@redhat.com>
8853
8854 * gdbtypes.c (append_composite_type_field): New function.
8855 (init_composite_type): New function.
8856 * gdbtypes.h (append_composite_type_field): Declare.
8857 (init_composite_type): Ditto.
8858
8859 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
8860
8861 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
8862 function.
8863 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8864 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8865 structure returning convention for SYSV ABI case, but not
8866 for GNU/Linux, FreeBSD, or NetBSD.
8867
8868 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
8869
8870 * symtab.h (lookup_block_symbol): Add mangled_name argument
8871 to prototype.
8872
8873 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8874 with new mangled_name argument.
8875 * linespec.c (decode_line_1): Likewise.
8876 * valops (value_of_this): Likewise.
8877 * symtab.c (lookup_transparent_type): Likewise.
8878 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8879 (lookup_symbol): If we are given a mangled name, pass it down
8880 to lookup_symbol_aux.
8881 (lookup_block_symbol): If we are given a mangled name to check
8882 against, only return symbols which match it.
8883
8884 2002-03-22 Christopher Faylor <cgf@redhat.com>
8885
8886 * win32-nat.c (child_create_inferior): Check for proper shell to use
8887 here, in case the user changes it on the fly.
8888 (_initialize_inftarg): Remove shell path considerations.
8889
8890 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
8891
8892 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8893 for gdbarch_max_register_raw_size and max_register_virtual_size.
8894 Adjust copyright year.
8895
8896 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
8897
8898 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8899 in a function to cover the entire beginning of the function
8900 as well if it does not already.
8901
8902 2002-03-21 Tom Rix <trix@redhat.com>
8903
8904 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8905 (rs6000_ptrace64): Renamed from ptrace64.
8906
8907 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8908
8909 * gdbserver/remote-utils.c (remote_open): Don't call
8910 getprotobyname, we're all using TCP here so just use
8911 IPPROTO_TCP.
8912 * gdbserver/gdbreplay.c (remote_open): Ditto.
8913
8914 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8915
8916 * regcache.c (_initialize_regcache): No need to call
8917 build_regcache() at this time; it gets called whenever
8918 the gdbarch changes.
8919
8920 2002-03-20 David O'Brien <obrien@FreeBSD.org>
8921
8922 * sparc-nat.c: Include sys/param.h where possible.
8923
8924 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
8925
8926 Fix PR gdb/422.
8927 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8928 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8929 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8930 complex types.
8931 * stabsread.c (rs6000_builtin_type): Likewise.
8932 (read_sun_floating_type): Likewise.
8933
8934 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8935
8936 * stabsread.c (read_member_functions): Remove skip code for duplicate
8937 constructor/destructor methods. Use standard parsing for these
8938 methods and just do not chain them to the list of methods after
8939 parsing.
8940
8941 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
8942
8943 * coffread.c: Remove redundant static declarations. Replace
8944 occurrences of `PTR' with `void *'.
8945 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8946 * top.h (quit_cover): Likewise.
8947 * defs.h (catch_errors): Likewise.
8948
8949 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8950
8951 * defs.h (XMALLOC): Define.
8952 * gdb-events.sh (XMALLOC): Delete macro.
8953 * gdb-events.c, gdb-events.h: Regenerate.
8954 * gdbarch.sh (XMALLOC): Delete macro.
8955 * gdbarch.c: Regenerate.
8956 * serial.c (XMALLOC): Delete macro.
8957 * ui-file.c (XMALLOC): Ditto.
8958 * ser-unix.h (XMALLOC): Ditto.
8959 * sh-tdep.c (XMALLOC): Ditto.
8960 * ui-out.c (XMALLOC): Ditto.
8961 * utils.c (XMALLOC): Ditto.
8962 * i386-tdep.c (XMALLOC): Ditto.
8963 * gdb-events.c (XMALLOC): Ditto.
8964 * d10v-tdep.c (XMALLOC): Ditto.
8965 * cli-out.c (XMALLOC): Ditto.
8966
8967 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8968 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8969 * ui-file.c, ui-out.c: Ditto.
8970
8971 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8972
8973 * command.h (struct cmd_list_element): Add field context.
8974 (set_cmd_context, get_cmd_context): Declare.
8975 * cli/cli-decode.h: Ditto.
8976 * cli/cli-decode.c (get_cmd_context): New function.
8977 (set_cmd_context): New function.
8978 (add_cmd): Initialize context.
8979 Part of fixing PR gdb/145 and PR gdb/146.
8980
8981 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8982
8983 * cli/cli-decode.c (cmd_type): New function.
8984 * command.h (cmd_type): Declare.
8985 * infrun.c (set_schedlock_func): Call function cmd_type.
8986 * kod.c (kod_set_os): Call cmd_type.
8987 * cris-tdep.c (cris_version_update): Use function cmd_type.
8988 (cris_mode_update, cris_abi_update): Ditto.
8989
8990 * command.h: (execute_cmd_post_hook): Declare.
8991 (execute_cmd_pre_hook): Declare.
8992 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8993 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8994 functions. Execute pre/post hook while ensuring that afterwords
8995 hook_in is cleared.
8996 * top.c (execute_command): Use execute_cmd_post_hook, and
8997 execute_cmd_pre_hook to execute pre/post commands.
8998 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8999 hook_stop_stub.
9000 (hook_stop_stub): Call execute_cmd_pre_hook.
9001
9002 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9003
9004 * kod.c (kod_set_os): Revert previous change. Is called by ``info
9005 set'' and this leads to a core dump. Move xstrdup of
9006 operating_system to after check that it is not NULL.
9007
9008 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9009
9010 * kod.c (kod_set_os): Remove unnecessary check that
9011 ``command->type'' is set_cmd.
9012
9013 * valprint.c (set_input_radix): Use input_radix.
9014 (set_output_radix): Use output_radix.
9015 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9016 isn't reverted.
9017
9018 2002-03-16 Andrew Cagney <ac131313@redhat.com>
9019
9020 * value.h (struct value): Delete field ``substring_addr''. Change
9021 aligner fields to force_doublest_align, force_longest_align,
9022 force_core_addr_align and force_pointer_aligh.
9023
9024 * value.h (struct value): Fix typo in above change.
9025
9026 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9027
9028 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9029 to fix internal_error from ``maintenance print architecture''.
9030
9031 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9032
9033 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9034 for gcc versions after gcc-2.8.1.
9035
9036 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9037
9038 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9039 for method resolution. Restore adjustment of ``this'' pointer after
9040 calling value_struct_elt, which was accidentally removed during the
9041 HP merge.
9042
9043 2002-03-15 Andrew Cagney <ac131313@redhat.com>
9044
9045 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9046 value_of_register.
9047 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9048 get_saved_register.
9049 * value.h (value_of_register): Update.
9050
9051 2002-03-14 Richard Henderson <rth@redhat.com>
9052
9053 * configure.in: Detect declaration for canonicalize_file_name.
9054 * utils.c (canonicalize_file_name): Declare, if needed.
9055 (gdb_realpath): Prefer realpath if available and usable.
9056 * config.in, configure: Rebuild.
9057
9058 2002-03-14 Richard Henderson <rth@redhat.com>
9059
9060 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9061 a constant array bound.
9062
9063 * MAINTAINERS: Add myself to write-after-approval.
9064
9065 2002-03-14 Michael Snyder <msnyder@redhat.com>
9066
9067 * symfile.c (syms_from_objfile): Return immediately if no syms.
9068 (symbol_file_add): Return immediately if no syms.
9069 (find_sym_fns): Return immediately if no syms.
9070
9071 2002-03-13 Michal Ludvig <mludvig@suse.cz>
9072
9073 * gdbserver/remote-util.c (remote_open): Print remote-side's
9074 IP address when remote debugging over the network.
9075
9076 2002-03-12 David O'Brien <obrien@FreeBSD.org>
9077
9078 * config/sparc/fbsd.mh: Fix copyright.
9079 * config/sparc/fbsd.mt: Likewise.
9080
9081 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
9082
9083 * MAINTAINERS: Fix typo in name of gdb warnings option.
9084 (x86-64): Fix formating so that this can be parsed by awk.
9085
9086 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9087
9088 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9089 * defs.h: Include "gdb/signals.h".
9090 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9091
9092 2002-03-10 Michal Ludvig <mludvig@suse.cz>
9093
9094 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
9095 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
9096 from x86-64-tdep.h
9097
9098 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9099 Don Howard <dhoward@redhat.com>
9100
9101 * mips-tdep.c (ST0_FR): Define.
9102 (mips2_fp_compat): New function, temporarily disabled.
9103 (mips_read_fp_register_single): New function.
9104 (mips_read_fp_register_double): New function.
9105 (mips_print_register): Use them.
9106 (do_fp_register_row): Likewise.
9107
9108 2002-03-09 Andrew Cagney <ac131313@redhat.com>
9109
9110 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9111 approval''.
9112
9113 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9114
9115 * stabsread.c (read_member_functions): Fix is_stub test for
9116 static member functions, improve comment.
9117
9118 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
9119
9120 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9121 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9122 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9123 commands that set boolean values.
9124 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9125 (arm_rdi_resume): Always initialize PC.
9126 (arm_rdi_open): Don't use rslt as a boolean.
9127 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9128 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9129 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9130 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9131
9132 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
9133
9134 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9135 * configure: Rebuilt.
9136
9137 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9138
9139 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9140 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9141
9142 2002-03-06 Andrew Cagney <ac131313@redhat.com>
9143
9144 * cli/cli-decode.c (set_cmd_completer): New function.
9145 * command.h (set_cmd_completer): Declare.
9146 * cli/cli-decode.h (set_cmd_completer): Ditto.
9147
9148 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9149 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9150 * win32-nat.c (_initialize_inftarg): Ditto.
9151 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9152 * proc-api.c (_initialize_proc_api): Ditto.
9153 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9154 * source.c (_initialize_source): Ditto.
9155 * exec.c (_initialize_exec): Ditto.
9156 * solib.c (_initialize_solib): Ditto.
9157 * top.c (init_main): Ditto.
9158 * tracepoint.c (_initialize_tracepoint): Ditto.
9159 * symfile.c (_initialize_symfile): Ditto.
9160 * printcmd.c (_initialize_printcmd): Ditto.
9161 * infcmd.c (_initialize_infcmd): Ditto.
9162 * corefile.c (_initialize_core): Ditto.
9163
9164 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9165
9166 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9167
9168 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9169
9170 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9171
9172 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9173
9174 * NEWS: Update headings, 5.2 has branched.
9175
9176 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
9177
9178 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9179 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9180 (register_addr, REGISTER_RAW_SIZE): Likewise.
9181 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9182 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9183
9184 2002-03-03 Michal Ludvig <mludvig@suse.cz>
9185
9186 * MAINTAINERS (x86-64): Add myself.
9187 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9188 changed value_ptr -> struct value *
9189
9190 2002-03-01 David O'Brien <obrien@FreeBSD.org>
9191
9192 * configure.host (sparc64-*-freebsd): Add.
9193 * configure.tgt: Likewise.
9194 * config/sparc/fbsd.mh: New file.
9195 * config/sparc/fbsd.mt: Likewise.
9196 * config/sparc/nm-fbsd.h: Likewise.
9197 * config/sparc/tm-fbsd.h: Likewise.
9198
9199 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
9200
9201 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9202 regformats/reg-s390x.dat.
9203
9204 2002-03-01 Andrew Cagney <ac131313@redhat.com>
9205
9206 * utils.c: Add FIXME explaining true/false problem.
9207
9208 2002-02-28 Andrew Cagney <ac131313@redhat.com>
9209
9210 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9211
9212 2002-02-28 Michael Chastain <mec@shout.net>
9213
9214 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9215
9216 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
9217
9218 * gdbserver/linux-s390-low.c: New file.
9219 * regformats/reg-s390.dat: New file.
9220 * regformats/reg-s390x.dat: New file.
9221 * gdbserver/configure.srv: Add S/390.
9222 * gdbserver/Makefile.in: Add S/390.
9223 * configure.tgt: Enable gdbserver for S/390.
9224
9225 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9226
9227 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9228 first line of the doc string for "info dos", except at the end of
9229 the sentence, since the short help stops at the first period.
9230
9231 2002-02-28 Jason Merrill <jason@redhat.com>
9232
9233 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9234
9235 2002-02-27 Fred Fish <fnf@redhat.com>
9236
9237 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9238 comment (dumy -> dummy).
9239
9240 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9241
9242 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9243
9244 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
9245
9246 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9247
9248 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9249
9250 * gdbserver/acconfig.h: New file.
9251 * gdbserver/i387-fp.c: New file.
9252 * gdbserver/i387-fp.h: New file.
9253 * gdbserver/linux-x86-64.c: New file.
9254 * regformats/reg-x86-64.dat: New file.
9255 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9256 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9257 * gdbserver/configure.in: Add support for regsets.
9258 * gdbserver/config.in: Regenerate.
9259 * gdbserver/configure: Regenerate.
9260 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9261 * gdbserver/linux-low.h: New file.
9262 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9263 for regsets.
9264 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9265 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9266 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9267 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9268 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9269 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9270 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9271 "i387-fp.h". Add PTRACE_GETREGS and friends.
9272 * gdbserver/regcache.c (supply_register): New function.
9273 (supply_register_by_name): New function.
9274 (collect_register): New function.
9275 (collect_register_by_name): New function.
9276
9277 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9278
9279 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9280 (config.status): Add configure.srv dependency.
9281 (server_h): Add config.h dependency.
9282
9283 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9284
9285 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9286 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9287 * gdbserver/configure.srv: Change i386-*-linux* to use
9288 reg-i386-linux.o.
9289
9290 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9291
9292 * x86-64-tdep.c: Re-indent. Update copyright date.
9293
9294 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9295
9296 From Michal Ludvig <mludvig@suse.cz>:
9297 * x86-64-tdep.c (value.h): Delete.
9298 (gdb_assert.h): Include.
9299 (x86_64_register_convert_to_virtual,
9300 x86_64_register_convert_to_raw ): Add check which lets only
9301 floating-point values to be converted.
9302 (value_push): Delete.
9303 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9304 (i386_gdbarch_init): Number of register_bytes fixed.
9305
9306 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9307
9308 * MAINTAINERS: Add x86-64 target.
9309
9310 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9311
9312 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9313 * osfsolib.c (solib_map_sections): Ditto.
9314 * irix5-nat.c (solib_map_sections): Ditto.
9315 * corelow.c (gdb_check_format): Ditto.
9316 * symfile.c (symfile_bfd_open): Ditto.
9317 * solib.c (solib_map_sections): Ditto.
9318 Fix PR gdb/354.
9319
9320 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9321
9322 * remote.c (_initialize_remote): By default, disable ``e'' and
9323 ``E'' step out-of-range packets.
9324
9325 2002-02-26 Andreas Schwab <schwab@suse.de>
9326
9327 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9328 m68k_linux_frame_saved_pc.
9329 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9330 in_sigtramp.
9331 (SIGCONTEXT_PC_OFFSET): Remove.
9332 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9333 m68k_linux_sigtramp_saved_pc): New functions.
9334 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9335 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9336 (UCONTEXT_PC_OFFSET): Define.
9337 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9338 non-RT and RT signal trampolines.
9339
9340 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
9341
9342 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9343 (TARGET_NBPG, STACK_END_ADDR): Delete
9344 (VARIABLES_INSIDE_BLOCK): Delete.
9345
9346 2002-02-25 Andrew Cagney <ac131313@redhat.com>
9347
9348 * utils.c (perror_with_name): Make string parameter constant.
9349 (print_sys_errmsg): Ditto.
9350 (query): Ditto.
9351 * defs.h (perror_with_name): Update.
9352 (print_sys_errmsg): Update.
9353 (query): Update.
9354
9355 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
9356
9357 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9358 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9359
9360 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9361
9362 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9363 if it already matches the current architecture from the exec file.
9364 Include arch-utils.h for gdbarch_info_init prototype.
9365 * Makefile.in (rs6000-nat.o): Update dependencies.
9366
9367 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9368
9369 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9370 list of exported variables.
9371
9372 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
9373
9374 * gdbserver/configure.srv: New file.
9375 * gdbserver/configure.in: Use configure.srv instead
9376 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9377 from it.
9378 * gdbserver/configure: Regenerated.
9379 * gdbserver/terminal.h: New file.
9380 * gdbserver/Makefile.in: Update for configure changes. Remove
9381 more unneeded include paths.
9382
9383 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9384
9385 From wiz at danbala:
9386 * config/sparc/tm-sp64.h: Fix grammar and typos.
9387 Fix PR gdb/287.
9388
9389 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9390
9391 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9392 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9393 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9394 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9395 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9396 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9397 * s390-tdep.c: Ditto.
9398 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9399 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9400 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9401 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9402 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9403 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9404 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9405 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9406 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9407 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9408 Fix PR gdb/378.
9409
9410 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9411
9412 * lin-thread.c: Delete file.
9413 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9414 to gdb_proc_service.h.
9415 * configure: Re-generate.
9416
9417 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9418 * serial.c (serial_open): Delete check for "ocd".
9419 Fix PR gdb/349.
9420
9421 * Makefile.in (linux-thread.o): Delete target.
9422 * linux-thread.c: Delete file.
9423
9424 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9425 renamed SH files to be consistent.
9426
9427 * symtab.c (sort_search_symbols): Use xfree.
9428
9429 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9430
9431 * arm-linux-tdep.c (arm_linux_init_abi): Register
9432 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9433 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9434 definition with undef, since we don't want the sysvr4 definition.
9435 (SKIP_TRAMPOLINE_CODE): Likewise.
9436
9437 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9438
9439 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9440
9441 * configure.in: (AC_CHECK_FUNCS) Added test for
9442 canonicalize_file_name Regenerated.
9443 * config.in, configure: Regenerated.
9444 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9445 defined use canonicalize_file_name.
9446
9447 2002-02-23 Michael Chastain <mec@shout.net>
9448
9449 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9450
9451 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9452
9453 * README: Remove references to cygnus.com.
9454 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9455 dot com'' form. Remove references to cygnus.com and sourceware.
9456
9457 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9458
9459 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9460 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9461 1003.1-2001 no longer allows "head -1".
9462 * gdb/Makefile.in (version.c): Likewise.
9463 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9464 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9465 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9466
9467 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9468
9469 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9470 * command.h (cmd_cfunc_eq): Declare.
9471 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9472
9473 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9474 ``struct cmd_list_element *''.
9475 * cli/cli-cmds.c (is_complete_command): Update. Use
9476 cmd_cfunc_eq.
9477 * top.c (execute_command): Pass the command to
9478 is_complete_command.
9479 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9480
9481 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9482
9483 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9484 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9485 architecture defines.
9486 * s390-tdep.c (s390_gdbarch_init): Likewise.
9487
9488 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9489
9490 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9491 (arm_linux_push_arguments): Likewise.
9492 (arm_linux_init_abi): Register them. Also register linux-specific
9493 call_dummy_words.
9494 (find_minsym_and_objfile): Use strcmp, not STREQ.
9495 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9496 (arm_linux_call_dummy_words): Delete declaration.
9497 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9498 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9499 declarations.
9500 (LOWEST_PC): Delete.
9501
9502 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9503
9504 * maint.c (print_section_info): Do not prepend `0x' to filepos
9505 output, it will be handled by local_hex_string_custom.
9506
9507 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9508
9509 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9510 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9511 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9512
9513 2002-02-22 Jim Blandy <jimb@redhat.com>
9514
9515 Indicate that the bcache functions don't change the strings
9516 they're passed.
9517 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9518 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9519
9520 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9521
9522 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9523
9524 2002-02-21 Christopher Faylor <cgf@redhat.com>
9525
9526 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9527 find the complete path to a loaded DLL.
9528
9529 2002-02-21 Fred Fish <fnf@redhat.com>
9530
9531 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9532 that marks the end of the range of a function, enter a line number
9533 entry that has a line number of zero and a PC offset that matches
9534 the end of the function. This starts a range of PC's for which no
9535 line number information is known.
9536 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9537 PC's for which no line number info is found (line number is zero)
9538 then we didn't find any valid line information.
9539 * symtab.h: Document use of zero line number entry.
9540
9541 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
9542
9543 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9544 (have_ptrace_getvrregs): Define for run time checks.
9545 (gdb_vrregset_t): New type for Altivec register handling.
9546 (fetch_register, store_register): Fetch/store altivec register
9547 when needed.
9548 (fetch_altivec_register, store_altivec_register): New functions.
9549 (supply_vrregset, fill_vrregset): New functions.
9550 (fetch_altivec_registers, store_altivec_registers): New functions.
9551 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9552 registers as well.
9553
9554 2002-02-21 Jiri Smid <smid@suse.cz>
9555
9556 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9557
9558 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9559
9560 * Makefile.in (armnbsd-nat.o): Update dependencies.
9561 * armnbsd-nat.c (supply_gregset): New function. Common code to
9562 supply the integer register set.
9563 (supply_fparegset): New function. Similar for FPA registers.
9564 (fetch_regs, fetch_fp_regs): Use them.
9565 (fetch_core_registers): Likewise.
9566 (fetch_elfcore_registers): New function.
9567 (arm_netbsd_elfcore_fns): New core-file type specification.
9568 (_initialize_arm_netbsd_nat): Register it.
9569
9570 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9571
9572 * armnbsd-nat.c: Include gdbcore.h.
9573 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9574 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9575 'void' to declaration, to shut up ARI.
9576 (fetch_core_registers): Make static. Rewrite using supply_register.
9577 (arm_netbsd_core_fns): New core-file type specification.
9578 (_initialize_arm_netbsd_nat): New function.
9579
9580 2002-02-21 Christopher Faylor <cgf@redhat.com>
9581
9582 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9583 value.
9584
9585 2002-02-20 Christopher Faylor <cgf@redhat.com>
9586
9587 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9588 fails.
9589
9590 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9591
9592 * jv-exp.y (parse_number): Change type of implicit longs
9593 to builtin_type_uint64.
9594
9595 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9596
9597 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9598 to be an integer instead of a `union wait'.
9599
9600 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9601
9602 * mips-linux-nat.c: Call the operating system GNU/Linux.
9603 * mips-linux-tdep.c: Likewise.
9604 * mips-tdep.c: Likewise.
9605
9606 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9607
9608 Fix PR gdb/265.
9609 * jv-exp.y (parse_number): Handle 64-bit integers.
9610
9611 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9612
9613 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9614 AC_STDC_HEADERS to AC_HEADER_STDC.
9615 * gdbserver/configure: Regenerated.
9616
9617 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9618
9619 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9620 is defined.
9621 * sparc-tdep.c (get_longjmp_target): Likewise.
9622
9623 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9624
9625 * News: Add news about ARM and Multi-arch. Mention the new target
9626 arm*-*-netbsd*.
9627
9628 2002-02-19 Jim Blandy <jimb@redhat.com>
9629
9630 * stabsread.c (error_type_complaint): Improve error message.
9631
9632 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
9633
9634 * gdbserver/README: Update documentation.
9635 * gdbserver/configure.in: Update configury to match documentation.
9636 * gdbserver/Makefile.in: Likewise.
9637 * gdbserver/configure: Regenerated.
9638 * gdbserver/aclocal.m4: New file, generated by aclocal.
9639 * gdbserver/config.in: New file, generated by autoheader.
9640
9641 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9642
9643 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9644 armnbsd-nat.c.
9645
9646 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9647
9648 * arm-tdep.h (enum arm_float_model): New enum.
9649 (struct gdbarch_tdep): Add fp_model.
9650 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9651 up floating-point conversions until we know the floating-point model
9652 in use by the inferior. Don't complain about being unable to
9653 determine the ABI of the inferior when we don't have one.
9654 (arm_extract_return_value): Support different floating-point models.
9655 (arm_store_return_value): Likewise.
9656 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9657 ARM_FLOAT_SOFT.
9658 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9659
9660 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9661
9662 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9663 of ``current_gdbarch''.
9664
9665 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9666
9667 * armnbsd-nat.c : ANSIfy all function declarations.
9668 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9669 (fetch_inferior_registers): Re-implement in terms of above.
9670 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9671 (store_inferior_registers): Re-implement in terms of above.
9672
9673 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9674
9675 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9676 kernel.
9677 * arm-linux-tdep.c: Likewise.
9678 * config/arm/tm-linux.h: Likewise.
9679
9680 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9681
9682 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9683 * config/arm/nbsd.mt (TM_FILE): Delete.
9684 * config/arm/tm-nbsd.h: Delete.
9685
9686 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9687
9688 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9689 Initialize CALL_DUMMY_LENGTH.
9690
9691 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9692
9693 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9694 function.
9695 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
9696 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
9697 defines one thing and that is incorrect for this port.
9698 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9699
9700 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9701
9702 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9703
9704 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9705
9706 * win32-nat.c (display_selector): New function. Displays information
9707 about the information returned by GetThreadSelectorEntry API function.
9708 (display_selectors): New function. Displays the infomation of
9709 the selector given as argument, or of CS, DS ans FS selectors
9710 if no argument is given.
9711 ( _initialize_inftarg): Add "w32" as info prefix command.
9712 Add "info w32 selector" as command calling display_selectors.
9713
9714 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9715
9716 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9717 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9718 if not defined.
9719
9720 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9721
9722 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9723
9724 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9725
9726 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9727 (arm_fix_call_dummy): Call it.
9728 (arm_call_dummy_breakpoint_offset): Delete.
9729 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9730 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9731
9732 2002-02-18 Andrew Cagney <ac131313@redhat.com>
9733
9734 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9735 Default to func_frame_chain_valid.
9736 * gdbarch.h, gdbarch.c: Re-generate.
9737 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9738
9739 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
9740
9741 * ppc-linux-nat.c: Update copyright.
9742 (fetch_register, store_register): Add tid parameter, don't compute
9743 tid here.
9744 (fetch_ppc_registers, store_ppc_registers): Add tid
9745 parameter. Pass it along to callees.
9746 (fetch_inferior_registers, store_inferior_registers): Compute tid
9747 here, and pass it to calleed functions.
9748 (fill_gregset, supply_fpregset): Clean up formatting.
9749
9750 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9751
9752 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9753 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9754
9755 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9756
9757 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9758 * gdbarch.c gdbarch.h: Regenerate.
9759 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9760 function.
9761 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9762 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9763 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9764
9765 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9766 * arm-tdep.c (arm_get_longjmp_target): New function.
9767 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9768 this to a positive value register arm_get_longjmp_target as the
9769 longjmp handler.
9770 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9771 (arm_linux_init_abi): Set up longjmp description in tdep.
9772 * armnbsd-nat.c (get_longjmp_target): Delete.
9773 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9774 description in tdep.
9775 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9776 (get_longjmp_target): Delete declaration.
9777 (GET_LONGJMP_TARGET): Delete.
9778 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9779 (GET_LONGJMP_TARGET): Delete.
9780
9781 2002-02-17 Kevin Buettner <kevinb@redhat.com>
9782
9783 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9784 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9785 of ``current_gdbarch''.
9786
9787 2002-02-17 Tom Tromey <tromey@redhat.com>
9788
9789 * cli/cli-cmds.c (compare_strings): New function.
9790 (complete_command): Only print each unique item once.
9791 * completer.h (complete_line): Declare.
9792 * completer.c (complete_line): New function.
9793 (line_completion_function): Use it.
9794
9795 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9796
9797 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9798 * gdbarch.h, gdbarch.c: Re-generate.
9799
9800 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9801
9802 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9803
9804 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9805
9806 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9807 * valops.c (value_arg_coerce): Don't take the address of a reference
9808 to convert an argument to a reference.
9809
9810 2002-02-15 Christopher Faylor <cgf@redhat.com>
9811
9812 * win32-nat.c (get_image_name): New function.
9813 (handle_load_dll): Use get_image_name function.
9814 (get_child_debug_event): Avoid registering debug events until possibly
9815 execed process is started.
9816 (child_create_inferior): Allow invocation via shell so that command
9817 line redirection, etc. works ok.
9818 (_initialize_inftarg): Add new command: "set shell" to control whether
9819 a shell is used to start a process.
9820
9821 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9822
9823 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9824 instead of find_register_by_number.
9825 (cannot_store_register): Likewise.
9826
9827 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9828
9829 * dwarf2read.c: Replace fprintf (stderr, ...) by
9830 fprintf_unfiltered (gdb_stderr, ...).
9831
9832 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9833
9834 * gdbserver/gdbserver.1: Document --attach.
9835
9836 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9837
9838 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9839 descriptions.
9840 * arm-tdep.c (arm_default_arm_le_breakpoint)
9841 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9842 (arm_default_thumb_be_breakpoint): New. Initialize them from
9843 traditional breakpoint defines.
9844 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9845 (arm_gdbarch_init): Initialize new breakpoint variables.
9846 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9847 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9848 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9849 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9850 code out to ...
9851 (arm_netbsd_init_abi_common): ... here; new function.
9852 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9853 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9854 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9855 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9856
9857 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9858
9859 * arm-tdep.h (enum arm_abi): New enum.
9860 (struct gdbarch_tdep): New structure.
9861 (LOWEST_PC): Provide a default.
9862 (arm_gdbarch_register_os_abi): Declare new function.
9863 * arm-tdep.c (arm_abi_names): New array.
9864 (process_note_abi_tag_sections): New function.
9865 (get_elfosabi): New function.
9866 (arm_gdbarch_register_os_abi): New function.
9867 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9868 support for that ABI has been built in, then call the appropriate
9869 configuration routine. Use gdbarch_num_regs() to get the number
9870 of registers.
9871 (arm_dump_tdep): New function.
9872 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9873 place-holder functions.
9874 (_initialize_arm_tdep): Register them.
9875 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9876
9877 * armnbsd-tdep.c: New file.
9878 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9879 * config/arm/nbsd.mt (TDEPFILES): Add it.
9880 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9881
9882 * armnbsd-nat.c: Include regcache.h.
9883 * Makefile.in (armnbsd-nat.o): Update dependency list.
9884
9885 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9886
9887 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9888
9889 * gdbserver/Makefile.in: Fix typos in target rules.
9890
9891 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9892
9893 Fix part of PR gdb/267.
9894 * linespec.c (find_methods): Handle constructors specially for now.
9895
9896 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
9897
9898 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9899 handling.
9900 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9901 standard_coerce_float_to_double().
9902
9903 2002-02-14 Christopher Faylor <cgf@redhat.com>
9904
9905 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9906 GDBINIT_FILENAME.
9907
9908 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
9909
9910 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9911 find_variant_by_name, because it confuses the multiarch
9912 framework. Return NULL if there isn't an architecture with the
9913 user supplied name, instead of forcing a different one without
9914 recording the change with the multiarch machinery.
9915 (find_variant_by_name): Delete.
9916
9917 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9918
9919 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9920 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9921
9922 2002-02-13 Martin M. Hunt <hunt@redhat.com>
9923
9924 * stack.c (print_frame_info_base): When calling
9925 print_frame_info_listing_hook, set current_source_symtab.
9926
9927 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9928
9929 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9930 and remove unused $(INCLUDE_DIR).
9931 Add regcache.c to OBS.
9932 Add generated register protocol files to clean target.
9933 Update dependencies for new objects, obsolete old target code.
9934
9935 * gdbserver/linux-low.c: Remove all platform-specific code to
9936 new files. Remove various dead code. Update to use regcache
9937 functionality.
9938 * gdbserver/remote-utils.c (fromhex): Add return statement
9939 to quiet warning.
9940 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9941 constant.
9942 (input_interrupt): Add integer parameter to match prototype
9943 of a signal handler.
9944 (outreg): Use register_data ().
9945 (prepare_resume_reply): Use gdbserver_expedite_regs.
9946 * gdbserver/server.c (main): Dynamically allocate own_buf because
9947 PBUFSIZ is no longer constant. Use registers_to_string () and
9948 registers_from_string ().
9949 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9950 for error (), fatal (), and warning (). Update definition of
9951 PBUFSIZ to use regcache functionality. Add include guard.
9952 * gdbserver/utils.c (fatal): Add missing ``const''.
9953 (warning): New function.
9954
9955 * regformats/regdat.sh: Include "regcache.h" in generated files.
9956 Provide init_registers () function.
9957 * regformats/regdef.h: Add prototype for set_register_cache ().
9958 Add include guard.
9959
9960 * gdbserver/linux-arm-low.c: New file.
9961 * gdbserver/linux-i386-low.c: New file.
9962 * gdbserver/linux-ia64-low.c: New file.
9963 * gdbserver/linux-m68k-low.c: New file.
9964 * gdbserver/linux-mips-low.c: New file.
9965 * gdbserver/linux-ppc-low.c: New file.
9966 * gdbserver/linux-sh-low.c: New file.
9967
9968 * gdbserver/regcache.c: New file.
9969 * gdbserver/regcache.h: New file.
9970
9971 * gdbserver/low-linux.c: Removed obsolete file.
9972
9973 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9974
9975 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9976 * config/i386/linux.mt: Likewise.
9977 * config/ia64/linux.mt: Likewise.
9978 * config/m68k/linux.mh: Likewise.
9979 * config/powerpc/linux.mh: Likewise.
9980 * config/mips/linux.mt: Likewise.
9981
9982 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9983
9984 * config/i386/i386lynx.mh: Mark gdbserver variables
9985 as (currently) obsolete for this target.
9986 * config/i386/nbsd.mt: Likewise.
9987 * config/i386/nbsdelf.mt: Likewise.
9988 * config/m32r/m32r.mt: Likewise.
9989 * config/m68k/m68klynx.mh: Likewise.
9990 * config/m68k/nbsd.mt: Likewise.
9991 * config/m68k/sun3os4.mh: Likewise.
9992 * config/mips/vr5000.mt: Likewise.
9993 * config/ns32k/nbsd.mt: Likewise.
9994 * config/pa/hppabsd.mh: Likewise.
9995 * config/pa/hppaosf.mh: Likewise.
9996 * config/powerpc/nbsd.mt: Likewise.
9997 * config/rs6000/rs6000lynx.mh: Likewise.
9998 * config/s390/s390.mt: Likewise.
9999 * config/s390/s390x.mt: Likewise.
10000 * config/sparc/sparclynx.mh: Likewise.
10001 * config/sparc/sun4os4.mh: Likewise.
10002 * config/i386/x86-64linux.mt: Likewise.
10003 * config/sparc/linux.mh: Likewise.
10004
10005 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10006
10007 * configure.tgt: Configure gdbserver only for known working
10008 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
10009 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
10010 SUBDIRS if it is configured. Update comment for ${nativefile}.
10011 * configure: Regenerated.
10012
10013 2002-02-13 Michael Snyder <msnyder@redhat.com>
10014
10015 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10016
10017 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10018 (default_gcore_mach): Just return 0, work around a problem in bfd.
10019 (default_gcore_target): OK to return NULL if exec_bfd is null.
10020 (make_mem_sec): Use a cast, avoid a warning.
10021
10022 * procfs.c (find_memory_regions_callback): Use a cast instead of
10023 calling host_pointer_to_address (which complains if
10024 sizeof (host pointer) != sizeof (target pointer)).
10025 (procfs_make_note_section): Avoid overflow in psargs string.
10026
10027 * procfs.c (procfs_make_note_section): Make the default
10028 implementation return an error.
10029
10030 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
10031
10032 * procfs.c (procfs_make_note_section): Provide a default definition
10033 (for alpha-dec-osf4.0f). Fix typos.
10034
10035 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
10036
10037 * linux-proc.c: Add include of regcache.h.
10038 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10039
10040 2002-02-13 Andrew Cagney <ac131313@redhat.com>
10041
10042 From 2002-01-18 Greg McGary <greg@mcgary.org>:
10043 * memattr.c (create_mem_region): Disallow useless empty region.
10044 Regions are half-open intervals, so allow [A..B) [B..C) as
10045 non-overlapping.
10046
10047 2002-02-13 Michael Chastain <mec@shout.net>
10048
10049 * defs.h: Kill CONST_PTR.
10050 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10051 * c-lang.c (c_builtin_types): Likewise.
10052 * ch-lang.c (ch_builtin_types): Likewise.
10053 * f-lang.c (f_builtin_types): Likewise.
10054 * language.c (unknown_builtin_types): Likewise.
10055 * m2-lang.c (m2_builtin_types): Likewise.
10056 * p-lang.c (pascal_builtin_types): Likewise.
10057 * scm-lang.c (c_builtin_types): Likewise.
10058
10059 2002-02-13 Keith Seitz <keiths@redhat.com>
10060
10061 * arm-tdep.h (arm_get_next_pc): Add declaration.
10062
10063 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
10064
10065 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10066 with other related struct-returning functions.
10067 (arm_extract_struct_value_address): New function.
10068 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10069 initialize float_format, double_format and long_double_format as
10070 appropriate to the endianness of the target.
10071 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10072 (arm_use_struct_convention): Delete declaration.
10073 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10074
10075 2002-02-13 Keith Seitz <keiths@redhat.com>
10076
10077 * defs.h (core_addr_to_string_nz): New function.
10078
10079 2002-02-13 Mark Kettenis <kettenis@gnu.org>
10080
10081 Apply missing bits of 2002-01-15 patch.
10082 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10083 (fill_fpregset): Use i387_fill_fsave.
10084
10085 2002-02-12 Keith Seitz <keiths@redhat.com>
10086
10087 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10088 (core_addr_to_string_nz): New function.
10089
10090 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10091
10092 * arm-linux-nat.c: Really include arm-tdep.h.
10093 * config/arm/tm-linux.h (struct type, struct value): Declare.
10094
10095 2002-02-11 Michael Snyder <msnyder@redhat.com>
10096
10097 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10098 (gcore section): Ifdef for Solaris and Unixware only.
10099 (procfs_do_thread_registers): Unixware needs one lwpstatus
10100 per thread (not one prstatus or pstatus).
10101 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10102 not over all gdb threads. For unixware, call elfcore_write_pstatus
10103 once before iterating over threads.
10104
10105 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10106
10107 * arm-tdep.h: New file.
10108 * arm-tdep.c: Include arm-tdep.h.
10109 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10110 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10111 (arm_print_float_info, arm_register_type, convert_to_extended)
10112 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10113 (arm_extract_return_value, arm_register_name): Make static.
10114 (arm_software_single_step): Similarly. Fix types in declaration.
10115 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10116 (arm_store_return_value, arm_store_struct_return): New functions.
10117 (arm_gdbarch_init): Register the above functions. Also register
10118 call_dummy_start_offset, sizeof_call_dummy_words,
10119 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10120 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
10121 max_register_virtual_size, register_size. Set up
10122 prologue_cache.saved_regs here, rather than ...
10123 (_initialize_arm_tdep): ... here.
10124 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10125 declarations.
10126 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10127 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10128 (arm_print_float_info, arm_register_type, convert_to_extended)
10129 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10130 (arm_extract_return_value, arm_register_name): Delete declarations.
10131 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10132 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10133 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10134 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10135 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10136 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10137 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10138 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10139 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10140 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10141 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10142 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10143 interface.
10144 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10145 * remote-rdi.c remote-rdp.c: Likewise.
10146 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10147 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10148 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10149 definition.
10150
10151 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10152 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10153 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10154 from non-ARM_ prefixed definitions.
10155 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10156 all uses of above.
10157 * remote-rdi.c remote-rdp.c: Likewise.
10158 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10159
10160 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10161
10162 * arm-tdep.c (arm_frameless_function_invocation)
10163 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10164 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10165 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10166 (arm_pop_frame, arm_get_next_pc): Make static.
10167 (arm_gdbarch_init): Register above in gdbarch structure.
10168 (arm_read_fp): Renamed from arm_target_read_fp.
10169 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10170 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10171 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10172 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10173 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10174 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10175 (arm_pc_is_thumb_dummy): Delete declarations.
10176 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10177 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10178 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10179 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
10180
10181 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
10182
10183 * symtab.c (compare_search_syms): New function.
10184 (sort_search_symbols): New function.
10185 (search_symbols): Sort symbols after searching rather than
10186 before.
10187
10188 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10189
10190 * NEWS: Linux -> GNU/Linux.
10191
10192 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10193
10194 * gdbarch.sh: For for level one methods, disallow a definition
10195 when partially multi-arched. Add comments explaining rationale.
10196 * gdbarch.h: Re-generate.
10197
10198 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10199
10200 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10201 multi-arch partial.
10202
10203 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10204
10205 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10206 field. Use diff -u.
10207 * gdbarch.c: Re-generate.
10208
10209 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10210
10211 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
10212 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10213 partial.
10214
10215 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10216
10217 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10218 multi-arch partial.
10219 (PUSH_ARGUMENTS): Switch to using predefault.
10220 * gdbarch.c: Regenerate.
10221
10222 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10223
10224 * valops.c (PUSH_ARGUMENTS): Delete definition.
10225 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10226 partial. Default to default_push_arguments.
10227 * gdbarch.h, gdbarch.c: Regenerate.
10228
10229 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10230
10231 * defs.h (throw_exception): Rename return_to_top_level. Update
10232 comments.
10233 * utils.c (error_stream, internal_verror, quit): Ditto.
10234 * top.c (throw_exception, catcher): Ditto.
10235 * sparclet-rom.c (sparclet_load): Ditto.
10236 * remote.c (interrupt_query, minitelnet): Ditto.
10237 * remote-sds.c (interrupt_query): Ditto.
10238 * remote-mips.c (mips_error, mips_kill): Ditto.
10239 * ocd.c (interrupt_query): Ditto.
10240 * monitor.c (monitor_interrupt_query): Ditto.
10241 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10242 * target.h: Update comment.
10243
10244 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10245
10246 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10247
10248 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10249 default_double_format.
10250 * gdbarch.h, gdbarch.c: Re-generate.
10251 * findvar.c (floatformat_unknown): Delete variable definition.
10252 * doublest.h (floatformat_unknown): Delete variable declaration.
10253
10254 2002-02-09 Jim Blandy <jimb@redhat.com>
10255
10256 * stabsread.c (read_type): Add code to parse Sun's syntax for
10257 prototyped function types.
10258
10259 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10260
10261 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10262 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10263
10264 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10265
10266 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10267 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10268 now _initialize_xcoffsolib gets called again and overrides the
10269 commands from solib.c in a native configuration.
10270
10271 2002-02-09 Mark Kettenis <kettenis@gnu.org>
10272
10273 * doublest.c (store_typed_floating): Don't try to return a value.
10274 Fixes PR gdb/290.
10275
10276 2002-02-08 Jim Blandy <jimb@redhat.com>
10277
10278 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10279 is prototyped and has no arguments, print its argument list as
10280 `(void)'.
10281
10282 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10283
10284 * MAINTAINERS (write-after-approval): Add myself.
10285 (paper-trail): I've escaped!
10286
10287 2002-02-08 Christopher Faylor <cgf@redhat.com>
10288
10289 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10290 changes.
10291 (_initialize_check_for_gdb_ini): Ditto.
10292
10293 2002-02-08 Martin M. Hunt <hunt@redhat.com>
10294
10295 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10296 xaprintf -> xasprintf.
10297
10298 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10299
10300 * win32-nat.c: Remove use of printf and sprintf functions.
10301
10302 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
10303
10304 * arm-tdep.c (arm_frame_chain_valid): Make static.
10305 (arm_push_arguments): Likewise.
10306 (arm_gdbarch_init): New function.
10307 (_initialize_arm_tdep): Call it.
10308 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10309 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10310 (FRAME_CHAIN_VALID): Delete.
10311 (arm_frame_chain_valid): Delete declaration.
10312 (PUSH_ARGUMENTS): Delete.
10313 (arm_push_arguments): Delete declaration.
10314 (CALL_DUMMY_P): Delete.
10315
10316 2002-02-08 Andrew Cagney <ac131313@redhat.com>
10317 Corinna Vinschen <vinschen@redhat.com>
10318
10319 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10320 on builtin float types.
10321
10322 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
10323
10324 * utils.c: Include <curses.h> before "bfd.h".
10325 * tui/tui-hooks.c: Likewise.
10326 * tui/tui.c: Likewise.
10327 * tui/tuiCommand.c: Likewise.
10328 * tui/tuiData.c: Likewise.
10329 * tui/tuiDataWin.c: Likewise.
10330 * tui/tuiDisassem.c: Likewise.
10331 * tui/tuiGeneralWin.c: Likewise.
10332 * tui/tuiIO.c: Likewise.
10333 * tui/tuiLayout.c: Likewise.
10334 * tui/tuiRegs.c: Likewise.
10335 * tui/tuiSource.c: Likewise.
10336 * tui/tuiSourceWin.c: Likewise.
10337 * tui/tuiStack.c: Likewise.
10338 * tui/tuiWin.c: Likewise.
10339
10340 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
10341
10342 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10343 to include space for pseudoregs as well. Update loops accordingly.
10344 (sh_fp_frame_init_saved_regs): Ditto.
10345 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10346
10347 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10348
10349 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10350 Add Richard Earnshaw to Arm maintainers.
10351
10352 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10353
10354 * defs.h (warning_begin): Delete declaration.
10355
10356 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10357 Delete macro.
10358
10359 2002-02-07 Michael Snyder <msnyder@redhat.com>
10360
10361 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10362 Logic bug, remove misplaced else.
10363
10364 2002-02-07 Klee Dienes <klee@apple.com>
10365
10366 * fork-inferior.c (fork_inferior): Add '!' to the list of
10367 characters that need to be quoted when building a string for the
10368 shell. Quote '!' specifically with a backslash, since CSH chokes
10369 when trying to evaluate "str!str".
10370
10371 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10372
10373 * rdi-share/host.h: Only provide a typedef for bool if it is not
10374 defined.
10375
10376 2002-02-04 Michael Snyder <msnyder@redhat.com>
10377
10378 * breakpoint.h (enum bptype): Add new overlay event bp type.
10379 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10380
10381 * breakpoint.c (create_internal_breakpoint): New function.
10382 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10383 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10384 (create_thread_event_breakpoint): Ditto.
10385 (create_solib_event_breakpoint): Ditto.
10386 (create_overlay_event_breakpoint): New function.
10387 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10388 (update_breakpoints_after_exec): Delete and re-initialize
10389 overlay event breakpoints after an exec. Add FIXME comment
10390 about longjmp breakpoint.
10391 (print_it_typical): Ignore overlay event breakpoints.
10392 (print_one_breakpoint): Ditto.
10393 (mention): Ditto.
10394 (bpstat_what): Do not stop for overlay event breakpoints.
10395 (delete_breakpoint): Don't delete overlay event breakpoints.
10396 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10397 (breakpoint_re_set): Re-create overlay event breakpoint.
10398
10399 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10400 (overlay_manual_command): Disable overlay breakpoints.
10401 (overlay_off_command): Disable overlay breakpoints.
10402
10403 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10404
10405 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10406 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10407 to here from config/tm-arm.h.
10408 (coff_sym_is_thumb): Make static.
10409 (arm_elf_make_msymbol_special): New function.
10410 (arm_coff_make_msymbol_special): New function.
10411 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10412 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10413 (coff_sym_is_thumb): Delete declaration.
10414 (arm_elf_make_msymbol_special): Declare.
10415 (arm_coff_make_msymbol_special): Declare.
10416 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10417 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10418
10419 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10420
10421 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10422
10423 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10424
10425 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10426 * gdbarch.c gdbarch.h: Regenerate.
10427 * arch-utils.c (default_print_float_info): New function.
10428 * arch-utils.h (default_print_float_info): Prototype it.
10429 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10430 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10431 (PRINT_FLOAT_INFO): Document it.
10432
10433 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10434 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10435 (PRINT_FLOAT_INFO): Define.
10436
10437 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10438
10439 * win32-nat.c (_initialize_check_for_gdb_ini):
10440 Add typecast to sprintf argument to suppress a warning.
10441
10442 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10443
10444 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10445 to allow easier handling of pass state.
10446 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10447 that gives exception name and address.
10448 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10449 and set last_sig value to ourstatus->value.sig. Some missing
10450 exceptions added.
10451 (child_continue): Correctly report continue_status.
10452 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10453 TARGET_SIGNAL_0 (new default value).
10454 (child_resume): consider sig argument passed to decide if
10455 the exception should be passed to debuggee or not.
10456
10457 2002-02-05 Michael Snyder <msnyder@redhat.com>
10458
10459 * regcache.c (fetch_register): Call target_fetch_register
10460 only if we don't call FETCH_PSEUDO_REGISTER.
10461 (store_register): Call target_store_register only if we
10462 don't call STORE_PSEUDO_REGISTER.
10463
10464 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
10465
10466 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10467 ELF_MAKE_MSYMBOL_SPECIAL.
10468 * gdbarch.c, gdbarch.h: Regenerate.
10469 * arch-utils.c (default_make_msymbol_special): New function.
10470 * arch-utils.h (default_make_msymbol_special): Export.
10471 * elfread.c (elf_symtab_read): Compile use of
10472 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10473 multiarched.
10474 * coffread.c (coff_symtab_read): Ditto, for
10475 COFF_MAKE_MSYMBOL_SPECIAL.
10476
10477 2002-02-05 Jim Blandy <jimb@redhat.com>
10478
10479 * solib-svr4.c (svr4_truncate_ptr): New function.
10480 (svr4_relocate_section_addresses): Do the address arithmetic with
10481 the appropriate truncation for target addresses, even when
10482 CORE_ADDR is larger than a target address.
10483
10484 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10485
10486 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10487 to (int *).
10488
10489 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10490
10491 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10492 code.
10493
10494 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10495
10496 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10497
10498 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10499
10500 * gdbserver/linux-low.c: Remove unused include files.
10501
10502 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10503
10504 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10505 (read_inferior_memory): Use it.
10506 (write_inferior_memory): Likewise.
10507
10508 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10509
10510 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10511 grubbing through sys_errlist.
10512
10513 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10514
10515 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10516
10517 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10518 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10519
10520 2002-02-04 Andrew Cagney <ac131313@redhat.com>
10521
10522 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10523 (do_sfunc, set_cmd_sfunc): New functions.
10524
10525 * command.h (struct cmd_list_element): Add field func.
10526 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10527 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10528 * cli/cli-decode.h: Ditto.
10529
10530 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10531 (help_all, help_cmd_list): Ditto.
10532 (find_cmd, complete_on_cmdlist): Ditto.
10533 * top.c (execute_command): Ditto.
10534
10535 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10536 function.sfunc.
10537
10538 * infcmd.c (notice_args_read): Fix function signature.
10539
10540 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10541 * cli/cli-decode.c (add_set_cmd): Ditto.
10542 * utils.c (initialize_utils): Ditto.
10543 * maint.c (_initialize_maint_cmds): Ditto.
10544 * infrun.c (_initialize_infrun): Ditto.
10545 * demangle.c (_initialize_demangler): Ditto.
10546 * remote.c (add_packet_config_cmd): Ditto.
10547 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10548 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10549 * proc-api.c (_initialize_proc_api): Ditto.
10550 * kod.c (_initialize_kod): Ditto.
10551 * valprint.c (_initialize_valprint): Ditto.
10552 * top.c (init_main): Ditto.
10553 * infcmd.c (_initialize_infcmd): Ditto.
10554 * corefile.c (_initialize_core): Ditto.
10555 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10556 * arch-utils.c (initialize_current_architecture): Ditto.
10557 (_initialize_gdbarch_utils): Ditto.
10558 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10559
10560 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10561 * wince.c (_initialize_inftarg): Ditto.
10562 * symfile.c (_initialize_symfile): Ditto.
10563 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10564 * language.c (_initialize_language): Ditto.
10565 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10566
10567 2002-02-04 Michael Snyder <msnyder@redhat.com>
10568
10569 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10570
10571 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10572
10573 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10574 Add rules for building the register data files.
10575
10576 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10577
10578 * regformats/regdat.sh: Add braces to the definition of
10579 expedite_regs_${arch}.
10580
10581 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10582
10583 * regformats/regdef.h (struct reg): Add comment describing the
10584 requirements for offset and size fields.
10585
10586 2002-02-04 Andreas Schwab <schwab@suse.de>
10587
10588 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10589 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10590
10591 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
10592
10593 * gdbarch.sh (copyright): Update years in generated header.
10594 (SMASH_TEXT_ADDRESS): Add rule.
10595 * gdbarch.h, gdbarch.c: Re-generate.
10596 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10597 * dbxread.c: Likewise.
10598 * dwarfread.c: Likewise.
10599 * elfread.c: Likewise.
10600 * somread.c: Likewise.
10601
10602 * arm-tdep.c (arm_smash_text_address): New function.
10603 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10604
10605 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10606
10607 Add support for hardware watchpoints on win32 native.
10608 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10609 CONTEXT_DEBUG_REGISTERS.
10610 (dr variable): New variable. Static array containing a local copy
10611 of debug registers.
10612 (debug_registers_changed): New variable. Reflects when debug registers
10613 are changed and need to be written to inferior.
10614 (debug_registers_used): New variable. Reflects when any debug register
10615 was set, used when new threads are created.
10616 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10617 i386-nat code.
10618 (thread_rec): Set dr array if id is the thread of current_event .
10619 (child_continue, child_resume): Change the debug registers for all
10620 threads if debug_registers_changed.
10621 (child_add_thread): Change the debug registers if debug_registers_used.
10622 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10623 Link nm.h to new nm-cygwin.h file.
10624 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10625 of hardware registers.
10626
10627 2002-02-03 Andrew Cagney <ac131313@redhat.com>
10628
10629 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10630 Restore behavour broken by 2002-01-20 Andrew Cagney
10631 <ac131313@redhat.com> IEEE_FLOAT removal.
10632
10633 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10634
10635 * c-valprint.c (c_val_print): Pass a proper valaddr to
10636 cp_print_class_method.
10637 * valops.c (search_struct_method): If there is only one method
10638 and args is NULL, return that method.
10639
10640 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10641
10642 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10643 accessing tag_name directly.
10644
10645 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10646
10647 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10648 of accessing tag_name directly.
10649
10650 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10651
10652 PR gdb/280
10653 * gdbtypes.c (replace_type): New function.
10654 * gdbtypes.h (replace_type): Add prototype.
10655 * stabsread.c (read_type): Use replace_type.
10656
10657 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
10658
10659 * Makefile.in (memattr.o): Add missing dependencies rule.
10660
10661 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10662
10663 * breakpoint.c (break_at_finish_command): Really export.
10664 (break_at_finish_at_depth_command): Ditto.
10665 (tbreak_at_finish_command): Ditto.
10666 * hppa-tdep.c: Include completer.h.
10667 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10668 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10669
10670 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10671
10672 * utils.c (do_write): New function.
10673 (error_stream): Rewrite combining the code from error_begin and
10674 verror.
10675 (verror): Rewrite using error_stream.
10676 (error_begin): Delete function.
10677
10678 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10679
10680 * utils.c (error_begin): Make static.
10681 * defs.h (error_begin): Delete declaration.
10682
10683 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10684 (decode_line_1): Use cplusplus_error instead of error_begin,
10685 cplusplus_hint and return_to_top_level.
10686 * coffread.c (coff_symfile_read): Use error instead of error_begin
10687 and return_to_top_level.
10688 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10689
10690 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10691
10692 * language.h (type_error, range_error): Make string parameter
10693 constant.
10694 * language.c (warning_pre_print): Delete extern declaration.
10695 * dwarfread.c (warning_pre_print): Ditto.
10696 * language.c (type_error, range_error): Rewrite to use verror and
10697 vwarning instead of warning_begin.
10698
10699 2002-02-01 Michael Snyder <msnyder@redhat.com>
10700
10701 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10702 (set_ignore_count): Move misplaced comment back where it belongs.
10703
10704 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10705
10706 * command.h (NO_FUNCTION): Delete macro.
10707 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10708 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10709 * tracepoint.c (_initialize_tracepoint): Ditto.
10710 * cli/cli-decode.c (add_set_cmd): Ditto.
10711 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10712
10713 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10714
10715 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10716 Update ``this'' pointer when calling virtual functions.
10717
10718 2002-02-01 Michael Snyder <msnyder@redhat.com>
10719
10720 * breakpoint.c (create_temp_exception_breakpoint): Delete.
10721 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10722
10723 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10724
10725 * regformats/reg-arm.dat: New file.
10726 * regformats/reg-i386.dat: New file.
10727 * regformats/reg-ia64.dat: New file.
10728 * regformats/reg-m68k.dat: New file.
10729 * regformats/reg-mips.dat: New file.
10730 * regformats/reg-ppc.dat: New file.
10731 * regformats/reg-sh.dat: New file.
10732 * regformats/regdef.h: New file.
10733 * regformats/regdat.sh: New file.
10734
10735 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
10736
10737 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10738 (arm_frame_args_address, arm_frame_locals_address): New functions.
10739 (arm_frame_num_args): New function.
10740 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10741 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10742 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10743
10744 2002-01-31 Michael Snyder <msnyder@redhat.com>
10745
10746 * breakpoint.c (break_at_finish_command): Export.
10747 (break_at_finish_at_depth_command): Export.
10748 (tbreak_at_finish_command): Export.
10749 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
10750 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10751 "txbreak" commands, which are HPPA specific.
10752
10753 * printcmd.c (disassemble_command): Remove an ancient
10754 artifact of an old merge.
10755
10756 * symfile.h (enum overlay_debugging_state):
10757 Define enum constant values for overlay mode.
10758 * symfile.c (overlay_debugging): Use enums instead of literals.
10759 (overlay_is_mapped, overlay_auto_command,
10760 overlay_manual_command): Ditto.
10761
10762 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10763 breakpoint_here_p, breakpoint_inserted_here_p,
10764 breakpoint_thread_match, bpstat_stop_status,
10765 describe_other_breakpoints, check_duplicates, clear_command):
10766 Coding standard fixes.
10767
10768 * target.c (target_xfer_memory): Add spaces, coding standard.
10769 (do_xfer_memory): Add missing line to trust-readonly
10770 code: check bfd SEC_READONLY flag for section.
10771
10772 2002-01-31 Andrew Cagney <ac131313@redhat.com>
10773
10774 * PROBLEMS: Fix typo, 5.1->5.1.1.
10775
10776 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
10777
10778 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10779 data symbols, since we search based on textlow and texthigh.
10780 (find_pc_sect_symtab): Likewise.
10781
10782 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10783
10784 * defs.h (vwarning): Declare.
10785 * utils.c (vwarning): New function.
10786 (warning): Call vwarning.
10787 (warning_begin): Delete function.
10788
10789 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10790 the warning message.
10791 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10792 warning_begin.
10793
10794 2002-01-30 Michael Snyder <msnyder@redhat.com>
10795
10796 * NEWS: Mention "set trust-readonly-sections" command.
10797 Mention generate-core-file command.
10798
10799 2002-01-15 Michael Snyder <msnyder@redhat.com>
10800
10801 * target.c: New command, "set trust-readonly-sections on".
10802 (do_xfer_memory): Honor the suggestion to trust readonly sections
10803 by reading them from the object file instead of from the target.
10804 (initialize_targets): Register command "set trust-readonly-sections".
10805
10806 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10807
10808 * parse.c (target_map_name_to_register): Simplify, search regs and
10809 pseudo-regs using a single loop.
10810
10811 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10812
10813 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10814
10815 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
10816
10817 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10818 * config/i386/i386v42mp.mh: Add i387-nat.o .
10819 * i386v4-nat.c: Include i387-nat.h.
10820 (supply_fpregset): Use i387_supply_fsave.
10821 (fill_fpregset): Use i387_fill_fsave.
10822
10823 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
10824
10825 * arm-tdep.c (arm_call_dummy_words): Define.
10826 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10827 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10828 (CALL_DUMMY_WORDS): Define.
10829 (arm_call_dummy_words): Declare.
10830 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10831 (arm_linux_call_dummy_words): Declare.
10832
10833 2002-01-30 Andreas Schwab <schwab@suse.de>
10834
10835 * m68klinux-nat.c: Fix last change to use regcache_collect
10836 instead of referencing registers[] directly.
10837
10838 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10839
10840 * parse.c (target_map_name_to_register): Delete code wrapped in
10841 #ifdef REGISTER_NAME_ALIAS_HOOK.
10842
10843 2002-01-28 Michael Snyder <msnyder@redhat.com>
10844
10845 * regcache.c (legacy_read_register_gen): Need to be able to
10846 read pseudo-register as well as real register.
10847 (legacy_write_register_gen): Ditto.
10848
10849 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10850
10851 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10852 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10853 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10854 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10855 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10856 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10857 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10858 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10859 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10860 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10861 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10862 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10863 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10864 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10865 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10866 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10867 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10868 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10869 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10870 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10871
10872 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10873
10874 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10875 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10876 (initialize_current_architecture): Update target_byte_order using
10877 information from BFD.
10878 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
10879 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10880
10881 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10882
10883 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10884 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10885
10886 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10887 #ifdef INVALID_FLOAT.
10888 * infcmd.c (do_registers_info): Ditto.
10889 * values.c (unpack_double): Ditto. Add comment.
10890
10891 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10892 already commented out.
10893
10894 2002-01-26 Andreas Schwab <schwab@suse.de>
10895
10896 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10897 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10898 registers and add support for PTRACE_GETREGS.
10899
10900 2002-01-24 Andrew Cagney <ac131313@redhat.com>
10901
10902 GDB 5.1.1 released from 5.1 branch.
10903 * NEWS: Add 5.1.1 news.
10904 * README: Sync with 5.1 branch.
10905
10906 2002-01-23 Fred Fish <fnf@redhat.com>
10907
10908 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10909 stabstring on initial malloc. Reallocing will copy it for us,
10910 if necessary.
10911
10912 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10913
10914 * Makefile.in (hpread_h): Delete.
10915 (HFILES_NO_SRCDIR): Remove hpread.h.
10916 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10917 (hpread.o): Update dependencies.
10918 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10919
10920 * hp-psymtab-read.c: Remove file.
10921 * hp-symtab-read.c: Remove file.
10922 * hpread.h: Remove file.
10923
10924 * hpread.c: Merge all contents of hp-psymtab-read.c,
10925 hp-symtab-read.c and hpread.h into this file, as it was prior to
10926 January 1999.
10927
10928 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
10929 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
10930 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10931 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10932
10933 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10934
10935 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10936 fill_gregset): Call gdbarch_tdep() just once, assign result to
10937 variable and use that, instead of calling the function several
10938 times.
10939
10940 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10941
10942 * configure.host: Accept sparcv9 as alias for sparc64.
10943 * configure.tgt: Likewise.
10944
10945 2002-01-22 Kevin Buettner <kevinb@redhat.com>
10946
10947 * solib-aix5.c (build_so_list_from_mapfile)
10948 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10949 arguments is not reversed.
10950 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10951 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
10952
10953 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
10954
10955 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10956 modified version of obsolete sh_fetch_pseudo_register.
10957 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10958 (sh4_register_read): New function.
10959 (sh_pseudo_register_write): New function. Renamed and modified
10960 version of obsolete sh_store_pseudo_register.
10961 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10962 (sh4_register_write): New function.
10963 (sh_gdbarch_init): Remove setting of gdbarch function
10964 fetch_pseudo_register and store_pseudo_register. Remove setting of
10965 register_convert_to_raw, register_convert_to_virtual,
10966 register_convertible.
10967 (sh_sh4_register_convertible): Delete. No longer needed. All is
10968 taken care by architecture specific functions
10969 register_read/register_write.
10970 (sh_sh4_register_convert_to_virtual): Make static.
10971 (sh_sh4_register_convert_to_raw): Ditto.
10972
10973 2002-01-22 Andrew Cagney <ac131313@redhat.com>
10974
10975 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10976 (floatformat_is_nan, floatformat_mantissa): Ditto.
10977
10978 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10979 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10980 builtin_type_ieee_double_little,
10981 builtin_type_ieee_double_littlebyte_bigword,
10982 builtin_type_m68881_ext, builtin_type_i960_ext,
10983 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10984 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10985 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10986 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10987
10988 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
10989
10990 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10991 parameter. Set frameless flag if it exists and depended of
10992 whether the scanned function is frameless or not.
10993 (xstormy16_skip_prologue): If function is frameless, return
10994 result of xstormy16_scan_prologue().
10995 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10996 call.
10997
10998 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
10999
11000 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11001 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11002 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11003 sh_sh4_register_byte, sh_sh4_register_raw_size,
11004 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11005 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11006 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11007 sh_store_pseudo_register, sh_do_pseudo_register): Call
11008 gdbarch_tdep() just once, assign result to variable and use that,
11009 instead of calling the function several times.
11010
11011 2002-01-20 Mark Kettenis <kettenis@gnu.org>
11012
11013 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11014 macros instead of LAST_FPU_CTRL_REGNUM.
11015 (store_register): Likewise.
11016
11017 2002-01-21 Jim Blandy <jimb@redhat.com>
11018
11019 * infcmd.c (run_command): Check that the `exec' target layer's BFD
11020 is up-to-date before running the program, not just when a program
11021 exits.
11022
11023 2002-01-21 Fred Fish <fnf@redhat.com>
11024
11025 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11026 when we have found all instructions we are looking for.
11027
11028 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11029
11030 * arm-tdep.c (arm_register_name): New function.
11031 (arm_registers_names): Make static.
11032 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11033 (arm_register_name): Declare.
11034 (REGISTER_NAME): Use it.
11035
11036 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11037 Kevin Buettner <kevinb@redhat.com>
11038
11039 Convert arm targets to new FRAME interface.
11040 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11041 (arm_frame_find_save_regs): Delete.
11042 (arm_frame_init_saved_regs): New.
11043 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11044 Allocate extra_info as required. Convert all uses of fsr.regs
11045 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11046 to use extra_info.
11047 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11048 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11049 (check_prologue_cache, save_prologue_cache): Likewise.
11050 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11051 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11052 (FRAME_FIND_SAVED_REGS): Delete.
11053 (arm_frame_find_saved_regs): Delete prototype.
11054 (arm_frame_init_saved_regs): New prototype.
11055 (FRAME_INIT_SAVED_REGS): Define.
11056
11057 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11058
11059 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11060
11061 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11062
11063 From Jeff Law <law@redhat.com>:
11064 * infttrace.c: Include <sys/pstat.h>.
11065 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11066 exec file if the ttrace equivalent fails.
11067
11068 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11069
11070 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11071 (closeLogFile): Ditto.
11072
11073 2002-01-20 Michael Chastain <mec@shout.net>
11074
11075 * top.c (print_gdb_version): Bump copyright year to 2002.
11076
11077 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11078
11079 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11080 Zannoni and Eli Zaretskii.
11081
11082 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11083
11084 * buildsym.c: Update copyright years.
11085 * c-typeprint.c: Likewise.
11086 * dwarf2read.c: Likewise.
11087 * f-typeprint.c: Likewise.
11088 * gdbtypes.c: Likewise.
11089 * gdbtypes.h: Likewise.
11090 * hp-symtab-read.c: Likewise.
11091 * hpread.c: Likewise.
11092 * mdebugread.c: Likewise.
11093 * p-typeprint.c: Likewise.
11094
11095 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11096
11097 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11098 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11099 byte-order selectable.
11100 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11101 * arch-utils.c: Ditto.
11102 (set_endian): Ditto.
11103 (set_endian_from_file): Ditto.
11104 * gdbserver/low-sim.c (create_inferior): Ditto.
11105 * gdbarch.sh: Ditto.
11106 * gdbarch.h: Re-generate.
11107 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11108 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11109 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11110 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11111 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11112 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11113 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
11114 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11115 macro definition.
11116 * config/mips/tm-wince.h: Remove #undef of macro
11117 TARGET_BYTE_ORDER_SELECTABLE.
11118 * config/sh/tm-wince.h: Ditto.
11119
11120 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11121
11122 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11123 member function fields. Add accessor macro
11124 TYPE_FN_FIELD_ARTIFICIAL.
11125 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11126 * c-typeprint.c (c_type_print_base): Skip artificial member
11127 functions.
11128
11129 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11130
11131 * f-typeprint.c: Delete unused function f_type_print_args.
11132 * p-typeprint.c: Delete unused function pascal_type_print_args.
11133
11134 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11135
11136 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11137 comment. Add ``artificial'' to ``union field_location''.
11138
11139 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11140
11141 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11142 * mdebugread.c (parse_symbol): Likewise.
11143 * stabsread.c (define_symbol): Likewise.
11144 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11145 initializing TYPE_FIELD_BITPOS to n (obsolete).
11146 (hpread_doc_function_type): Likewise.
11147 * hpread.c (hpread_function_type): Likewise.
11148
11149 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11150
11151 * configure.in (host_makefile_frag): Only require a host makefile
11152 fragment when a native build.
11153 * configure: Re-generate.
11154
11155 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11156
11157 * doublest.h (floatformat_from_type): Declare.
11158 * doublest.c (floatformat_from_type): New function.
11159 (convert_typed_floating): Use.
11160
11161 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11162 call to function floatformat_from_type.
11163
11164 * gdbarch.sh (IEEE_FLOAT): Delete.
11165 * gdbarch.h, gdbarch.c: Re-generate.
11166 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11167 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11168 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11169 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11170 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11171 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11172 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11173 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11174 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11175 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11176 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
11177 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11178
11179 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11180 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11181 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11182 * sh-tdep.c (sh_gdbarch_init): Ditto.
11183 * mips-tdep.c (mips_gdbarch_init): Ditto.
11184 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11185 * cris-tdep.c (cris_gdbarch_init): Ditto.
11186
11187 2002-01-20 Jiri Smid <smid@suse.cz>
11188
11189 * configure.host, configure.tgt: Support x86-64.
11190 * NEWS: Note new target x86-64.
11191
11192 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11193 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11194 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11195 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11196 x86-64-linux-nat.o): Fix dependencies.
11197
11198 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11199
11200 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11201 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11202 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11203 * config/sparc/xm-sun4os4.h: Delete file.
11204 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
11205
11206 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11207
11208 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11209 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11210 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11211 * config/i386/i386lynx.mh (XM_FILE): Delete.
11212 * config/rs6000/xm-rs6000ly.h: Delete file.
11213 * config/sparc/xm-sparclynx.h: Delete file.
11214 * config/m68k/xm-m68klynx.h: Delete file.
11215 * config/i386/xm-i386lynx.h: Delete file.
11216 * config/xm-lynx.h: Delete file.
11217 * config/djgpp/fnchange.lst: Update.
11218
11219 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11220
11221 * alpha-tdep.c (alpha_register_byte): New function.
11222 (alpha_register_raw_size): Ditto.
11223 (alpha_register_virtual_size): Ditto.
11224 (alpha_skip_prologue_internal): Renamed from
11225 alpha_skip_prologue.
11226 (alpha_skip_prologue): New version that calls
11227 alpha_skip_prologue_internal.
11228 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11229 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11230 second argument from alpha_skip_prologue.
11231 (REGISTER_BYTE): Use alpha_register_byte.
11232 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11233 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11234 (FRAMELESS_FUNCTION_INVOCATION): Use
11235 generic_frameless_function_invocation_not.
11236 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11237 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11238
11239 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11240
11241 * config/mips/xm-news-mips.h: Delete file.
11242 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11243
11244 * config/m88k/xm-m88k.h: Delete file.
11245 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11246 * config/m88k/xm-delta88v4.h: Ditto.
11247 * config/m88k/xm-delta88.h: Ditto.
11248
11249 * config/alpha/xm-fbsd.h: Delete file.
11250 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11251
11252 * config/sparc/xm-sparc.h: Delete file.
11253 * Makefile.in (xm-sun4os4.h): Delete dependency.
11254 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11255 * config/sparc/xm-sun4os4.h: Ditto.
11256 * config/sparc/xm-linux.h: Ditto.
11257
11258 * config/i386/xm-windows.h: Delete file.
11259
11260 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11261
11262 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11263 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11264
11265 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11266
11267 * alpha-tdep.c (alpha_call_dummy_words): New.
11268 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11269 (CALL_DUMMY_P): Define.
11270 (CALL_DUMMY_WORDS): Define.
11271 (SIZEOF_CALL_DUMMY_WORDS): Define.
11272
11273 2002-01-19 Per Bothner <per@bothner.com>
11274
11275 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11276 isn't NULL, which can happen with some gcj-3.x-produced code.
11277
11278 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11279
11280 * alpha-tdep.c (alpha_register_virtual_type): New function.
11281 (alpha_init_frame_pc_first): Ditto.
11282 (alpha_fix_call_dummy): Ditto.
11283 (alpha_store_struct_return): Ditto.
11284 (alpha_extract_struct_value_address): Ditto.
11285 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11286 alpha_register_virtual_type.
11287 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11288 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11289 alpha_extract_struct_value_address.
11290 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11291 (INIT_FRAME_PC): Use init_frame_pc_noop.
11292 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11293
11294 2002-01-19 Mark Kettenis <kettenis@gnu.org>
11295
11296 * i386gnu-nat.c: Include "i386-tdep.h".
11297 (fetch_fpregs): Simplify code dealing with uninitialized floating
11298 point states such that it doesn't require FP7_REGNUM.
11299
11300 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11301
11302 * alpha-tdep.c (frame_extra_info): New.
11303 (alpha_find_saved_regs): Make static. Use
11304 frame->extra_info.
11305 (alpha_frame_init_saved_regs): New function.
11306 (alpha_frame_saved_pc): Use frame->extra_info.
11307 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11308 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11309 (init_extra_frame_info): Rename to...
11310 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
11311 (alpha_print_extra_frame_info): New function.
11312 (alpha_frame_locals_address): Ditto.
11313 (alpha_frame_args_address): Ditto.
11314 (alpha_pop_frame): Use frame->extra_info.
11315 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11316 alpha_frame_args_address.
11317 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11318 (alpha_find_saved_regs): Remove prototype.
11319 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11320 (EXTRA_FRAME_INFO): Remove.
11321 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11322 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11323
11324 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11325
11326 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11327 (alpha_cannot_fetch_register): Ditto.
11328 (alpha_cannot_store_register): Ditto.
11329 (alpha_register_convertible): Ditto.
11330 (alpha_use_struct_convention): Ditto.
11331 * config/alpha/tm-alpha.h: Update copyright years.
11332 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11333 (INNER_THAN): Use core_addr_lessthan.
11334 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11335 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11336 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11337 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11338 (FRAME_CHAIN): Remove unnecessary cast.
11339
11340 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11341
11342 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11343 obsolete.
11344
11345 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11346
11347 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11348 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11349 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11350 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11351 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11352 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11353 * x86-64-linux-nat.c: Ditto.
11354
11355 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11356
11357 * alpha-tdep.c (alpha_register_name): New function.
11358 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11359 (REGISTER_NAME): Define.
11360
11361 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11362
11363 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11364
11365 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11366
11367 * alpha-tdep.c: Update copyright years.
11368 (alpha_next_pc): New function.
11369 (alpha_software_single_step): Ditto.
11370 * config/alpha/tm-alpha.h: Add prototype for
11371 alpha_software_single_step.
11372
11373 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11374
11375 * alphabsd-nat.c: Update copyright years.
11376 (fill_gregset): Use regcache_collect.
11377 (fill_fpregset): Likewise.
11378 (fetch_inferior_registers): Only fetch integer registers
11379 if requested to do so.
11380 (store_inferior_registers): Only store integer registers
11381 if requested to do so.
11382
11383 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11384
11385 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11386 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11387 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11388 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11389 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11390 * config/arm/linux.mh (XDEPFILES): Delete.
11391 * config/arm/nbsd.mh (XDEPFILES): Delete.
11392 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11393 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11394 * config/i386/i386m3.mh (XDEPFILES): Delete.
11395 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11396 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11397 * config/i386/fbsd.mh (XDEPFILES): Delete.
11398 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11399 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11400 * config/i386/i386v4.mh (XDEPFILES): Delete.
11401 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11402 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11403 * config/i386/i386aix.mh (XDEPFILES): Delete.
11404 * config/i386/go32.mh (XDEPFILES): Delete.
11405 * config/i386/cygwin.mh (XDEPFILES): Delete.
11406 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11407 * config/i386/i386mach.mh (XDEPFILES): Delete.
11408 * config/i386/i386v32.mh (XDEPFILES): Delete.
11409 * config/i386/linux.mh (XDEPFILES): Delete.
11410 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11411 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11412 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11413 * config/i386/i386sco.mh (XDEPFILES): Delete.
11414 * config/i386/i386v.mh (XDEPFILES): Delete.
11415 * config/i386/nbsd.mh (XDEPFILES): Delete.
11416 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11417 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11418 * config/i386/symmetry.mh (XDEPFILES): Delete.
11419 * config/i386/obsd.mh (XDEPFILES): Delete.
11420 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11421 * config/ia64/linux.mh (XDEPFILES): Delete.
11422 * config/ia64/aix.mh (XDEPFILES): Delete.
11423 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11424 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11425 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11426 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11427 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11428 * config/m68k/linux.mh (XDEPFILES): Delete.
11429 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11430 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11431 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11432 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11433 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11434 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11435 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11436 * config/m88k/delta88.mh (XDEPFILES): Delete.
11437 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11438 * config/m88k/m88k.mh (XDEPFILES): Delete.
11439 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11440 * config/mips/linux.mh (XDEPFILES): Delete.
11441 * config/mips/irix6.mh (XDEPFILES): Delete.
11442 * config/mips/irix5.mh (XDEPFILES): Delete.
11443 * config/mips/irix4.mh (XDEPFILES): Delete.
11444 * config/mips/irix3.mh (XDEPFILES): Delete.
11445 * config/mips/decstation.mh (XDEPFILES): Delete.
11446 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11447 (NATDEPFILES): Move core-aout.o to here.
11448 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11449 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11450 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11451 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11452 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11453 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11454 * config/pa/hpux11.mh (XDEPFILES): Delete.
11455 * config/powerpc/aix.mh (XDEPFILES): Delete.
11456 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11457 * config/powerpc/linux.mh (XDEPFILES): Delete.
11458 * config/romp/rtbsd.mh: Rename XDEPFILES.
11459 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11460 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11461 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11462 * config/s390/s390.mh (XDEPFILES): Delete.
11463 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11464 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11465 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11466 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11467 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11468 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11469 * config/sparc/linux.mh (XDEPFILES): Delete.
11470 * config/vax/vaxult.mh (XDEPFILES): Delete.
11471 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11472 * Makefile.in (DEPFILES): Remove XDEPFILES.
11473
11474 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11475
11476 * utils.c (internal_verror): Fix comments, default is yes not no.
11477 Update queries to match. Default to quit and dump core.
11478
11479 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11480
11481 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11482 copyright.
11483 * defs.h, event-top.c, gdbcmd.h: Ditto.
11484 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11485 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11486 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11487 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11488 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11489 * mi/mi-main.c:Ditto.
11490
11491 * stack.c, symfile.c: Update copyright.
11492
11493 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11494
11495 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11496 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11497 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11498 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11499
11500 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11501
11502 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11503 * gdbserver/low-lynx.c (myattach): Likewise.
11504 * gdbserver/low-nbsd.c (myattach): Likewise.
11505 * gdbserver/low-sim.c (myattach): Likewise.
11506 * gdbserver/low-sparc.c (myattach): Likewise.
11507 * gdbserver/low-sun3.c (myattach): Likewise.
11508
11509 * gdbserver/low-linux.c (myattach): New function.
11510
11511 * gdbserver/server.c (attach_inferior): New function.
11512 (main): Handle "--attach".
11513
11514 2002-01-16 Andrew Cagney <ac131313@redhat.com>
11515
11516 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11517 maintainer.
11518
11519 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
11520
11521 * c-typeprint.c (is_type_conversion_operator): Add additional
11522 check for non-conversion operators.
11523
11524 2002-01-15 Michael Snyder <msnyder@redhat.com>
11525
11526 * linux-proc.c: Add "info proc" command, a la procfs.c.
11527 (read_mapping): New function, abstract and re-use code.
11528 (linux_find_memory_regions): Use new func read_mapping.
11529 (linux_info_proc_cmd): New function, implement "info proc".
11530 (_initialize_linux_proc): Add new command "info proc".
11531
11532 2002-01-15 Michael Snyder <msnyder@redhat.com>
11533
11534 * symfile.c (generic_load): Use bfd_map_over_sections method
11535 instead of manipulating bfd structure members directly.
11536 (add_section_size_callback): New function, bfd sections callback
11537 used by generic_load.
11538 (load_sections_callback): New function, bfd sections callback
11539 used by generic_load.
11540
11541 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
11542
11543 [Based on work by Jim Blandy]
11544 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11545 (builtin_type_vec128): Export.
11546 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11547 types.
11548 (builtin_type_vec128): New builtin type for 128 bit vector
11549 registers.
11550 (build_gdbtypes): Initialize builtin_type_v16qi and
11551 builtin_type_v8hi. Create the vec128 register builtin type
11552 structure.
11553 (build_builtin_type_vec128): New function.
11554 (_initialize_gdbtypes): Register builtin_type_v16qi and
11555 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11556 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11557 AltiVec register to new builtin type.
11558
11559 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
11560
11561 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11562 to make_cv_type.
11563
11564 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11565
11566 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11567 CLEAN_UP_REGISTER_VALUE.
11568 * regcache.c (supply_register): Update only call.
11569
11570 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11571
11572 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11573 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11574 a29k-*-vxworks* targets as obsolete.
11575
11576 2002-01-14 Michael Snyder <msnyder@redhat.com>
11577
11578 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11579 until we can resolve portability issues.
11580 * gregset.h: Remove references to fpxregs.
11581 * gcore.c (gcore_command): Initialize note_sec to NULL.
11582
11583 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11584
11585 * signals.c (target_signal_to_name): Rewrite. Only use
11586 signals[].name when in bounds and non-NULL.
11587
11588 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11589
11590 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11591 * signals.c (target_signal_to_name): Verify that SIG is within the
11592 bounds of the signals array.
11593
11594 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11595
11596 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11597
11598 2002-01-13 Keith Seitz <keiths@redhat.com>
11599
11600 * stack.c (print_frame_info_base): Print the frame's pc
11601 only if when print_frame_info_listing_hook is not defined.
11602
11603 2002-01-13 Keith Seitz <keiths@redhat.com>
11604
11605 * varobj.c (varobj_set_value): Make sure that there were no
11606 errors evaluating the object before attempting to set its
11607 value.
11608 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11609 so this offset adjustment is no longer necessary.
11610 (create_child): Don't set the error flag if the child is
11611 a CPLUS_FAKE_CHILD.
11612 (value_of_child): If value_fetch_lazy fails, return NULL
11613 so that callers will be notified that an error occurred.
11614 (c_value_of_variable): Delay check of variable's validity
11615 until later. We actually want all structs and unions to have
11616 the value "{...}".
11617 Do not return "???" for variables which could not be evaluated.
11618 This error condition must be returned to the caller so that it
11619 can get the error condition from gdb.
11620 (cplus_name_of_child): Adjust index for vptr before figuring
11621 out the name of the child.
11622 (cplus_value_of_child): If a child's (real) parent is not valid,
11623 don't even bother trying to give a value for it. Just return
11624 an error. Change all instances in this function.
11625 (cplus_type_of_child): If our parent is one of the "fake"
11626 parents, we need to get at the type of the real parent, and
11627 derive the child's true type using this information.
11628
11629 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11630
11631 From 2002-01-09 John Marshall <johnm@falch.net>:
11632 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11633 sources.redhat.com, and tweak some related URLs which had
11634 suffered from linkrot.
11635
11636 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11637
11638 From Jeff law:
11639 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11640 structures passed in registers.
11641
11642 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11643
11644 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11645 white space which prevented compilation. Reported by DSK
11646 <dsk@student.unsw.edu.au>.
11647
11648 2002-01-11 Michael Snyder <msnyder@redhat.com>
11649
11650 * symfile.c (build_section_addr_info_from_section_tab):
11651 Use bfd access method instead of manipulating bfd directly.
11652 (syms_from_objfile): Ditto.
11653 (simple_overlay_update_1): Ditto.
11654 (simple_overlay_update): Ditto.
11655 (generic_load): Ditto.
11656 (overlay_unmapped_address): FIXME comment, bfd access methods.
11657 (sections_overlap): FIXME comment, bfd access methods.
11658 (pc_in_mapped_range): FIXME comment, bfd access methods.
11659 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11660 (section_is_mapped): FIXME comment, bfd access methods.
11661 (section_is_overlay): FIXME comment, bfd access methods.
11662
11663 * symfile.c (generic_load): Whitespace and long line cleanups.
11664 Remove duplicate variable, change several local variables to
11665 more appropriate data types.
11666 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11667
11668 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11669
11670 From Peter Schauer:
11671 * language.c (longest_local_hex_string_custom): Use phex_nz to
11672 convert NUM to a hex string.
11673
11674 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
11675
11676 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11677 the function.
11678 Update Copyright year.
11679
11680 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11681
11682 * language.c (longest_raw_hex_string): Delete unused function.
11683
11684 2002-01-11 Petr Sorfa <petrs@caldera.com>
11685
11686 * MAINTAINERS (write-after-approval): Add myself.
11687 * dwarf2read.c (read_tag_string_type): Handling of
11688 DW_AT_byte_size.
11689 (read_tag_string_type): FORTRAN fix to prevent propagation of
11690 first string size.
11691 (set_cu_language): Handling of DW_LANG_Fortran95
11692
11693 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
11694
11695 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11696 GETPID(inferior_ptid).
11697 (store_inferior_registers): Likewise.
11698
11699 2002-01-10 Jason Merrill <jason@redhat.com>
11700
11701 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11702 Fix DW_OP_minus.
11703
11704 2002-01-10 Andrew Cagney <ac131313@redhat.com>
11705
11706 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11707 and bfd/elf32-sh-nbsd.c.
11708
11709 2002-01-10 Michael Snyder <msnyder@redhat.com>
11710
11711 * NEWS: Mention --pid and corefile/proc-id behavior change.
11712
11713 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11714 * gcore.c: Include cli/cli-decode.h instead of command.h.
11715
11716 * main.c (captured_main): Add new command line option "--pid".
11717 If the second command line argument (following the symbol-file)
11718 begins with a digit, try to attach to it before trying to open
11719 it as a corefile.
11720 (print_gdb_help): Document the "--pid" argument.
11721
11722 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11723
11724 * completer.c (command_completer): New function.
11725
11726 * completer.h <command_completer>: Add prototype.
11727
11728 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11729 completer for the "help" command.
11730
11731 2002-01-09 Jason Merrill <jason@redhat.com>
11732
11733 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11734
11735 2002-01-09 Michael Snyder <msnyder@redhat.com>
11736
11737 * i386-linux-nat.c (fill_fpxregset): Make global.
11738 (store_fpxregset): Ditto.
11739
11740 * gregset.h (gdb_fpxregset_t): Define.
11741 (supply_fpxregset): Prototype.
11742 (fill_fpxregset): Prototype.
11743
11744 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11745
11746 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11747
11748 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11749 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11750 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11751
11752 2002-01-09 Andrew Cagney <ac131313@redhat.com>
11753
11754 * MAINTAINERS: Update target maintainer rules so that any
11755 Maintainer can approve a tested patch for a maintenance-only
11756 target.
11757
11758 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11759
11760 * MAINTAINERS (write-after-approval): Add myself.
11761
11762 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
11763 IN_SIGTRAMP.
11764
11765 2002-01-08 Michael Snyder <msnyder@redhat.com>
11766
11767 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11768 real name of the executable, rather than the /proc name.
11769
11770 2002-01-03 Michael Snyder <msnyder@redhat.com>
11771
11772 Implement a "generate-core-file" command in gdb, save target state.
11773 * gcore.c: New file. Implement new command 'generate-core-file'.
11774 Save a corefile image of the current state of the inferior.
11775 * linux-proc.c: Add linux-specific code for saving corefiles.
11776 * target.h (struct target_ops): Add new target vectors for saving
11777 corefiles; to_find_memory_regions and to_make_corefile_notes.
11778 (target_find_memory_regions): New macro.
11779 (target_make_corefile_notes): New macro.
11780 * target.c (update_current_target): Inherit new target methods.
11781 (dummy_find_memory_regions): New place-holder method.
11782 (dummy_make_corefile_notes): New place-holder method.
11783 (init_dummy_target): Initialize new dummy target vectors.
11784 * exec.c (exec_set_find_memory_regions): New function.
11785 Allow the exec_ops vector for memory regions to be taken over.
11786 (exec_make_note_section): New function, target vector method.
11787 * defs.h (exec_set_find_memory_regions): Export prototype.
11788 * procfs.c (proc_find_memory_regions): New function, corefile method.
11789 (procfs_make_note_section): New function, corefile method.
11790 (init_procfs_ops): Set new target vector pointers.
11791 (find_memory_regions_callback): New function.
11792 (procfs_do_thread_registers): New function.
11793 (procfs_corefile_thread_callback): New function.
11794 * sol-thread.c (sol_find_memory_regions): New function.
11795 (sol_make_note_section): New function.
11796 (init_sol_thread_ops): Initialize new target vectors.
11797 * inftarg.c (inftarg_set_find_memory_regions): New function.
11798 Allow to_find_memory_regions vector to be taken over.
11799 (inftarg_set_make_corefile_notes): New function.
11800 Allow to_make_corefile_notes vector to be taken over.
11801 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11802 interface layer if not target_has_execution (may be a corefile).
11803 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11804 * config/sparc/sun4sol2.mh: Ditto.
11805 * config/alpha/alpha-linux.mh: Ditto.
11806 * config/arm/linux.mh: Ditto.
11807 * config/i386/x86-64linux.mh: Ditto.
11808 * config/ia64/linux.mh: Ditto.
11809 * config/m68k/linux.mh: Ditto.
11810 * config/mips/linux.mh: Ditto.
11811 * config/powerpc/linux.mh: Ditto.
11812 * config/sparc/linux.mh: Ditto.
11813
11814 2002-01-07 Michael Snyder <msnyder@redhat.com>
11815
11816 * arm-linux-nat.c: Remove references to regcache.c internal data
11817 (registers[] and register_valid[]).
11818
11819 2002-01-07 Michael Snyder <msnyder@redhat.com>
11820
11821 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11822 so that attaching to a pid will automatically read the process's
11823 symbol file and shlibs.
11824 * Makefile.in: Add rule for linux-proc.o.
11825 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11826 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11827 * config/arm/linux.mh: Ditto.
11828 * config/i386/linux.mh: Ditto.
11829 * config/i386/x86-64linux.mh: Ditto.
11830 * config/ia64/linux.mh: Ditto.
11831 * config/m68k/linux.mh: Ditto.
11832 * config/mips/linux.mh: Ditto.
11833 * config/powerpc/linux.mh: Ditto.
11834 * config/sparc/linux.mh: Ditto.
11835
11836 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11837
11838 * win32-nat.c: Add i386-tdep.h dependency.
11839
11840 2002-01-07 Michael Snyder <msnyder@redhat.com>
11841
11842 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11843 instead of bfd_get_arch_size. Don't bail out just because
11844 there's no exec_bfd.
11845
11846 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11847 * p-valprint.c (pascal_object_print_value): Ditto.
11848 * somread.c (som_symtab_read): Ditto.
11849 * symfile.c (simple_free_overlay_region_table): Ditto.
11850 * valops.c (value_assign): Ditto.
11851
11852 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11853 use tilde_expand and strerror for opening save-tracepoints file.
11854
11855 * thread-db.c (thread_db_new_objfile): Indendation fix.
11856
11857 * infptrace.c (GDB_MAX_ALLOCA): New define.
11858 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
11859 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
11860 can be overridden with whatever value is appropriate to the host).
11861 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11862 alloca to allocate potentially large buffer.
11863 * rs6000-nat.c (child_xfer_memory): Ditto.
11864 * symm-nat.c (child_xfer_memory): Ditto.
11865 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11866
11867 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11868
11869 From Nick Clifton <nickc@redhat.com>
11870 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11871
11872 2002-01-07 Michael Snyder <msnyder@redhat.com>
11873
11874 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11875 Don't use exec_bfd if it's NULL.
11876
11877 2002-01-06 Mark Kettenis <kettenis@gnu.org>
11878
11879 * valops.c (value_arg_coerce): Fix formatting.
11880
11881 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11882
11883 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11884 * gnu-nat.c: Ditto.
11885
11886 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11887
11888 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11889 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11890 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11891 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11892 z8k-coff have not been multi-arched. Update z8k-coff build
11893 status.
11894
11895 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11896
11897 * MAINTAINERS: Mark a29k target as obsolete.
11898 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11899 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11900 comments.
11901 * NEWS: Note that a29k targets are obsolete.
11902 * a29k-tdep.c: Mark as obsolete.
11903 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11904 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11905 a29k-*-vxworks* targets as obsolete.
11906 * remote-adapt.c: Obsolete.
11907 * remote-eb.c: Obsolete.
11908 * remote-mm.c: Obsolete.
11909 * remote-udi.c: Obsolete.
11910 * config/a29k/a29k-udi.mt: Obsolete.
11911 * config/a29k/a29k.mt: Obsolete.
11912 * config/a29k/tm-a29k.h: Obsolete.
11913 * config/a29k/tm-vx29k.h: Obsolete.
11914 * config/a29k/vx29k.mt: Obsolete.
11915
11916 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11917
11918 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11919 with BFD_ENDIAN_BIG.
11920
11921 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11922
11923 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11924 * configure, config.in: Re-generate.
11925 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11926 * defs.h: Do not include <endian.h>.
11927
11928 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11929
11930 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11931 * config.in: Regenerate.
11932 * configure.in: Update copyright years.
11933 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11934 * configure: Regenerate.
11935 * i386bsd-nat.c: Update copyright years.
11936 (fill_gregset): Use regcache_collect.
11937 (fetch_inferior_registers): Only fetch integer registers
11938 if requested to do so. Add support for XMM registers
11939 using PT_GETXMMREGS.
11940 (store_inferior_registers): Only store integer registers
11941 if requested to do so. Add support for XMM registers
11942 using PT_SETXMMREGS.
11943 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11944 (store_inferior_registers): Remove.
11945 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11946 (fetch_elfcore_registers): New function.
11947 (i386nbsd_elfcore_fns): New.
11948 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11949 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11950 i386bsd-nat.o.
11951 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11952 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11953 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11954 * config/i386/tm-nbsd.h: Update copyright years.
11955 (HAVE_SSE_REGS): Define.
11956 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11957 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11958 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11959 (SIGCONTEXT_PC_OFFSET): Remove.
11960 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11961
11962 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11963
11964 * configure.tgt: Remove powerpc-*-macos* target.
11965 * config/m68k/xm-mpw.h: Delete file.
11966 * config/xm-mpw.h: Delete file.
11967 * ser-mac.c: Delete file.
11968 * mpw-make.sed: Delete file.
11969 * mpw-config.in: Delete file.
11970 * mac-xdep.c: Delete file.
11971 * mac-gdb.r: Delete file.
11972 * mac-defs.h: Delete file.
11973 * mac-nat.c: Delete file.
11974 * config/powerpc/macos.mh: Delete file.
11975 * config/powerpc/macos.mt: Delete file.
11976 * config/powerpc/nm-macos.h: Delete file.
11977 * config/powerpc/tm-macos.h: Delete file.
11978 * source.c (openp, open_source_file): Remove obsolete code.
11979 * top.c (gdb_readline): Ditto.
11980 * utils.c (query): Ditto.
11981 * event-top.c (display_gdb_prompt): Ditto.
11982 * Makefile.in (ser-mac.o): Delete obsolete target.
11983 * NEWS: Update.
11984
11985 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11986
11987 * defs.h (BIG_ENDIAN): Delete macro definition.
11988 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11989 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11990 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11991 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11992 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11993 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11994 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11995 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11996 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11997 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11998 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11999 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12000 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12001 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12002 * gdbarch.c: Re-generate.
12003
12004 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12005
12006 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12007 for core files.
12008
12009 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12010
12011 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12012
12013 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12014
12015 * value.h (value_ptr): Delete typedef.
12016
12017 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12018
12019 * i386nbsd-nat.c: Update copyright years.
12020 Include i386-tdep.h.
12021
12022 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
12023
12024 * stabsread.c: Update copyright years.
12025
12026 From Debashis Mahata <debashis.mahata@wipro.com>:
12027 (read_struct_fields): Deal with Sun C compiler erroneous stab
12028 output for structs and unions.
12029 Fix PR gdb/269.
12030
12031 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12032
12033 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12034 prototype.
12035
12036 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12037
12038 * cp-abi.c: Fix whitespace.
12039 (baseclass_offset): New wrapper function.
12040 * cp-abi.h (baseclass_offset): Add prototype.
12041 (struct cp_abi_ops): Add baseclass_offset pointer.
12042
12043 * valops.c (vb_match): Move to...
12044 * gnu-v2-abi.c (vb_match): here.
12045 * valops.c (baseclass_offset): Move to...
12046 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12047
12048 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12049
12050 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12051 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12052 * hpacc-abi.c (init_hpacc_ops): Likewise.
12053
12054 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12055
12056 * valops.c (find_overload_match): Accept obj as a
12057 reference parameter. Update it before returning.
12058 * value.h (find_overload_match): Update prototype.
12059 * eval.c (evaluate_subexp_standard): Pass object to
12060 find_overload_match by reference.
12061
12062 2002-01-03 Andrew Cagney <ac131313@redhat.com>
12063
12064 * valarith.c: Replace value_ptr with struct value pointer. Remove
12065 register attribute from value declarations.
12066 * valops.c: Ditto.
12067 * value.h: Ditto.
12068 * scm-lang.c (scm_lookup_name): Ditto.
12069
12070 2002-01-03 Michael Snyder <msnyder@redhat.com>
12071
12072 Abstract the functionality of iterating over mapped memory
12073 regions into a general purpose iterator function.
12074 * procfs.c (iterate_over_mappings): New function, general purpose
12075 iterator for memory sections.
12076 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12077 (solib_mappings_callback): New function, callback for above.
12078 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12079 (info_mappings_callback): New function, callback for above.
12080
12081 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12082
12083 2002-01-01 Mark Kettenis <kettenis@gnu.org>
12084
12085 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12086 * i386-tdep.c: Include "elf-bfd.h".
12087 (process_note_abi_tag_sections): New function.
12088 (i386_gdbarch_init): Add code to recognize various OS/ABI
12089 combinations.
12090
12091 * maint.c (_initialize_maint_cmds): Add missing \ in
12092 string-literal.
12093
12094 For older changes see ChangeLog-2001
12095 \f
12096 Local Variables:
12097 mode: change-log
12098 left-margin: 8
12099 fill-column: 74
12100 version-control: never
12101 End: