2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
[binutils-gdb.git] / gdb / ChangeLog
1 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
2
3 * NEWS: add recent mi fixes.
4 * varobj.c (struct varobj): Add new "updated" flag.
5 (new_variable): Default "updated" flag to 0.
6 (varobj_set_value): Set "updated" flag to 1 if value
7 changes.
8 (varobj_update): Check varobj "updated" flag before
9 comparing old and refreshed values. Fix for
10 PR gdb/702.
11
12 2002-10-23 David Carlton <carlton@math.stanford.edu>
13
14 * parse.c (parse_exp_1): Use BLOCK_START.
15 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
16 SYMBOL_BLOCK_VALUE.
17 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
18
19 2002-10-23 David Carlton <carlton@math.stanford.edu>
20
21 * symtab.c: Delete cplusplus_hint.
22 Delete prototype for find_template_name_end.
23
24 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
25
26 * symtab.h: Update comment.
27
28 2002-10-23 Michael Snyder <msnyder@redhat.com>
29
30 * printcmd.c (address_info): Restore quotes in output.
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_demangled_name): New function.
36 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
37 turning most of it into a function.
38 (symbol_demangled_name): Export.
39
40 2002-10-23 Michael Snyder <msnyder@redhat.com>
41
42 * valops.c (value_of_local): Restore quotes in error message.
43
44 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
45
46 * symtab.c (symbol_init_language_specific): New function.
47 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
48 turning most of it into a function.
49 (symbol_init_language_specific): Export.
50
51 2002-10-23 David Carlton <carlton@math.stanford.edu>
52
53 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
54 (dwarf_attr_name): Ditto.
55 (dwarf_type_encoding_name): Ditto.
56 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
57 (process_die): Handle DW_TAG_namespace,
58 DW_TAG_imported_declaration, DW_TAG_imported_module.
59 (read_namespace): New function.
60
61 2002-10-22 Joel Brobecker <brobecker@gnat.com>
62
63 * configure.in: Define NEW_PROC_API on Interix too.
64 * configure: Regenerate.
65
66 2002-10-21 Joel Brobecker <brobecker@gnat.com>
67
68 * configure: Regenerate using the proper version of autoconf.
69
70 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
71
72 * findvar.c (read_var_value): Temporarily disable TLS code, until
73 complete TLS support is added.
74
75 2002-10-21 Jim Blandy <jimb@redhat.com>
76 Elena Zannoni <ezannoni@redhat.com>
77
78 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
79 for thread local storage locations.
80 (struct symbol): Add objfile field.
81 (SYMBOL_OBJFILE): Define.
82 * dwarf2read.c (is_thread_local): New static variable.
83 (new_symbol): If variable is in thread local fill in address class
84 and objfile appropriately.
85 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
86 stack operation.
87 * printcmd.c (address_info): Print the information for thread
88 local storage variable.
89 * findvar.c (read_var_value): In case of thread local variable,
90 defer to the target vector code to compute address.
91
92 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
93
94 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
95 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
96
97 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
98
99 * symtab.h (address_class): Rename
100 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
101 * hpread.c (hpread_process_one_debug_symbol): Ditto.
102 * printcmd.c (address_info): Ditto.
103 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
104
105 2002-10-20 Mark Kettenis <kettenis@gnu.org>
106
107 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
108 DBREG_DRX macro to acces debug registers.
109
110 * Makefile.in (i386obsd-tdep.o): New target.
111
112 * solib-sunos.c: Include "bcache.h" and "regcache.h".
113 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
114
115 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
116 * config/i386/obsd.mt: New file.
117 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
118 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
119 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
120 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
121 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
122 * i386obsd-tdep.c: New file.
123
124 2002-10-19 Adam Fedor <fedor@gnu.org>
125
126 * objc-exp.y (name_not_typename): Fix invalid comment.
127
128 2002-10-20 Mark Kettenis <kettenis@gnu.org>
129
130 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
131 to allocate partial syms and macro byte caches.
132
133 2002-10-18 David Carlton <carlton@math.stanford.edu>
134
135 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
136
137 2002-10-18 Adam Fedor <fedor@gnu.org>
138
139 * stabsread.c (find_name_end): New function.
140 (define_symbol): Use it.
141
142 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
143
144 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
145 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
146 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
147 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
148
149 2002-10-17 David Carlton <carlton@math.stanford.edu>
150
151 * symfile.h: Add opaque declaration for struct obstack.
152 Declare obsavestring to take a const char *.
153 * symfile.c (obsavestring): Make first argument a const char *.
154
155 2002-10-16 Adam Fedor <fedor@gnu.org>
156
157 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
158 names when matching breakpoints in current file.
159
160 2002-10-16 Kevin Buettner <kevinb@redhat.com>
161
162 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
163 (read_tag_pointer_type): Add address class support.
164 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
165 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
166 New methods.
167 * gdbarch.h, gdbarch.c: Regenerate.
168 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
169 (make_type_with_address_space, recursive_type_dump): Add address
170 class support.
171 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
172 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
173 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
174
175 2002-10-16 Klee Dienes <kdienes@apple.com>
176
177 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
178 to get the last character of a char[] buffer, not
179 name[sizeof(vptr_name)-1].
180
181 2002-10-14 Adam Fedor <fedor@gnu.org>
182
183 * symtab.h: New objc_specific struct.
184 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
185 (SYMBOL_DEMANGLED_NAME): Likewise.
186
187 2002-10-14 Adam Fedor <fedor@gnu.org>
188
189 * symfile.c (init_filename_language_table): Add ObjC file extension.
190
191 2002-10-14 Adam Fedor <fedor@gnu.org>
192
193 * utils.c (puts_filtered_tabular): New function.
194 (fprintf_symbol_filtered): Get ObjC demangled name.
195 * defs.h (puts_filtered_tabular): Declared.
196
197 2002-10-14 Kevin Buettner <kevinb@redhat.com>
198
199 * c-lang.h (c_type_print_varspec_prefix): Delete.
200 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
201 ``need_post_space'' parameter. Adjust all callers.
202
203 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
204
205 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
206 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
207 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
208 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
209
210 2002-10-13 Adam Fedor <fedor@gnu.org>
211
212 * source.c (print_source_lines): Update comments.
213
214 2002-10-13 Adam Fedor <fedor@gnu.org>
215
216 * valops.c (value_of_local): New function.
217 (value_of_this): Use it.
218 * value.h (value_of_local): Declared.
219
220 2002-10-13 Adam Fedor <fedor@gnu.org>
221
222 * parse.c: (length_of_subexp, prefixify_subexp): Handle
223 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
224
225 2002-10-12 Adam Fedor <fedor@gnu.org>
226
227 * language.c (binop_result_type): Add language_objc to case.
228 (integral_type): Likewise.
229 (character_type): Likewise.
230 (string_type): Likewise.
231 (boolean_type): Likewise.
232 (structured_type): Likewise.
233 (binop_type_check): Likewise.
234
235 2002-10-11 Adam Fedor <fedor@gnu.org>
236
237 * printcmd.c (address_info): Print 'self' for ObjC.
238
239 2002-10-11 Adam Fedor <fedor@gnu.org>
240
241 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
242 OP_SELF.
243
244 2002-10-11 Adam Fedor <fedor@gnu.org>
245
246 * language.h (CAST_IS_CONVERSION): Add language_objc.
247
248 2002-10-11 Adam Fedor <fedor@gnu.org>
249
250 * defs.h (enum language): Add language_objc.
251
252 2002-10-11 Klee Dienes <kdienes@apple.com>
253
254 * findvar.c (read_memory_typed_address): New function.
255 * gdbcore.h (read_memory_typed_address): Add prototype.
256 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
257 to read a value destined for a CORE_ADDR, not read_memory_integer.
258 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
259 (f77_get_dynamic_lowerbound): Ditto.
260
261 2002-10-11 Martin M. Hunt <hunt@redhat.com>
262
263 * utils.c (string_to_core_addr): After turning string into
264 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
265 which will do necessary sign-extension, etc.
266
267 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
268
269 * c-exp.y (THIS): Delete token and grammar rule.
270 (yylex): Don't return THIS.
271 * cp-valprint.c (vtbl_ptr_name_old): Delete.
272 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
273 * demangle.c (cplus_markers): Update comment. Put '$'
274 first. Remove CPLUS_MARKER.
275 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
276 * jv-exp.y (THIS): Delete token and grammar rule.
277 (yylex): Don't return THIS.
278 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
279 * objc-exp.y (THIS): Delete token and grammar rule.
280 (yylex): Don't return THIS.
281 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
282 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
283 (read_member_functions): Likewise for opname.
284 (read_tilde_fields): Use is_cplus_marker.
285
286 * defs.h (CPLUS_MARKER): Don't define.
287 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
288 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
289 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
290 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
291 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
292
293 * config/i386/tm-i386v4.h: Delete file.
294 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
295 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
296 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
297 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
298 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
299 * config/i386/i386sco5.mt (TM_FILE): Likewise.
300 * config/i386/i386v4.mt (TM_FILE): Likewise.
301 * config/i386/ncr3000.mt (TM_FILE): Likewise.
302
303 2002-10-10 Marko Mlinar <markom@opencores.org>
304
305 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
306 accidentially not commited 2002-10-09
307 * gdbarch.h, gdbarch.c: Re-generate.
308
309 2002-10-09 Marko Mlinar <markom@opencores.org>
310
311 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
312 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
313 * gdbarch.h, gdbarch.c: Re-generate.
314
315 2002-10-08 Petr Sorfa <petrs@caldera.com>
316
317 Revised and re-submitted by John Wolfe <jlw@caldera.com>
318
319 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
320 so we can work on more than one compilation unit at a time. This
321 helps prepare GDB to handle inter-CU die references.
322 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
323 the code to be defined before struct comp_unit_head.
324 (comp_unit_head): Added new members - offset, cu_head,
325 begin_die, next and dwarf2_abbrevs.
326 (dwarf2_abbrevs): Removed single static var; now member of
327 struct comp_unit_head.
328 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
329 members.
330 (psymtab_to_symtab_1): Changed to work with the new
331 struct comp_unit_head.
332 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
333 constructs the dwarf2_abbrevs[] inside the cu_header.
334 (dwarf2_empty_abbrev_table): Now expects a ptr to a
335 dwarf2_abbrev table to clean up.
336 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
337 handling of dwarf2_abbrevs inside the cu_header.
338 (read_partial_die): Now supports the call to the new
339 dwarf2_lookup_abbrev.
340 (read_full_die): Now supports the call to the new
341 dwarf2_lookup_abbrev.
342
343 2002-10-06 Christopher Faylor <cgf@redhat.com>
344
345 * Makefile.in (install-gdbtk): Add missing continuation backslash to
346 insure that shell variables, such as "transformed_name" are propagated
347 to later shell statements in rule.
348
349 2002-10-06 Mark Kettenis <kettenis@gnu.org>
350
351 * config/i386/nm-i386sco.h: Add protection against
352 multiple-inclusion. Include "i386/nm-i386v.h".
353 (REGISTER_U_ADDR): Remove define.
354 (i386_register_u_addr): Remove prototype.
355
356 2002-10-04 Michael Snyder <msnyder@redhat.com>
357
358 * m32r-stub.c (handle_exception): Make sure exception is "trap"
359 before treating it as a single-step event.
360
361 2002-10-03 Adam Fedor <fedor@gnu.org>
362
363 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
364 (objc_demangle): Remove assignment in if statements, Replace
365 free with xfree.
366 (add_msglist): Likewise.
367 (end_msglist): Likewise.
368 (complare_selectors): Likewise.
369 (selectors_info): Likewise.
370 (compare_classes): Likewise.
371 (classes_info): Likewise.
372 (print_object_command): Likewise.
373 (find_objc_msgcall_submethod): Replace PTR with void *.
374 * objc-lang.h: Remove check for __STDC__.
375
376 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
377
378 * ui-out.h (ui_out_field_fmt_int): New prototype.
379 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
380 of field width and alignment.
381 * stack.c (print_frame_info_base): When printing frame level, use
382 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
383 PR gdb/192
384
385 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
386
387 * MAINTAINERS: Add self to Write After Approval list.
388
389 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
390
391 * infcmd.c (interrupt_target_command_wrapper): Delete.
392 (interrupt_target_command): Make non static.
393 (nofp_registers_info): Make static.
394 * stack.c (return_command_wrapper): Delete.
395 (return_command): Make non static.
396
397 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
398
399 * event-top.c (gdb_setup_readline): New function. Code moved from
400 _initialize_event_loop().
401 (_initialize_event_loop): Call gdb_setup_readline().
402
403 2002-10-02 Andrew Cagney <ac131313@redhat.com>
404
405 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
406 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
407 * gdbarch.h, gdbarch.c: Re-generate.
408
409 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
410
411 Fix PR gdb/778
412 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
413 before recursing.
414 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
415 of fill_in_vptr_fieldno.
416
417 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
418
419 * inferior.h (registers_info, stepi_command, nexti_command,
420 continue_command, interrupt_target_command): Export from infcmd.c.
421 * frame.h (args_info, selected_frame_level_changed_hook,
422 return_command): Export from stack.c.
423 * v850ice.c (stepi_command, nexti_command, continue_command): use
424 prototypes from inferior.h.
425 * tracepoint.c (registers_info, args_info, locals_info): Use
426 prototypes from frame.h and inferior.h.
427 * Makefile.in (mi-main.o): Add dependency on frame.h.
428
429 2002-10-02 Andrew Cagney <ac131313@redhat.com>
430
431 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
432 value in register 3 adjusted by ppc_gp0_regnum.
433
434 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
435
436 2002-10-02 Marko Mlinar <markom@opencores.org>
437
438 * MAINTAINERS: Add myself to the Write After Approval list.
439
440 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
441
442 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
443 of the section for the N64 ABI, fixed.
444
445 * config/mips/tm-irix6.h: Include solib.h.
446
447 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
448
449 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
450 GNU operators.
451
452 2002-10-01 Andrew Cagney <ac131313@redhat.com>
453
454 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
455 and that "mi0" syntax has been removed.
456
457 2002-09-30 David Carlton <carlton@math.stanford.edu>
458
459 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
460 * ppc-sysv-tdep.c: #include "gdb_string.h".
461 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
462 pacify GCC.
463
464 2002-10-01 Andrew Cagney <ac131313@redhat.com>
465
466 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
467 "vrsave"'s register number.
468
469 2002-09-30 Andrew Cagney <ac131313@redhat.com>
470
471 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
472 use frame_unwind_signed_register to obtain the PC.
473 (mips_frame_chain): Handle a generic dummy frame.
474 (mips_init_extra_frame_info): When a generic dummy frame, don't
475 re-compute the frame base.
476 (mips_pop_frame): Handle generic dummy frames.
477 (mips_gdbarch_init): When generic dummy frames, set
478 use_generic_dummy_frames, push_dummy_frame to
479 generic_push_dummy_frame, pc_in_call_dummy to
480 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
481 generic_save_dummy_frame_tos.
482
483 2002-09-30 Andrew Cagney <ac131313@redhat.com>
484
485 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
486 against TOP when TOP was explictly set.
487 (generic_push_dummy_frame): Set TOP to zero.
488
489 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
490
491 * event-loop.c (start_event_loop): Rename variable 'result' to
492 'gdb_result', to avoid conflicts with upcoming intepreters changes.
493
494 2002-09-30 Keith Seitz <keiths@redhat.com>
495
496 * gdb-events.sh (selected_thread_changed): New event.
497 * gdb-events.c: Regenerated.
498 * gdb-events.h: Regenerated.
499
500 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
501
502 * MAINTAINERS: Add self to Write After Approval list.
503
504 2002-09-30 Fernando Nasser <fnasser@redhat.com>
505
506 * disasm.c: New file.
507 * disasm.h: New file.
508 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
509 (compare_lines): Ditto.
510 (dump_insns): Ditto.
511 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
512 argument.
513 (do_assembly_only): Ditto.
514 (do_disassembly): Renamed to gdb_disassembly and moved to
515 disasm.c. Sdded uiout argument.
516 * Makefile.in: Add new files. Reorder SFILES list. Update
517 dependencies. Include libgdb.a later in the insight executable.
518
519 2002-09-29 Andrew Cagney <ac131313@redhat.com>
520
521 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
522 bfd/elf64-alpha-fbsd.c.
523
524 2002-09-29 Andrew Cagney <ac131313@redhat.com>
525
526 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
527 i386gnu-tdep.c.
528
529 2002-09-29 Andrew Cagney <ac131313@redhat.com>
530
531 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
532 __FUNCTION__.
533 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
534 function name.
535 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
536 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
537 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
538 (S_msg_sig_post_reply): Ditto.
539
540 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
541
542 * sh-tdep.c (sh_use_struct_convention): Use definition according
543 to ABI.
544 (sh_push_arguments): Store in register with correct endianess.
545 (sh_default_store_return_value): Ditto.
546 (sh_gdbarch_init): Set sizeof long double to 8.
547
548 2002-09-27 Mark Kettenis <kettenis@gnu.org>
549
550 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
551 Fix some whitespace problems.
552
553 2002-09-27 David Carlton <carlton@math.stanford.edu>
554
555 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
556 (mcore-tdep.o): Ditto.
557 (ns32k-tdep.o): Ditto.
558 (ns32knbsd-tdep.o): Ditto.
559 (sh3-rom.o): Ditto.
560 (vax-tdep.o): Ditto.
561 * cris-tdep.c: #include "gdb_string.h"
562 * mcore-tdep.c: Ditto.
563 * ns32k-tdep.c: Ditto.
564 * ns32knbsd-tdep.c: Ditto.
565 * sh3-rom.c: Ditto.
566 * vax-tdep.c: Ditto.
567
568 2002-09-27 David Carlton <carlton@math.stanford.edu>
569
570 * config/djgpp/fnchange.lst: Add entries for
571 gdb/testsuite/gdb.c++/m-static files.
572
573 2002-09-27 Jim Wilson <wilson@redhat.com>
574
575 * MAINTAINERS: Add myself to the Write After Approval list.
576
577 2002-09-26 Martin M. Hunt <hunt@redhat.com>
578
579 * mips-tdep.c (find_proc_desc): Initialize startaddr.
580
581
582 2002-09-26 Andrew Cagney <ac131313@redhat.com>
583
584 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
585 frame.
586
587 2002-09-26 Andrew Cagney <ac131313@redhat.com>
588
589 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
590 (rs6000_struct_return_address): Delete variable.
591 (rs6000_store_struct_return): Update.
592 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
593 deprecated_extract_struct_value_address.
594 (rs6000_frame_align): New function.
595 (rs6000_gdbarch_init): Set frame_align.
596
597 2002-09-26 Andrew Cagney <ac131313@redhat.com>
598
599 From Grace Sainsbury <graces@redhat.com>:
600 * Makefile.in (gdbtk-main.o): New target.
601 (gdb.o): New target.
602 (main_h): Define.
603 (main.o): Update dependencies.
604 (gdb$(EXEEXT)): Add gdb.o.
605 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
606 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
607 (SUBDIR_GDBTK_CLEAN): Set.
608 (install-gdbtk): Install the insight binary.
609 (uninstall-gdbtk): New target.
610 (all-gdbtk, clean-gdbtk): New rule.
611 * top.c (use_windows): Default to zero.
612 * main.c: Include "main.h".
613 (main): Delete.
614 (struct captured_main_args): Delete.
615 (gdb_main): New function.
616 * main.h: New file.
617 * gdb.c: New File.
618
619 2002-09-25 Andrew Cagney <cagney@redhat.com>
620
621 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
622 (frame_map_regnum_to_name): New function.
623 (frame_map_name_to_regnum): New function.
624 * frame.h (frame_map_name_to_regnum): Declare.
625 (frame_map_regnum_to_name): Declare.
626 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
627 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
628 * parse.c: Do not include "builtin-regs.h".
629 (target_map_name_to_register): Delete function.
630 (write_dollar_variable): Use frame_map_name_to_regnum.
631 * parser-defs.h (target_map_name_to_register): Delete declaration.
632 * expprint.c: Include "frame.h".
633 (print_subexp): Use frame_map_regnum_to_name.
634 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
635 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
636
637 2002-09-25 Andrew Cagney <ac131313@redhat.com>
638
639 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
640 wasn't saved, and the next innermost frame is a dummy, return the
641 dummy frame's link register.
642
643 2002-09-24 Jim Blandy <jimb@redhat.com>
644
645 Fix from Paul Breed:
646 * main.c (captured_main): Add a `break' after the case for 'b'.
647
648 2002-09-24 Keith Seitz <keiths@redhat.com>
649
650 * varobj.c (c_type_of_child): Use get_target_type instead
651 of TYPE_TARGET_TYPE.
652
653 2002-09-22 Fernando Nasser <fnasser@redhat.com>
654
655 * source.c (get_current_or_default_source_symtab_and_line): Remove
656 function.
657 (set_default_source_symtab_and_line): New function. Attempts to
658 determine a source file to list lines from if one is not currently
659 defined.
660 (get_current_source_symtab_and_line): Initialize sal.pc and
661 sal.end fields.
662 (set_current_source_symtab_and_line): Mark argument as const.
663 * source.h: Update declarations and comments.
664 * linespec.c (decode_line_1): Replace call to removed routine above.
665 * stack.c (print_frame_info_base): Ditto.
666 * cli/cli-cmds.c (edit_command): Ditto.
667 (list_command): Ditto.
668
669 2002-09-22 Fernando Nasser <fnasser@redhat.com>
670
671 * source.c (get_current_or_default_source_symtab_and_line): Initialize
672 sal.pc and sal.end fields.
673 (get_current_or_default_source_symtab_and_line): Ditto.
674 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
675 so we do not cause a new source symtab to be searched for (reverting an
676 unintentional change from the 2002-09-20 patch).
677 * scm-lang.c (scm_unpac): Ditto.
678
679 2002-09-21 Andrew Cagney <cagney@redhat.com>
680
681 * complaints.c (symfile_explanations): Remove new-line from
682 ``isolated_message''.
683 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
684 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
685
686 2002-09-20 Nick Clifton <nickc@redhat.com>
687
688 * NEWS: Announce that V850EA ISA is no longer supported.
689 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
690
691 2002-09-20 David Carlton <carlton@math.stanford.edu>
692
693 * Makefile.in (c-lang.o): Correct dependencies.
694 (utils.o): Gather dependencies.
695 (charset.o): Move.
696 * c-lang.c: #include "gdb_string.h"
697
698 2002-09-20 Fernando Nasser <fnasser@redhat.com>
699
700 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
701 * cli/cli-cmds.c (list_command): New function. Implements the new
702 cli edit command.
703 (_init_cli_cmds): Add new command definition.
704 * gdb.1: Document edit command.
705 * doc/gdb.texinfo: Document edit command.
706
707 2002-09-20 Fernando Nasser <fnasser@redhat.com>
708
709 * source.c: Make global variables current_source_symtab and
710 current_source_line static.
711 (list_command): Moved to cli/cli-cmds.c.
712 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
713 (get_first_line_listed): New accessor function.
714 (get_lines_to_list): New accessor function.
715 (get_current_source_symtab_and_line): New function. Retrieves the
716 position in the source code that we consider current.
717 (get_current_or_default_source_symtab_and_line): New function.
718 Like the above but attempts to determine a default position if one
719 is not currently defined.
720 (set_current_source_symtab_and_line): New function. Sets the source
721 code position considered current and returns the previously set one.
722 (clear_current_source_symtab_and_line): Reset stored information about
723 a current source line.
724 (_initialize_source): Remove registration for the "list" command and
725 its alias.
726 * source.h: Add declarations for the new functions above.
727 * symtab.h: Remove declarations for the global variables mentioned
728 above.
729 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
730 obtain current source line.
731 * linespec.c (decode_line_1): Ditto.
732 * macroscope.c (default_macro_scope): Ditto.
733 * scm-lang.c (scm_unpac): Ditto.
734 * stack.c (print_frame_info_base): Ditto.
735 * symfile.c (clear_symtab_users): Ditto.
736 * symtab.c (decode_line_spec): Ditto.
737 * cli/cli-cmds.c (list_command): Moved here from source.c.
738 (ambiguous_line_spec): Moved here from source.c.
739 (_init_cli_cmds): Add definition for "list" and its alias.
740 * Makefile.in: Update dependencies.
741
742 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
743
744 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
745 with what gcc thinks is correct.
746
747 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
748
749 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
750 multiple register push instruction.
751
752 2002-09-19 Jim Blandy <jimb@redhat.com>
753
754 Add support for distinct host and target character sets.
755 * charset.c, charset.h: New files.
756 * c-exp.y: #include "charset.h".
757 (yylex): Convert character and string literals to the target
758 character set, before returning them as the semantic value of the
759 token.
760 * c-lang.c: #include "charset.h".
761 (c_emit_char): Use charset-specific methods to recognize
762 characters with backslash escape forms, to decide which characters
763 to print literally and which to print using numeric escape
764 sequences, and to convert target characters to host characters
765 before printing.
766 * utils.c: #include "charset.h".
767 (no_control_char_error): New function.
768 (parse_escape): Use charset-specific methods to recognize
769 backslash escapes, parse `control character' notation, and convert
770 characters from the host character set to the target character set.
771 * configure.in: Set the default host character set.
772 Check where to find iconv, and what its argument types might be.
773 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
774 * Makefile.in (SFILES): List charset.c.
775 (COMMON_OBS): List charset.o.
776 (charset.o): New rule.
777 (charset_h): New header dependency variable.
778 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
779 (LIBICONV): New variable, set by configure.
780 (CLIBS): Include $(LIBICONV) here.
781 * aclocal.m4, config.in, configure: Regenerated.
782
783 2002-09-19 Joel Brobecker <brobecker@gnat.com>
784
785 * ada-exp.y: Add missing semicolons to end rules. Fixes a
786 bison 1.35 warning.
787
788 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
789
790 * gdb_mbuild.sh: New file.
791
792 2002-09-19 Andrew Cagney <ac131313@redhat.com>
793
794 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
795
796 2002-09-18 Andrew Cagney <ac131313@redhat.com>
797
798 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
799 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
800 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
801 valops.c, value.h: Revert previous change.
802
803 2002-09-18 Michael Snyder <msnyder@redhat.com>
804
805 Preliminary support for Objective-C:
806 * defs.h (language_objc): New enum value.
807 (puts_filtered_tabular): Declaration only, exported from utils.c.
808 (skip_quoted): Delete, declared in completer.h.
809 * c-exp.y: Include completer.h.
810 * p-exp.y: Ditto.
811 * jv-exp.y: Ditto.
812 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
813 New operator enum values.
814 * language.h (CAST_IS_CONVERSION): Test for language_objc.
815 * language.c (binop_result_type): Handle language_objc case.
816 (integral_type, character_type, string_type, boolean_type,
817 structured_type, binop_type_check): Ditto.
818 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
819 (struct objc_specific): Add to general_symbol_info.
820 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
821 (SYMBOL_DEMANGLED_NAME): Handle objc case.
822 * parser-defs.h (struct objc_class_str): New struct type.
823 (start_msglist, end_msglist, add_msglist): Declaration only,
824 exported from objc-lang.c.
825 * value.h (value_of_local, value_nsstring,
826 call_function_by_hand_expecting_type): Exported from valops.c.
827 * valops.c (find_function_addr): Export.
828 (call_function_by_hand_expecting_type): New function.
829 (value_of_local): New function.
830 * symfile.c (init_filename_language_table): Add ".m" extension
831 for Objective-C.
832 * utils.c (puts_filtered_tabular): New function.
833 (fprintf_symbol_filtered): Add objc demangling support (disabled).
834 (set/show demangle): Extend help-string to refer to ObjC.
835 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
836 * stabsread.c (symbol_reference_defined): Objective-C symbols
837 may contain colons: make allowances when scanning stabs strings
838 for colons.
839 (objc_find_colon): New function.
840 * printcmd.c (address_info): If language == objc then print
841 "self" instead of "this".
842 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
843 OP_NSSTRING, and OP_SELF.
844 (prefixify_subexp): Ditto.
845 * source.c (print_source_lines): Mention objc in comment.
846 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
847 method names.
848
849 2002-09-18 Andrew Cagney <ac131313@redhat.com>
850
851 * complaints.h: Update copyright.
852 (struct complaints): Declare.
853 (struct complaint): Make `message' constant.
854 (internal_complaint): Declare.
855 (complaint): Declare.
856 (complaint_root): Delete declaration.
857 (symfile_complaints): Delete declaration.
858 (struct complaints): Add opaque declaration.
859 (clear_complaints): Add a complaints parameter.
860 * complaints.c: Update copyright.
861 (enum complaint_series): Define.
862 (complaint_root): Delete.
863 (struct complaints): Define.
864 (complaint_sentinel, symfile_complaint_book): New variables.
865 (symfile_explanations, symfile_complaints): New variables.
866 New variables.
867 (get_complaints): New function.
868 (vcomplaint): New function.
869 (complaint): New function.
870 (internal_complaint): New function.
871 (complain): Call vcomplain with symfile_complaint.
872 (clear_complaints): Rewrite.
873 (_initialize_complaints): Use add_setshow_command.
874 * Makefile.in (complaints.o): Update dependencies.
875 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
876 to call to clear_complaints.
877 (new_symfile_objfile, reread_symbols): Ditto.
878 (oldsyms_complaint): Delete.
879 (empty_symtab_complaint, unknown_option_complaint): Delete.
880 (free_named_symtabs): Use complaint instead of complain.
881
882 2002-09-18 Michael Snyder <msnyder@redhat.com>
883
884 Contributed by Apple Computer, Inc. Merged with current sources
885 by Adam Fedor <fedor@doc.com> [cagney].
886
887 * objc-lang.c: First clean-up round: comments, indentation.
888 * objc-lang.h: Ditto.
889 * objc-lang.y: Ditto.
890
891 2002-09-18 Andrew Cagney <ac131313@redhat.com>
892
893 * maint.c (maintenance_internal_error): Print the parameter as the
894 error message.
895 (maintenance_internal_warning): New function.
896 (_initialize_maint_cmds): Add command `maint internal-warning'.
897
898 * defs.h (internal_warning, internal_vwarning): Declare.
899 * utils.c (struct internal_problem): Define.
900 (internal_vproblem): New function.
901 (internal_warning): New function.
902 (internal_vwarning): New function.
903 (internal_warning_problem, internal_error_problem): New variables.
904 (internal_verror): Just call internal_vproblem.
905
906 2002-09-18 Michael Snyder <msnyder@redhat.com>
907
908 * objc-lang.c: New file, support for Objective-C.
909 Preliminary check-in, not yet integrated into gdb.
910 * objc-lang.h: New file.
911 * objc-exp.y: New file.
912
913 2002-09-18 Andrew Cagney <ac131313@redhat.com>
914
915 * infrun.c (signal_stop_update): Convert definition to ISO C.
916 (signal_print_update): Ditto.
917 (signal_pass_update): Ditto.
918 * inflow.c (terminal_save_ours): Ditto.
919
920 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
921 comments.
922
923 * config/djgpp/fnchange.lst: Handle name clashes between
924 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
925 bfd/coff-tic80.c.
926
927 * i386-linux-tdep.h: Fix tipo.
928
929 2002-09-18 Adam Fedor <fedor@gnu.org>
930
931 * MAINTAINERS: Add myself to the Write After Approval list.
932
933 2002-09-18 Jim Blandy <jimb@redhat.com>
934
935 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
936 texthigh and textlow to reader-specific structs caused
937 objfile_relocate to miss them. This is fixable, but the work that
938 the change was supposed to prepare GDB for never got done anyway.
939
940 2002-09-18 David Carlton <carlton@math.stanford.edu>
941
942 * MAINTAINERS: Alphabetize Write After Approval list.
943
944 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
945
946 Fix PR gdb/709
947 * values.c (value_static_field): Call read_var_value.
948
949 2002-09-18 Andrew Cagney <ac131313@redhat.com>
950
951 * valops.c (hand_function_call): Align the initial stack pointer
952 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
953 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
954 return value.
955 * mips-tdep.c (mips_frame_align): New function.
956 (mips_gdbarch_init): Set frame_align.
957 * gdbarch.sh (FRAME_ALIGN): New method.
958 * gdbarch.h, gdbarch.c: Re-generate.
959
960 2002-09-18 Michal Ludvig <mludvig@suse.cz>
961
962 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
963 registers.
964
965 2002-09-17 Andrew Cagney <ac131313@redhat.com>
966
967 * NEWS: Mention that MIPS $fp behavior changed.
968 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
969 reference to FP_REGNUM.
970 (mipsnbsd_cannot_store_register): Ditto.
971 * mips-linux-nat.c: Update copyright.
972 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
973 (mips_linux_cannot_store_register): Ditto.
974 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
975 * config/mips/tm-mips.h: Update copyright.
976 (FP_REGNUM): Delete macro.
977 (MIPS_REGISTER_NAMES): Replace "fp" with "".
978 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
979 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
980 (mips_r3041_reg_names, mips_r3051_reg_names)
981 (mips_r3081_reg_names): Replace "fp" with "".
982 Fix PR gdb/480.
983
984 2002-09-17 Theodore A. Roth <troth@verinet.com>
985
986 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
987 generic_read_register_dummy() (PR gdb/703).
988 (avr_push_return_address): #if 0 out unused vars.
989 (avr_gdbarch_init): Enable use of avr_push_return_address().
990
991 2002-09-17 Michael Snyder <msnyder@redhat.com>
992
993 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
994 RTE will take care of it.
995
996 2002-09-17 Andrew Cagney <ac131313@redhat.com>
997
998 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
999 invalid, return SP_REGNUM.
1000
1001 2002-09-17 Michael Snyder <msnyder@redhat.com>
1002
1003 * mips-tdep.c (mips_pop_frame): Read saved values of floating
1004 point registers without sign extension.
1005
1006 2002-09-17 Andrew Cagney <cagney@redhat.com>
1007
1008 * blockframe.c (deprecated_read_register_dummy): Rename
1009 generic_read_register_dummy.
1010 * frame.c (frame_unwind_signed_register): New function.
1011 (frame_unwind_unsigned_register): New function.
1012 * frame.h (frame_unwind_signed_register): Declare.
1013 (frame_unwind_unsigned_register): Declare.
1014 (deprecated_read_register_dummy): Rename
1015 generic_read_register_dummy.
1016
1017 * h8300-tdep.c (h8300_frame_chain): Update.
1018 (h8300_frame_saved_pc): Update.
1019 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1020 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1021 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1022 (s390_frame_chain): Update.
1023 * v850-tdep.c (v850_find_callers_reg): Update.
1024 (v850_frame_saved_pc): Update.
1025 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1026 (m32r_find_callers_reg): Update.
1027 (m32r_frame_saved_pc): Update.
1028 * sh-tdep.c (sh_find_callers_reg): Update.
1029 (sh64_get_saved_pr): Update.
1030 (sh_init_extra_frame_info): Update.
1031 (sh_init_extra_frame_info): Update.
1032 (sh64_init_extra_frame_info): Update.
1033 (sh64_init_extra_frame_info): Update.
1034 * mcore-tdep.c (mcore_find_callers_reg): Update.
1035 (mcore_frame_saved_pc): Update.
1036 (mcore_init_extra_frame_info): Update.
1037 * i386-tdep.c (i386_frame_saved_pc): Update.
1038 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1039 (ia64_init_extra_frame_info): Update.
1040 (ia64_init_extra_frame_info): Update.
1041 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1042 * cris-tdep.c (cris_init_extra_frame_info): Update.
1043 * avr-tdep.c (avr_frame_chain): Update.
1044 (avr_init_extra_frame_info): Update.
1045 (avr_frame_saved_pc): Update.
1046 * arm-tdep.c (arm_find_callers_reg): Update.
1047 (arm_init_extra_frame_info): Update.
1048 (arm_frame_saved_pc): Update.
1049
1050 2002-09-17 Tom Tromey <tromey@redhat.com>
1051
1052 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1053 is "'".
1054
1055 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
1056
1057 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1058 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1059 NEXT_PROLOGUE_INSN.
1060 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1061 NEXT_PROLOGUE_INSN.
1062
1063 2002-09-16 Joel Brobecker <brobecker@gnat.com>
1064
1065 * osfsolib.c: Remove file, replaced by solib-osf.c.
1066 * Makefile.in: Remove compilation rules for osfsolib.c.
1067
1068 2002-09-16 David Carlton <carlton@math.stanford.edu>
1069
1070 * cp-valprint.c (cp_print_class_method): Correct args to
1071 check_stub_method_group.
1072
1073 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
1074
1075 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1076 `set architecture'. Unify naming convention of functions.
1077 (h8300_skip_prologue): Improve prologue analysis.
1078 (h8300_push_arguments): Rewritten to more closely match GCC's
1079 bizarre argument-passing behavior, along with the comment describing
1080 said behavior.
1081 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1082 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1083 sim, remote-e7000.c, remote-hms.c and remote.c
1084
1085 2002-09-15 Mark Kettenis <kettenis@gnu.org>
1086
1087 * i386-tdep.c (gdb_print_insn_i386): Removed.
1088 (i386_print_insn): New function.
1089 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1090 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1091 tm_print_insn_info.
1092
1093 2002-09-14 Mark Kettenis <kettenis@gnu.org>
1094
1095 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1096 zero.
1097
1098 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
1099
1100 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1101 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1102 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1103
1104 2002-09-13 Christopher Faylor <cgf@redhat.com>
1105
1106 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1107
1108 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
1109
1110 * gdbtypes.c (check_stub_method): Make static.
1111 (check_stub_method_group): New function.
1112 * gdbtypes.h: Update prototypes.
1113 * cp-support.c: New file.
1114 * cp-support.h: New file.
1115
1116 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1117 (update_method_name_from_physname): New function.
1118 (read_member_functions): Correct method names for operators
1119 and v3 constructors/destructors. Separate v2 constructors and
1120 destructors.
1121 * Makefile.in (stabsread.o): Update dependencies.
1122 (SFILES): Add cp-support.c.
1123 (COMMON_OBS): Add cp-support.o.
1124 (cp_support_h, cp-support.o): Add.
1125
1126 * cp-valprint.c (cp_print_class_method): Call
1127 check_stub_method_group instead of check_stub_method. Remove
1128 extraneous QUITs.
1129 * p-valprint.c (pascal_object_print_class_method): Likewise.
1130 * valops.c (search_struct_method): Likewise.
1131 (find_method_list, value_struct_elt_for_reference): Likewise.
1132
1133 2002-09-13 Andrew Cagney <cagney@redhat.com>
1134
1135 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1136 * gdbarch.h, gdbarch.c: Regenerate.
1137
1138 2002-09-13 Andrew Cagney <ac131313@redhat.com>
1139
1140 * frame.c (find_saved_register): Delete function.
1141 * frame.h (find_saved_register): Delete declaration.
1142 Fix PR gdb/631.
1143
1144 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1145
1146 * mips-tdep.c (read_next_frame_reg): Re-hack using
1147 frame_register_unwind.
1148
1149 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1150
1151 * mips-tdep.c (mips_get_saved_register): Re-hack using
1152 frame_register_unwind.
1153
1154 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1155
1156 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1157 vector. Will be useful for Interix.
1158 * gdbarch.h, gdbarch.c: Regenerate.
1159
1160 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1161 name of the malloc function by NAME_OF_MALLOC.
1162
1163 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1164
1165 * value.h (find_function_in_inferior): Add const keyword to
1166 one of the parameters. Allows us to invoke this function with
1167 a const char *.
1168 * valops.c (find_function_in_inferior): Likewise.
1169
1170 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1171
1172 * exec.c (xfer_memory): Fix compilation warning with old versions
1173 of GCC.
1174 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1175
1176 2002-09-12 David Carlton <carlton@math.stanford.edu>
1177
1178 * symtab.h: Run through gdb_indent.h.
1179 Add 2002 to Copyright year list.
1180
1181 2002-09-12 Alan Modra <amodra@bigpond.net.au>
1182
1183 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1184 mach constants.
1185 * MAINTAINERS: Add myself to write after approval list.
1186
1187 2002-09-11 J. Brobecker <brobecker@gnat.com>
1188
1189 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1190
1191 2002-09-11 J. Brobecker <brobecker@gnat.com>
1192
1193 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1194 Interix.
1195
1196 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1197
1198 * procfs.c (do_detach): Clear current signal, not just fault.
1199 Corrects problem with breakpoint trap signal leaking to detached
1200 process on Tru64.
1201
1202 2002-09-10 Michael Snyder <msnyder@redhat.com>
1203
1204 * buildsym.c (finish_block): Protect against null pointer.
1205
1206 2002-09-10 Andrew Cagney <cagney@redhat.com>
1207
1208 * infcmd.c (default_print_registers_info): Send all output to
1209 ``file'' instead of ``gdb_stdout''.
1210
1211 2002-09-10 Michael Snyder <msnyder@redhat.com>
1212
1213 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1214 LONGEST, and use signed register read (addresses are sign-
1215 extended for mips).
1216
1217 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1218
1219 * event-loop.c (gdb_do_one_event): Make public.
1220 * event-loop.h (gdb_do_one_event): Declare.
1221
1222 2002-09-10 Jeff Law <law@redhat.com>
1223
1224 * infttrace.c (child_resume): Simplify and rework to avoid
1225 TT_PROC_CONTINUE.
1226
1227 2002-09-09 Fred Fish <fnf@intrinsity.com>
1228
1229 * printcmd.c (print_scalar_formatted): "len" is the number of
1230 target bytes, NOT the number of target bits.
1231
1232 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
1233
1234 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1235 * top.c (init_main): Set rl_terminal_name.
1236
1237 2002-09-08 Aidan Skinner <aidan@velvet.net>
1238
1239 * ada-lang.c (ada_array_bound, ada_type_match,
1240 _initialize_ada_language): Fix K&R definitions.
1241 * ada-tasks.c (get_current_task): Fix K&R definitions.
1242 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1243
1244 2002-09-07 Christopher Faylor <cgf@redhat.com>
1245
1246 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1247 Add XP.
1248
1249 2002-09-06 Mark Kettenis <kettenis@gnu.org>
1250
1251 * i386-tdep.c (i386_register_virtual_type,
1252 i386_register_convertible, i386_register_convert_to_virtual,
1253 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1254 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1255 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1256 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1257 Don't set push_arguments twice.
1258
1259 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1260 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1261 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1262 sigtramp_end to NULL.
1263 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1264 defines.
1265 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1266
1267 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1268 whitespace.
1269
1270 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1271 * gdbarch.h, gdbarch.c: Re-generate.
1272 * blockframe.c (find_pc_sect_partial_function): Convert to use
1273 SIGTRAMP_START_P predicate.
1274
1275 2002-09-05 Michael Snyder <msnyder@redhat.com>
1276
1277 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1278 generic_dummy_frame method and old method. Also distinguish
1279 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1280 (arm_extract_return_value): Use new regcache method.
1281
1282 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1283 adjustment that doesn't conform to the ABI.
1284 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1285 saved regcache, not from current regcache.
1286
1287 2002-09-05 Andrew Cagney <ac131313@redhat.com>
1288
1289 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1290 * README: Update.
1291
1292 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1293
1294 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1295 if arm_apcs_32 is false.
1296
1297 2002-09-04 Andrew Cagney <ac131313@redhat.com>
1298
1299 GDB 5.3 branch created.
1300
1301 2002-09-03 Theodore A. Roth <troth@verinet.com>
1302
1303 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1304 generic_unwind_get_saved_register.
1305
1306 2002-09-03 David Carlton <carlton@math.stanford.edu>
1307
1308 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1309 argument (PR gdb/653). Update call to smash_to_method_type.
1310 (read_structure_scope): Update call to dwarf2_add_member_fn.
1311
1312 2002-09-03 Michal Ludvig <mludvig@suse.cz>
1313
1314 * x86-64-linux-tdep.c: Include gdb_string.h
1315 * x86-64-linux-nat.c: Ditto.
1316
1317 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1318
1319 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1320 when YYDEBUG is set to 1.
1321 * c-exp.y: Likewise.
1322 * f-exp.y: Likewise.
1323 * jv-exp.y: Likewise.
1324 * m2-exp.y: Likewise.
1325 * p-exp.y: Likewise.
1326
1327 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1328
1329 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1330 dependency list.
1331 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1332 solib_svr4_fetch_link_map_offsets to
1333 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1334 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1335 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1336 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1337 solib-svr4.o, and solib-legacy.o.
1338 * config/i386/tm-nbsd.h: Include solib.h.
1339
1340 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1341
1342 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1343 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1344 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1345 comment noting that this needs its own target configuration.
1346 * config/i386/nbsd.mt: New file.
1347 * config/i386/nbsdaout.mt: Remove.
1348 * config/i386/nbsdelf.mt: Ditto.
1349 * config/i386/tm-nbsdaout.h: Ditto.
1350
1351 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1352
1353 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1354 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1355 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1356 tdep->sigtramp_end.
1357 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1358 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1359 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1360
1361 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1362
1363 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1364 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1365 * i386-tdep.h (i386bsd_init_abi): New prototype.
1366 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1367 function declaration.
1368 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1369 for NetBSD-a.out or NetBSD-ELF.
1370 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1371 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1372 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1373 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1374 and nbsd-tdep.h.
1375 (i386nbsd_pc_in_sigtramp): New function.
1376 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1377 i386nbsd_pc_in_sigtramp.
1378 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1379 and i386nbsdelf_init_abi OS ABI handlers.
1380 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1381 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1382
1383 2002-09-02 Mark Kettenis <kettenis@gnu.org>
1384
1385 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1386 registers if the target really has them.
1387
1388 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1389
1390 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1391 than nbsd-tdep.h.
1392
1393 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1394
1395 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1396 list.
1397 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1398 (alphanbsd_skip_sigtramp_frame): New functions.
1399 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1400 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1401 to alphanbsd_sigcontext_addr.
1402
1403 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1404
1405 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1406 list.
1407 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1408 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1409 nbsd_pc_in_sigtramp.
1410 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1411 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1412 * nbsd-tdep.c: Include gdb_string.h.
1413 (nbsd_pc_in_sigtramp): New function.
1414 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1415 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1416 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1417 ppcnbsd_pc_in_sigtramp.
1418 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1419 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1420 shnbsd_pc_in_sigtramp.
1421 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1422 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1423 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1424
1425 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1426
1427 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1428 watchpoints to NULL.
1429 (insert_breakpoints): set val field of watchpoints if NULL.
1430
1431
1432 2002-08-29 Jim Blandy <jimb@redhat.com>
1433
1434 * symtab.c (lookup_symbol_aux): In the cases where we find a
1435 minimal symbol of an appropriate name and use its address to
1436 select a symtab to read and search, use `name' (as passed to us)
1437 as the demangled name when searching the symtab's global and
1438 static blocks, not the minsym's name.
1439
1440 2002-08-29 Keith Seitz <keiths@redhat.com>
1441
1442 * stack.c (print_frame_info_base): Always set current_source_symtab
1443 and current_source_line.
1444
1445 2002-08-29 Donn Terry <donnte@microsoft.com>
1446
1447 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1448
1449 2002-08-28 Keith Seitz <keiths@redhat.com>
1450
1451 * stack.c (select_frame): Add FIXME concerning selected-frame
1452 events.
1453 (select_frame_command): Send selected-frame-level-changed
1454 event notification, but only if the level actually changed.
1455 (up_silently_base): Add selected-frame-level-changed event
1456 notification.
1457 (down_silently_base): Likewise.
1458
1459 2002-08-28 Andrew Cagney <ac131313@redhat.com>
1460
1461 * Makefile.in: Update dependencies for all gdb/*.c files.
1462
1463 2002-08-27 Tom Tromey <tromey@redhat.com>
1464
1465 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1466 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1467 Update dependencies.
1468 * i387-tdep.c: Include gdb_string.h.
1469 * osabi.c: Likewise.
1470 * i386-linux-nat.c: Likewise.
1471 * lin-lwp.c: Likewise.
1472 * ax-gdb.c: Likewise.
1473 * signals/signals.c: Likewise.
1474 * jv-valprint.c: Likewise.
1475 * p-lang.c: Likewise.
1476 * c-valprint.c: Likewise.
1477 * cp-abi.c: Likewise.
1478
1479 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
1480
1481 * cli/cli-script.h (copy_command_lines): Export.
1482 * breakpoint.c: Include cli/cli-script.h.
1483 * Makefile.in (breakpoint.o): Update dependencies.
1484
1485 2002-08-26 Michael Snyder <msnyder@redhat.com>
1486
1487 * breakpoint.c (insert_breakpoints): Protect all references
1488 to 'process_warning'. Shorten long lines.
1489
1490 2002-08-26 Joel Brobecker <brobecker@gnat.com>
1491
1492 * cli/cli-script.c (copy_command_lines): New function.
1493 * defs.h (copy_command_lines): Export.
1494 * testsuite/gdb.base/commands.exp: New tests for commands
1495 attached to a temporary breakpoint, and for commands that
1496 delete the breakpoint they are attached to.
1497
1498 2002-08-26 Michael Snyder <msnyder@redhat.com>
1499
1500 * breakpoint.c (bpstat_stop_status): Instead of copying the
1501 pointer to the breakpoint commands struct, make a new copy
1502 of the struct and point to that.
1503 (bpstat_clear): Free the commands struct.
1504 (bpstat_clear_actions): Free the commands struct.
1505 (bpstat_do_actions): Free the command actions. Also execute
1506 the local cleanups, instead of deleting them.
1507 (delete_breakpoint): Leave the commands field of the bpstat
1508 chain alone -- it will be freed later.
1509
1510 2002-08-26 Kevin Buettner <kevinb@redhat.com>
1511
1512 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1513 deleted in 2002-08-20 commit. This function is still used by
1514 ppc-linux-nat.c.
1515
1516 2002-08-26 Keith Seitz <keiths@redhat.com>
1517
1518 * gdb-events.sh: Add selected-frame-level-changed event.
1519 * gdb-events.c: Regenerated.
1520 * gdb-events.h: Regenerated.
1521
1522 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1523
1524 Fix PR gdb/393:
1525 * inflow.c (terminal_save_ours): New function to save terminal
1526 settings.
1527 * inferior.h (terminal_save_ours): Declare.
1528 * target.c (debug_to_terminal_save_ours): New function.
1529 (cleanup_target): Defaults to_terminal_save_ours.
1530 (update_current_target): Inherit to_terminal_save_ours.
1531 (setup_target_debug): Set to_terminal_save_ours.
1532 * target.h (target_terminal_save_ours): New to save terminal settings.
1533 (target_ops): New member to_terminal_save_ours.
1534 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1535 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1536 * inftarg.c (init_child_ops): Likewise.
1537 * m3-nat.c (init_m3_ops): Likewise.
1538 * procfs.c (init_procfs_ops): Likewise.
1539 * wince.c (init_child_ops): Likewise.
1540 * win32-nat.c (init_child_ops): Likewise.
1541 * sol-thread.c (init_sol_thread_ops): Likewise.
1542
1543 2002-08-26 Mark Kettenis <kettenis@gnu.org>
1544
1545 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1546 use regcache_* functions.
1547 (i386_gdbarch_init): Set store_return_value instead of
1548 deprecated_store_return_value.
1549
1550 * regcache.c (regcache_raw_write_signed,
1551 regcache_raw_write_unsigned): New functions.
1552 * regcache.h (regcache_raw_write_signed,
1553 regcache_raw_write_unsigned): New prototypes.
1554
1555 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1556
1557 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1558 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1559 source file dependencies. Cleanup corresponding generator rules.
1560
1561 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1562
1563 * regcache.h (register_offset_hack): Declare.
1564 (regcache_cooked_read_using_offset_hack): Declare.
1565 (regcache_cooked_write_using_offset_hack): Declare.
1566
1567 * regcache.c (register_offset_hack): New function.
1568 (regcache_cooked_read_using_offset_hack): New function.
1569 (regcache_cooked_write_using_offset_hack): New function.
1570 (regcache_dump): Check that the registers, according to their
1571 offset, are packed hard against each other.
1572 (cooked_xfer_using_offset_hack): New function.
1573
1574 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1575
1576 * regcache.c (struct regcache_descr): Add field register_type.
1577 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1578 in as a parameter
1579 (init_regcache_descr): Initialize register_type. Pass the descr
1580 to init_legacy_regcache_descr. Use register_type instead of
1581 REGISTER_VIRTUAL_TYPE.
1582 (register_type): New function.
1583 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1584 * regcache.h (register_type): Declare.
1585
1586 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1587
1588 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1589 instead of deprecated_store_return_value. Fix fallout from
1590 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1591
1592 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1593
1594 * regcache.c (max_register_size): New function.
1595 (init_legacy_regcache_descr): Ensure that max_register_size is
1596 large enough for REGISTER_VIRTUAL_SIZE.
1597 * regcache.h (max_register_size): Declare.
1598
1599 2002-08-24 Andrew Cagney <ac131313@redhat.com>
1600
1601 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1602 store_return_value.
1603 (e500_extract_return_value): Change type of valbuf pointer to
1604 void.
1605
1606 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1607
1608 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1609 workaround.
1610
1611 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1612 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1613 long long) to prevent compiler warning on 64-bit systems.
1614
1615 2002-08-23 Andrew Cagney <cagney@redhat.com>
1616
1617 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1618 (DEPRECATED_STORE_RETURN_VALUE): New method.
1619 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1620 * gdbarch.h, gdbarch.c: Re-generate.
1621
1622 * values.c (set_return_value): Pass current_regcache to
1623 STORE_RETURN_VALUE.
1624 * arch-utils.h (legacy_store_return_value): Declare.
1625 * arch-utils.c (legacy_store_return_value): New function.
1626 (legacy_extract_return_value): Update parameters.
1627
1628 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1629 STORE_RETURN_VALUE.
1630 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1631 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1632 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1633 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1634 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1635 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1636 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1637 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1638 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1639 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1640
1641 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1642 * i386-tdep.c (i386_extract_return_value): Update.
1643 * arch-utils.c (legacy_extract_return_value): Update.
1644 * frv-tdep.c (frv_gdbarch_init): Update.
1645 * cris-tdep.c (cris_gdbarch_init): Update.
1646 * d10v-tdep.c (d10v_gdbarch_init): Update.
1647 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1648 * m68k-tdep.c (m68k_gdbarch_init): Update.
1649 * mcore-tdep.c (mcore_gdbarch_init): Update.
1650 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1651 * s390-tdep.c (s390_gdbarch_init): Update.
1652 * sparc-tdep.c (sparc_gdbarch_init): Update.
1653 * sh-tdep.c (sh_gdbarch_init): Update.
1654 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1655 * v850-tdep.c (v850_gdbarch_init): Update.
1656 * avr-tdep.c (avr_gdbarch_init): Update.
1657 * ia64-tdep.c (ia64_gdbarch_init): Update.
1658 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1659 * vax-tdep.c (vax_gdbarch_init): Update.
1660 * alpha-tdep.c (alpha_gdbarch_init): Update.
1661 * arm-tdep.c (arm_gdbarch_init): Update.
1662 * mips-tdep.c (mips_gdbarch_init): Update.
1663 * i386-tdep.c (i386_gdbarch_init): Update.
1664
1665 2002-08-23 Andrew Cagney <ac131313@redhat.com>
1666
1667 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1668 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1669
1670 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1671
1672 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1673 problems.
1674
1675 2002-08-23 Joel Brobecker <brobecker@gnat.com>
1676
1677 * infrun.c (handle_inferior_event): Move a comment outside of a
1678 function call, in order to avoid indent reformatting this part
1679 of the code in an unreadable way.
1680
1681 2002-08-23 Grace Sainsbury <graces@redhat.com>
1682
1683 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1684 when breakpoints fail. Move general breakpoint error messages to
1685 insert_breakpoints.
1686 * breakpoint.c (insert_breakpoints): Change warnings when
1687 breakpoints are nto inserted to specify the type. Remove call to
1688 memory_error when hardware breakpoints can't be inserted. Remove
1689 multiple calls to warning so all messages are sent to the user at
1690 once.
1691 (delete_breakpoints): Make insert error messsages more explicit.
1692
1693 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
1694
1695 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1696 gdbserver/ChangeLog.
1697
1698 2002-08-23 Mark Kettenis <kettenis@gnu.org>
1699
1700 * i386-tdep.c: Include "objfiles.h".
1701 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1702 skip_trampoline_code.
1703 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1704 (CPLUS_MARKER): Define to '.'.
1705
1706 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1707 member.
1708 (linux_corefile_thread_callback): Increase args->num_notes.
1709 (linux_make_note_section): Initialize thread_args.num_notes, and
1710 use it to determine whether notes for any threads were created.
1711
1712 2002-08-23 Donn Terry <donnte@microsoft.com>
1713
1714 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1715 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1716 and PCUNKILL.
1717 (write_with_trace): Conditionalize out the switch branch handling
1718 PCSHOLD if the corresponding macro is not defined. Likewise for
1719 PRSABORT and PRSTOP.
1720 This change will be needed by the Interix port.
1721
1722 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1723
1724 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1725 write_register wherever possible instead of manipulating the
1726 register bytes directly.
1727 Assign VALUE_CONTENTS to a variable and use that.
1728 The GPR numbers are now dependent on the architecture.
1729
1730 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1731
1732 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1733 ev_offset fields.
1734 (skip_prologue): Add support for BookE/e500 instructions.
1735 (e500_extract_return_value): New function.
1736 (frame_get_saved_regs): Add support for saving ev registers and
1737 pseudo gpr's.
1738 (e500_store_return_value): New function.
1739 (rs6000_gdbarch_init): Move up default intializations of
1740 deprecated_extract_return_value and store_return_value. Overwrite
1741 init of store_return_value with e500 specific version.
1742 Set extract_return_value for e500.
1743
1744 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1745
1746 * blockframe.c (generic_call_dummy_register_unwind): Use
1747 regcache_cooked_read to catch cases in which the variable is
1748 stored in a pseudo register.
1749
1750 2002-08-22 Andrew Cagney <cagney@redhat.com>
1751
1752 * NEWS: Mention that the i960 has been made obsolete.
1753 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1754 i960-tdep.c
1755 (remote-nrom.o): Obsolete target.
1756 (remote-nindy.o, i960-tdep.o): Ditto.
1757 * remote-nrom.c: Make file obsolete.
1758 * remote-nindy.c, remote-vx960.c: Ditto.
1759 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1760 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1761 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1762 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1763 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1764 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1765 i960-*-vxworks* obsolete.
1766 * MAINTAINERS: Note that the i960 is obsolete.
1767
1768 2002-08-21 Corinna Vinschen <vinschen@redhat.com
1769
1770 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1771 detach to allow reinitialization.
1772
1773 2002-08-22 Andrew Cagney <ac131313@redhat.com>
1774
1775 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1776 attempt).
1777
1778 2002-08-22 Jim Blandy <jimb@redhat.com>
1779
1780 * coffread.c (coff_symfile_read): Don't try to read the line
1781 number table from disk if the image file doesn't have a symbol
1782 table; we'll never actually look at the info anyway, and Windows
1783 ships DLL's with bogus file offsets for the line number data.
1784
1785 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1786
1787 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1788 an e500 executable.
1789
1790 2002-08-21 Michael Snyder <msnyder@redhat.com>
1791
1792 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1793 (MSYMBOL_SIZE): Replace macro with function.
1794 (DEFAULT_MIPS_TYPE): Delete unused macro.
1795 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1796 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1797
1798 2002-08-21 Jim Blandy <jimb@redhat.com>
1799
1800 * valops.c (value_cast): Simplify and correct logic for doing a
1801 static cast from a pointer to a base class to a pointer to a
1802 derived class.
1803
1804 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1805
1806 * infcmd.c (default_print_registers_info): Replace
1807 do_registers_info.
1808 (registers_info): Use gdbarch_print_registers_info instead of
1809 DO_REGISTERS_INFO.
1810 * inferior.h (default_print_registers_info): Replace
1811 do_registers_info.
1812 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1813 (DO_REGISTERS_INFO): Change to a predicate function.
1814 * gdbarch.h, gdbarch.c: Regenerate.
1815
1816 2002-08-21 Keith Seitz <keiths@redhat.com>
1817
1818 * gdb-events.sh: Add target-changed event.
1819 * gdb-events.c: Regenerated.
1820 * gdb-events.c: Regenerated.
1821 * valops.c (value_assign): Add target-changed event notification
1822 to inlval_register, lval_memory, and lval_reg_frame_relative.
1823
1824 2002-08-21 Joel Brobecker <brobecker@gnat.com>
1825
1826 * NEWS: Add an entry regarding the improvement of the next/step
1827 operation on Alpha Tru64 multi-processor machines.
1828
1829 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1830
1831 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1832 directores.
1833 * Makefile.in: Update all _h macro definitions.
1834 * Makefile.in (install-gdbtk): Move to install section.
1835 (rdi-share/libangsd.a): Move to end of file.
1836
1837 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1838
1839 * frame.c (frame_register_unwind): When a register, set addrp to
1840 the register's byte.
1841
1842 2002-08-20 Michael Snyder <msnyder@redhat.com>
1843
1844 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1845 used locally, so move them from the target machine header to here.
1846 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1847 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1848 Make static.
1849 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1850
1851 2002-08-20 Andrew Cagney <cagney@redhat.com>
1852
1853 * NEWS: Mention that the Apollo line was made obsolete.
1854 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1855 m68*-hp-hpux* obsolete.
1856 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1857 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1858 * buildsym.c (make_blockvector): Make static.
1859 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1860 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1861 (ALLDEPFILES): Remove dstread.c.
1862 (dstread.o): Obsolete make rule.
1863 * dstread.c: Makefile obsolete.
1864 * dst.h: Ditto.
1865 * config/m68k/hp300hpux.mt: Ditto.
1866 * config/m68k/hp300hpux.mh: Ditto.
1867 * config/m68k/hp300bsd.mt: Ditto.
1868 * config/m68k/hp300bsd.mh: Ditto.
1869 * config/m68k/apollo68b.mt: Ditto.
1870 * config/m68k/apollo68v.mh: Ditto.
1871 * config/m68k/apollo68b.mh: Ditto.
1872
1873 2002-08-20 Michael Snyder <msnyder@redhat.com>
1874
1875 * mips-tdep.c (mips_in_return_stub): Make static.
1876 (mips_gdbarch_init): Set in_solib_return_trampoline.
1877 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1878
1879 2002-08-20 Michael Snyder <msnyder@redhat.com>
1880
1881 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1882 * gdbarch.c, gdbarch.h: Regenerate.
1883 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1884 Add.
1885 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1886
1887 2002-08-20 Michael Snyder <msnyder@redhat.com>
1888
1889 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1890 (mips_gdbarch_init): Set skip_trampoline_code,
1891 in_solib_call_trampoline.
1892 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1893 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1894
1895 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1896
1897 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1898
1899 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1900 vector type for ev registers.
1901 (e500_pseudo_register_read): New function.
1902 (e500_pseudo_register_write): New function.
1903 (e500_dwarf2_reg_to_regnum): New function.
1904 (PPC_UISA_NOFP_SPRS): New macro.
1905 (PPC_EV_REGS): New macro.
1906 (PPC_GPRS_PSEUDO_REGS): New macro.
1907 (registers_e500): New register set for e500.
1908 (variants): Add e500 variant.
1909 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1910 before setting architectural dependent variations. Initialize ev
1911 registers numbers. Add case for e500 architecture. Set the
1912 number of pseudo registers.
1913
1914 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1915
1916 * rs6000-tdep.c: Clean up comments.
1917
1918 2002-08-20 Andrew Cagney <cagney@redhat.com>
1919
1920 * h8300-tdep.c: Re-indent file.
1921
1922 2002-08-20 Jim Blandy <jimb@redhat.com>
1923
1924 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1925 default for this.
1926
1927 2002-08-20 Keith Seitz <keiths@redhat.com>
1928
1929 * breakpoints.c (watch_command_1): Use internal breakpoint
1930 when setting a watchpoint_scope breakpoint.
1931
1932 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1933
1934 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1935 (build_builtin_type_vec64i): Ditto.
1936 (build_builtin_type_vec128): Ditto.
1937 (build_builtin_type_vec128i): Ditto.
1938
1939 2002-08-19 Michael Snyder <msnyder@redhat.com>
1940
1941 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1942 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1943 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1944 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1945 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1946 CALL_DUMMY_ADDRESS): Delete.
1947 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1948 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1949 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1950 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1951 push_return_address.
1952 (mips_register_raw_size, mips_eabi_use_struct_convention,
1953 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1954 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1955 mips_init_extra_frame_info, mips_eabi_push_arguments,
1956 mips_n32n64_push_arguments, mips_push_return_address,
1957 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1958 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1959
1960 2002-08-19 Michael Snyder <msnyder@redhat.com>
1961
1962 * mips-tdep.c (mips_frame_num_args): New function.
1963 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1964 frame_saved_pc, frame_args_address, frame_locals_address,
1965 frame_num_args, and frame_args_skip.
1966 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1967 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1968 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1969 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1970
1971 2002-08-20 Michael Snyder <msnyder@redhat.com>
1972
1973 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1974 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1975 * mips-tdep.c (mips_store_struct_return): New function.
1976 (mips_extract_struct_value_address): New function.
1977 (mips_gdbarch_init): Set store_struct_return and
1978 extract_struct_value_address.
1979
1980 2002-08-20 David Carlton <carlton@math.stanford.edu>
1981
1982 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1983 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1984 (read_file_scope): Check that line_header is nonzero before
1985 decoding macro information.
1986
1987 2002-08-20 Mark Kettenis <kettenis@gnu.org>
1988
1989 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1990 flag the general-purpose registers as floating-point on targets
1991 that don't support the floating-point registers.
1992
1993 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1994
1995 * rs6000-tdep.c (altivec_register_p): Delete.
1996 (rs6000_do_altivec_registers): Delete.
1997 (rs6000_altivec_registers_info): Delete.
1998 (rs6000_do_registers_info): Delete.
1999 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
2000 (rs6000_gdbarch_init): Remove setting of do_registers_info.
2001
2002 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2003
2004 * infcmd.c (do_registers_info): Print vector registers in hex
2005 format only.
2006 (print_vector_info): Check that printing registers
2007 makes sense.
2008 (print_float_info): Ditto.
2009
2010 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2011
2012 * mips-tdep.c (mips_gdbarch_init): Update.
2013 (mips_o32_extract_return_value): Rewrite.
2014 (mips_o32_store_return_value): Rewrite.
2015 (mips_o32_xfer_return_value): New function.
2016 (mips_xfer_register): Tweak debug print message. Allow for
2017 buf_offset when dumping the value transfered.
2018
2019 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2020
2021 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2022 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2023 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2024 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2025 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2026
2027 2002-08-14 Michael Snyder <msnyder@redhat.com>
2028
2029 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2030
2031 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2032
2033 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2034 register.
2035 (P): New macro to define a register as a pseudo register.
2036 (R, R4, R8, R16, FR32, R64, R0): Updated.
2037 (struct variant): Add new fields for number of pseudo registers
2038 and number of total registers.
2039 (tot_num_registers): New macro replacing....
2040 (num_registers): ...deleted macro.
2041 (num_registers): New function.
2042 (num_pseudo_registers): New function.
2043 (variants): Update all variants to intialize new fields correctly.
2044 Postpone initialization of number of pseudo regs and real regs.
2045 (init_variants): New function.
2046 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2047 registers offsets.
2048
2049 2002-08-19 David Carlton <carlton@math.stanford.edu>
2050
2051 * valops.c (search_struct_field): Change error message to treat
2052 return value of 0 from value_static_field as meaning that field is
2053 optimized out.
2054 (value_struct_elt_for_reference): Ditto.
2055 * values.c (value_static_field): Treat an unresolved location the
2056 same as a nonexistent symbol. Fix PR gdb/635.
2057 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2058 enclosed. Fix PR gdb/574.
2059 * MAINTAINERS: Add self to Write After Approval list.
2060
2061 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2062
2063 * mips-tdep.c (mips_xfer_register): New function.
2064 (mips_n32n64_extract_return_value): Rewrite.
2065 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2066 instead of deprecated_extract_return_value.
2067
2068 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2069
2070 * rs6000-tdep.c (TDEP): Delete macro.
2071 (branch_dest): Replace use of TDEP macro with its body.
2072 (rs6000_pop_frame): Ditto.
2073 (rs6000_push_arguments): Ditto.
2074 (rs6000_skip_trampoline_code): Ditto.
2075 (rs6000_frame_saved_pc): Ditto.
2076 (rs6000_frame_chain): Ditto.
2077 (rs6000_register_name): Ditto.
2078 (rs6000_register_byte): Ditto.
2079 (rs6000_register_raw_size): Ditto.
2080 (rs6000_register_virtual_type): Ditto.
2081 (rs6000_register_convertible): Ditto.
2082 (rs6000_convert_from_func_ptr_addr): Ditto.
2083
2084 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
2085
2086 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2087 conditionally.
2088 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2089 MIPS_LINUX_JB_ELEMENT_SIZE.
2090 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2091 for MAX_REGISTER_RAW_SIZE arrays.
2092 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2093 MIPS_LINUX_JB_ELEMENT_SIZE.
2094
2095 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2096
2097 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2098
2099 2002-08-19 Aidan Skinner <aidan@velvet.net>
2100
2101 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2102 ada-valprint.c ada-tasks.c.
2103 (YYFILES): Add ada-exp.y.
2104 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2105 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2106 (ada-exp.tab.o): New target.
2107
2108 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2109
2110 * regcache.c (regcache_xfer_part): New function.
2111 (regcache_raw_read_part): New function.
2112 (regcache_raw_write_part): New function.
2113 (regcache_cooked_read_part): New function.
2114 (regcache_cooked_write_part): New function.
2115 * regcache.h (regcache_raw_read_part): Declare.
2116 (regcache_raw_write_part): Declare.
2117 (regcache_cooked_read_part): Declare.
2118 (regcache_cooked_write_part): Declare.
2119
2120 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
2121
2122 * remote.c (remote_open_1): Add async_p.
2123 (remote_async_open_1): Delete.
2124 (open_remote_target): Delete.
2125 (remote_open, extended_remote_open): Update calls to remote_open_1.
2126 (remote_async_open, extended_remote_async_open): Call
2127 remote_open_1 instead of remote_async_open_1.
2128
2129 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2130
2131 * blockframe.c: Fix a few coding standard violations.
2132
2133 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2134
2135 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2136 here from ...
2137 * config/i386/tm-i386sco5.h: ... here. File removed.
2138 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2139
2140 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
2141 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2142 (TM_FILE): Set to tm-i386.h.
2143 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2144 * config/i386/tm-i386v.h: Remove file.
2145 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2146 instead of "i386/tm-i386v.h".
2147 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2148 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2149 "i386/tm-i386v.h".
2150 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2151 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2152 "i386/tm-i386.h".
2153
2154 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2155
2156 * config/i386/nm-i386v.h: Add protection against
2157 multiple-inclusion.
2158 (i386_register_u_addr): Remove prototype.
2159 (register_u_addr): New prototype.
2160 (REGISTER_U_ADDR): Redefine accordingly.
2161 * i386v-nat.c: Improve several comments.
2162 (i386_register_u_addr): Change signature and rename to
2163 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2164 ubase variable.
2165
2166 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2167
2168 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2169 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2170 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2171 deprecated_extract_return_value.
2172 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2173 rename mips_o32o64_push_arguments.
2174 (mips_gdbarch_init): Update.
2175 (mips_extract_return_value): Delete.
2176 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2177 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2178 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2179 (mips_n32n64_extract_return_value): Clone
2180 mips_extract_return_value.
2181 (mips_store_return_value): Delete.
2182 (mips_o32_store_return_value): Clone mips_store_return_value.
2183 (mips_o64_store_return_value): Clone mips_store_return_value.
2184 (mips_eabi_store_return_value): Clone mips_store_return_value.
2185 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2186
2187 2002-08-18 Aidan Skinner <aidan@velvet.net>
2188
2189 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2190 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2191
2192 2002-08-18 Aidan Skinner <aidan@velvet.net>
2193
2194 * ada-lang.c: Run through gdb_indent.sh.
2195 * ada-lang.h: Run through gdb_indent.sh.
2196 * ada-tasks.c: Run through gdb_indent.sh.
2197 * ada-typeprint.c: Run through gdb_indent.sh.
2198 * ada-valprint.c: Run through gdb_indent.sh.
2199
2200 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2201
2202 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2203 ABI.
2204
2205 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2206
2207 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2208
2209 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2210 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2211
2212 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2213 write_register_gen instead of write_register_bytes.
2214
2215 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2216 i[3456]-*-osf1mk* configurations have been made obsolete.
2217 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2218 i[3456]86-*-osf1mk* hosts obsolete.
2219 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2220 targets obsolete.
2221 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2222 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2223 config/i386/i386m3.mt, config/i386/nm-m3.h,
2224 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2225 config/i386/i386mk.mh, config/i386/i386mk.mt,
2226 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2227 obsolete.
2228 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2229 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2230 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2231
2232 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2233
2234 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2235 (hppa_value_returned_from_stack): Declare.
2236 (hppa_extract_return_value): Declare.
2237 * config/pa/hppa.mt: New file.
2238 * configure.tgt: Recognize hppa*-*-*.
2239 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2240
2241 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2242
2243 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2244 comment.
2245
2246 2002-08-17 Mark Kettenis <kettenis@gnu.org>
2247
2248 * top.c (gdb_rl_operate_and_get_next): Make sure
2249 operate-and-get-next functions correctly even when the history
2250 list is completely filled.
2251
2252 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2253
2254 * MAINTAINERS (Target Instruction Set Architectures): Rename
2255 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2256 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2257 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2258 already listed under Host/Native.
2259
2260 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2261 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2262 mips*-*-*.
2263
2264 2002-08-17 Andrew Cagney <ac131313@redhat.com>
2265
2266 * config/ia64/ia64.mt: New file.
2267 * config/alpha/alpha.mt: New file.
2268 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2269 ia64-linux-gnu. Mention that ia64-elf is broken.
2270 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2271
2272 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2273
2274 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2275 generic_func_frame_valid instead of func_frame_valid.
2276
2277 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2278
2279 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2280 procfs appears to be broken when debugging on multi-processor
2281 machines. So enable software single stepping in order to avoid
2282 using the procfs interface to do next/step operations, using
2283 internal breakpoints instead.
2284
2285 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2286 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2287 make this pc address equal to the value it would have if the
2288 system stepping capability was used. Also set a new flag used
2289 to ensure that we don't readjust the PC one more time later.
2290
2291 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2292 address by DECR_PC_AFTER_BREAK when software single step is
2293 in use for this architecture, as this has already been taken
2294 care of in handle_inferior_event().
2295
2296 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2297
2298 * infrun.c (handle_inferior_event): Minor reformatting, to make
2299 a rather long condition expression easier to read.
2300
2301 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2302
2303 * Makefile.in (gdbtk.o): Move to end of file.
2304 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2305 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2306 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2307 (gdbtk-wrapper.o, gdbres.o): Ditto.
2308
2309 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2310
2311 * Makefile.in (copying.o): Separate out compile rule.
2312 (hpux-thread.o, procfs.o, signals.o): Ditto.
2313 (v850ice.o, z8k-tdep.o): Ditto.
2314 (tui-file.o): Move to TUI section.
2315 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2316 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2317
2318 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2319
2320 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2321 skip_trampoline_code, for better namespace-proofing.
2322
2323 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2324
2325 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2326
2327 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2328
2329 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2330
2331 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2332 signal, check whether we hit a breakpoint before checking for a
2333 single step breakpoint. Otherwise, GDB fails to notice that a
2334 breakpoint has been hit when stepping onto a breakpoint.
2335
2336 2002-08-16 Keith Seitz <keiths@redhat.com>
2337
2338 * gdb-events.sh (clear_gdb_event_hooks): New function.
2339 * gdb-events.c: Regenerate.
2340 * gdb-events.h: Regenerate.
2341
2342 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2343
2344 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2345 not_a_sw_breakpoint.
2346 * breakpoint.h (bpstat_stop_status): Add parameter names.
2347
2348 2002-08-16 Grace Sainsbury <graces@redhat.com>
2349
2350 * remote.c (remote_insert_hw_breakpoint)
2351 (remote_remove_hw_breakpoint): Fix calculation of length field
2352 for Z-packet.
2353
2354 2002-08-15 Michael Snyder <msnyder@redhat.com>
2355
2356 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2357 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2358 (supply_fpregset): Ditto.
2359
2360 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2361 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2362 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2363 (TARGET_READ_SP): Delete.
2364 (DO_REGISTERS_INFO): Delete.
2365 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2366 Delete.
2367 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2368 from macros to functions.
2369
2370 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2371 (mips_register_convertible, mips_register_convert_to_virtual,
2372 mips_register_convert_to_raw): Make static.
2373 (mips_read_sp): New function.
2374 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2375 (mips_do_registers_info): Make static.
2376 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2377 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2378 (mips_register_convert_from_type, mips_register_convert_to_type):
2379 New functions.
2380 (mips_gdbarch_init): Set up function_start_offset,
2381 register_virtual_size, pc_in_sigtramp.
2382
2383 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2384
2385 * infcmd.c (vector_info): New function.
2386 (_initialize_infcmd): Add command "info vector".
2387 (print_vector_info): New function.
2388
2389 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2390 * gdbarch.h, gdbarch.c: Regenerate.
2391
2392 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2393
2394 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2395 ``print_all''. Only print vector registers when ``print_all''.
2396
2397 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2398
2399 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2400 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2401
2402 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2403 Add `args' parameter.
2404 * gdbarch.h, gdbarch.c: Regenerate.
2405
2406 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2407
2408 * infcmd.c (float_info): Call print_float_info.
2409 (print_float_info): New function. By default, print the
2410 floating-point registers.
2411
2412 * arch-utils.h (default_print_float_info): Delete declaration.
2413 * arch-utils.c (default_print_float_info): Delete function.
2414
2415 2002-08-16 Mark Kettenis <kettenis@gnu.org>
2416
2417 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2418 out define.
2419
2420 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2421 FRAME.
2422
2423 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2424 * configure.host: Make i[3456]86-*-aix host obsolete.
2425 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2426 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2427 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2428 config/i386/xm-i386aix.h: Make files obsolete.
2429 * i386aix-nat.c: Make file obsolete.
2430 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2431 (i386aix-nat.o): Make target obsolete.
2432
2433 * config/i386/nm-gnu.h: Removed.
2434 * config/i386/nm-i386gnu.h: New file.
2435 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2436 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2437 Moved here from ...
2438 * config/i386/tm-i386gnu.h: ... here. Removed.
2439 * config/i386/xm-i386gnu.h: Removed.
2440 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2441 (NAT_FILE): Set to nm-i386gnu.h.
2442 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2443 * i386-tdep.c: New file.
2444 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2445 (i386gnu-tdep.o): Specify dependencies.
2446
2447 2002-08-15 Mark Kettenis <kettenis@gnu.org>
2448
2449 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2450 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2451 Adjust a few comments to reflect reality a bit closer.
2452 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2453 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2454 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2455 target_insert_watchpoint, target_remove_watchpoint):
2456 Move defines to ...
2457 * config/i386/nm-i386sco5.h: ... here.
2458 (kernel_u_size): Add prototype. Improve a few comments and add
2459 protection against multiple inclusion.
2460
2461 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2462 out define.
2463
2464 * uw-thread.c (SP_ARG0): Define if not already defined.
2465 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2466
2467 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2468
2469 * config/i386/tm-i386.h: Don't include "regcache.h".
2470
2471 * i387-tdep.h (i387_print_float_info): New prototype.
2472 * i387-tdep.c (print_i387_value, print_i387_ext,
2473 print_i387_status_word, print_i387_control_word): Add `struct
2474 ui_file *' argument and use it for output.
2475 (i387_print_float_info): Renamed from i387_float_info. Add
2476 `struct gdbarch *' and `struct ui_file *' arguments and use the
2477 latter for output.
2478 * i386-tdep.c: Include "i387-tdep.h".
2479 (i386_gdbarch_init): Set print_float_info.
2480 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2481 (FLOAT_INFO): Remove define.
2482
2483 2002-08-13 Michael Snyder <msnyder@redhat.com>
2484
2485 * mips-tdep.c (mips_push_arguments): Rename to
2486 mips_eabi_push_arguments, and tune for EABI.
2487 (MIPS_REGS_HAVE_HOME_P): Delete.
2488 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2489 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2490 Delete references to mips_regs_have_home_p.
2491
2492 2002-08-14 Keith Seitz <keiths@redhat.com>
2493
2494 * Makefile.in (install-gdbtk): Create insight plugin directory.
2495 Install plugins.tcl file.
2496
2497 2002-08-14 Keith Seitz <keiths@redhat.com>
2498
2499 * configure.in: Move SUBDIRS to near top of the file so that
2500 --enable options may add things to it.
2501 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2502 * configure: Regenerate.
2503
2504 2002-08-13 Michael Snyder <msnyder@redhat.com>
2505
2506 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2507 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2508 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2509
2510 2002-08-13 Andrew Cagney <ac131313@redhat.com>
2511
2512 * vax-tdep.c (vax_get_saved_register): Delete function.
2513 (vax_gdbarch_init): Update.
2514 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2515 (ns32k_gdbarch_init): Update.
2516 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2517 (alpha_gdbarch_init): Update.
2518
2519 2002-08-13 Andrew Cagney <cagney@redhat.com>
2520
2521 * regcache.c (init_regcache_descr): Overallocate the
2522 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2523 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2524 nr_raw_registers.
2525 (set_register_cached): Add range checking assertions. Use
2526 current_regcache.
2527
2528 2002-08-13 Mark Kettenis <kettenis@gnu.org>
2529
2530 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2531 numbers for MMX registers.
2532
2533 2002-08-13 Andrew Cagney <cagney@redhat.com>
2534
2535 * i386-tdep.c (i386_gdbarch_init): Use
2536 generic_unwind_get_saved_register.
2537
2538 2002-08-13 Kevin Buettner <kevinb@redhat.com>
2539
2540 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2541 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2542 target vector.
2543 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2544 Delete. Add comment regarding this now-deleted target method.
2545
2546 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2547
2548 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2549 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2550 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2551 real PC and the page number (if it's within the memory bank window).
2552 (m68hc11_pseudo_register_write): Likewise when saving.
2553 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2554 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2555 (m68hc11_register_raw_size): And use 32-bit for it.
2556 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2557 16K memory bank is used by the prog; also use the virtual pc.
2558
2559 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2560
2561 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2562 (m68hc11_gdbarch_init): Install it in gdbarch.
2563 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2564 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2565 (MSYMBOL_SIZE): New for documentation.
2566 (insn_return_kind): Enum to specify how a function returns.
2567 (frame_extra_info): Cleanup and record the return mode.
2568 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2569 register in address computation.
2570 (m68hc11_get_return_insn): New to obtain the return instruction used
2571 by the function.
2572 (m68hc11_frame_init_saved_regs): Take into account the return
2573 instruction used by the function for far and interrupt functions.
2574 (m68hc11_init_extra_frame_info): Take into account page register.
2575 (m68hc11_frame_args_address): Adjust according to the return mode.
2576 (show_regs): Print page register only when it's used.
2577
2578 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2579
2580 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2581 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2582 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2583 registers.
2584 (m68hc11_register_raw_size): Likewise.
2585
2586 2002-08-13 Andrew Cagney <cagney@redhat.com>
2587
2588 * i386-tdep.c (i386_register_name): Handle mmx registers.
2589 (mmx_regnum_p): New function.
2590 (i386_mmx_names): New array.
2591 (mmx_num_regs): New variable.
2592 (i386_pseudo_register_read): New function.
2593 (i386_pseudo_register_write): New function.
2594 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2595
2596 * regcache.c (regcache_raw_read_unsigned): New function.
2597 (regcache_raw_read_signed): New function.
2598 * regcache.h (regcache_raw_read_unsigned): Declare.
2599 (regcache_raw_read_signed): Declare.
2600
2601 2002-08-13 Andrew Cagney <cagney@redhat.com>
2602
2603 * regcache.c (regcache_raw_read_as_address): Delete function.
2604 (regcache_cooked_read_signed): New function.
2605 (regcache_cooked_read_unsigned): New function.
2606 * regcache.h (regcache_cooked_read_signed): Declare.
2607 (regcache_cooked_read_unsigned): Declare.
2608 (regcache_raw_read_as_address): Delete declaration.
2609
2610 * blockframe.c (generic_read_register_dummy): Use
2611 regcache_cooked_read_unsigned.
2612 * i386-tdep.c (i386_extract_struct_value_address): Use
2613 regcache_cooked_read_unsigned.
2614
2615 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2616
2617 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2618 double sizes according to ELF ABI flags.
2619 (gdbarch_tdep): Record elf_flags.
2620
2621 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2622
2623 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2624 (m6812_prolog): They can appear in 68HC12 function prologue.
2625 (m68hc11_frame_chain): Cleanup.
2626
2627 2002-08-12 Andrew Cagney <cagney@redhat.com>
2628
2629 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2630 declarations.
2631 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2632 (i386_linux_register_raw_size): Delete function.
2633 (i386_linux_init_abi): Update.
2634 * i386-tdep.c (i386_register_raw_size): Delete function.
2635 (i386_register_byte): Delete function.
2636 (i386_gdbarch_init): Update.
2637 (i386_register_size): Delete array.
2638 (i386_register_offset): Delete array.
2639
2640 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2641 (REGISTER_RAW_SIZE): Delete macro.
2642 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2643 (REGISTER_BYTE): Delete macro.
2644
2645 2002-08-11 Aidan Skinner <aidan@velvet.net>
2646
2647 * ada-lang.c (ada_lookup_partial_symbol)
2648 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2649 prototype names so that grep ^func works properly.
2650
2651 * ada-lang.c (ada_array_element_type)
2652 (ada_lookup_partial_symbol): Fix typos in parameter list.
2653
2654 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2655 Fix prototype names so that grep ^func works properly.
2656
2657 2002-08-10 Andrew Cagney <cagney@redhat.com>
2658 Elena Zannoni <ezannoni@redhat.com>
2659 Martin M. Hunt <hunt@redhat.com>
2660
2661 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2662 (build_builtin_type_vec128i): Set the vector bit.
2663 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2664 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2665 (build_builtin_type_vec64): New function.
2666 (build_builtin_type_vec64i): New function.
2667 (build_gdbtypes): Initialize builtin_type_vec64 and
2668 builtin_type_vec64i.
2669
2670 2002-08-09 Andrew Cagney <cagney@redhat.com>
2671
2672 * regcache.c (regcache_dump): Compare the register offset
2673 with REGISTER_BYTE.
2674 * arch-utils.c (generic_register_byte): New function.
2675 * arch-utils.h (generic_register_byte): Declare.
2676 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2677 * gdbarch.h, gdbarch.c: Regenerate.
2678
2679 2002-08-09 Andrew Cagney <cagney@redhat.com>
2680
2681 * regcache.c: Include "gdbcmd.h"
2682 (_initialize_regcache): Add commands "maintenance print
2683 registers", "maintenance print raw-registers" and "maintenance
2684 print cooked-registers".
2685 (enum regcache_dump_what): Define.
2686 (dump_endian_bytes): New function.
2687 (regcache_dump): New function.
2688 (regcache_print): New function.
2689 (maintenance_print_registers): New function.
2690 (maintenance_print_raw_registers): New function.
2691 (maintenance_print_cooked_registers): New function.
2692 * Makefile.in (regcache.o): Update dependencies.
2693
2694 2002-08-09 Michael Snyder <msnyder@redhat.com>
2695
2696 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2697 (mips_push_arguments): Correct some comments. Use paddr_nz
2698 for printing addresses in debug output. Replace static
2699 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2700 (mips_n32n64_push_arguments): New function, cloned from
2701 mips_push_arguments and tuned for the n32/n64 ABI.
2702 (mips_push_register): Buffer needs dynamic allocation.
2703 (mips_print_register): Ditto.
2704 (do_gp_register_row): Ditto.
2705 (mips_store_return_value): Ditto.
2706 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2707
2708 2002-08-09 Don Howard <dhoward@redhat.com>
2709
2710 * memattr.c (mem_info_command): Print special case of upper bound
2711 as max CORE_ADDR + 1.
2712
2713 2002-08-08 Michael Snyder <msnyder@redhat.com>
2714
2715 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2716 returns structs by ref if they're too big to fit in two registers.
2717
2718 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2719
2720 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2721 saved regs value.
2722 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2723 mips_find_saved_regs().
2724 (mips_pop_frame): Likewise.
2725
2726 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2727
2728 * blockframe.c (frame_saved_regs_register_unwind): Revise
2729 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2730 frames are in use.
2731
2732 2002-08-09 Grace Sainsbury <graces@redhat.com>
2733
2734 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2735 T-packets; the 'a' is not taken as a register number.
2736 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2737 (remote_stopped_data_address): New functions; add to target
2738 vector.
2739 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2740 prototypes to match other implementations of this
2741 function. replace integer argument with pointer -- the length
2742 field in the Z-packet is the length of what is pointed to or 1 if
2743 pointer is null. Add to target vector.
2744 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2745 target vector.
2746
2747 From Mark Salter:
2748 * remote.c (remote_wait): Add support to extract optional
2749 watchpoint information from T-packet. Ignore unrecognized
2750 optional info in T-packet.
2751 (remote_async_wait): Ditto.
2752
2753 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
2754
2755 * cli/cli-dump.c: Change fopen modes to use binary open modes
2756 as defined in include/fopen-bin.h throughout.
2757
2758 2002-08-08 Michael Snyder <msnyder@redhat.com>
2759
2760 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2761
2762 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2763
2764 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2765 assertion failure by returning early after a warning.
2766
2767 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2768
2769 * mips-tdep.c (mips_find_saved_regs): Make static.
2770 (mips_frame_init_saved_regs): New function.
2771 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2772 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2773 (mips_find_saved_regs): Delete declaration.
2774
2775 2002-08-08 Grace Sainsbury <graces@redhat.com>
2776
2777 * remote.c (remote_wait, remote_async_wait): Change
2778 thread_num from int to ULONGEST.
2779 (unpack_varlen_hex): Change result parameter from
2780 int * to ULONGEST *.
2781
2782 2002-08-08 Andrew Cagney <ac131313@redhat.com>
2783
2784 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2785 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2786 powerpc*-*-*.
2787 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2788
2789 2002-08-08 Andrew Cagney <cagney@redhat.com>
2790
2791 * gcore.c (override_derive_stack_segment): Delete variable.
2792 (preempt_derive_stack_segment): Delete function.
2793 (derive_stack_segment): Delete function.
2794 (default_derive_stack_segment): Renamed to derive_stack_segment.
2795 (override_derive_heap_segment): Delete variable.
2796 (preempt_derive_heap_segment): Delete function.
2797 (derive_heap_segment): Delete function.
2798 (default_derive_heap_segment): Rename to derive_heap_segment.
2799
2800 2002-08-06 Michael Snyder <msnyder@redhat.com>
2801
2802 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2803 * mips-tdep.c (mips_EABI_use_struct_convention,
2804 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2805 New functions. (mips_use_struct_convention): Delete.
2806 (mips_gdbarch_init): set use_gdbarch_convention.
2807
2808 2002-08-06 Michael Snyder <msnyder@redhat.com>
2809
2810 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2811 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2812 mips_o32_reg_struct_has_addr): New functions.
2813 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2814
2815 2002-08-07 Andrew Cagney <ac131313@redhat.com>
2816
2817 * regcache.c (pseudo_register): Delete function.
2818 (fetch_register): Delete function.
2819 (store_register): Delete function.
2820 (regcache_raw_read, legacy_read_register_gen): Use
2821 target_fetch_registers instead of fetch_register.
2822 (legacy_write_register_gen, regcache_raw_write): Use
2823 target_store_register instead of store_register.
2824 (write_register_bytes): Ditto.
2825
2826 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2827 (STORE_PSEUDO_REGISTER): Delete.
2828 * gdbarch.h, gdbarch.c: Regenerate.
2829
2830 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
2831
2832 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2833 write dump file binary.
2834
2835 2002-08-05 Michael Snyder <msnyder@redhat.com>
2836
2837 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2838 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2839 (mips_gdbarch_init): Set N32 target to be mips64.
2840
2841 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2842
2843 * frame.c (find_saved_register): Break out of loop once saved
2844 register address is found. Don't mention sparc in loop comment
2845 anymore.
2846
2847 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2848
2849 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2850 mips_default_saved_regsize to 8.
2851
2852 2002-08-06 Andrew Cagney <ac131313@redhat.com>
2853
2854 * gcore.c: Do not include <sys/procfs.h>.
2855 * Makefile.in (gcore.o): Update dependencies.
2856
2857 2002-08-06 Andrew Cagney <cagney@redhat.com>
2858
2859 * configure.tgt: Make arc-*-* obsolete.
2860 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2861 * MAINTAINERS: Make arc-elf obsolete.
2862 * arc-tdep.c: Make file obsolete.
2863 * config/arc/arc.mt: Ditto.
2864 * config/arc/tm-arc.h: Ditto.
2865
2866 2002-08-05 Theodore A. Roth <troth@verinet.com>
2867
2868 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
2869
2870 2002-08-05 Andrew Cagney <ac131313@redhat.com>
2871
2872 * mcore-tdep.c (mcore_gdbarch_init): Use
2873 generic_unwind_get_saved_register instead of
2874 generic_get_saved_register.
2875 * v850-tdep.c (v850_gdbarch_init): Ditto.
2876 * frv-tdep.c (frv_gdbarch_init): Ditto.
2877 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2878 * s390-tdep.c (s390_gdbarch_init): Ditto.
2879 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2880 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2881 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2882
2883 2002-08-05 Joel Brobecker <brobecker@gnat.com>
2884
2885 * objfiles.h: Add missing #include "symfile.h"
2886
2887 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2888
2889 2002-08-04 Andrew Cagney <ac131313@redhat.com>
2890
2891 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2892 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2893 of FIELD_BITSIZE.
2894
2895 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
2896
2897 * NEWS: Cleanup and nitpick.
2898
2899 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2900
2901 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2902
2903 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2904
2905 * Makefile.in (gdbtk-bp.o): Update dependencies.
2906 (gdbtk-register.o): Ditto.
2907 (gdbtk-varobj.o): Ditto.
2908
2909 2002-08-03 Andrew Cagney <cagney@redhat.com>
2910
2911 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2912 m68hc11_fetch_pseudo_register.
2913 (m68hc11_pseudo_register_write): Replace
2914 m68hc11_store_pseudo_register.
2915 (m68hc11_gdbarch_init): Update.
2916
2917 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2918
2919 * gdbarch.sh: Include "gdb_string.h".
2920 * gdbarch.c: Regenerate.
2921
2922 * regcache.c: Include "gdb_string.h".
2923 * ax-general.c: Ditto.
2924 * varobj.c: Ditto.
2925 * std-regs.c: Ditto.
2926 * fbsd-proc.c: Ditto.
2927 * thread.c: Ditto.
2928
2929 * Makefile.in (regcache.o): Update dependencies.
2930 (thread.o, gdbarch.o): Ditto.
2931 (ax-general.o, gdbarch.o): Ditto.
2932 (varobj.o, std-regs.o): Ditto.
2933 (fbsd-proc.o): Specify dependencies.
2934
2935 2002-08-02 Andrew Cagney <cagney@redhat.com>
2936
2937 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2938 regnum.
2939 (regcache_cooked_write): Ditto.
2940
2941 2002-08-02 Andrew Cagney <ac131313@redhat.com>
2942
2943 * regcache.c (regcache_cooked_read): New function.
2944 (regcache_cooked_write): New function.
2945 (read_register_gen): Rewrite using regcache_cooked_read.
2946 (write_register_gen): Rewrite using regcache_cooked_write.
2947
2948 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2949 Declare.
2950
2951 2002-08-02 Andrew Cagney <cagney@redhat.com>
2952
2953 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2954 Replace the architecture methods register_read and register_write.
2955 * gdbarch.h, gdbarch.c: Regenerate.
2956 * regcache.c (init_regcache_descr): Update.
2957 (read_register_gen): Update.
2958 (write_register_gen): Update.
2959 (supply_register): Update comment.
2960
2961 * sh-tdep.c (sh_gdbarch_init): Update.
2962 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2963 `regcache' and `gdbarch' parameters. Make `buffer' a void
2964 pointer. Update code.
2965 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2966 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2967 void pointer. Update code.
2968 (sh64_register_write): Delete.
2969 (sh4_register_read): Delete.
2970 (sh64_register_read): Delete.
2971 (sh4_register_write): Delete.
2972 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2973 void pointer, `to' parameter a void pointer.
2974 (sh_sh64_register_convert_to_raw): Ditto.
2975
2976 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2977
2978 * mips-tdep.c (mips_register_virtual_type): Use architecture
2979 invariant return values.
2980
2981 2002-08-01 Andrew Cagney <cagney@redhat.com>
2982
2983 * linux-proc.c: Include "gdb_string.h".
2984 * Makefile.in (linux-proc.o): Update dependency list.
2985
2986 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2987
2988 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2989 comment.
2990
2991 2002-08-01 Grace Sainsbury <graces@redhat.com>
2992
2993 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2994 to_insert_watchpoint, to_remove_watchpoint,
2995 to_stopped_by_watchpoint, to_stopped_data_address,
2996 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2997 target vecctor. Define their corresponding macros so they call
2998 them.
2999
3000 * target.c: Add default and debug versions of for
3001 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3002 to_insert_watchpoint, to_remove_watchpoint,
3003 to_stopped_by_watchpoint, to_stopped_data_address,
3004 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
3005
3006 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3007
3008 * mips-tdep.c (mips_register_virtual_type): New function.
3009 (mips_gdbarch_init): Register mips_register_virtual_type()
3010 with gdbarch machinery.
3011 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3012 this file instead of tm-bigmips.h.
3013 (MIPS_REGSIZE): Delete this macro.
3014 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
3015 multiarch version in mips-tdep.c will be found.
3016
3017 2002-08-01 Andrew Cagney <cagney@redhat.com>
3018
3019 * NEWS: Menion that CHILL has been made obsolete.
3020
3021 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
3022 * stabsread.c (read_range_type): Ditto.
3023 * gdbtypes.h: Ditto.
3024 * language.c (binop_type_check): Ditto.
3025 (binop_result_type): Ditto.
3026 (integral_type): Ditto.
3027 (character_type): Ditto.
3028 (string_type): Ditto.
3029 (boolean_type): Ditto.
3030 (structured_type): Ditto.
3031 (lang_bool_type): Ditto.
3032 (binop_type_check): Ditto.
3033 * language.h (_LANG_chill): Ditto.
3034 * dwarfread.c (set_cu_language): Ditto.
3035 * dwarfread.c (CHILL_PRODUCER): Ditto.
3036 * dwarfread.c (handle_producer): Ditto.
3037 * expression.h (enum exp_opcode): Ditto.
3038 * eval.c: Ditto for comments.
3039 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3040 * expprint.c (print_subexp): Ditto.
3041 (print_subexp): Ditto.
3042 * valops.c (value_cast): Ditto.
3043 (search_struct_field): Ditto.
3044 * value.h (COERCE_VARYING_ARRAY): Ditto.
3045 * symfile.c (init_filename_language_table): Ditto.
3046 (add_psymbol_with_dem_name_to_list): Ditto.
3047 * valarith.c (value_binop): Ditto.
3048 (value_neg): Ditto.
3049 * valops.c (value_slice): Ditto.
3050 * symtab.h (union language_specific): Ditto.
3051 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3052 (SYMBOL_DEMANGLED_NAME): Ditto.
3053 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3054 * defs.h (enum language): Ditto.
3055 * symtab.c (got_symtab): Ditto.
3056 * utils.c (fprintf_symbol_filtered): Ditto.
3057
3058 * ch-typeprint.c: Make file obsolete.
3059 * ch-valprint.c: Make file obsolete.
3060 * ch-lang.h: Make file obsolete.
3061 * ch-exp.c: Make file obsolete.
3062 * ch-lang.c: Make file obsolete.
3063
3064 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3065 CHILL_LIB.
3066 (TARGET_FLAGS_TO_PASS): Ditto.
3067 (CHILLFLAGS): Obsolete.
3068 (CHILL): Obsolete.
3069 (CHILL_FOR_TARGET): Obsolete.
3070 (CHILL_LIB): Obsolete.
3071 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3072 ch-valprint.c.
3073 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3074 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3075 ch-lang.o.
3076 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3077 targets.
3078
3079 2002-07-31 Joel Brobecker <brobecker@gnat.com>
3080
3081 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3082 This does not change anything at the moment, but will be helpful
3083 later when full Ada support is integrated.
3084
3085 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3086
3087 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3088 help message.
3089
3090 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3091
3092 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3093 and save it in a local variable. Use variable in later test.
3094
3095 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3096
3097 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3098 test. (Thanks to Daniel Jacobowitz.)
3099
3100 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3101
3102 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3103 (mips_abi_strings): Add "n64".
3104 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3105
3106 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3107
3108 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3109 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3110
3111 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3112
3113 * utils.c (host_pointer_to_address, address_to_host_pointer):
3114 Use gdb_assert() instead of explicit call to internal_error().
3115
3116 2002-07-30 Kevin Buettner <kevinb@redhat.com>
3117
3118 * Makefile.in (rs6000-nat.o): Update dependencies.
3119
3120 From Nicholas Duffek:
3121 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3122 (aix-thread.o): New rule.
3123 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3124 * config/powerpc/aix432.mh: New file.
3125
3126 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3127
3128 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3129 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3130 (fetch_core_registers, ppc_linux_supply_gregset)
3131 (ppc_linux_supply_fpregset): New functions.
3132 (ppc_linux_regset_core_fns): New.
3133 (_initialize_ppc_linux_tdep): Call add_core_fns.
3134 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3135 and ppc_linux_supply_gregset.
3136 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3137 (supply_fpregset): Call ppc_linux_supply_fpregset.
3138 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3139 corelow.o.
3140 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3141
3142 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3143
3144 * symtab.c (lookup_symbol): Demangle before lowercasing.
3145
3146 2002-07-30 Andrew Cagney <ac131313@redhat.com>
3147
3148 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3149 declaration.
3150 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3151 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3152 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3153 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3154 "gdb_string.h".
3155 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3156 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3157 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3158 (avr-tdep.o, mon960-rom.o): Ditto.
3159 (aout_stabs_gnu_h): Define.
3160 (symtab_h): Remove $(gdb_obstack_h).
3161
3162 2002-07-30 Jim Blandy <jimb@redhat.com>
3163
3164 Patch from David Carlton <carlton@math.stanford.edu>:
3165 * gdbinit.in: Move the `dir' commands that add GDB's own source
3166 directory to the search path to the end, so that the `gdb' source
3167 directory will be searched first.
3168
3169 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3170
3171 * gdb_obstack.h: New file.
3172 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3173 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3174 * objfiles.h: Include "gdb_obstack.h".
3175 * Makefile.in (gdb_obstack_h): Define.
3176 (symtab_h): Add $(gdb_obstack_h).
3177 (objfiles_h): Add $(gdb_obstack_h).
3178
3179 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3180 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3181 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3182 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3183 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3184 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3185 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3186 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3187
3188 * Makefile.in (bcache.o): Update dependencies.
3189 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3190 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3191 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3192 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3193 (stabsread.o, symfile.o, symmisc.o): Ditto.
3194 (symtab.o, typeprint.o, macroexp.o): Ditto.
3195 (macrotab.o, mdebugread.o): Ditto.
3196 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3197 (coff_ecoff_h, aout_aout64_h): Define.
3198 (aout_stabs_gnu_h, libaout_h): Define.
3199
3200 2002-07-29 Andrew Cagney <cagney@redhat.com>
3201
3202 * regcache.c (struct regcache_descr): Rename nr_registers to
3203 nr_cooked_registers. Revise comments describing the structure
3204 member fields.
3205 (init_regcache_descr): Update.
3206 (init_legacy_regcache_descr): Update.
3207 (read_register_gen, write_register_gen): When a cooked register in
3208 the raw register range, directly access the value from the raw
3209 register cache.
3210
3211 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3212
3213 * z8k-tdep.c: Do not include "obstack.h".
3214 * h8300-tdep.c, h8500-tdep.c: Ditto.
3215 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3216 * valprint.c, v850-tdep.c: Ditto.
3217 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3218 * mn10200-tdep.c: Ditto.
3219
3220 * Makefile.in (z8k-tdep.o): Update dependencies.
3221 (m68hc11-tdep.o, valprint.o): Ditto.
3222 (v850-tdep.o, d10v-tdep.o): Ditto.
3223 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3224 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3225 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3226 (sh_opc_h, gdb_sim_sh_h): Define.
3227 (elf_sh_h, elf_bfd_h): Define.
3228 (opcode_m68hc11_h): Define.
3229 (OPCODES_SRC, OPCODES_DIR): define.
3230 (OPCODES): Use $(OPCODES_DIR).
3231 (gdb_sim_d10v_h): Rename sim_d10v_h.
3232 (gdb_sim_arm_h): Rename sim_arm_h.
3233
3234 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3235
3236 * utils.c (host_pointer_to_address, address_to_host_pointer):
3237 Change internal_error() message to indicate function responsible
3238 for the error.
3239
3240 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3241
3242 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3243 calls to local_hex_string_custom().
3244
3245 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3246
3247 * irix5-nat.c: Move IRIX shared library support from here...
3248 * solib-irix.c: ...to here. Revised substantially to work with
3249 generic solib framework.
3250
3251 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3252 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3253 * mips-irix-tdep.c: New file.
3254
3255 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3256 (mips-irix-tdep.o, solib-irix.o): New rules.
3257 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3258 solib-irix.o.
3259 * config/mips/irix6.mt (TDEPFILES): Likewise.
3260 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3261
3262 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3263
3264 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3265 disabled (via ``#if 0'') includes.
3266
3267 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3268
3269 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3270 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3271 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3272 Add support for the fpscr register.
3273 * rs6000-nat.c (regmap, fetch_inferior_registers)
3274 (store_inferior_registers, fetch_core_registers): Likewise.
3275
3276 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3277
3278 * rs6000-nat.c (language.h): Include.
3279 (special_regs): Delete this array.
3280 (regmap): New function.
3281 (fetch_register, store_register): Use regmap() to map gdb
3282 register numbers to ptrace register numbers. Also, use
3283 outputs from regmap() to make decisions regarding type of
3284 ptrace() call to make. In particular, don't compare against
3285 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3286 (fetch_inferior_registers, store_inferior_registers): Where
3287 possible, obtain register numbers from tdep struct. Don't
3288 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3289 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3290 (LAST_UISA_SP_REGNUM): Delete.
3291
3292 2002-07-25 Kevin Buettner <kevinb@redhat.com>
3293
3294 * rs6000-nat.c (ppc-tdep.h): Include.
3295 (fetch_registers, store_register, fetch_core_registers): Don't
3296 access registers[] directly. Instead, use supply_register() or
3297 regcache_collect() as appropriate.
3298 (find_toc_address): Format hex address with local_hex_string().
3299
3300 2002-07-25 Andrew Cagney <ac131313@redhat.com>
3301
3302 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3303 bfd/elf32-frv.c.
3304
3305 2002-07-24 Tom Tromey <tromey@redhat.com>
3306
3307 * jv-exp.y: Marked all strings with _().
3308 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3309 internal_error.
3310 (MethodInvocation, CastExpression, parse_number, yyerror,
3311 java_type_from_name, push_expression_name, yylex): Typo fixes.
3312
3313 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
3314
3315 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3316 (tee_file_flush, tee_file_write, tee_file_fputs)
3317 (tee_file_isatty): New.
3318 * ui-file.h (tee_file_new): Add prototype.
3319
3320 2002-07-24 Aidan Skinner <aidan@velvet.net>
3321
3322 * ada-lang.c: Change k&r style function definitions to prototyped
3323 form.
3324 * ada-typeprint.c: Change k&r style function definitions to prototyped
3325 form.
3326 * ada-valprint.c: Change k&r style function definitions to prototyped
3327 form.
3328
3329 2002-07-24 Andrew Cagney <cagney@redhat.com>
3330
3331 * README: Remove reference to remote-bug.
3332 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3333 remote-bug.c.
3334 (m88k-nat.o): Delete rule.
3335 (m88k-tdep.o): Delete rule.
3336 (remote-bug.o): Delete rule.
3337 * MAINTAINERS: Mark as obsolete.
3338 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3339 * m88k-tdep.c: Make file obsolete.
3340 * config/m88k/m88k.mh: Ditto.
3341 * config/m88k/delta88v4.mh: Ditto.
3342 * config/m88k/delta88v4.mt: Ditto.
3343 * config/m88k/delta88.mt: Ditto.
3344 * config/m88k/delta88.mh: Ditto.
3345 * remote-bug.c: Ditto.
3346 * config/m88k/tm-delta88.h: Ditto.
3347 * config/m88k/nm-delta88v4.h: Ditto.
3348 * config/m88k/xm-delta88.h: Ditto.
3349 * config/m88k/xm-dgux.h: Ditto.
3350 * config/m88k/tm-m88k.h: Ditto.
3351 * config/m88k/nm-m88k.h: Ditto.
3352 * config/m88k/tm-delta88v4.h: Ditto.
3353 * m88k-nat.c: Ditto.
3354 * cxux-nat.c: Ditto.
3355 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3356 and m88*-*-* obsolete.
3357 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3358 m88*-*-* obsolete.
3359
3360 2002-07-24 Andrew Cagney <cagney@redhat.com>
3361
3362 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3363 constant. Same for local pointer variables.
3364 (extract_signed_integer): Ditto.
3365 * defs.h (extract_unsigned_integer): Update.
3366 (extract_signed_integer): Update.
3367
3368 2002-07-24 Andrew Cagney <cagney@redhat.com>
3369
3370 * regcache.c (regcache_raw_write): Change buf parameter to a
3371 constant void pointer.
3372 (regcache_raw_read): Change buf parameter to a void pointer.
3373 (legacy_write_register_gen): Change myaddr parameter a constant
3374 void pointer.
3375 (supply_register): Change val parameter to a const void pointer.
3376 * regcache.h (regcache_raw_write): Update declaration.
3377 (regcache_raw_read): Update declaration.
3378 (supply_register): Update declaration.
3379
3380 2002-07-24 Tom Tromey <tromey@redhat.com>
3381
3382 * defs.h (gdb_readline_wrapper): Declare.
3383 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3384 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3385 * top.c (gdb_readline_wrapper): New function.
3386 (command_line_input): Use it.
3387
3388 2002-07-24 Andrew Cagney <cagney@redhat.com>
3389
3390 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3391 regcache_read and regcache_write.
3392 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3393 * regcache.c: Update.
3394 * sh-tdep.c (sh64_push_arguments): Update comment.
3395 (sh_pseudo_register_read): Update.
3396 (sh_pseudo_register_write): Update.
3397 (sh4_register_read): Update.
3398 (sh4_register_write): Update.
3399 (sh64_pseudo_register_read): Update.
3400 (sh64_pseudo_register_write): Update.
3401 (sh64_register_read): Update.
3402 (sh64_register_write): Update.
3403 * i386-tdep.c (i386_extract_return_value): Update.
3404 (i386_extract_struct_value_address): Update.
3405 (i386_extract_return_value): Update.
3406 * blockframe.c (generic_read_register_dummy): Update.
3407 (generic_call_dummy_register_unwind): Update
3408 * infrun.c (write_inferior_status_register): Update.
3409
3410 2002-07-23 Jim Blandy <jimb@redhat.com>
3411
3412 * parser-defs.h (expression_context_pc): Make this extern.
3413 (Thanks to Michael Snyder.)
3414
3415 2002-07-23 Andrew Cagney <ac131313@redhat.com>
3416
3417 GDB 5.2.1 released from 5.2 branch.
3418 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3419 * README: Update to mention 5.2.1.
3420
3421 2002-07-23 Mark Salter <msalter@redhat.com>
3422
3423 * remote.c (remote_read_bytes): Fix check for error.
3424
3425 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3426
3427 * aix-thread.c (language.h): Include.
3428 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3429 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3430 Print newlines at end of debug messages.
3431 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3432 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3433
3434 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3435
3436 * aix-thread.c (ppc-tdep.h): Include.
3437 (special_register_p): New function.
3438 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3439 (store_regs_user_thread): Use register number information from
3440 gdbarch_tdep struct instead of hardcoded offsets relative to
3441 FIRST_UISA_SP_REGNUM.
3442 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3443 special_register_p() instead of using FPLAST_REGNUM and
3444 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3445 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3446 will be MQ's register number.
3447
3448 2002-07-22 Michael Snyder <msnyder@redhat.com>
3449
3450 * aix-thread.c (ops): Rename to aix_thread_ops.
3451 (base_ops): Rename to base_target.
3452 (ops_attach): Rename to aix_thread_attach.
3453 (ops_detach): Rename to aix_thread_detach.
3454 (ops_resume): Rename to aix_thread_detach.
3455 (ops_wait): Rename to aix_thread_wait.
3456 (ops_kill): Rename to aix_thread_kill.
3457 (init_ops): Rename to init_aix_thread_ops.
3458 (ops_fetch_register): Rename to aix_thread_fetch_register.
3459 (ops_store_register): Rename to aix_thread_store_register.
3460 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3461 (ops_thread_alive): Rename to aix_thread_thread_alive.
3462 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3463 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3464 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3465 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3466 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3467 (store_regs_lib): Rename to store_regs_user_thread.
3468 (store_regs_kern): Rename to store_regs_kernel_thread.
3469
3470 2002-07-22 Michael Snyder <msnyder@redhat.com>
3471
3472 * aix-thread.c (ops_prepare_to_store): Eliminate.
3473 (init_ops): Don't initialize ops.prepare_to_store.
3474 (store_regs_kern): Pre-fetch register buffers from child,
3475 because some registers may not be in the cache. Copy
3476 regs from register cache only if they are cached.
3477 (store_regs_lib): Copy regs from register cache only
3478 if they are cached.
3479 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3480 fill_gprs64): Ditto.
3481
3482 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3483
3484 * aix-thread.c (gdb_assert.h): Include.
3485 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3486 register sizes (from register cache) match size of buffer holding
3487 register data.
3488 (fill_sprs32): Change parameter types to match those in the ptrace()
3489 buffer.
3490 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3491 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3492
3493 2002-07-22 Michael Snyder <msnyder@redhat.com>
3494
3495 * aix-thread.c (supply_sprs64): Cosmetic change.
3496 (supply_sprs32): Cosmetic change.
3497 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3498 (fill_sprs64): Use regcache_collect instead of read_register.
3499 (store_regs_lib): Use regcache_collect instead of
3500 read_register. Use fill_sprs32 instead of fill_sprs64,
3501 if debugging a 32-bit architecture.
3502 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3503 out of the register cache, instead of passing a pointer into
3504 the register cache directly to ptrace. Use regcache_collect
3505 insteaad of read_register.
3506 (ops_prepare_to_store): Use target_read_registers instead
3507 of read_register_bytes.
3508
3509 2002-07-20 Aidan Skinner <aidan@velvet.net>
3510
3511 * MAINTAINERS: Add self under write after approval.
3512
3513 2002-07-20 Aidan Skinner <aidan@velvet.net>
3514
3515 * ada-tasks.c: Change k&r style function definitions to prototyped
3516 form.
3517
3518 2002-07-19 Andrew Cagney <ac131313@redhat.com>
3519
3520 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3521 * x86-64-tdep.c: Include "objfiles.h".
3522 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3523 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3524
3525 2002-07-17 Michal Ludvig <michal@suse.cz>
3526
3527 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3528 (update_context): Initialise cfa variable.
3529
3530 2002-07-17 Michael Snyder <msnyder@redhat.com>
3531
3532 * aix-thread.c: Shorten some long lines.
3533 Bring comments into line with code spec.
3534
3535 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3536
3537 * infrun.c: Re-indent using gdb_indent.sh.
3538
3539 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3540
3541 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3542 Leave the indentation temporarily untouched, to minimize the diffs.
3543
3544 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
3545
3546 * stabsread.c: Make os9k sections of the code obsolete,
3547 for real this time.
3548 * stabsread.h: Make os9k sections of the code obsolete.
3549
3550 2002-07-18 Michal Ludvig <mludvig@suse.cz>
3551
3552 * linux-low.c (regsets_store_inferior_registers): Add free()
3553 at the end of a loop to prevent memory leak.
3554 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3555 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3556 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3557 line a comment.
3558 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3559
3560 2002-07-17 Jim Blandy <jimb@redhat.com>
3561
3562 * macrocmd.c (info_macro_command): Remove newline from error
3563 message.
3564
3565 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
3566
3567 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3568 (sh_gdbarch_init): Use it for sh-dsp.
3569
3570 2002-07-16 Kevin Buettner <kevinb@redhat.com>
3571
3572 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3573 64-bit DWARF2 format.
3574
3575 2002-07-16 Joel Brobecker <brobecker@gnat.com>
3576
3577 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3578 <sys/proc.h> when not available.
3579
3580 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3581
3582 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3583 * stabsread.c: Make os9k sections of the code obsolete.
3584 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3585 * config/i386/i386os9k.mt: Make file obsolete.
3586 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3587 (COMMON_OBS): Remove os9kread.o
3588 (SFILES): Remove os9kread.c.
3589 (os9kread.o, remote-os9k.o): Make target obsolete.
3590 * remote-os9k.c: Make file obsolete.
3591 * os9kread.c: Make file obsolete.
3592 * Makefile.in
3593
3594 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3595
3596 * NEWS: Mention that the FR30 has been made obsolete.
3597 * fr30-tdep.c: Make file obsolete.
3598 * config/fr30/tm-fr30.h: Ditto.
3599 * config/fr30/fr30.mt: Ditto.
3600 * configure.tgt: Make fr30-*-elf obsolete.
3601 * MAINTAINERS: Make fr30-elf obsolete.
3602
3603 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3604
3605 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3606 found is not inside a section.
3607
3608 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3609
3610 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3611 strerror().
3612 (pdc_realloc): Use xrealloc() instead of realloc().
3613
3614 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3615
3616 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3617 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3618 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3619 macros.
3620
3621 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3622
3623 * aix-thread.c (ptrace_check): Eliminate goto.
3624 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3625 problem.
3626
3627 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3628
3629 * aix-thread.c (gdbcmd.h): Include.
3630 (DEBUG, DBG, DBG2, dbg): Eliminate.
3631 (debug_aix_thread): New static global.
3632 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3633 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3634 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3635 invocations to DBG and DBG2 macros to test against
3636 ``debug_aix_thread'' and call fprintf_unfiltered().
3637 (_initialize_aix_thread): Add new command "set debug aix-thread".
3638
3639 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3640
3641 From Gerhard Tonn <TON@de.ibm.com>:
3642 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3643 instead of supply_register.
3644
3645 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3646
3647 * dwarf2cfi.c: Include "gdb_assert.h".
3648 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3649 non-NULL.
3650 (update_context): Do not use __func__. Add missing ``break''.
3651 (update_context): Do not use __func__.
3652
3653 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
3654
3655 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3656 and its setting. Set gdbarch instruction printing functions
3657 directly. For non-rs6000 case use new function
3658 gdb_print_insn_powerpc.
3659 (gdb_print_insn_powerpc): New function.
3660
3661 2002-07-13 Andrew Cagney <ac131313@redhat.com>
3662
3663 * NEWS: Mention that the d30v has been marked obsolete.
3664 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3665 * configure.tgt: Mark d30v-*-* as obsolete.
3666 * d30v-tdep.c: Mark file as obsolete.
3667 * config/d30v/d30v.mt: Ditto.
3668 * config/d30v/tm-d30v.h: Ditto.
3669
3670 2002-07-13 Aidan Skinner <aidan@velvet.net>
3671
3672 * ada-tasks.c (add_task_entry): replace calls to
3673 malloc() with xmalloc
3674 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3675
3676 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3677 ada_finish_decode_line_1, all_sals_for_line
3678 ada_breakpoint_rewrite): replace calls to free() with xfree()
3679
3680 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3681
3682 From Nicholas Duffek (with minor changes by Martin Hunt,
3683 Louis Hamilton, and Kevin Buettner):
3684 * aix-thread.c: New file.
3685
3686 2002-07-12 Petr Sorfa <petrs@caldera.com>
3687
3688 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3689 complaint for invalid attribute class or form.
3690 (read_func_scope): DW_AT_frame_base
3691 better handling of DW_AT_block*.
3692 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3693 better handling of DW_AT_block*.
3694 (read_common_block): DW_AT_location
3695 better handling of DW_AT_block*.
3696 (read_partial_die): DW_AT_location better handling
3697 of DW_AT_block*.
3698 (new_symbol): DW_AT_external better handling of
3699 DW_AT_block*. Proper initialization of variable
3700 "addr".
3701 (attr_form_is_block): New function that returns true
3702 if the attribute's form is of DW_FORM_block*.
3703
3704 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3705
3706 * valops.c (find_method_list): Remove comment about
3707 removed STATIC_MEMFUNCP argument.
3708 (value_find_oload_method_list): Likewise.
3709
3710 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3711
3712 From Nicholas Duffek:
3713 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3714 target_new_objfile_hook.
3715
3716 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3717
3718 From Nicholas Duffek:
3719 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3720 csect.
3721
3722 2002-07-12 Andrew Cagney <cagney@redhat.com>
3723
3724 * MAINTAINERS: Mention --enable-sim-build-warnings.
3725 (m68hc11-elf): Disable sim build warnings.
3726 (m32r-elf): Mark as broken obsolete candidate.
3727 (x86_64-linux-gnu): Mark as buildable with -Werror.
3728 (arm-elf): Change -w to ``,'' which enables warnings but not
3729 -Werror.
3730
3731 2002-07-12 Andrew Cagney <ac131313@redhat.com>
3732
3733 * bcache.h: Update copyright.
3734 (struct bstring, struct bcache): Move definition to "bcache.c".
3735 Replaced by opaque declaration.
3736 (bcache_xfree): Replace free_bcache.
3737 (bcache_xmalloc, bcache_memory_used): Declare.
3738
3739 * bcache.c: Update copyright.
3740 (struct bstring, struct bcache): Moved to here from "bcache.h".
3741 Update comments.
3742 (bcache_xmalloc, bcache_memory_used): New functions.
3743 (bcache_xfree): Replace function free_bcache.
3744
3745 * Makefile.in (objfiles.o): Add $(bcache_h).
3746 (objfiles_h): Remove $(bcache_h).
3747 (symfile.o): Add $(bcache_h).
3748
3749 * symmisc.c: Update copyright.
3750 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3751 (print_objfile_statistics): Use bcache_memory_used.
3752
3753 * symfile.c: Include "bcache.h".
3754 (reread_symbols): Use bcache_xfree.
3755 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3756 (add_psymbol_to_list): Pass psymbol_cache by value.
3757 (add_psymbol_with_dem_name_to_list): Ditto.
3758
3759 * objfiles.h: Update copyright.
3760 (struct bcache): Declare opaque. Do not include "bcache.h".
3761 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3762 bcache'' pointers.
3763 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3764
3765 * objfiles.c: Include "bcache.h". Update copyright.
3766 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3767 macro_cache.
3768 (free_objfile): Use bcache_xfree.
3769
3770 2002-07-11 Grace Sainsbury <graces@redhat.com>
3771
3772 * monitor.c (monitor_fetch_register): Make name a constant.
3773 (monitor_store_register): Same.
3774
3775 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
3776
3777 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3778 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3779 (finish_block) For non-function blocks, hash the symbol table. For
3780 function blocks, mark the symbol table as unhashed.
3781 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3782 (msymbol_hash_iw): Likewise.
3783 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3784 value.
3785 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3786 (lookup_minimal_symbol): Likewise for both.
3787 * symtab.h (struct block): Add `hashtable' flag. Comment the
3788 hashtable.
3789 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3790 (ALL_BLOCK_SYMBOLS): Update.
3791 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3792 (struct symbol): Add `hash_next' pointer.
3793 * symtab.c (lookup_block_symbol): Search using the hash table when
3794 possible.
3795 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3796 (search_symbols, find_addr_symbol): Likewise.
3797
3798 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3799 (read_dst_symtab): Likewise.
3800 * jv-lang.c (get_java_class_symtab): Likewise.
3801 * mdebugread.c: Include "gdb_assert.h".
3802 (shrink_block): Assert that the block being modified is not hashed.
3803 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3804 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3805 symbols.
3806 (dump_symtab): Recognize hashed blocks.
3807 * printcmd.c (print_frame_args): Assert that function blocks do not
3808 have hashed symbol tables.
3809 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3810 (fill_in_ada_prototype, debug_print_block): Likewise.
3811 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3812
3813 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
3814
3815 * stack.c (print_frame): Use result of frame_address_in_block()
3816 instead of fi->pc when evaluating symbols.
3817 (backtrace_command_1): Ditto.
3818
3819 2002-07-11 Andrew Cagney <cagney@redhat.com>
3820
3821 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3822 Make static.
3823
3824 * arm-tdep.c (arm_register_name): Make return type constant.
3825
3826 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3827
3828 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3829 prototype.
3830 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3831 * s390-tdep.c (s390_fp_regnum): Ditto.
3832 (s390_read_fp): Ditto.
3833 (s390_pop_frame): Ditto.
3834 (_initialize_s390_tdep): Ditto.
3835 * remote.c (get_remote_state): Ditto.
3836 * procfs.c (mappingflags): Ditto.
3837 * memattr.c (_initialize_mem): Ditto.
3838 * mcore-tdep.c (mcore_pop_frame): Ditto.
3839 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3840 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3841 * language.c (set_case_str): Ditto.
3842 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3843 * frv-tdep.c (new_variant): Ditto.
3844 (frv_stopped_data_address): Ditto.
3845 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3846 (context_alloc): Ditto.
3847 (frame_state_alloc): Ditto.
3848 (unwind_tmp_obstack_init): Ditto.
3849 (unwind_tmp_obstack_free): Ditto.
3850 (cfi_read_fp): Ditto.
3851 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3852 (cris_pop_frame): Ditto.
3853 * c-lang.c (scanning_macro_expansion): Ditto.
3854 (finished_macro_expansion): Ditto.
3855 (c_preprocess_and_parse): Ditto.
3856 * gdbarch.sh: Ditto.
3857 * gdbarch.h, gdbarch.c: Regenerate.
3858 * config/mn10200/tm-mn10200.h: Adjust indentation.
3859 * target.c: Adjust indentation.
3860 * symtab.h: Adjust indentation.
3861 * stabsread.h: Adjust indentation.
3862 * remote-es.c: Adjust indentation.
3863 * os9kread.c: Adjust indentation.
3864
3865 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3866
3867 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3868 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3869
3870 2002-07-10 Grace Sainsbury <graces@redhat.com>
3871
3872 * NEWS: Mention m68k, mcore multi-arching.
3873 * MAINTAINERS: Change status of m68k, mcore to reflect
3874 multi-arching.
3875
3876 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
3877
3878 * valops.c (find_overload_match): Free oload_syms.
3879
3880 2002-07-09 Joel Brobecker <brobecker@gnat.com>
3881
3882 Define HAVE_SYS_PROC_H if sys/proc.h exists
3883 * configure.in: Add check for sys/proc.h
3884 * config.in: Regenerate.
3885 * configure: Regenerate.
3886
3887 2002-07-09 Grace Sainsbury <graces@redhat.com>
3888
3889 * config/m68k/tm-m68k.h: Remove macros wrapped in
3890 #if !GDB_MULTI_ARCH.
3891
3892 2002-07-08 Andrew Cagney <ac131313@redhat.com>
3893
3894 * config.in, configure: Regenerate.
3895
3896 2002-07-08 Mark Kettenis <kettenis@gnu.org>
3897
3898 * dwarf2cfi.c: Include "gcore.h".
3899 (execute_stack_op): Fix implementation of the
3900 DW_OP_deref and DW_OP_deref_size operators by letting do their
3901 lookup in the target.
3902
3903 2002-07-07 Mark Kettenis <kettenis@gnu.org>
3904
3905 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3906 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3907 tdep->sc_sp_offset.
3908
3909 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
3910
3911 Fix PR gdb/595, gdb/602
3912 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3913 Don't call value_cast, just read the vtable pointer; update comments
3914 to match.
3915
3916 2002-07-05 Grace Sainsbury <graces@redhat.com>
3917
3918 * config/mcore/tm-mcore.h: Remove file.
3919 * config/mcore/mcore.mt: Remove definition of TM_FILE
3920 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3921
3922 2002-07-05 Mark Kettenis <kettenis@gnu.org>
3923
3924 * i386bsd-tdep.c: Include "gdb_string.h".
3925
3926 2002-07-04 Grace Sainsbury <graces@redhat.com>
3927
3928 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3929 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3930 mcore-tdep.
3931 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3932 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3933 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3934 (RETVAL_REGNUM): Move macros from tm-mcore.h
3935 (mcore_reg_struct_has_addr): New function.
3936 (mcore_gdbarch_init): Added initializations for the macros removed
3937 from tm-mcore.h.
3938
3939 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3940
3941 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3942 traditonal string branding within the ELF header.
3943
3944 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
3945
3946 * symtab.c (remove_params): New function.
3947 (make_symbol_overload_list): Use it instead of cplus_demangle.
3948 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3949
3950 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3951
3952 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3953
3954 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3955 New variables.
3956 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3957 and tdep->sigtramp_end.
3958 * i386obsd-nat.c: New file.
3959 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3960
3961 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3962 Don't call get_current_frame().
3963
3964 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3965
3966 * i386-nat.c (child_post_startup_inferior): New function
3967 calling i386_cleanup_dregs if
3968 I386_USE_GENERIC_WATCHPOINTS is defined.
3969 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3970 conditional to acknowledge that i386-nat.c has its
3971 own child_post_startup_inferior function.
3972
3973 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3974
3975 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3976 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3977 instead of MAX_REGISTER_RAW_SIZE.
3978 (i386_extract_return_value, i386_extract_struct_value_address):
3979 Convert to use regcache.
3980 (i386_gdbarch_init): Set max_register_raw_size and
3981 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3982 Set extract_return_value and extract_struct_value_address instead
3983 of their deprecated variants.
3984
3985 Convert i386 target to generic dummy frames.
3986 * i386-tdep.c: Include "symfile.h".
3987 (i386_frameless_signal_p): Consider a function to be frameless if
3988 the pc points at the first instruction of the function.
3989 (i386_frame_chain): Handle (generic) call dummies.
3990 (i386_frame_saved_pc): Likewise.
3991 (i386_frame_init_saved_regs): Remove code dealing with call
3992 dummies on the stack.
3993 (i386_push_dummy_frame): Removed.
3994 (i386_call_dummy_words): Removed.
3995 (i386_fix_call_dummy): Removed.
3996 (i386_push_return_address): New function.
3997 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3998 parameter, and don't call get_current_frame.
3999 (i386_pop_frame): New function.
4000 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
4001 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
4002 entry_point_address, set call_dummy_breakpoint_offset to 0, set
4003 call_dummy_length to 0, set call_dummy_words to NULL, set
4004 sizeof_call_dummy_words to 0, set fix_call_dummy to
4005 generic_fix_call_dummy, set pc_in_call_dummy to
4006 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
4007 generic_push_dummy_frame, set push_return_address to
4008 i386_push_return_address and set frame_chain_valid to
4009 generic_file_frame_chain_valid.
4010
4011 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4012
4013 * gdbarch.sh (struct regcache): Add opaque declaration.
4014 (EXTRACT_RETURN_VALUE): New architecture method.
4015 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4016 * gdbarch.h, gdbarch.c: Regenerate.
4017 * arch-utils.c (legacy_extract_return_value): New function.
4018 * arch-utils.h (legacy_extract_return_value): Declare.
4019 * values.c (value_being_returned): Re-enable code handling
4020 EXTRACT_STRUCT_VALUE_ADDRESS. Move
4021 deprecated_grub_regcache_for_registers call to block handling
4022 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4023 (EXTRACT_RETURN_VALUE): Do not define.
4024
4025 2002-07-03 Grace Sainsbury <graces@redhat.com>
4026
4027 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4028 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4029 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4030 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4031 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4032 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4033 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4034 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4035 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4036 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4037 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4038 argument so the function fits the prototype in the architecture
4039 vector.
4040 (mcore_pop_frame): Remove argument so the function fits the
4041 prototype. Use get_current_frame instead of the argument.
4042 (mcore_push_arguments): Change type of struct_return so the
4043 function can be used in the architecture vector.
4044 (mcore_store_struct_return): Add.
4045 (mcore_frame_init_saved_regs): Add.
4046 (mcore_gdbarch_init): Add function calls to replace the macros
4047 removed from tm-mcore.h
4048
4049 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4050
4051 * infcmd.c (print_return_value): Remove compatibility code calling
4052 deprecated_grub_regcache_for_registers.
4053
4054 * values.c: Include "regcache.h".
4055 (value_being_returned): Update. Use
4056 deprecated_grub_regcache_for_registers to extract the register
4057 buffer address.
4058 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4059 ``struct regcache''.
4060 * Makefile.in (values.o): Add dependency on $(regcache_h).
4061
4062 * inferior.h (run_stack_dummy): Change type of second parameter to
4063 a ``struct regcache''.
4064 * valops.c (hand_function_call): Change type of retbuf to ``struct
4065 regcache''. Allocate using regcache_xmalloc, clean using
4066 make_cleanup_regcache_xfree.
4067 * infcmd.c (run_stack_dummy): Update. Use
4068 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4069
4070 * regcache.c (do_regcache_xfree): New function.
4071 (make_cleanup_regcache_xfree): New function.
4072 * regcache.h (make_cleanup_regcache_xfree): Declare.
4073
4074 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4075
4076 * event-top.c (command_line_handler): Don't read past
4077 beginning of buffer.
4078
4079 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4080
4081 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4082 struct frame_id.
4083 (varobj_create): Store frame_id for root.
4084 (varobj_gen_name): Use xasprintf.
4085 (varobj_update): Save and restore frame using get_frame_id() and
4086 frame_find_by_id().
4087 (create_child): Use xasprintf.
4088 (new_root_variable): Initialize frame_id.
4089 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4090 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4091 to prevent memory leak.
4092
4093 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4094
4095 * valops.c (hand_function_call): Move declaration of retbuf to
4096 start of function, allocate using malloc, add a cleanup but before
4097 the inf_status cleanup, cleanup the buffer. Rename local variable
4098 old_chain to inf_status_cleanup.
4099
4100 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4101
4102 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4103
4104 * cli/cli-decode.c (cmd_func_p): New function.
4105 (cmd_func): New function.
4106
4107 * command.h: Add cmd_func() and cmd_func_p().
4108
4109 2002-07-03 Grace Sainsbury <graces@redhat.com>
4110
4111 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4112 (REGISTER_SIZE): Remove.
4113 (MAX_REGISTER_RAW_SIZE): Remove.
4114 (REGISTER_VIRTUAL_TYPE): Remove.
4115 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4116 (REGISTER_NAME): Remove.
4117 (USE_GENERIC_DUMMY_FRAMES): Remove.
4118 (CALL_DUMMY): Remove.
4119 (CALL_DUMMY_START_OFFSET): Remove.
4120 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4121 (CALL_DUMMY_LOCATION): Remove.
4122 (FIX_CALL_DUMMY): Remove.
4123 (CALL_DUMMY_ADDRESS): Remove.
4124 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4125 (SAVE_DUMMY_FRAME_TOS): Remove.
4126 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4127 (mcore_register_virtual_type): New function.
4128 (mcore_register_byte): New function.
4129 (mcore_register_size): New function.
4130 (mcore_register_name): New function.
4131 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4132 macros removed from tm-mcore.h.
4133 (mcore_dump_tdep): Add.
4134 (_initialize_mcore_tdep): Add gdbarch_register call.
4135
4136 2002-07-03 Mark Kettenis <kettenis@gnu.org>
4137
4138 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4139 frameless_look_for_prologue, such that we actually call this
4140 function.
4141
4142 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4143
4144 * frame.h (frame_address_in_block): New function.
4145
4146 * blockframe.c (frame_address_in_block): New function extracted
4147 from get_frame_block().
4148 (get_frame_block): Use frame_address_in_block().
4149 (block_innermost_frame): Use frame_address_in_block() to match
4150 the frame pc address against the block boundaries rather than
4151 the frame pc directly. This prevents a failure when a frame pc
4152 is actually a return-address pointing immediately after the end
4153 of the given block.
4154
4155 2002-07-02 Grace Sainsbury <graces@redhat.com>
4156
4157 * MAINTAINERS: Add self under write after approval.
4158
4159 2002-07-02 Grace Sainsbury <graces@redhat.com>
4160
4161 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4162 used in architecture vector. The default is
4163 m68k_local_breakpoint_from_pc.
4164 (m68k_local_breakpoint_from_pc): Add.
4165 (enum): Add register numbers from tm-m68k.h.
4166 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4167 vector.
4168 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4169 GDB_MULTI_ARCH_PARTIAL.
4170 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4171 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4172 m68k-tdep.c.
4173 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4174 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4175 to enum in m68k-tdep.c
4176
4177 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4178
4179 * solib-osf.c (open_map): Compute the list of shared libraries
4180 loaded by the inferior, rather than the list of libraries loaded
4181 by GDB itself. Otherwise, GDB ends up reading the symbols from
4182 the wrong shared libraries...
4183
4184 2002-07-02 Mark Kettenis <kettenis@gnu.org>
4185
4186 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4187 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4188 macros.
4189 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4190 Remove functions.
4191 (FRAMELESS_SIGNAL): Remove function.
4192 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4193 i386_linux_saved_pc_after_call): Removed.
4194 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4195 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4196 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4197
4198 * i386-tdep.c (i386_frameless_signal_p): New function.
4199 (i386_frame_chain): Deal with frameless signals.
4200 (i386_sigtramp_saved_sp): New function.
4201 (i386_frame_saved_pc): Deal with frameless signals.
4202 (i386_saved_pc_after_call): Make sure the correct value is
4203 returned just after entry into a sigtramp.
4204 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4205 i386fbsd4_sc_sp_offset): New variables.
4206 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4207 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4208 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4209 similiar to what we already did for sc_pc_offset.
4210 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4211 tdep->sc_sp_offset.
4212
4213 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4214
4215 2002-07-02 Michal Ludvig <mludvig@suse.cz>
4216
4217 * config/i386/tm-x86-64linux.h: New.
4218 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4219 definitions.
4220 * config/i386/nm-x86-64.h: Rename to ...
4221 * config/i386/nm-x86-64linux.h: ... this one.
4222 * config/i386/x86-64linux.mh: Reflect the above change.
4223
4224 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4225
4226 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4227 with sigcontext_addr. Add sc_sp_offset.
4228 (i386bsd_sigtramp_saved_pc): Remove prototype.
4229 (i386bsd_sicontext_addr): Add prototype.
4230 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4231 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4232 (i386_svr4_sigtramp_saved_pc): Removed.
4233 (i386_svr4_sigcontext_addr): New function.
4234 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4235 Initialize tdep->sigcontext_addr instead. Initialize
4236 tdep->sc_pc_offset and tdep->sc_sp_offset.
4237 (i386_gdbarch_init): Likewise.
4238 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4239 any more.
4240 (i386bsd_sigtramp_saved_pc): Remove function.
4241 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4242 Initialize tdep->sigcontext_addr instead. Initialize
4243 tdep->sc_pc_offset.
4244 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4245 of tdep->sigtramp_saved_pc.
4246 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4247 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4248 instead.
4249
4250 * i386-tdep.c (i386_frameless_function_invocation,
4251 i386_frame_num_args, i386_frame_init_saved_regs,
4252 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4253 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4254 i386_extract_return_value, i386_store_return_value,
4255 i386_extract_struct_value_address, i386_register_virtual_type,
4256 i386_register_convertible, i386_register_convert_to_virtual,
4257 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4258 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4259 static.
4260
4261 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4262
4263 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4264
4265 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4266 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4267 this macro. Include "value.h".
4268
4269 2002-06-30 Aidan Skinner <aidan@velvet.net>
4270
4271 * ada-exp.tab.c: remove as it's a generated file
4272 * ada-lex.c: remove as it's a generated file
4273
4274 2002-06-30 Mark Kettenis <kettenis@gnu.org>
4275
4276 * config/i386/tm-i386.h (struct frame_info, struct
4277 frame_saved_regs, struct value, struct type): Remove forward
4278 declarations.
4279
4280 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4281 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4282 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4283 (FILL_FPXREGSET): Define.
4284
4285 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4286
4287 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4288 i[3456]86-*-netbsd* case.
4289 * config/i386/tm-obsd.h: Removed.
4290 * config/i386/obsd.mt: Removed.
4291 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4292 core-aout.o.
4293 (MH_CFLAGS): Add -DYYDEBUG=0.
4294
4295 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4296 i386nbsd_sc_pc_offset on OpenBSD too.
4297
4298 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4299 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4300 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4301 define.
4302 * i386bsd-tdep.c: Include "arch-utils.h".
4303 (i386bsd_aout_in_solib_call_trampoline): New function.
4304 (i386bsd_init_abi): Set in_solib_call_trampoline to
4305 i386bsd_aout_in_solib_call_trampoline.
4306 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4307 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4308
4309 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4310
4311 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4312 (struct obstack, struct bcache): Add opaque declarations.
4313 * Makefile.in (macrotab_h): Update
4314
4315 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4316
4317 * blockframe.c (generic_find_dummy_frame): Change return type to
4318 ``struct regcache''.
4319 (struct dummy_frame): Replace field ``registers'' with regcache, a
4320 struct regcache object.
4321 (generic_find_dummy_frame): Update.
4322 (generic_push_dummy_frame): Update. Use regcache_xfree,
4323 regcache_xmalloc and regcache_cpy.
4324 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4325 regcache_xfree.
4326 (deprecated_generic_find_dummy_frame): Update.
4327 (generic_read_register_dummy): Update. Use
4328 regcache_read_as_address.
4329 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4330 (generic_get_saved_register): Update. Use regcache_read.
4331
4332 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4333
4334 * Makefile.in (objfiles_h): Add $(bcache_h).
4335 * objfiles.h: Include "bcache.h".
4336
4337 * Makefile.in (symtab_h): Remove $(bcache_h).
4338 * symtab.h: Do not include "bcache.h".
4339
4340 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4341
4342 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4343 generic_func_frame_chain_valid.
4344
4345 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4346
4347 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4348 * config/i386/tm-fbsd.h: Likewise.
4349
4350 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4351
4352 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4353 generic_unwind_get_saved_register.
4354
4355 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4356
4357 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4358 * regcache.c (supply_register): Add missing argument to
4359 register_buffer call.
4360
4361 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4362
4363 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4364 Solaris /bin/grep does not not like it. From Peter Schauer.
4365
4366 2002-06-26 Tom Tromey <tromey@redhat.com>
4367
4368 * command.h (add_setshow_cmd): Declare.
4369 (add_setshow_cmd_full): Declare.
4370 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4371 returns void. Use add_setshow_cmd_full.
4372 (add_setshow_cmd_full): New function.
4373 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4374 (add_setshow_boolean_cmd): Likewise.
4375
4376 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4377
4378 * config/vax/tm-vax.h: Protect from multiple inclusion.
4379 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4380 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4381 * config/vax/tm-vaxbsd.h: ...here. New file.
4382 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4383
4384 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4385
4386 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4387 (BELIEVE_PCC_PROMOTION): Remove.
4388 (AP_REGNUM): Move to...
4389 * config/vax/nm-vax.h: ...here.
4390 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4391 (vax_breakpoint_from_pc): New function.
4392 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4393 and gdbarch_believe_pcc_promotion.
4394
4395 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4396
4397 * Makefile.in (vax_tdep_h): Define.
4398 (vax-tdep.o): Use $(vax_tdep_h).
4399 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4400 (vax_dump_tdep): New function.
4401 (_initialize_vax_tdep): Register vax_dump_tdep.
4402 * vax-tdep.h: Include osabi.h.
4403 (struct gdbarch_tdep): New.
4404
4405 2002-06-26 Andrew Cagney <cagney@redhat.com>
4406
4407 * frame.h (deprecated_generic_find_dummy_frame): Rename
4408 generic_find_dummy_frame.
4409 * blockframe.c (generic_find_dummy_frame): Make static.
4410 (deprecated_generic_find_dummy_frame): New function.
4411 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4412 generic_find_dummy_frame with deprecated_find_dummy_frame.
4413 (sh64_nofp_frame_init_saved_regs): Ditto.
4414 (sh_fp_frame_init_saved_regs): Ditto.
4415 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4416 (s390_frame_chain): Ditto.
4417 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4418
4419 2002-06-26 Grace Sainsbury <graces@redhat.com>
4420
4421 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4422 gdbarch vector are at the top.
4423 (NUM_REGS): Remove.
4424 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4425 (FRAME_ARGS_ADDRESS): Remove.
4426 (FRAME_LOCALS_ADDRESS): Remove.
4427 (FRAME_NUM_ARGS): Remove.
4428 (FRAME_ARGS_SKIP): Remove.
4429 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4430 (m68k_gdbarch_init): Add gdbarch initializations for macros
4431 undefined in tm-m68k.h
4432
4433 2002-06-26 Grace Sainsbury <graces@redhat.com>
4434
4435 * monitor.h: Add the function regname to monitor_ops
4436 structure. This way NUM_REGS does not have to be a constant.
4437 * monitor.c (monitor_fetch_register): Added support for regname
4438 function. The function is called if the array regnames is NULL.
4439 (monitor_store_register): Same.
4440 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4441 regnames array.
4442 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4443 cpu32bug_cmds.regname to point to new function.
4444 * abug-rom.c (abug_regname): Same as above.
4445 (init_abug_cmds): Same.
4446 * dbug-rom.c (dbug_regname): Same as above.
4447 (init_dbug_cmds): Same.
4448 * remote-est.c (est_regname): Same.
4449 (init_est_cmds): Same.
4450 * rom68k-rom.c (rom68k_regname): Same.
4451 (init_rom68k_cmds): Same.
4452
4453 2002-06-25 Tom Tromey <tromey@redhat.com>
4454
4455 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4456
4457 2002-06-25 Andrew Cagney <cagney@redhat.com>
4458
4459 * infrun.c (stop_registers): Change variable's type to ``struct
4460 regcache'''.
4461 (xmalloc_inferior_status): Delete function.
4462 (free_inferior_status): Delete function.
4463 (normal_stop): Use regcache_cpy.
4464 (struct inferior_status): Change type of fields ``stop_registers''
4465 and ``registers'' to ``struct regcache''.
4466 (write_inferior_status_register): Use regcache_write.
4467 (save_inferior_status): Instead of calling
4468 xmalloc_inferior_status, allocate the inf_status buffer directly.
4469 Use regcache_dup_no_passthrough and regcache_dup to save the
4470 buffers.
4471 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4472 Replace the stop_registers regcache instead of overriding it. Use
4473 regcache_xfree. Instead of calling free_inferior_status, xfree
4474 the buffer directly.
4475 (discard_inferior_status): Use regcache_xfree. Instead of calling
4476 free_inferior_status, xfree the buffer directly.
4477 (build_infrun): Use regcache_xmalloc.
4478 (_initialize_infrun): Delete redundant call to build_infrun.
4479
4480 * Makefile.in (infcmd.o): Add $(regcache_h).
4481
4482 * infcmd.c: Include "regcache.h".
4483 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4484 obtain the address of `stop_registers' register buffer.
4485 (print_return_value): Ditto.
4486
4487 * inferior.h (struct regcache): Add opaque declaration.
4488 (stop_registers): Change variable's declared type to ``struct
4489 regcache''.
4490
4491 2002-06-24 Tom Tromey <tromey@redhat.com>
4492
4493 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4494 * target.c (initialize_targets): Fixed typo in
4495 trust-readonly-sections `show' documentation.
4496
4497 * main.c: Marked all strings with _().
4498
4499 2002-06-24 Don Howard <dhoward@redhat.com>
4500
4501 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4502 that means max CORE_ADDR+1.
4503 (lookup_mem_region): Ditto.
4504 (mem_info_command): Ditto.
4505
4506 2002-06-24 Grace Sainsbury <graces@redhat.com>
4507
4508 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4509 (REGISTER_BYTES_OK): Remove.
4510 (REGISTER_BYTES): Remove.
4511 (STORE_STRUCT_RETURN): Remove.
4512 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4513 (STORE_RETURN_VALUE): Remove.
4514 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4515 (FRAME_CHAIN): Remove.
4516 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4517 (FRAME_SAVED_PC): Remove.
4518 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4519 (m68k_store_struct_return): Add.
4520 (m68k_deprecated_extract_return_value): Add.
4521 (m68k_deprecated_extract_struct_value_address): Add.
4522 (m68k_store_return_value): Add.
4523 (m68k_frame_chain): Add.
4524 (m68k_frameless_function_invocation): Add.
4525 (m68k_frame_saved_pc): Add.
4526 (m68k_gdbarch_init): added set_gdbarch calls for new
4527 functions and deleted macros.
4528
4529 2002-06-23 Tom Tromey <tromey@redhat.com>
4530
4531 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4532 (ALLDEPFILES): Likewise.
4533 (udiheaders): Removed.
4534 (udip2soc.o): Likewise.
4535 (udi2go32.o): Likewise.
4536 (udr.o): Likewise.
4537 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4538
4539 2002-06-22 Andrew Cagney <ac131313@redhat.com>
4540
4541 * infrun.c (_initialize_infrun): Delete unnecessary call to
4542 build_infrun.
4543
4544 * regcache.h: Update comments describing the regcache_cpy family
4545 of functions.
4546 (regcache_save, regcache_restore): Delete declaration.
4547 (regcache_save_no_passthrough): Delete declaration.
4548 (regcache_restore_no_passthrough): Delete declaration.
4549 * regcache.c (regcache_save): Delete function.
4550 (regcache_save_no_passthrough): Delete function.
4551 (regcache_restore): Delete function.
4552 (regcache_restore_no_passthrough): Delete function.
4553
4554 2002-06-21 Andrew Cagney <ac131313@redhat.com>
4555
4556 * config/m68k/tm-m68k.h: Fix typo.
4557 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4558 (m68k_frame_init_saved_regs): Declare.
4559
4560 2002-06-21 Jim Blandy <jimb@redhat.com>
4561
4562 Remove some vestiges of Harris 88k support.
4563 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4564 register numbering quirk.
4565 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4566 odd symbols occurring in Harris 88k ELF targets.
4567
4568 2002-06-21 Tom Tromey <tromey@redhat.com>
4569
4570 * gdb_locale.h: New file.
4571 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4572 (defs_h): Added gdb_locale.h.
4573 * configure, config.in: Rebuilt.
4574 * configure.in (PACKAGE): Define.
4575 * defs.h: Include gdb_locale.h.
4576 * main.c (captured_main): Call setlocale, bindtextdomain,
4577 textdomain.
4578
4579 2002-06-21 Dave Brolley <brolley@redhat.com>
4580
4581 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4582 * config/frv/frv.mt: New file.
4583 * config/frv/tm-frv.h: New file.
4584 * configure.tgt: Support frv-*-*.
4585 * Makefile.in (frv-tdep.o): New target.
4586 * frv-tdep.c: New file.
4587 * NEWS: Mention frv.
4588
4589 2002-06-21 Dave Brolley <brolley@redhat.com>
4590
4591 * MAINTAINERS: Add self to "Write After Approval" list.
4592
4593 2002-06-21 Grace Sainsbury <graces@redhat.com>
4594
4595 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4596 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4597 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4598 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4599 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4600
4601 * m68k-tdep.c: Include arch-utils.h
4602 (m68k_register_raw_size): Add.
4603 (m68k_register_virtual_size): Add.
4604 (m68k_register_virtual_type): Add.
4605 (m68k_register_name): Add.
4606 (m68k_stack_align): Add.
4607 (m68k_register_byte): Add.
4608 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4609 tm-m68k.h.
4610
4611 2002-06-21 Grace Sainsbury <graces@redhat.com>
4612
4613 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4614 m68k_find_saved_regs.
4615 (m68k_pop_frame): Removed saved_regs structure, and replaced
4616 references to it with frame->saved_regs.
4617 (m68k_gdbarch_init): Added function calls to initialize the
4618 gdbarch structure.
4619 (m68k_fix_call_dummy): Add.
4620 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4621 (CALL_DUMMY): Remove.
4622 (CALL_DUMMY_LENGTH): Remove.
4623 (CALL_DUMMY_START_OFFSET): Remove.
4624 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4625 (FIX_CALL_DUMMY): Remove.
4626 (PUSH_DUMMY_FRAME): Remove.
4627 (POP_FRAME): Remove.
4628
4629 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4630
4631 * parse.c (parse_fprintf): New function used to avoid calls to
4632 fprintf in bison parser generated debug code.
4633 * parser-defs.h: Declaration of new parse_fprintf function.
4634 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4635 Set YYDEBUG to 1 by default.
4636 Set YYFPRINTF as parse_fprintf.
4637
4638 2002-06-21 Michal Ludvig <mludvig@suse.cz>
4639
4640 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4641 encoding anymore.
4642 (pointer_encoding, enum ptr_encoding): New.
4643 (execute_cfa_program): Take care about pointer encoding.
4644 (dwarf2_build_frame_info): Only call parse_frame_info for
4645 .debug_frame and .eh_frame.
4646 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4647 fixed augmentation handling, added relative addressing,
4648 ignore duplicate FDEs. Added comments.
4649 * dwarf2cfi.c: Reindented.
4650
4651 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
4652
4653 * event-top.c (command_handler): Don't use space_at_cmd_start
4654 unless there is sbrk() on the host. Assign time and space data
4655 to union fields of the appropriate length.
4656
4657 2002-06-20 Michal Ludvig <mludvig@suse.cz>
4658
4659 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4660 x86_64_register_name. Return type changed to 'const char *'.
4661 (x86_64_register_name2nr): Rename to x86_64_register_number.
4662 (x86_64_gdbarch_init): Update to reflect the change.
4663 * x86-64-tdep.h: Ditto.
4664 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4665 (supply_fpregset): Ditto.
4666
4667 2002-06-19 Andrew Cagney <cagney@redhat.com>
4668
4669 * regcache.h: Update copyright.
4670 (struct regcache, struct gdbarch): Add opaque declarations.
4671 (current_regcache): Declare global variable.
4672 (regcache_read, regcache_write): Add gdbarch parameter.
4673 (regcache_save, regcache_save_no_passthrough)
4674 (regcache_restore, regcache_restore_no_passthrough)
4675 (regcache_dup, regcache_dup_no_passthrough)
4676 (regcache_cpy, regcache_cpy_no_passthrough)
4677 (deprecated_grub_regcache_for_registers)
4678 (deprecated_grub_regcache_for_register_valid)
4679 (regcache_valid_p): Add function declarations.
4680
4681 * regcache.c: Update copyright.
4682 (regcache_descr_handle): New global variable.
4683 (struct regcache_descr): Define.
4684 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4685 (regcache_descr, xfree_regcache_descr): New functions.
4686 (struct regcache): Define.
4687 (regcache_xmalloc, regcache_xfree): New functions.
4688 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4689 (regcache_dup, regcache_dup_no_passthrough): New functions.
4690 (regcache_valid_p, regcache_read_as_address): New functions.
4691 (deprecated_grub_regcache_for_registers): New function.
4692 (deprecated_grub_regcache_for_register_valid): New function.
4693 (current_regcache): New global variable.
4694 (register_buffer): Add regcache parameter. Update calls.
4695 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4696 (read_register_gen, write_register_gen): Update register_buffer
4697 call. Test for legacy_p instead of gdbarch_register_read_p or
4698 gdbarch_register_write_p.
4699 (regcache_collect): Update register_buffer call.
4700 (build_regcache): Rewrite. Use deprecated grub functions.
4701 (regcache_save, regcache_save_no_passthrough): New functions.
4702 (regcache_restore, regcache_restore_no_passthrough): New
4703 functions.
4704 (_initialize_regcache): Create the regcache_data_handle. Swap
4705 current_regcache global variable.
4706
4707 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4708 parameter to regcache_read and regcache_write calls.
4709 (sh4_register_read): Ditto.
4710 (sh64_pseudo_register_read): Ditto.
4711 (sh64_register_read): Ditto.
4712 (sh_pseudo_register_write): Ditto.
4713 (sh4_register_write): Ditto.
4714 (sh64_pseudo_register_write): Ditto.
4715 (sh64_register_write): Ditto.
4716
4717 * defs.h (XCALLOC): Define.
4718
4719 2002-06-19 Grace Sainsbury <graces@redhat.com>
4720
4721 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4722 * m68k-tdep.c (m68k_gdbarch_init): Added.
4723 (m68k_dump_tdep): Added.
4724
4725 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4726
4727 * ada-lang.c (fill_in_ada_prototype): Update comment.
4728
4729 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4730
4731 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4732 MIPS_ABI_LAST.
4733 (mips_abi_string, mips_abi_strings): New.
4734 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4735 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4736 tdep->mips_abi_string. Honor mips_abi_string. Default to
4737 O32 if no ABI is found.
4738 (mips_dump_tdep): Use mips_abi_strings.
4739 (mips_abi_update): New function.
4740 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4741 ``set mips abi'' and ``show mips abi''. Check the size of
4742 mips_abi_strings.
4743
4744 2002-06-19 Andrew Cagney <cagney@redhat.com>
4745
4746 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4747 constant.
4748
4749 2002-06-18 Joel Brobecker <brobecker@gnat.com>
4750
4751 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4752 current frame using only the first stack size adjustment. All
4753 subsequent size adjustments are not considered to be part of
4754 the "static" part of the current frame.
4755 Compute the address of the saved registers relative to the
4756 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4757 in use in this frame.
4758
4759 2002-06-18 Don Howard <dhoward@redhat.com>
4760
4761 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4762 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4763 suggesting this solution.
4764
4765 2002-06-18 Andrew Cagney <ac131313@redhat.com>
4766
4767 * config/romp/xm-rtbsd.h: Delete file.
4768 * config/romp/rtbsd.mh: Delete file.
4769
4770 2002-06-18 Keith Seitz <keiths@redhat.com>
4771
4772 * breakpoint.c (condition_command): Post breakpoint_modify
4773 when a condition is added to an existing breakpoint.
4774 (commands_command): Likewise for commands.
4775 (set_ignore_count): Likewise for ignore counts.
4776 If no tty, do not simply return, still need to send event
4777 notification.
4778 (ignore_command): Only print a newline if the command came
4779 from a tty.
4780 Don't call breakpoints_changed, since this is now properly
4781 handled by set_ignore_count.
4782
4783 2002-06-18 Andrew Cagney <cagney@redhat.com>
4784
4785 * MAINTAINERS: Note that cris-elf target can be compiled with
4786 -Werror.
4787 * cris-tdep.c (cris_register_name): Make return type constant.
4788 (cris_breakpoint_from_pc): Ditto.
4789
4790 2002-06-18 Michal Ludvig <mludvig@suse.cz>
4791
4792 * frame.h (struct frame_info): Change type of context to
4793 'struct context'.
4794
4795 2002-06-17 Andrew Cagney <cagney@redhat.com>
4796
4797 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4798 pointer.
4799 * gdbarch.h, gdbarch.c: Regenerate.
4800 * config/mips/tm-mips.h (mips_register_name): Update.
4801 * i386-tdep.h (i386_register_name): Update.
4802 * mips-tdep.c (mips_register_name): Update
4803 * alpha-tdep.c (alpha_register_name): Update.
4804 * arch-utils.c (legacy_register_name): Update.
4805 * arch-utils.h (legacy_register_name): Update.
4806 * avr-tdep.c (avr_register_name): Update.
4807 * ia64-tdep.c (ia64_register_name): Update.
4808 * i386-tdep.c (i386_register_name): Update.
4809 * sparc-tdep.c (sparc32_register_name): Update.
4810 (sparc64_register_name): Update.
4811 (sparclite_register_name): Update.
4812 (sparclet_register_name): Update.
4813 * sh-tdep.c (sh_generic_register_name): Update.
4814 (sh_sh_register_name): Update.
4815 (sh_sh3_register_name): Update.
4816 (sh_sh3e_register_name): Update.
4817 (sh_sh_dsp_register_name): Update.
4818 (sh_sh3_dsp_register_name): Update.
4819 (sh_sh4_register_name): Update.
4820 (sh_sh64_register_name): Update.
4821 * s390-tdep.c (s390_register_name): Update.
4822 * rs6000-tdep.c (rs6000_register_name): Update.
4823 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4824 (ns32k_register_name_32382): Update.
4825 * d10v-tdep.c (d10v_ts2_register_name): Update.
4826 (d10v_ts3_register_name): Update.
4827 * xstormy16-tdep.c (xstormy16_register_name): Update.
4828 * vax-tdep.c (vax_register_name): Update.
4829 * v850-tdep.c (v850_register_name): Update.
4830 * m68hc11-tdep.c (m68hc11_register_name): Update.
4831 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4832 (am33_register_name): Update.
4833
4834 2002-06-17 Grace Sainsbury <graces@redhat.com>
4835
4836 * m68k-tdep.c: Reindented.
4837
4838 2002-06-17 Andrew Cagney <ac131313@redhat.com>
4839
4840 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4841 list of predefined types.
4842
4843 2002-06-16 Mark Kettenis <kettenis@gnu.org>
4844
4845 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4846 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4847 REGISTER_CONVERT_TO_RAW): Remove defines.
4848 (i386_register_virtual_type, i386_register_convertible,
4849 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4850 Remove prototypes.
4851 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4852 macros mentioned above.
4853
4854 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4855 (i386lynx_saved_pc_after_call): Remove prototype.
4856 * i386ly-tdep.c: Include "i386-tdep.h".
4857 (i386lynx_saved_pc_after_call): Make static. Use
4858 read_memory_nobpt instead of read_memory. Use
4859 read_memory_unsigned_integer instead of read_memory_integer.
4860 (i386lynx_init_abi): New function.
4861 (i386lynx_coff_osabi_sniffer): New function.
4862 (_initialize_i386bsd_tdep): New function.
4863
4864 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4865 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4866 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4867 (i386_fix_call_dummy): Remove prototype.
4868 * i386-tdep.c (i386_call_dummy_words): New variable.
4869 (i386_gdbarch_init): Adjust for removal of the
4870 macros mentioned above.
4871
4872 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4873
4874 * command.h (add_setshow_auto_boolean_cmd): Replace
4875 add_set_auto_boolean_cmd.
4876 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4877 add_set_auto_boolean_cmd.
4878 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4879 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4880 mask-address'' command.
4881 (show_mask_address): Add cmd parameter.
4882 * remote.c (add_packet_config_cmd): Update. Change type of
4883 set_func and show_func to cmd_sfunc_ftype.
4884 (_initialize_remote): Update `set remote Z-packet'
4885 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4886 (show_remote_protocol_e_packet_cmd): Ditto.
4887 (show_remote_protocol_E_packet_cmd): Ditto.
4888 (show_remote_protocol_P_packet_cmd): Ditto.
4889 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4890 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4891 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4892 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4893 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4894 (show_remote_protocol_Z_packet_cmd): Ditto.
4895 (show_remote_protocol_binary_download_cmd): Ditto.
4896 (show_remote_cmd): Pass NULL to all of above.
4897
4898 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4899
4900 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4901 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4902 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4903 POP_FRAME): Remove defines.
4904 (i386_push_arguments, i386_store_struct_return,
4905 i386_extract_return_value, i386_store_return_value,
4906 i386_extract_struct_value_address, i386_push_dummy_frame,
4907 i386_pop_frame): Renove prototypes.
4908 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4909 macros mentioned above.
4910
4911 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4912
4913 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4914 add_set_boolean_cmd.
4915 (add_setshow_cmd): New function.
4916 * command.h (add_setshow_boolean_cmd): Replace
4917 add_set_boolean_cmd.
4918 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4919 and ``set rdiromatzero''.
4920 * maint.c (_initialize_maint_cmds): Update commented out code.
4921 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4922 * target.c (initialize_targets): Update `set
4923 trust-readonly-sections'.
4924 * remote.c (_initialize_remote): Update `set remotebreak'.
4925
4926 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4927
4928 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4929 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4930 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4931 fit into multi-arch framework.
4932 (i386_breakpoint_from_pc): New function.
4933 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4934 above.
4935
4936 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4937 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4938 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4939 (i386_frameless_function_invocation, i386_frame_num_args,
4940 i386_frame_init_saved_regs): Remove prototypes.
4941 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4942 macros mentioned above.
4943
4944 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4945
4946 * cli/cli-decode.c (set_cmd_cfunc): Update.
4947 (set_cmd_sfunc): Update.
4948 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4949 (set_cmd_sfunc, set_cmd_cfunc): Update.
4950 * cli/cli-decode.h: Update.
4951
4952 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4953
4954 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4955 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4956
4957 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4958
4959 * defs.h (auto_boolean): Declare enum.
4960 * command.h (cmd_auto_boolean): Delete enum.
4961 * mips-tdep.c (mask_address_var): Update.
4962 (mips_mask_address_p): Update.
4963 (show_mask_address): Update.
4964 * remote.c (struct packet_config): Update.
4965 (update_packet_config): Update.
4966 (show_packet_config_cmd): Update.
4967 (packet_ok): Update.
4968 (add_packet_config_cmd): Update.
4969 (_initialize_remote):
4970 * command.h: Update.
4971 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4972 (do_setshow_command): Update.
4973 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4974 * cli/cli-decode.h: Update.
4975
4976 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4977
4978 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4979 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4980 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4981 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4982 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4983 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4984
4985 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4986 list of DJGPP COFF targets.
4987
4988 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4989 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4990 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4991 (FP0_REGNUM): Remove define.
4992 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4993 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4994 (i386_register_virtual_size): Remove protoype.
4995 * i386-tdep.c (i386_register_virtual_size): Removed.
4996 (i386_extract_return_value, i386_store_return_value): Use
4997 FP0_REGNUM instead of NUM_FREGS to determine whether the
4998 floating-point registers are available.
4999 (i386_gdbarch_init): Tweak FIXME about FPU registers.
5000 Adjust for removal of macros mentioned above.
5001
5002 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5003
5004 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
5005 comments.
5006 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5007 Remove prototypes.
5008 (supply_gregset, fill_gregset): Remove use of register keyword and
5009 remove declaration for regmap. Use I386_NUM_GREGS instead of
5010 NUM_REGS and NUM_FREGS.
5011 (FPREGSET_FSAVE_OFFSET): Remove.
5012 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5013 NUM_FREGS to determine whether the floating-point registers are
5014 available.
5015
5016 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5017 gnu_store_registers): Replace usage of NUM_GREGS with
5018 I386_NUM_GREGS.
5019
5020 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5021 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5022 usage of NUM_GREGS with I386_NUM_GREGS.
5023
5024 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5025
5026 * i386bsd-nat.c: Include "i386-tdep.h".
5027 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5028 I386_NUM_GREGS.
5029
5030 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5031 and associated comment. They no longer make any sense, since we
5032 don't use this file anymore on Linux.
5033
5034 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5035 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5036 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5037 elements in these arrays.
5038 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5039 MAX_NUM_REGS.
5040
5041 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5042
5043 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5044 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5045
5046 2002-06-14 Andrew Cagney <cagney@redhat.com>
5047
5048 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5049 EXTRACT_RETURN_VALUE.
5050 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5051 EXTRACT_STRUCT_VALUE_ADDRESS.
5052 * gdbarch.h, gdbarch.c: Regenerate.
5053
5054 * values.c (value_being_returned): Handle
5055 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5056 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5057
5058 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5059 * arm-tdep.c (arm_gdbarch_init): Update.
5060 * avr-tdep.c (avr_gdbarch_init): Update.
5061 * cris-tdep.c (cris_gdbarch_init): Update.
5062 * d10v-tdep.c (d10v_gdbarch_init): Update.
5063 * ia64-tdep.c (ia64_gdbarch_init): Update.
5064 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5065 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5066 * s390-tdep.c (s390_gdbarch_init): Update.
5067 * sh-tdep.c (sh_gdbarch_init): Update.
5068 * s390-tdep.c (s390_gdbarch_init): Update.
5069 * sparc-tdep.c (sparc_gdbarch_init): Update.
5070 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5071 * v850-tdep.c (v850_gdbarch_init): Update.
5072 * vax-tdep.c (vax_gdbarch_init): Update.
5073 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5074 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5075
5076 * config/arc/tm-arc.h: Update.
5077 * config/d30v/tm-d30v.h: Update.
5078 * config/fr30/tm-fr30.h: Update.
5079 * config/h8300/tm-h8300.h: Update.
5080 * config/h8500/tm-h8500.h: Update.
5081 * config/i386/tm-i386.h: Update.
5082 * config/i386/tm-ptx.h: Update.
5083 * config/i386/tm-symmetry.h: Update.
5084 * config/i960/tm-i960.h: Update.
5085 * config/m32r/tm-m32r.h: Update.
5086 * config/m68k/tm-delta68.h: Update.
5087 * config/m68k/tm-linux.h: Update.
5088 * config/m68k/tm-m68k.h: Update.
5089 * config/m88k/tm-m88k.h: Update.
5090 * config/mcore/tm-mcore.h: Update.
5091 * config/mips/tm-mips.h: Update.
5092 * config/mn10200/tm-mn10200.h: Update.
5093 * config/pa/tm-hppa.h: Update.
5094 * config/pa/tm-hppa64.h: Update.
5095 * config/sparc/tm-sp64.h: Update.
5096 * config/sparc/tm-sparc.h: Update.
5097 * config/sparc/tm-sparclet.h: Update.
5098 * config/z8k/tm-z8k.h: Update.
5099
5100 2002-06-14 Andrew Cagney <cagney@redhat.com>
5101
5102 * Makefile.in (i386_linux_tdep_h): Define.
5103 (i386_tdep_h, i387_tdep_h): Define.
5104 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5105 $(i386_tdep_h) and $(i387_tdep_h).
5106 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5107
5108 2002-06-14 Mark Kettenis <kettenis@gnu.org>
5109
5110 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5111 Already covered by the default.
5112
5113 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5114 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5115 (i386_gdbarch_init): Initialize long_double_format and long_double
5116 bit.
5117
5118 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5119 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5120 Move these to ...
5121 * config/i386/i386sol2.mh: ... here.
5122 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5123 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5124 (SIGCONTEXT_PC_OFFSET): Remove define.
5125 (IN_SIGTRAMP): Remove define.
5126 * i386-sol2-tdep.c: New file.
5127
5128 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5129 * config/i386/tm-i386nw.h: Removed.
5130
5131 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5132 USE_STRUCT_CONVENTION): Remove defines.
5133 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5134 (get_longjmp_target): Remove prototype.
5135 (IN_SIGTRAMP): Remove define.
5136 (i386bsd_in_sigtramp): Remove prototype.
5137 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5138 function. Update comment accordingly
5139 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5140 (FRAME_SAVED_PC): Remove define.
5141 (i386bsd_frame_saved_pc): Remove prototype.
5142 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5143 GET_LONGJMP_TARGET): Remove defines.
5144 (get_longjmp_target): Remove prototype.
5145 (IN_SIGTRAMP): Remove define.
5146 (i386bsd_in_sigtramp): Remove prototype.
5147 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5148 function. Update comment accordingly
5149 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5150 (FRAME_SAVED_PC): Remove define.
5151 (i386bsd_frame_saved_pc): Remove prototype.
5152 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5153 Remove prototype.
5154 (USE_STRUCT_CONVENTION): Remove prototype.
5155 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5156 declaration.
5157 (_initialize_i386bsd_nat): Revise logic to determine some
5158 constants at compile time when compiling a native GDB. Warn if
5159 things don't match up with what we expect.
5160 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5161 Remove variables.
5162 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5163 to use date stored in `struct gdbarch_tdep'.
5164 (i386bsd_sigcontext_offset): Remove varaible.
5165 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5166 stored in `struct gdbarch_tdep'.
5167 (i386bsd_frame_saved_pc): Make static.
5168 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5169 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5170 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5171 i386fbsd4_sc_pc_offset): New variables.
5172 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5173 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5174 functions.
5175 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5176 functions.
5177 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5178 Modify the value of i386fbsd_sigtramp_start and
5179 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5180 i386fbsd_sigtramp_end.
5181 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5182 function.
5183
5184 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5185 define to i386-linux-tdep.h.
5186 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5187 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5188 defines.
5189 (i386_linux_register_name, i386_linux_register_byte,
5190 i386_linux_register_raw_size): Remove prototypes.
5191 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5192 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5193 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5194 TARGET_WRITE_PC): Remove defines.
5195 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5196 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5197 i386_linux_write_pc): Remove prototypes.
5198 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5199 (get_longjmp_target): Remove prototype.
5200 * i386-linux-tdep.h: New file.
5201 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5202 * i386-linux-tdep.c: Include "i386-tdep.h" and
5203 "i386-linux-tdep.h".
5204 (i386_linux_register_name, i386_linux_register_byte,
5205 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5206 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5207 Make static.
5208 (i386_linux_init_abi): New function.
5209 (_initialize_i386_linux_tdep): New function.
5210
5211 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5212 (i386_saved_pc_after_call): Remove prototype.
5213 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5214 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5215 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5216 (i386_register_name, i386_stab_reg_to_regnum,
5217 i386_dwarf_reg_to_regnum): Remove prototypes.
5218 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5219 SIZEOF_SSE_REGS): Remove defines.
5220 (REGISTER_BYTES): Remove define.
5221 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5222 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5223 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5224 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5225 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5226 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5227 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5228 (get_longjmp_target): Remove prototype.
5229 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5230 (sigtramp_saved_pc): Remove define.
5231 (i386v4_sigtramp_saved_pc): Remove prototype.
5232 * config/i386/tm-go32.h (FRAME_CHAIN,
5233 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5234 (i386go32_frame_saved_pc): Remove prototype.
5235 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5236 (get_longjmp_target): Remove prototype.
5237 * i386-tdep.h: Include "osabi.h".
5238 (enum i386_abi): Removed.
5239 (enum struct_return): New enum.
5240 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5241 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5242 sc_pc_offset members.
5243 (i386_gdbarch_register_os_abi): Remove prototype.
5244 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5245 I386_SSE_NUM_REGS): New defines.
5246 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5247 I386_SSE_SIZEOF_REGS): New defines.
5248 (i386_register_name, i386_register_byte, i386_register_raw_size):
5249 New prototypes.
5250 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5251 (i386bsd_sigtramp_saved_pc): New prototype.
5252 * i386-tdep.c: Don't include "elf-bfd.h".
5253 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5254 i386_frame_chain, i386_saved_pc_after_call): Make static.
5255 (i386_frame_saved_pc): Rewrite to call architecture dependent
5256 function to deal with signal handlers. Make static.
5257 (i386go32_frame_saved_pc): Removed.
5258 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5259 Removed.
5260 (i386_get_longjmp_target): New function.
5261 (default_struct_convention, pcc_struct_convention,
5262 reg_struct_convention, valid_conventions, struct_convention): New
5263 variables.
5264 (i386_use_struct_convention): New function.
5265 (i386v4_sigtramp_saved_pc): Renamed to
5266 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5267 (i386_pc_in_sigtramp): New function.
5268 (i386_abi_names): Removed.
5269 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5270 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5271 Removed.
5272 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5273 i386_gdbarch_register_os_abi): Removed.
5274 (struct i386_abi_handler): Removed.
5275 (i386_abi_handler_list): Removed.
5276 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5277 functions.
5278 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5279 i386_nw_init_abi): New functions.
5280 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5281 Use set_gdbarch_xxx() calls instead of relying on macros for a
5282 number of calls.
5283 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5284 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5285 Register the various architecture variants defined in this file.
5286
5287 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
5288
5289 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5290 (struct main_type): Remove arg_types member. Update comments for
5291 struct field.
5292 (TYPE_ARG_TYPES): Remove.
5293 (TYPE_FN_FIELD_ARGS): Update.
5294 (smash_to_method_type): Update prototype.
5295
5296 * c-typeprint.c (cp_type_print_method_args): Take method type
5297 instead of argument list. Use new argument layout. Simplify.
5298 (c_type_print_args): Use new argument layout. Simplify.
5299 (c_type_print_base): Update call to cp_type_print_method_args.
5300 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5301 argument; use die->type instead. Update call to
5302 smash_to_method_type.
5303 (read_structure_scope): Update call to dwarf2_add_member_fn.
5304 * gdbtypes.c (allocate_stub_method): Update comment.
5305 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5306 Use new argument layout.
5307 (check_stub_method): Use new argument layout. Don't count
5308 void as an argument.
5309 (print_arg_types): Update comments. Use new argument layout.
5310 (recursive_dump_type): Don't print arg_types member.
5311 * hpread.c (hpread_read_struct_type): Use new argument layout.
5312 (fixup_class_method_type): Likewise.
5313 (hpread_type_lookup): Likewise.
5314 * stabsread.c (read_type): Update calls to read_args and
5315 smash_to_method_type.
5316 (read_args): Use new argument layout. Simplify.
5317 * valops.c (typecmp): Use new argument layout. Update parameters
5318 and comments. Simplify.
5319 (hand_function_call): Use new argument layout.
5320 (search_struct_method): Update call to typecmp.
5321 (find_overload_match): Use new argument layout.
5322
5323 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5324
5325 * NEWS: Mention multithreaded debug support for gdbserver.
5326
5327 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5328
5329 * MAINTAINERS: Mention NEWS.
5330
5331 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5332
5333 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5334 (struct mips_objfile_private, compare_pdr_entries): New.
5335 (non_heuristic_proc_desc): Read the ".pdr" section if it
5336 is present.
5337
5338 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5339
5340 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5341 (arm_debug): New static variable.
5342 (_initialize_arm_tdep): Add ``set debug arm'' command.
5343
5344 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5345
5346 * Makefile.in (sim_arm_h): Define.
5347 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5348 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5349 (arm_register_sim_regno): New function, map an internal REGNUM
5350 onto a simulator register number.
5351 (arm_gdbarch_init): Set register_sim_regno.
5352
5353 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
5354
5355 * MAINTAINERS: Add self.
5356
5357 2002-06-11 Jim Blandy <jimb@redhat.com>
5358
5359 * source.c (source_info): Mention whether the symtab has
5360 information about preprocessor macros.
5361
5362 Call the command `info macro', not `show macro'.
5363 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5364 Fix error message.
5365 (_initialize_macrocmd): Register `info_macro_command' in
5366 `infolist', not `showlist'.
5367
5368 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
5369
5370 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5371 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5372 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5373 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5374 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5375 unconditionally.
5376 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5377 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5378 (_initialize_mips_tdep): Remove dead code.
5379 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5380 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5381 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5382 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5383 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5384 MIPS_LAST_FP_ARG_REGNUM): Remove.
5385
5386 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5387
5388 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5389 (unwind_tmp_obstack_free, parse_frame_info)
5390 (update_context, cfi_read_fp, cfi_write_fp)
5391 (cfi_frame_chain, cfi_init_extra_frame_info)
5392 (cfi_virtual_frame_pointer): Use the above function.
5393 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5394
5395 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
5396
5397 * v850-tdep.c (v850_type_is_scalar): New function.
5398 (v850_use_struct_convention): Match current gcc implementation
5399 as close as possible.
5400 (v850_push_arguments): Fix stack_offset handling. Don't write
5401 struct_addr into register. This is done by v850_store_struct_return.
5402 (v850_extract_return_value): Care for structs.
5403 (v850_store_return_value): Ditto.
5404 (v850_store_struct_return): Actually write address.
5405
5406 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5407
5408 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5409 without debug information too.
5410
5411 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5412
5413 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5414 Make multi-arch pure.
5415 * gdbarch.h, gdbarch.c: Re-generate.
5416 * arm-tdep.c (arm_print_float_info): Update.
5417 * arch-utils.h (default_print_float_info): Update.
5418 * arch-utils.c (default_print_float_info): Update.
5419 * infcmd.c (float_info): Update call.
5420
5421 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5422
5423 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5424 the front of the initialize list.
5425
5426 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5427
5428 * infrun.c (struct inferior_status): Replace fields
5429 selected_frame_address and selected_level with field
5430 selected_frame_id.
5431 (save_inferior_status): Update. Use get_frame_id.
5432 (struct restore_selected_frame_args): Delete.
5433 (restore_selected_frame): Update. Use frame_find_by_id.
5434 (restore_inferior_status): Update.
5435
5436 * breakpoint.h (struct breakpoint): Change type of
5437 watchpoint_frame to frame_id.
5438 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5439 call to get_current_frame.
5440 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5441 get_current_frame.
5442 (watchpoint_check): Use frame_find_by_id.
5443
5444 * frame.h (record_selected_frame): Delete declaration.
5445 * stack.c (record_selected_frame): Delete function.
5446
5447 * frame.h (struct frame_id): Define.
5448 (get_frame_id): Declare.
5449 (frame_find_by_id): Declare.
5450 * frame.c (frame_find_by_id): New function.
5451 (get_frame_id): New function.
5452
5453 2002-06-10 Andrey Volkov <avolkov@transas.com>
5454
5455 * ser-e7kpc.c: Fix duplicated define and call of
5456 _initialize_ser_e7000pc
5457
5458 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5459
5460 * signals/signals.c (target_signal_from_host): Fix #ifdef
5461 SIGRTMIN case.
5462 (do_target_signal_to_host): Likewise.
5463
5464 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5465
5466 * mips-tdep.c (mips_find_abi_section): New function.
5467 (mips_gdbarch_init): Call it.
5468
5469 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5470
5471 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5472 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5473 after Andrew's 2002-06-08 gdbarch change.
5474
5475 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5476
5477 * i386-linux-nat.c (suppy_gregset): Don't supply
5478 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5479 register cache.
5480 (fill_gregset): Don't fetch it under the same circumstances.
5481
5482 2002-06-09 Andrew Cagney <cagney@redhat.com>
5483
5484 * Makefile.in (callback_h): Define.
5485 (remote_sim_h): Update path to remote-sim.h.
5486 (remote-rdp.o): Add $(callback_h).
5487 (remote-sim.o): Use $(callback_h).
5488 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5489 * remote-rdp.c: Include "gdb/callback.h".
5490
5491 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5492
5493 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5494 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5495
5496 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5497
5498 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5499 * rdi-share/serpardr.c: Ditto.
5500 * rdi-share/unixcomm.c: Ditto.
5501 * rdi-share/serdrv.c: Ditto.
5502 * rdi-share/hostchan.h: Ditto.
5503 * rdi-share/hostchan.c: Ditto.
5504 * rdi-share/host.h: Ditto.
5505 * rdi-share/devsw.c: Ditto.
5506
5507 * objfiles.h: Change type of obj_private to void pointer.
5508 * pa64solib.c: Update copyright. Don't include "assert.h", use
5509 strcmp instead of STREQ, use LONGEST, do not use PTR
5510 * somsolib.c: Ditto.
5511
5512 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5513 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5514 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5515
5516 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5517
5518 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5519 (default_get_saved_register): Delete function.
5520 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5521 generic_unwind_get_saved_register.
5522 * gdbarch.h, gdbarch.c: Re-generate.
5523
5524 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5525
5526 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5527 generic_func_frame_chain_valid.
5528 * gdbarch.h, gdbarch.c: Re-generate.
5529 * blockframe.c (generic_func_frame_chain_valid): Only check
5530 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5531 passing FP to PC_IN_CALL_DUMMY.
5532 Fix PR gdb/360.
5533
5534 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5535
5536 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5537 (register_gdbarch_data): Initialize init_p.
5538 (gdbarch_data): Initialize data pointer using the init function.
5539 (init_gdbarch_data): Delete function.
5540 (gdbarch_update_p): Update.
5541 (initialize_non_multiarch): Update.
5542 (struct gdbarch): Add field initialized_p.
5543 * gdbarch.h, gdbarch.c: Re-generate.
5544
5545 2002-06-07 Michal Ludvig <mludvig@suse.cz>
5546
5547 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5548 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5549 better do the things actually here.
5550 * x86-64-tdep.c (x86_64_register_name2nr): New.
5551 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5552 (x86_64_gdbarch_init): Respect the above change.
5553 * x86-64-tdep.h (x86_64_register_name2nr)
5554 (x86_64_register_nr2name): Add prototypes.
5555 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5556
5557 2002-06-06 Michael Snyder <msnyder@redhat.com>
5558
5559 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5560 Delete extra braces and re-indent.
5561 (d10v_store_return_value): Char return values
5562 must be shifted over by one byte in R0.
5563 (d10v_extract_return_value): Delete extra braces, re-indent.
5564
5565 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5566
5567 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5568 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5569 (d10v_integer_to_address): Rewrite.
5570 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5571 the d10v specific functions which take care of converting to the
5572 correct space.
5573
5574 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5575
5576 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5577 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5578
5579 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5580
5581 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5582 includes.
5583 * config/tm-linux.h: Ditto.
5584 * config/alpha/tm-alphalinux.h: Ditto.
5585 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5586 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5587 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5588 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5589 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5590 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5591 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5592 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5593 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5594 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5595 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5596 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5597 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5598 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5599 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5600 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5601 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5602 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5603 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5604 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5605 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5606 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5607 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5608 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5609 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5610 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5611 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5612 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5613 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5614 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5615 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5616 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5617 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5618 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5619 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5620 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5621 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5622
5623 2002-05-04 Aidan Skinner <aidan@velvet.net>
5624
5625 * ada-exp.tab.c: New file
5626 * ada-exp.y: New file
5627 * ada-lang.c: New file
5628 * ada-lang.h: New file
5629 * ada-lex.c: New file
5630 * ada-lex.l: New file
5631 * ada-tasks.c: New file
5632 * ada-typeprint.c: New file
5633 * ada-valprint.c: New file
5634
5635 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5636
5637 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5638 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5639
5640 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5641
5642 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5643 insetead of ppc-linux-tdep.o.
5644 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5645 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5646
5647 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5648
5649 2002-05-07 Christian Groessler <chris@groessler.org>
5650 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5651 bit register contents for little endian hosts.
5652
5653 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5654
5655 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5656 any maintainer.
5657
5658 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5659
5660 * gdbarch.h: Regenerate.
5661
5662 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5663
5664 * MAINTAINERS: Add everyone to write-after-approval list.
5665
5666 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5667
5668 * stack.c (frame_info): Use frame_register_unwind instead of
5669 saved_regs. Mention when the SP is on the stack or in a register.
5670
5671 * frame.h (frame_register_unwind_ftype): Define. Document.
5672 (struct frame_info): Add field register_unwind and
5673 register_unwind_cache.
5674 (frame_register_unwind): Declare.
5675 (generic_unwind_get_saved_register): Declare.
5676
5677 * frame.c (frame_register_unwind): New function.
5678 (generic_unwind_get_saved_register): New function.
5679
5680 * blockframe.c (generic_call_dummy_register_unwind): New function.
5681 (frame_saved_regs_register_unwind): New function.
5682 (set_unwind_by_pc): New function.
5683 (create_new_frame): New function.
5684 (get_prev_frame): New function.
5685
5686 2002-05-30 Andrew Cagney <ac131313@redhat.com>
5687
5688 * a29k-share/: Delete directory.
5689 * remote-vx29k.c: Delete file.
5690
5691 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5692
5693 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5694 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5695
5696 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5697
5698 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5699 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5700 (sparc64nbsd-nat.o)
5701 (sparcnbsd-nat.o)
5702 (sparcnbsd-tdep.o): New dependency lists.
5703 * NEWS: Note new UltraSPARC NetBSD native configuration.
5704 * configure.host (sparc64-*-netbsd*): New host.
5705 * configure.tgt (sparc-*-netbsdelf*)
5706 (sparc-*-netbsd*): Set gdb_target to nbsd.
5707 (sparc64-*-netbsd*): New target.
5708 * sparc64nbsd-nat.c: New file.
5709 * sparcnbsd-nat.c: New file.
5710 * sparcnbsd-tdep.c: New file.
5711 * sparcnbsd-tdep.h: New file.
5712 * config/sparc/nbsd.mt: New file.
5713 * config/sparc/nbsd64.mh: New file.
5714 * config/sparc/nbsd64.mt: New file.
5715 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5716 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5717 (HOST_IPC): Remove.
5718 * config/sparc/nbsdaout.mt: Remove.
5719 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5720 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5721 (HOST_IPC): Remove.
5722 * config/sparc/nbsdelf.mt: Remove.
5723 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5724 sparc-nat.c compatiblity defines.
5725 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5726 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5727 * config/sparc/tm-nbsd64.h: New file.
5728 * config/sparc/tm-nbsdaout.h: Remove.
5729 * config/sparc/xm-nbsd.h: Remove.
5730
5731 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5732
5733 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5734 * sparc-tdep.c: Include osabi.h.
5735 (gdbarch_tdep): Add osabi member.
5736 (_initialize_sparc_tdep): Use gdbarch_register.
5737 (sparc_gdbarch_init): Use generic OS ABI framework.
5738 (sparc_dump_tdep): New function.
5739
5740 2002-05-30 Kevin Buettner <kevinb@redhat.com>
5741
5742 * corefile.c (do_captured_read_memory_integer): Return non-zero
5743 result.
5744 (safe_read_memory_integer): Copy result of memory read when
5745 status is non-zero. Also, add comments.
5746
5747 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5748
5749 * Makefile.in (ppc_tdep_h): Define.
5750 (ppc-linux-nat.o)
5751 (ppc-linux-tdep.o)
5752 (rs6000-tdep.o): Use $(ppc_tdep_h).
5753 (ppc-sysv-tdep.o)
5754 (ppcnbsd-nat.o)
5755 (ppcnbsd-tdep.o): New dependency lists.
5756 * ppc-tdep.h: Use generic OS ABI framework.
5757 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5758 (ppc_linux_init_abi): New functions.
5759 (ppc_sysv_abi_broken_use_struct_convention)
5760 (ppc_sysv_abi_use_struct_convention)
5761 (ppc_sysv_abi_push_arguments): Move to...
5762 * ppc-sysv-tdep.c: ...here.
5763 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5764 * rs6000-tdep.c (process_note_abi_tag_sections)
5765 (get_elfosabi): Remove.
5766 (rs6000_gdbarch_init): Use generic OS ABI framework.
5767 (rs6000_dump_tdep): New function.
5768 (_initialize_rs6000_tdep): Use gdbarch_register.
5769 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5770 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5771 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5772 of ppc-linux-tdep.o.
5773 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5774 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5775 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5776 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5777 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5778 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5779
5780 2002-05-29 Jim Blandy <jimb@redhat.com>
5781
5782 * macroscope.c (default_macro_scope): Put `void' in empty argument
5783 list.
5784
5785 2002-05-29 Andrew Cagney <ac131313@redhat.com>
5786
5787 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5788 * arch-utils.c: Include "sim-regno.h".
5789 * gdbarch.sh: Don't include "sim-regno.h".
5790 * gdbarch.h, gdbarch.c: Regenerate.
5791 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5792 here.
5793 * arch-utils.h (legacy_register_sim_regno): To here.
5794 * remote-sim.c (legacy_register_sim_regno): Move function from
5795 here.
5796 * arch-utils.c (legacy_register_sim_regno): To here.
5797
5798 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5799
5800 * sim-regno.h: New file.
5801 * Makefile.in (sim_regno_h): Define.
5802 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5803 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5804 (legacy_register_sim_regno): New function.
5805 (one2one_register_sim_regno): New function.
5806 (gdbsim_fetch_register): Rewrite.
5807 (gdbsim_store_register): Only store a register when
5808 REGISTER_SIM_REGNO is valid.
5809 * d10v-tdep.c: Include "sim-regno.h".
5810 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5811 (d10v_ts3_register_sim_regno): Ditto.
5812 * gdbarch.sh: Include "sim-regno.h".
5813 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5814 * gdbarch.h, gdbarch.c: Regenerate.
5815 * arch-utils.h (default_register_sim_regno): Delete declaration.
5816 * arch-utils.c (default_register_sim_regno): Delete function.
5817
5818 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5819
5820 * ppcnbsd-nat.c: Rewrite.
5821 * ppcnbsd-tdep.c: New file.
5822 * ppcnbsd-tdep.h: New file.
5823 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5824 solib.o, and solib-svr4.o.
5825 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5826 nbsd-tdep.o, and corelow.o.
5827
5828 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5829
5830 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5831 `tr' and `sed'. Mention that `broken' targets are not expected to
5832 build.
5833
5834 2002-05-27 Michal Ludvig <mludvig@suse.cz>
5835
5836 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5837 Let PC point right after the prologue before looking up symbols.
5838
5839 2002-05-27 Martin M. Hunt <hunt@redhat.com>
5840
5841 * i386-tdep.c (i386_register_virtual_type): Return
5842 builtin_type_vec128i for SSE registers.
5843
5844 * gdbtypes.h (builtin_type_vec128i): Declare.
5845
5846 * gdbtypes.c (build_builtin_type_vec128i): New function.
5847 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5848 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5849 (build_gdbtypes): Initialize new builtin vector types.
5850 (_initialize_gdbtypes): Register new vector types with gdbarch.
5851
5852 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5853
5854 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5855 since it has been multi-arch'd.
5856 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5857 Move Alpha and VAX multi-arch news entries to same section
5858 as other multi-arch news.
5859
5860 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5861
5862 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5863 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5864 static. Rename some register numbers to put them in ns32k-tdep
5865 private namespace.
5866 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5867 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5868 functions.
5869 (_initialize_ns32k_tdep): Use gdbarch_register.
5870 * ns32k-tdep.h: New file.
5871 * ns32knbsd-tdep.c: New file.
5872 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5873 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5874 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5875 REGISTER_BYTES, REGISTER_BYTE): Remove.
5876 * config/ns32k/tm-ns32k.h: New file.
5877 * config/ns32k/tm-umax.h: Remove.
5878
5879 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5880
5881 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5882 ns32k_store_struct_return, ns32k_extract_return_value,
5883 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5884 functions.
5885 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5886 ns32k_saved_pc_after_call.
5887 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5888 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5889 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5890 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5891 ns32k_extract_struct_value_address.
5892
5893 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5894
5895 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5896 ns32k_fix_call_dummy): New.
5897 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5898 ns32k_call_dummy_words.
5899 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5900 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5901 CALL_DUMMY_NARGS): Remove.
5902 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5903
5904 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5905
5906 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5907 ns32k_frame_saved_pc, ns32k_frame_args_address,
5908 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5909 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5910 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5911 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5912 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5913 (BREAKPOINT): Remove..
5914 (FRAME_CHAIN): Define as ns32k_frame_chain.
5915 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5916 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5917 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5918 (FRAME_FIND_SAVED_REGS): Remove.
5919 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5920 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5921 (POP_FRAME): Define as ns32k_pop_frame.
5922
5923 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5924
5925 * ns32k-tdep.c (ns32k_register_byte_32082,
5926 ns32k_register_byte_32382, ns32k_register_raw_size,
5927 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5928 functions.
5929 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5930 ns32k_register_byte_32382.
5931 * config/ns32k/tm-umax.h: Update copyright years.
5932 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5933 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5934 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5935 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5936 (ns32k_get_enter_addr): Fix prototype.
5937
5938 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5939
5940 * ns32k-tdep.c: Update copyright years.
5941 (ns32k_register_name_32082): New function.
5942 (ns32k_register_name_32382): Ditto.
5943 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5944 (REGISTER_NAME): Define as ns32k_register_name_32382.
5945 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5946 (REGISTER_NAME): Define as ns32k_register_name_32082.
5947
5948 2002-05-24 Jim Blandy <jimb@redhat.com>
5949
5950 * dwarf2read.c (free_line_header): Use xfree, not free.
5951
5952 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5953
5954 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5955 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5956
5957 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5958
5959 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5960
5961 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5962
5963 From Ross Alexander at NEC Europe:
5964 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5965
5966 2002-05-23 Michael Snyder <msnyder@redhat.com>
5967
5968 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5969 for input, rather than parse_and_eval_address.
5970
5971 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5972
5973 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5974 * Makefile.in (sim_d10v_h): Update definition.
5975
5976 2002-05-24 Andrew Cagney <cagney@redhat.com>
5977
5978 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5979 change `2002-05-22 Michael Snyder' below.
5980 (d10v_push_arguments): Ditto.
5981 (d10v_extract_return_value): Ditto.
5982
5983 2002-05-23 Jim Blandy <jimb@redhat.com>
5984
5985 * macrotab.c (check_for_redefinition): Don't complain if the new
5986 definition is the same as the previous one. Take more arguments
5987 to allow the comparison.
5988 (macro_define_object, macro_define_function): Pass more arguments
5989 to check_for_redefinition.
5990
5991 2002-05-22 Michael Snyder <msnyder@redhat.com>
5992
5993 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5994 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5995 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5996 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5997 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5998 Add a temp variable to save a call (and a memory read).
5999 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
6000 if possible (so that PC_IN_CALL_DUMMY will work).
6001
6002 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
6003
6004 * MAINTAINERS: Remove status `OBSOLETE' from v850.
6005
6006 2002-05-22 Michal Ludvig <mludvig@suse.cz>
6007
6008 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6009 fde->cie_ptr.
6010 (dwarf2_build_frame_info): Corrected handling of eh_frame.
6011 (dwarf2_build_frame_info): Add offset to fde->initial_location
6012 so that frames of shared libraries are mapped correctly.
6013 (execute_stack_op): Change type of 'result' from ULONGEST to
6014 CORE_ADDR.
6015
6016 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6017
6018 * config/alpha/tm-nbsd.h: Include solib.h.
6019
6020 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6021
6022 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6023 assumptions about the host's byte order.
6024
6025 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6026
6027 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6028 to dependency list.
6029 * alphanbsd-tdep.c: Include solib-svr4.h.
6030 * shnbsd-tdep.c: Ditto.
6031
6032 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6033
6034 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6035 nbsd-tdep.h to dependency list.
6036 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6037 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6038 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6039 nbsdaout.mh and nbsdelf.mh consistently.
6040 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6041 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6042 nbsdaout.mt and nbsdelf.mh consistently.
6043 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6044 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6045 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6046 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6047 a.out shared library stuff from here...
6048 * config/nm-nbsdaout.h: ...to here.
6049 * config/tm-nbsd.h: Remove.
6050 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6051 * config/arm/nbsd.mh: Remove.
6052 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6053 nbsd-tdep.o.
6054 * config/arm/nbsdaout.mh: New file.
6055 * config/arm/nbsdelf.mh: New file.
6056 * config/arm/nm-nbsdaout.h: New file.
6057 * config/i386/nbsd.mh: Remove.
6058 * config/i386/nbsd.mt: Remove.
6059 * config/i386/nbsdaout.mh: New file.
6060 * config/i386/nbsdaout.mt: New file.
6061 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6062 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6063 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6064 i386_register_u_addr): Remove.
6065 * config/i386/nm-nbsdaout.h: New file.
6066 * config/i386/nm-nbsdelf.h: Remove.
6067 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6068 (USE_STRUCT_CONVENTION): Remove.
6069 * config/i386/tm-nbsdaout.h: New file.
6070 * config/i386/tm-nbsdelf.h: Remove.
6071 * config/m68k/nbsd.mh: Remove.
6072 * config/m68k/nbsd.mt: Remove.
6073 * config/m68k/nbsdaout.mh: New file.
6074 * config/m68k/nbsdaout.mt: New file.
6075 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6076 * config/m68k/nm-nbsdaout.h: New file.
6077 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6078 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6079 * config/ns32k/nbsd.mh: Remove.
6080 * config/ns32k/nbsd.mt: Remove.
6081 * config/ns32k/nbsdaout.mh: New file.
6082 * config/ns32k/nbsdaout.mt: New file.
6083 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6084 * config/ns32k/nm-nbsdaout.h: New file.
6085 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6086 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6087 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6088 (SVR4_SHARED_LIBS): Remove.
6089 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6090 * config/sparc/nbsd.mh: Remove.
6091 * config/sparc/nbsd.mt: Remove.
6092 * config/sparc/nbsdaout.mh: New file.
6093 * config/sparc/nbsdaout.mt: New file.
6094 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6095 * config/sparc/nbsdelf.mt: New file.
6096 * config/sparc/nm-nbsdaout.h: New file.
6097 * config/sparc/nm-nbsdelf.h: Remove.
6098 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6099 * config/sparc/tm-nbsdaout.h: New file.
6100
6101 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6102
6103 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6104 mipsnbsd-tdep.c
6105 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6106
6107 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6108
6109 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6110 shnbsd-nat.c.
6111 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6112
6113 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6114
6115 * NEWS: Note new MIPS NetBSD native configuration.
6116 * configure.host (mips*-*-netbsd*): New host.
6117 * configure.tgt (mips*-*-netbsd*): New target.
6118 * mipsnbsd-nat.c: New file.
6119 * mipsnbsd-tdep.c: New file.
6120 * mipsnbsd-tdep.h: New file.
6121 * config/mips/nbsd.mh: New file.
6122 * config/mips/nbsd.mt: New file.
6123 * config/mips/nm-nbsd.h: New file.
6124 * config/mips/tm-nbsd.h: New file.
6125
6126 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6127
6128 * Makefile.in (SFILES): Add osabi.c.
6129 (COMMON_OBS): Add osabi.o.
6130 (osabi.o): New dependency list.
6131 * osabi.c: New file.
6132 * osabi.h: New file.
6133 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6134
6135 * Makefile.in (alpha_tdep_h): Define and use instead of
6136 alpha-tdep.h.
6137 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6138 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6139 Remove.
6140 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6141 * alpha-tdep.h: Include osabi.h.
6142 (alpha_abi): Remove.
6143 (gdbarch_tdep): Use generic OS ABI framework.
6144 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6145 gdbarch_register_osabi.
6146 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6147 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6148 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6149
6150 * Makefile.in (sh_tdep_h): Add osabi.h.
6151 * sh-tdep.h (sh_osabi): Remove.
6152 (gdbarch_tdep): Use generic OS ABI framework.
6153 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6154 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6155 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6156 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6157
6158 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6159 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6160 gdbarch_register_osabi.
6161 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6162 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6163 (get_elfosabi): Rename to...
6164 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6165 ABI framework support routines.
6166 (arm_gdbarch_init): Use generic OS ABI framework.
6167 (arm_dump_tdep): Likewise.
6168 (_initialize_arm_tdep): Likewise.
6169 * arm-tdep.h: Include osabi.h.
6170 (arm_abi): Remove.
6171 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6172 osabi member.
6173 (arm_gdbarch_register_os_abi): Remove prototype.
6174 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6175 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6176
6177 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6178 * mips-tdep.c: Include osabi.h.
6179 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6180 OS ABI framework.
6181
6182 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6183
6184 * h8300-tdep.c: Fix formatting.
6185
6186 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
6187
6188 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6189 printing vector registers.
6190
6191 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6192
6193 From Fernando Nasser:
6194 * remote.c (remote_async_open_1): Re-throw the exception when the
6195 connection fails.
6196 (remote_cisco_open): Ditto.
6197 (remote_open_1): Ditto.
6198
6199 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6200
6201 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6202 (remote_start_remote): Add uiout parameter. Pass through to
6203 remote_start_remote_dummy.
6204 (remote_open_1): Use catch_exception instead of catch_errors.
6205 (remote_async_open_1): Ditto.
6206 (remote_cisco_open): Ditto.
6207
6208 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6209
6210 * remote.c (remote_start_remote): Replace PTR with void pointer.
6211 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6212 static.
6213
6214 2002-05-18 Andrew Cagney <ac131313@redhat.com>
6215
6216 * gdb_indent.sh: Allow the script to be run in the sim directory.
6217
6218 2002-05-18 Mark Kettenis <kettenis@gnu.org>
6219
6220 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6221 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6222
6223 * corelow.c (core_open): Only call set_gdbarch_from_file if
6224 exec_bfd is NULL.
6225
6226 2002-05-17 Andrey Volkov <avolkov@transas.com>
6227
6228 * h8300-tdep.c: Add support of EXR register
6229 * config/h8300/tm-h8300.h: Ditto.
6230
6231 2002-05-17 Andrey Volkov <avolkov@transas.com>
6232
6233 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6234
6235 2002-05-17 Andrey Volkov <avolkov@transas.com>
6236
6237 * h8300-tdep.c: Change literal regnums to REGNO.
6238
6239 2002-05-17 Jim Blandy <jimb@redhat.com>
6240
6241 * NEWS: Note addition of macro support.
6242
6243 Expand preprocessor macros in C expressions.
6244 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6245 (scan_macro_expansion, scanning_macro_expansion,
6246 finished_macro_expansion): New function declarations.
6247 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6248 variable declarations.
6249 * parser-defs.h (expression_context_pc): New declaration.
6250 * parse.c (expression_context_pc): New variable.
6251 (parse_exp_1): Set expression_context_pc, as well as
6252 expression_context_block.
6253 * c-exp.y (yylex): If we're not already reading the result of a
6254 macro expansion, try to macro-expand the next token. When we're
6255 done scanning a macro expansion, switch back to the mainline text.
6256 Commas and `if's in a macro's expansion don't terminate the input.
6257 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6258 (macro_original_text, macro_expanded_text,
6259 expression_macro_lookup_func, expression_macro_lookup_baton): New
6260 variables.
6261 (scan_macro_expansion, scanning_macro_expansion,
6262 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6263 c_preprocess_and_parse): New functions.
6264 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6265 c_preprocess_and_parse, instead of c_parse.
6266 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6267 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6268
6269 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6270
6271 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6272 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6273 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6274
6275 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
6276
6277 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6278
6279 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6280
6281 * Makefile.in (sh_tdep_h): Define and use.
6282 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6283 register enum): Move to...
6284 * * sh-tdep.h: ...here.
6285 * sh-tdep.c: Include sh-tdep.h.
6286 * sh3-rom.c: Likewise.
6287 * shnbsd-tdep.c: Likewise.
6288
6289 2002-05-16 Michael Snyder <msnyder@redhat.com>
6290
6291 * arm-tdep.c: Spelling fix in comment.
6292
6293 2002-05-16 Jim Blandy <jimb@redhat.com>
6294
6295 Add commands for manually expanding macros and showing their
6296 definitions.
6297 * macrocmd.c, macroscope.c, macroscope.h: New files.
6298 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6299 (macroscope_h): New variable.
6300 (HFILES_NO_SRCDIR): Add macroscope.h.
6301 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6302 (macroscope.o, macrocmd.o): New rules.
6303
6304 Teach the Dwarf 2 reader to read macro information.
6305 * dwarf2read.c: #include "macrotab.h".
6306 (dwarf_macinfo_buffer): New variable.
6307 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6308 dwarf_macinfo_size.
6309 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6310 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6311 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6312 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6313 dwarf2_macro_spaces_in_definition): New complaints.
6314 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6315 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6316 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6317 the partial symbol table.
6318 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6319 from what's recorded in the partial symbol table.
6320 (read_file_scope): If the compilation unit has a
6321 `DW_AT_macro_info' attribute, read its macro information.
6322 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6323
6324 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6325
6326 Fix PR gdb/546
6327 * ser-tcp.c: Don't include <netinet/udp.h>.
6328
6329 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6330
6331 * MAINTAINERS: Update my email address.
6332
6333 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
6334
6335 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6336 include file of the same name.
6337
6338 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6339
6340 * configure.tgt: Mark v850 as multi-arched.
6341 * config/v850/tm-v850.h: Remove file.
6342 * config/v850/v850.mt: Eliminate TM_FILE.
6343
6344 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6345
6346 * v850-tdep.c: Full multi-arch.
6347 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6348 Define GDB_MULTI_ARCH to 2.
6349
6350 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6351
6352 * p-exp.y (current_type): New static variable.
6353 Carries the type of the expression at the position that is parsed.
6354 (push_current_type, pop_current_type): Two new functions. Used
6355 to store/restore current_type in expression on specific tokens.
6356 (search_field): New static variable. Set to one after parsing a point
6357 as at that point only a FIELDNAME token should be searched.
6358 (FIELDNAME): New token. After a point only a token belonging to
6359 current_type type definition is allowed.
6360 (all over token rules): reset and change current_type according
6361 to rules.
6362 (exp '[' rule): insert implicit array index field if
6363 exp is a pascal string type.
6364
6365 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6366
6367 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6368 frame info. Use frame_info's saved_regs instead of matching member
6369 in extra_frame_info throughout.
6370 (v850_frame_init_saved_regs): New function.
6371 (v850_init_extra_frame_info): Move most functionality into
6372 v850_frame_init_saved_regs().
6373 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6374 (v850_frame_find_saved_regs): Remove declaration.
6375 (FRAME_FIND_SAVED_REGS): Remove definition.
6376 (v850_frame_init_saved_regs): Add declaration.
6377 (FRAME_INIT_SAVED_REGS): Add definition.
6378
6379 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6380
6381 * v850-tdep.c: Begin multi-arch'ing v850.
6382 (v850_target_architecture_hook): Remove function.
6383 (v850_gdbarch_init): New function. Add code previously in
6384 v850_target_architecture_hook().
6385 (_initialize_v850_tdep): Don't set target_architecture_hook.
6386 Call register_gdbarch_init() instead.
6387
6388 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6389
6390 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6391 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6392 (fixup_class_method_type): Likewise.
6393
6394 2002-05-15 Jim Blandy <jimb@redhat.com>
6395
6396 Add macro structures to GDB's symbol tables. Nobody puts anything
6397 in them yet.
6398 * symtab.h (struct symtab): New member: `macro_table'.
6399 * buildsym.h (pending_macros): New global variable.
6400 * buildsym.c: #include "macrotab.h".
6401 (buildsym_init): Initialize `pending_macros'.
6402 (end_symtab): If we found macro information while reading a CU's
6403 debugging info, do build a symtab structure for it. Make the
6404 symtab point to the macro information, and clear the
6405 `pending_macros' pointer which held it while we were reading the
6406 debug info.
6407 (really_free_pendings): Free any pending macro table.
6408 * objfiles.h (struct objfile): New member: `macro_cache'.
6409 * objfiles.c (allocate_objfile): Set allocate and free functions
6410 for the macro cache's objstack.
6411 (free_objfile): Empty the macro cache's obstack.
6412 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6413 set new allocate and free functions for it.
6414 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6415 free functions for the macro cache's objstack. (Why is this
6416 function building its own objfile?)
6417 * symmisc.c (print_objfile_statistics): Print statistics on the
6418 macro bcache.
6419 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6420
6421 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6422
6423 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6424 (REGISTER_U_ADDR): Delete definition.
6425 (arm_register_u_addr): Delete declaration.
6426
6427 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6428
6429 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6430 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6431
6432 2002-05-14 Andrew Cagney <ac131313@redhat.com>
6433
6434 * regcache.c (register_valid): Revise comments refering to "Not
6435 available" and "unavailable".
6436 * frame.c (frame_register_read): Ditto.
6437 * findvar.c (value_of_register): Ditto.
6438
6439 2002-05-15 Andrew Cagney <cagney@redhat.com>
6440
6441 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6442 (remote-sim.o): Update dependencies.
6443 (d10v-tdep.o): Specify dependencies.
6444 (sim_d10v_h): Define.
6445
6446 2002-05-14 Jim Blandy <jimb@redhat.com>
6447
6448 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6449 * macrotab.c (macro_lookup_inclusion, find_definition,
6450 new_macro_table): Same.
6451
6452 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6453 not `! strcmp ()'. This is a dubious improvement.
6454 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6455
6456 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6457 although it's not necessary, to avoid a warning.
6458
6459 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6460
6461 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6462 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6463 TYPE_INSTANCE_FLAGS.
6464 (struct main_type): New.
6465 (struct type): Move most members to struct main_type. Change
6466 cv_type and as_type to new type_chain member. Add instance_flags.
6467 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6468 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6469 (finish_cv_type): Remove prototype.
6470 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6471 Set TYPE_CHAIN.
6472 (alloc_type_instance): New function.
6473 (smash_type): New function.
6474 (make_pointer_type, make_reference_type, make_function_type)
6475 (smash_to_member_type, smash_to_method_type): Call smash_type.
6476 (make_qualified_type): New function.
6477 (make_type_with_address_space): Call make_qualified_type.
6478 (make_cv_type): Likewise.
6479 (finish_cv_type): Remove unnecessary function.
6480 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6481 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6482 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6483 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6484 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6485 * hpread.c (hpread_read_struct_type): Likewise.
6486 * stabsread.c (read_struct_type): Likewise.
6487
6488 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
6489
6490 * configure.tgt: Add a catch all sh* target, for cases like
6491 sh[2,3,4]-elf and sh-hms.
6492
6493 2002-05-14 Keith Seitz <keiths@redhat.com>
6494
6495 * event-loop.c (create_file_handler): Don't do anything but
6496 update data when we are given a fd which we are already
6497 monitoring.
6498
6499 2002-05-14 Michal Ludvig <mludvig@suse.cz>
6500
6501 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6502 (update_context): Use __func__ in warnings.
6503
6504 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6505
6506 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6507 and tcp_close to net_open and net_close.
6508 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6509 using UDP if requested. Don't try to disable Nagle on UDP
6510 sockets.
6511 * remote.c (remote_serial_open): New function. Warn about UDP.
6512 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6513
6514 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6515
6516 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6517
6518 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6519
6520 * configure.tgt: Remove sh-hms target.
6521 * MAINTAINERS: Don't list sh-hms as a separate target.
6522
6523 2002-05-13 Jim Blandy <jimb@redhat.com>
6524
6525 Add first preprocessor macro-expansion files.
6526 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6527 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6528 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6529 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6530 (COMMON_OBS): Add macrotab.o, macroexp.o.
6531 (macroexp.o, macrotab.o): New rules.
6532
6533 2002-05-13 Andrew Cagney <ac131313@redhat.com>
6534
6535 * config/m88k/tm-m88k.h: Update copyright.
6536 (m88k_target_write_pc): Declare
6537 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6538 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6539 (SHIFT_INST_REGS): Update definition.
6540 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6541 using old definition of TARGET_WRITE_PC.
6542 * regcache.c (generic_target_write_pc): Delete code handling
6543 NNPC_REGNUM.
6544 * gdbarch.sh (NNPC_REGNUM): Delete.
6545 * gdbarch.h, gdbarch.c: Regenerate.
6546
6547 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
6548
6549 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6550 builtin reg number.
6551
6552 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
6553
6554 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6555 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6556 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6557 access macros.
6558 * c-typeprint.c (cp_type_print_method_args): Likewise.
6559 (c_type_print_args): Likewise.
6560 * d10v-tdep.c (d10v_push_arguments): Likewise.
6561 (d10v_extract_return_value): Likewise.
6562 * expprint.c (print_subexp): Likewise.
6563 * gdbtypes.c (lookup_primitive_typename): Likewise.
6564 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6565 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6566 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6567 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6568 (TYPE_VECTOR): Likewise.
6569 * hpread.c (hpread_read_struct_type)
6570 (fix_static_member_physnames, fixup_class_method_type)
6571 (hpread_type_lookup): Likewise.
6572 * mdebugread.c (parse_symbol, parse_type): Likewise.
6573 * p-lang.c (is_pascal_string_type): Likewise.
6574 * valops.c (hand_function_call): Likewise.
6575 * x86-64-tdep.c (classify_argument): Likewise.
6576
6577 * hpread.c (hpread_read_function_type)
6578 (hpread_read_doc_function_type): Call replace_type.
6579 * dstread.c (create_new_type): Delete.
6580 (decode_dst_structure, process_dst_function): Call alloc_type.
6581 Use type access macros.
6582
6583 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6584
6585 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6586 the're not supported by the current architecture.
6587 (i387_fill_fxsave): Likewise.
6588
6589 2002-05-12 Fred Fish <fnf@redhat.com>
6590
6591 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6592 sect_index_xxx members to index the first slot in section_offsets
6593 if all of the section_offsets are zero.
6594
6595 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6596
6597 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6598 checked in with last change.
6599
6600 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6601
6602 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6603 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6604 config.sub.
6605
6606 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
6607
6608 * Makefile.in: Update dependencies.
6609
6610 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6611
6612 * language.c (local_hex_string_custom): Simplify. Do not depend
6613 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6614
6615 * memattr.c (mem_info_command): Replace calls to
6616 longest_local_hex_string and longest_local_hex_string_custom.
6617 * buildsym.c (make_blockvector): Ditto.
6618 * solib.c (info_sharedlibrary_command): Ditto.
6619 * tracepoint.c (tracepoints_info): Ditto.
6620 * symtab.c (print_msymbol_info): Ditto.
6621
6622 * language.c (local_hex_string): Delete.
6623 (local_hex_string_custom): Delete.
6624 (longest_local_hex_string): Rename to local_hex_string.
6625 (longest_local_hex_string_custom): Rename to
6626 local_hex_string_custom.
6627 * language.h (local_hex_string): Change parameter type to LONGEST.
6628 (local_hex_string_custom): Ditto.
6629 (longest_local_hex_string): Delete declaration.
6630 (longest_local_hex_string_custom): Ditto.
6631
6632 * solib.c: Update copyright.
6633 * memattr.c: Update copyright.
6634
6635 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6636
6637 * arch-utils.h (legacy_register_to_value): Declare.
6638 (legacy_value_to_register): Declare.
6639 (legacy_convert_register_p): Declare.
6640 * arch-utils.c (legacy_register_to_value): New function.
6641 (legacy_value_to_register): New function.
6642 (legacy_convert_register_p): New function.
6643
6644 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6645 (VALUE_TO_REGISTER): Define.
6646 (CONVERT_REGISTER_P): Define.
6647 * gdbarch.h, gdbarch.c: Regenerate.
6648
6649 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6650 VALUE_TO_REGISTER.
6651 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6652 CONVERT_REGISTER_P.
6653
6654 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
6655 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6656
6657 * Makefile.in: Update dependencies for valops.c.
6658 * valops.c: Include "gdb_assert.h".
6659 (typecmp): Skip THIS parameter to methods.
6660 (find_method_list): Remove static_memfuncp argument,
6661 update callers. Check for stub methods.
6662 (find_value_oload_method_list): Don't set *static_memfuncp.
6663 (find_overload_match): Don't check for stub methods. Assert
6664 that methods are not stubbed. Handle static methods.
6665 (value_find_oload_method_list): Remove static_memfuncp argument.
6666 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6667 to the argument list for static stub methods.
6668 * value.h (value_find_oload_method_list): Update prototype.
6669
6670 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6671
6672 * arch-utils.h (generic_register_size): Declare.
6673 (generic_register_raw_size, generic_register_virtual_size): Delete
6674 declarations.
6675 * arch-utils.c (generic_register_raw_size): Delete.
6676 (generic_register_size): New function.
6677 (generic_register_virtual_size): Delete.
6678
6679 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6680 default generic_register_size.
6681 * gdbarch.h, gdbarch.c: Re-generate.
6682
6683 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6684 register_virtual_size.
6685 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6686 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6687
6688 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6689
6690 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6691 * gdbarch.h, gdbarch.c: Regenerate.
6692 * gnu-v3-abi.c: Update copyright.
6693 (vtable_address_point_offset): Update.
6694 (gnuv3_rtti_type): Update.
6695 (gnuv3_baseclass_offset): Update.
6696 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6697 (init_fetch_link_map_offsets): Update.
6698 * remote.c (get_remote_state): Update.
6699
6700 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6701
6702 * TODO: Remove value_headof/value_from_vtable_info comment.
6703 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6704 * values.c (value_headof, value_from_vtable_info): Delete.
6705 * value.h (value_from_vtable_info): Delete prototype.
6706
6707 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6708
6709 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6710 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6711 $(gdb_regex_h).
6712 (gdb_assert_h): Define.
6713 (gdb_wait_h): Define.
6714 (gdb_regex_h): Define.
6715
6716 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6717
6718 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6719 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6720
6721 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6722
6723 * nbsd-tdep.c: Fix comment.
6724
6725 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6726
6727 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6728 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6729 (nbsd-tdep.o): New dependency list.
6730 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6731 nbsd-tdep.h.
6732 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6733 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6734 * nbsd-tdep.c: New file.
6735 * nbsd-tdep.h: New file.
6736 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6737 nbsd-tdep.h.
6738 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6739 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6740 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6741 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6742
6743 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6744
6745 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6746 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6747 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6748 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6749 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6750 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6751
6752 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6753
6754 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6755 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6756 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6757 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6758 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6759 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6760 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6761
6762 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6763
6764 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6765 fetch_elfcore_registers to...
6766 * i386nbsd-tdep.c: ...here.
6767 (i386nbsd_use_struct_convention): Rename to...
6768 (i386nbsd_aout_use_struct_convention): ...this.
6769 (i386nbsd_supply_reg): New function.
6770 (i386nbsd_fill_reg): New function.
6771 (fetch_core_registers): Use i386nbsd_supply_reg.
6772 (fetch_elfcore_registers): Likewise.
6773 (_initialize_i386nbsd_tdep): New function.
6774 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6775 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6776 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6777 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6778 (i386nbsd_aout_use_struct_convention): ...this.
6779
6780 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6781
6782 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6783 (store_inferior_registers): Use shnbsd_fill_reg.
6784 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6785 sh_nbsd_supply_register): Collapse into...
6786 (shnbsd_supply_reg): ...this.
6787 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6788 (shnbsd_fill_reg): ...this.
6789 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6790 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6791 (fetch_core_registers): Use shnbsd_supply_reg.
6792 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6793 (sh_nbsd_core_fns): Rename to...
6794 (shnbsd_core_fns): ...this.
6795 (sh_nbsd_elfcore_fns): Rename to...
6796 (shnbsd_elfcore_fns): ...this.
6797 (sh_nbsd_init_abi): Rename to...
6798 (shnbsd_init_abi): ...this.
6799 (_initialize_sh_nbsd_tdep): Rename to...
6800 (_initialize_shnbsd_tdep): ...this.
6801 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6802 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6803 sh_nbsd_fill_register): Remove prototypes.
6804 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6805
6806 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6807
6808 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6809 (i387-nat.o): Delete dependency list.
6810 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6811 (x86-64-linux-nat.o): Likewise.
6812 * i387-nat.c: Delete file, moving contents to...
6813 * i387-tdep.c: ...here.
6814 * i387-nat.h: Rename...
6815 * i387-tdep.h: ...to this.
6816 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6817 * i386-linux-nat.c: Likewise.
6818 * i386bsd-nat.c: Likewise.
6819 * i386gnu-nat.c: Likewise.
6820 * i386nbsd-nat.c: Likewise.
6821 * i386v4-nat.c: Likewise.
6822 * x86-64-linux-nat.c: Likewise.
6823 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6824 * config/i386/go32.mh (NATDEPFILES): Likewise.
6825 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6826 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6827 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6828 * config/i386/linux.mh (NATDEPFILES): Likewise.
6829 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6830 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6831 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6832 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6833
6834 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6835
6836 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6837 (alphanbsd-nat.o): Remove dependency list.
6838 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6839 * alphanbsd-nat.c: Delete. Contents moved to...
6840 * alphanbsd-tdep.c: ...here.
6841 (_initialize_alphanbsd_tdep): Register core functions.
6842 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6843
6844 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6845
6846 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6847 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6848 (alphanbsd-nat.o): Likewise.
6849 (alphabsd-tdep.o): New dependency list.
6850 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6851 (fill_gregset): Use alphabsd_fill_reg.
6852 (supply_fpregset): Use alphabsd_supply_fpreg.
6853 (fill_fpregset): Use alphabsd_fill_fpreg.
6854 (fetch_inferior_registers): Use struct reg and struct fpreg
6855 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6856 and alphabsd_supply_fpreg.
6857 (store_inferior_registers): Use struct reg and struct fpreg
6858 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6859 and alphabsd_fill_fpreg.
6860 * alphabsd-tdep.c: New file.
6861 * alphabsd-tdep.h: New file.
6862 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6863 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6864 alphabsd_supply_fpreg.
6865 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6866 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6867
6868 2002-05-11 Eric Christopher <echristo@redhat.com>
6869
6870 * mips-tdep.c (mips_double_register_type): Fix thinko.
6871 (mips_single_register_type): Ditto.
6872 * MAINTAINERS: Add self.
6873
6874 2002-05-11 Mark Kettenis <kettenis@gnu.org>
6875
6876 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6877 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6878 right thing on architectures with different endianness and/or
6879 integer sizes.
6880
6881 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6882
6883 From Christian Limpach <chris@Pin.LU>
6884 * configure.in: Change sed expression which comments out
6885 NATDEPFILES to also comment out continuation lines.
6886 * configure: Regenerate.
6887
6888 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6889
6890 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6891 big patch.
6892
6893 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6894
6895 * sh-tdep.c: Include correct file.
6896
6897 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6898
6899 New support for sh64-elf (sh5) target.
6900
6901 * configure.tgt: For sh64-elf target, default to sh-elf.
6902
6903 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6904 (struct gdbarch_tdep): Add new fields for new registers and ABI
6905 info.
6906
6907 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6908 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6909 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6910 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6911 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6912 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6913 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6914 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6915 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6916 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6917 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6918 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6919 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6920 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6921 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6922 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6923 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6924 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6925 sign_extend, sh64_nofp_frame_init_saved_regs,
6926 sh64_init_extra_frame_info, sh64_get_saved_register,
6927 sh64_extract_struct_value_address, sh64_pop_frame,
6928 sh64_push_arguments, sh64_extract_return_value,
6929 sh64_store_return_value, sh64_show_media_regs,
6930 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6931 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6932 sh_sh64_register_virtual_type,
6933 sh_sh64_register_convert_to_virtual,
6934 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6935 sh64_register_read, sh64_pseudo_register_write,
6936 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6937 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6938 sh64_do_pseudo_register, sh_compact_do_registers_info,
6939 sh64_do_registers_info, sh_gdbarch_init): New functions.
6940
6941 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6942
6943 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6944
6945 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
6946
6947 * linespec.c (decode_line_1): Check for a double quote after
6948 a filename correctly.
6949
6950 2002-05-10 Jim Blandy <jimb@redhat.com>
6951
6952 Properly track the size of the current objfile's .debug_line section.
6953 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6954 (DWARF_LINE_SIZE): New macro.
6955 (dwarf2_build_psymtabs_hard): Record the line section's size in
6956 the partial symbol table.
6957 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6958 symbol table.
6959
6960 2002-05-10 Petr Sorfa <petrs@caldera.com>
6961
6962 * ia64-tdep.c: Handle breakpoints on L instruction type
6963 in MLX instruction bundle by moving the breakpoint to
6964 the third slot (X instruction type) as L holds only data.
6965
6966 2002-05-10 Kevin Buettner <kevinb@redhat.com>
6967
6968 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6969 (process_one_symbol): Complain about discarding local symbols
6970 due to a misplaced N_LBRAC entry.
6971
6972 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
6973
6974 From Daniel Berlin <dan@cgsoftware.com>
6975 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6976 decrease the depth we are at, in the case of templates.
6977
6978 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6979
6980 * mips-tdep.c (mips_float_register_type): New function.
6981 (mips_double_register_type): New function.
6982 (mips_print_register): Use them.
6983 (do_fp_register_row): Likewise.
6984
6985 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6986
6987 * signals/signals.c (signals): Remove conditional compilation around
6988 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6989 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
6990
6991 2002-05-09 Michael Snyder <msnyder@redhat.com>
6992
6993 * remote-rdp.c (remote_rdp_can_run): Remove.
6994
6995 2002-05-09 Tom Tromey <tromey@redhat.com>
6996
6997 * jv-valprint.c (java_val_print): Handle `char' as a special case
6998 of TYPE_CODE_INT.
6999
7000 2002-05-09 Michael Snyder <msnyder@redhat.com>
7001
7002 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
7003 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
7004 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
7005 str r(0123),[sp,#nn].
7006 (arm_skip_prologue): Ditto. Also make disassembly
7007 order-independent by placing it in a loop.
7008
7009 2002-05-06 Michael Snyder <msnyder@redhat.com>
7010
7011 * stabsread.c (read_type): Add recognition for new attribute:
7012 "@V;" means that an array type is actually a vector.
7013 This is analogous to the vector flag that's been added to dwarf2.
7014
7015 2002-05-09 Mark Kettenis <kettenis@gnu.org>
7016
7017 * i386-tdep.h (i386_abi): New enum.
7018 (struct gdbarch_tdep): Replace os_ident member with abi.
7019 (i386_gdbarch_register_os_abi): New prototype.
7020 * i386-tdep.c (i386_abi_names): New array.
7021 (process_note_abi_tag_sections): Removed.
7022 (process_note_sections): New function.
7023 (i386_elf_abi_from_note, i386_elf_abi): New functions.
7024 (struct i386_abi_handler): New struct.
7025 (i386_abi_handler_list): New variable.
7026 (i386_gdbarch_register_os_abi): New function.
7027 (i386_gdbarch_init): Adapt for the changes given above.
7028
7029 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
7030
7031 * gregset.h: Say "GNU/Linux".
7032
7033 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
7034
7035 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7036 (build_gdbtypes): Build builtin_type_v2_float.
7037 (_initialize_gdbtypes): Register new builtin type.
7038
7039 2002-05-08 Andrew Cagney <ac131313@redhat.com>
7040
7041 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7042 (clear_gdbarch_swap): New function.
7043 (initialize_non_multiarch): Call.
7044 (gdbarch_update_p): Before calling init(), swap out and clear the
7045 existing architecture.
7046 * gdbarch.c: Regenerate.
7047
7048 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7049
7050 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7051 alphanbsd-tdep.c.
7052
7053 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7054
7055 * sh-nbsd-nat.c: Rename to...
7056 * shnbsd-nat.c: ...this.
7057 * sh-nbsd-tdep.c: Rename to...
7058 * shnbsd-tdep.c: ...this.
7059 * sh-nbsd-tdep.h: Rename to...
7060 * shnbsd-tdep.h: ...this.
7061 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7062 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7063
7064 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
7065
7066 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7067 concatenation for command help messages.
7068
7069 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7070
7071 * NEWS: Note new sh*-*-netbsdelf* configuration.
7072 * configure.host: Set gdb_host_cpu to sh for all sh*.
7073 (sh*-*-netbsdelf*): New host.
7074 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7075 (sh*-*-netbsdelf*): New target.
7076 * sh-nbsd-nat.c: New file.
7077 * sh-nbsd-tdep.c: New file.
7078 * sh-nbsd-tdep.h: New file.
7079 * config/sh/nbsd.mh: New file.
7080 * config/sh/nbsd.mt: New file.
7081 * config/sh/nm-nbsd.h: New file.
7082 * config/sh/tm-nbsd.h: New file.
7083
7084 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7085
7086 * sh-tdep.c (sh_osabi_names): Declare.
7087 (process_note_abi_tag_sections): New function.
7088 (get_elfosabi): Ditto.
7089 (sh_gdbarch_register_os_abi): Ditto.
7090 (sh_dump_tdep): Ditto.
7091 _initialize_sh_tdep): Use gdbarch_register to register
7092 sh_gdbarch_init and sh_dump_tdep.
7093 * config/sh/tm-sh.h (sh_osabi): Declare.
7094 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7095
7096 2002-05-07 Andrew Cagney <ac131313@redhat.com>
7097
7098 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7099 (thumb_scan_prologue): Ditto.
7100 (arm_find_callers_reg): Ditto.
7101 (arm_frame_chain): Ditto.
7102 (arm_init_extra_frame_info): Ditto.
7103 (arm_frame_saved_pc): Ditto.
7104 (arm_pop_frame): Ditto.
7105 (arm_push_return_address): New function.
7106 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7107 call_dummy_location, call_dummy_breakpoint_offset_p,
7108 call_dummy_breakpoint_offset, call_dummy_p,
7109 call_dummy_stack_adjust_p, call_dummy_words,
7110 sizeof_call_dummy_words, call_dummy_start_offset,
7111 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7112 call_dummy_address, push_return_address and push_dummy_frame for
7113 generic dummy frames.
7114
7115 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7116
7117 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7118 size computation for alloca.
7119 (sh_fp_frame_init_saved_regs): Likewise.
7120
7121 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
7122
7123 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7124 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
7125 * arm-tdep.c (arm_store_return_value): Use them.
7126 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7127 * remote-rdp.c (remote_rdp_fetch_register): Use
7128 ARM_MAX_REGISTER_RAW_SIZE.
7129 (remote_rdp_store_register): Likewise.
7130
7131 2002-05-07 Michal Ludvig <mludvig@suse.cz>
7132
7133 * dwarf2cfi.c: Code cleanup, removed unused variables,
7134 added default labels to switch {} statements.
7135 * x86-64-tdep.c: Ditto.
7136 * x86-64-linux-nat.c: Ditto.
7137
7138 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7139
7140 * solib.h: Protect against multiple inclusion.
7141
7142 2002-05-06 Jim Blandy <jimb@redhat.com>
7143
7144 Add first preprocessor macro-expansion files.
7145 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7146 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7147 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7148 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7149 (COMMON_OBS): Add macrotab.o, macroexp.o.
7150 (macroexp.o, macrotab.o): New rules.
7151
7152 Separate the job of reading the line number info statement program
7153 header (...expialidocious) out into its own function.
7154 * dwarf2read.c (struct line_head, struct filenames, struct
7155 directories): Replace with...
7156 (struct line_header): New structure, containing the full
7157 contents of the statement program header, including the
7158 include directory and file name tables.
7159 (read_file_scope): If we have line number info, instead of just
7160 calling dwarf_decode_lines to do all the work, call
7161 dwarf_decode_line_header first to get a `struct line_header'
7162 containing the data in the statement program header, and then
7163 pass that to dwarf_decode_lines, which will pick up where that
7164 left off. Be sure to clean up the `struct line_header' object.
7165 (dwarf_decode_line_header, free_line_header, add_include_dir,
7166 add_file_name): New functions.
7167 (dwarf_decode_lines): Move all the code to read the statement
7168 program header into dwarf_decode_line_header. Take the line
7169 header it built as the first argument, instead of the offset to
7170 the compilation unit's line number info. Use the new `struct
7171 line_header' type instead of the old structures. No need to do
7172 cleanups here now, since we don't allocate anything.
7173 (dwarf2_statement_list_fits_in_line_number_section,
7174 dwarf2_line_header_too_long): New complaints.
7175
7176 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
7177
7178 * gdbtypes.c (init_vector_type): New function.
7179 (build_builtin_type_vec128): Simplify the representation of SIMD
7180 registers.
7181 (build_gdbtypes): Initialize new builtin vector types.
7182 (_initialize_gdbtypes): Register new vector types with gdbarch.
7183 (builtin_type_v4_float, builtin_type_v4_int32,
7184 builtin_type_v8_int16, builtin_type_v16_int8,
7185 builtin_type_v2_int32, builtin_type_v4_int16,
7186 builtin_type_v8_int8): New (renamed) SIMD types.
7187
7188 2002-05-06 Mark Kettenis <kettenis@gnu.org>
7189
7190 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7191 (i387_fill_fxsave): Likewise.
7192
7193 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
7194
7195 * alpha-tdep.c (alpha_extract_return_value): Don't use
7196 non-constant array size in prototype.
7197
7198 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7199
7200 From Brian Taylor <briant at model dot com>:
7201 * ui-out.c (ui_out_field_core_addr): Use the function
7202 longest_local_hex_string_custom'to format addresses > 32 bits
7203 wide.
7204
7205 * ui-out.c (ui_out_field_core_addr): Update comment.
7206
7207 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7208
7209 * stack.c (select_and_print_frame): Make static. Delete the
7210 parameter `level'.
7211 (func_command): Update call.
7212 (select_frame_command): Delete code computing the frame level.
7213 * frame.h (select_and_print_frame): Delete declaration.
7214
7215 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7216
7217 * sparc-tdep.c (sparc_get_saved_register): Comment why
7218 get_prev_frame call is safe.
7219
7220 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7221
7222 * frame.h (select_frame): Delete level parameter.
7223 * stack.c (select_frame): Update. Use frame_relative_level to
7224 obtain the frame's level.
7225 (select_and_print_frame): Update call.
7226 (select_frame_command): Ditto.
7227 (up_silently_base): Ditto.
7228 (down_silently_base): Ditto.
7229 * ocd.c (ocd_start_remote): Ditto.
7230 * remote-rdp.c (remote_rdp_open): Ditto.
7231 * remote-mips.c (mips_initialize): Ditto.
7232 (common_open): Ditto.
7233 * remote-e7000.c (e7000_start_remote): Ditto.
7234 * m3-nat.c (select_thread): Ditto.
7235 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7236 (child_get_current_exception_event): Ditto.
7237 * varobj.c (varobj_create): Ditto.
7238 (varobj_update): Ditto.
7239 (c_value_of_root): Ditto.
7240 * tracepoint.c (finish_tfind_command): Ditto.
7241 * corelow.c (core_open): Ditto.
7242 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7243 * thread.c (info_threads_command): Ditto.
7244 (switch_to_thread): Ditto.
7245 * infrun.c (normal_stop): Ditto.
7246 (restore_selected_frame): Ditto.
7247 (restore_inferior_status): Ditto.
7248 * breakpoint.c (insert_breakpoints): Ditto.
7249 (watchpoint_check): Ditto.
7250 (bpstat_stop_status): Ditto.
7251 (do_enable_breakpoint): Ditto.
7252 * blockframe.c (flush_cached_frames): Ditto.
7253 (reinit_frame_cache): Ditto.
7254
7255 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7256
7257 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7258 maintainer.
7259
7260 2002-05-04 Jim Blandy <jimb@redhat.com>
7261
7262 * gdbtypes.c (replace_type): Doc fix.
7263
7264 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7265
7266 * valprint.c (strcat_longest): Delete commented out function.
7267 Update copyright.
7268
7269 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7270
7271 * MAINTAINERS: Mark a29k as deleted.
7272 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7273 Move new configurations to the top.
7274 * configure.tgt: Remove a29k.
7275 * config/a29k/tm-vx29k.h: Delete.
7276 * config/a29k/vx29k.mt: Delete.
7277 * config/a29k/tm-a29k.h: Delete.
7278 * config/a29k/a29k-udi.mt: Delete.
7279 * config/a29k/a29k.mt: Delete.
7280 * a29k-tdep.c: Delete.
7281 * remote-udi.c: Delete.
7282 * remote-mm.c: Delete.
7283 * remote-eb.c: Delete.
7284 * remote-adapt.c: Delete.
7285 * Makefile.in: Remove obsolete code.
7286 * config/s390/s390x.mt: Ditto.
7287 * config/s390/s390.mt: Ditto.
7288 * config/sparc/sparclynx.mh: Ditto.
7289 * config/sparc/linux.mh: Ditto.
7290 * config/pa/hppaosf.mh: Ditto.
7291 * config/pa/hppabsd.mh: Ditto.
7292 * config/ns32k/nbsd.mt: Ditto.
7293 * config/mips/vr5000.mt: Ditto.
7294 * config/m68k/sun3os4.mh: Ditto.
7295 * config/m68k/nbsd.mt: Ditto.
7296 * config/m68k/m68klynx.mh: Ditto.
7297 * config/m32r/m32r.mt: Ditto.
7298 * config/i386/x86-64linux.mt: Ditto.
7299 * config/i386/nbsdelf.mt: Ditto.
7300 * config/i386/nbsd.mt: Ditto.
7301 * config/i386/i386lynx.mh: Ditto.
7302
7303 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7304
7305 * target.c (debug_print_register): New function. Handle oversize
7306 registers.
7307 (debug_to_fetch_registers): Call.
7308 (debug_to_store_registers): Call.
7309
7310 2002-05-03 Jim Blandy <jimb@redhat.com>
7311
7312 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7313 (read_type): Doc fix.
7314 * gdbtypes.c (replace_type): Doc fix.
7315
7316 * stabsread.c (multiply_defined_struct): New complaint.
7317 (read_struct_type): If the type we were passed isn't empty, or
7318 incomplete, don't read the new struct type into it; complain,
7319 and return the original type unchanged. Take a new `type_code'
7320 argument, which is the type code for the new type.
7321 (read_type): Rather than storing the type's type code here, pass
7322 it as an argument to read_struct_type, and let that take care of
7323 storing it. That way, we don't overwrite the original type code,
7324 so read_struct_type can use it to decide whether we're overwriting
7325 something we shouldn't.
7326 (complain_about_struct_wipeout): New function.
7327
7328 2002-05-03 Andrew Cagney <ac131313@redhat.com>
7329
7330 * gdbarch.sh: Assert that gdbarch is non-NULL.
7331 * gdbarch.c: Regenerate.
7332
7333 2002-05-03 Jason Merrill <jason@redhat.com>
7334
7335 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7336 and return NULL.
7337
7338 2002-05-03 Michal Ludvig <mludvig@suse.cz>
7339
7340 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7341 (x86_64_dwarf2gdb_regno_map_length),
7342 (x86_64_dwarf2_reg_to_regnum): Added.
7343 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7344 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7345 (_initialize_x86_64_tdep): Synced with the change above.
7346 (x86_64_skip_prologue): Reformulated message.
7347
7348 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7349
7350 * f-exp.y: Also use new prev_lexptr variable
7351 to improve error reporting. Based on Michael Snyder
7352 2002-04-24 dated patch to c-exp.y.
7353 * jv-exp.y: Likewise.
7354 * m2-exp.y: Likewise.
7355
7356 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
7357
7358 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7359 we are dealing with vectors.
7360
7361 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7362
7363 * config/m68k/tm-nbsd.h: Obvious fix,
7364 correct machine name.
7365
7366 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7367
7368 * p-typeprint.c (pascal_type_print_base): Add support
7369 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7370
7371 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7372
7373 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7374 for fondamental pascal 'char' type.
7375
7376 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7377
7378 * p-lang.h (is_pascal_string_type): Declaration changed,
7379 new sixth argument of type char ** added.
7380 * p-lang.c (is_pascal_string_type): Implementation
7381 changed. Args length_pos, length_size, string_pos, char_size
7382 can now be NULL. New argument arrayname set to the field
7383 name of the char array. Return value set to char array
7384 field index plus one.
7385 * p-valprint.c (pascal_val_print): Adapt to new declaration of
7386 is_pascal_string_type function.
7387
7388 2002-05-02 Andrew Cagney <cagney@redhat.com>
7389
7390 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7391 <cagney@redhat.com> change.
7392 * gdbarch.c: Regenerate.
7393
7394 2002-05-02 Andrew Cagney <cagney@redhat.com>
7395
7396 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7397 before probing for a new one. Detect errorenous gdbarch_init
7398 functions.
7399 * gdbarch.c: Regenerate.
7400
7401 2002-05-01 Andrew Cagney <cagney@redhat.com>
7402
7403 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7404 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7405 * config/v850/tm-v850.h: Ditto. Update copyright.
7406
7407 2002-04-30 Andrew Cagney <ac131313@redhat.com>
7408
7409 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7410 current_gdbarch.
7411
7412 2002-04-30 Michael Snyder <msnyder@redhat.com>
7413
7414 * arm-tdep.c: Whitespace clean-ups.
7415 (arm_skip_prologue): Fix thinko; two lines
7416 should have been removed as part of 4/24 change.
7417
7418 2002-04-30 Kevin Buettner <kevinb@redhat.com>
7419
7420 * rs6000-tdep.c: Added comment describing how fpscr register
7421 numbers were chosen.
7422
7423 2002-04-30 Michael Snyder <msnyder@redhat.com>
7424
7425 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7426
7427 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7428
7429 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7430 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7431 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7432
7433 2002-04-29 Kevin Buettner <kevinb@redhat.com>
7434
7435 From Louis Hamilton <hamilton@redhat.com>:
7436 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7437 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7438 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7439 not bfd-private xcoff data, to determine wordsize.
7440 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7441
7442 2002-04-29 Andrew Cagney <ac131313@redhat.com>
7443
7444 GDB 5.2 released from 5.2 branch.
7445
7446 2002-04-29 Michal Ludvig <mludvig@suse.cz>
7447
7448 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7449 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7450 (x86_64_register_info_table): Added comments with register numbers.
7451
7452 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7453
7454 * rs6000-tdep.c (rs6000_extract_return_value,
7455 rs6000_store_return_value): Handle returning vectors.
7456 (rs6000_gdbarch_init): Use
7457 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7458 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7459 New function.
7460 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7461 vectors.
7462 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7463 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7464
7465 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7466
7467 * hpread.c (hpread_psymtab_to_symtab_1,
7468 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7469 with fprintf_unfiltered (gdb_stderr,...).
7470
7471 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7472
7473 * remote-array.c (printf_monitor, write_monitor,
7474 array_insert_breakpoint, array_remove_breakpoint ):
7475 Replace fprintf (stderr,...
7476 with fprintf_unfiltered (gdb_stderr,....
7477 * remote-es.c: Likewise.
7478 * remote-os9k.c: Likewise.
7479 * remote-st.c: Likewise.
7480
7481 2002-04-28 Andreas Schwab <schwab@suse.de>
7482
7483 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7484 linux-proc.o and gcore.o.
7485
7486 2002-04-26 Michal Ludvig <mludvig@suse.cz>
7487
7488 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7489 code without frame pointers.
7490
7491 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7492
7493 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7494 ON_STACK is needed.
7495
7496 2002-04-26 Ben Elliston <bje@redhat.com>
7497
7498 * target.c (do_xfer_memory): Correct reference to the new option
7499 "trust-readonly-sections".
7500
7501 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
7502
7503 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7504 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7505 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7506 vectors.
7507 (read_array_type): Record the fact that this array type is really a
7508 vector (i.e. are passed in by value).
7509
7510 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7511
7512 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7513 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7514 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7515 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7516 * alpha-linux-tdep.c: Include frame.h.
7517 (alpha_linux_sigcontext_addr): New function.
7518 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7519 alpha_linux_sigcontext_addr.
7520 * alpha-osf1-tdep.c: Include gdbcore.h.
7521 (alpha_osf1_sigcontext_addr): New function.
7522 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7523 alpha_osf1_sigcontext_addr.
7524 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7525 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7526
7527 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7528
7529 * stack.c (selected_frame_level):
7530 (select_frame): Do not set selected_frame_level.
7531 * frame.h (selected_frame_level): Delete declaration.
7532
7533 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7534
7535 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7536 convert_from_func_ptr-addr when AIX / PowerOpen.
7537
7538 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7539
7540 * valops.c (hand_function_call): Call
7541 generic_save_call_dummy_addr.
7542 * frame.h (generic_save_call_dummy_addr): Declare.
7543 * blockframe.c (struct dummy_frame): Add fields call_lo and
7544 call_hi.
7545 (generic_find_dummy_frame): Check for PC in range call_lo to
7546 call_hi instead of entry_point_address.
7547 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7548 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7549 (generic_save_call_dummy_addr): New function.
7550
7551 2002-04-24 David S. Miller <davem@redhat.com>
7552
7553 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7554 sparc_skip_prologue.
7555 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7556 information to find prologue when possible.
7557 (sparc_prologue_frameless_p): Call examine_prologue directly.
7558 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7559 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7560 second argument.
7561 (SKIP_PROLOGUE): Likewise.
7562
7563 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7564
7565 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7566 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7567 indicate that the condition it was testing is always true.
7568 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7569 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7570 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7571
7572 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7573
7574 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7575 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7576 tdep->jb_pc and tdep->jb_elt_size.
7577 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7578 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7579 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7580 * alpha-nat.c (get_longjmp_target): Remove.
7581 (JB_ELEMENT_SIZE): Ditto.
7582 (JB_PC): Ditto.
7583 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7584 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7585 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7586 to alpha_get_longjmp_target.
7587 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7588 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7589 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7590
7591 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7592
7593 * README: Update to GDB 5.2.
7594
7595 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7596
7597 * gdbarch.sh (LC_ALL): Set to `c'.
7598
7599 2002-04-25 Theodore A. Roth <troth@verinet.com>
7600
7601 * avr-tdep.c: Ran through gdb_indent.sh.
7602
7603 2002-04-25 Theodore A. Roth <troth@verinet.com>
7604
7605 * MAINTAINERS: Add myself as AVR maintainer.
7606 * NEWS: Note new target avr.
7607
7608 2002-04-25 Theodore A. Roth <troth@verinet.com>
7609
7610 * Makefile.in: Add support for AVR target.
7611 * configure.tgt: Add support for AVR target.
7612 * avr-tdep.c: New file
7613 * config/avr/avr.mt: New file.
7614
7615 2002-04-25 Theodore A. Roth <troth@verinet.com>
7616
7617 * MAINTAINERS: Add myself to write-after-approval.
7618
7619 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7620
7621 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7622 with fprintf_unfiltered (gdb_stderr,....
7623
7624 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7625
7626 Fix PR gdb/508.
7627 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7628
7629 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7630
7631 * p-exp.y: Also use new prev_lexptr variable
7632 to improve error reporting. Based on Michael Snyder
7633 2002-04-24 dated patch to c-exp.y.
7634
7635 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7636
7637 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7638 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7639 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7640 to 0.
7641 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7642 and struct value.
7643 (FUNCTION_START_OFFSET): Remove.
7644 (BREAKPOINT): Ditto.
7645
7646 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7647
7648 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7649 * NEWS: Ditto.
7650
7651 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7652
7653 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7654 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7655 alpha_linux_pc_in_sigtramp.
7656 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7657 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7658 alpha_osf1_pc_in_sigtramp.
7659 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7660 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7661 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7662 alphafbsd_pc_in_sigtramp.
7663 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7664 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7665 alphanbsd_pc_in_sigtramp.
7666 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7667 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7668
7669 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7670
7671 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7672
7673 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7674
7675 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7676 alphanbsd-tdep.c.
7677 (alphanbsd-nat.o): New dependency list.
7678 (alphanbsd-tdep.o): Ditto.
7679 * NEWS: Note new native NetBSD/alpha configuration.
7680 * alphanbsd-nat.c: New file.
7681 * alphanbsd-tdep.c: Ditto.
7682 * configure.host (alpha*-*-netbsd*): New host.
7683 * configure.tgt (alpha*-*-netbsd*): New target.
7684 * config/alpha/nbsd.mh: New file.
7685 * config/alpha/nbsd.mt: Ditto.
7686 * config/alpha/nm-nbsd.h: Ditto.
7687 * config/alpha/tm-nbsd.h: Ditto.
7688
7689 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7690
7691 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7692 (alpha-osf1-tdep.o): New dependency list.
7693 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7694 and skip_sigtramp_frame members.
7695 * alpha-linux-tdep.c: Include gdbcore.h.
7696 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7697 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7698 * alpha-osf1-tdep.c: New file.
7699 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7700 alpha-osf1-dep.c.
7701 (alpha_frame_past_sigtramp_frame): New function.
7702 (alpha_dynamic_sigtramp_offset): Ditto.
7703 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7704 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7705 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7706 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7707 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7708 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7709 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7710 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7711 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7712 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7713 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7714 to find_solib_trampoline_target.
7715 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7716 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7717 (SKIP_TRAMPOLINE_CODE): Remove.
7718 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7719 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7720 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7721 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7722 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7723 (PROC_SIGTRAMP_MAGIC): Ditto.
7724 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7725 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7726 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7727 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7728 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7729
7730 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7731
7732 * NEWS: Note that Alpha targets are now multi-arch.
7733
7734 2002-04-24 Michael Snyder <msnyder@redhat.com>
7735
7736 * parser-defs.h (prev_lexptr): New external variable.
7737 * parse.c (parse_exp_1): Set prev_lexptr to null before
7738 calling the language-specific parser.
7739 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7740 (yyerror): Use prev_lexptr in error reporting.
7741
7742 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
7743
7744 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7745 * gregset.h: If FILL_FPXREGSET is defined, provide
7746 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7747 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7748 is defined, call fill_fpxregset.
7749
7750 2002-04-24 Roland McGrath <roland@frob.com>
7751
7752 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7753 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7754 (supply_gregset, supply_fpregset): New functions.
7755
7756 * gnu-nat.c (gnu_find_memory_regions): New function.
7757 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7758 (gnu_xfer_memory): Add a cast.
7759
7760 2002-04-24 Michael Snyder <msnyder@redhat.com>
7761
7762 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
7763 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7764 of argument regs ("str r(0123), [r11, #-nn"]).
7765 (arm_skip_prologue): Better handling for frameless functions.
7766 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7767 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7768
7769 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7770
7771 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7772 NUM_PSEUDO_REGS can be used.
7773
7774 2002-04-24 Andrew Cagney <ac131313@redhat.com>
7775
7776 * arch-utils.h: Update copyright.
7777
7778 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7779 * gdbarch.h, gdbarch.c: Re-generate.
7780
7781 * inferior.h (IN_SIGTRAMP): Delete definition.
7782 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7783 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7784
7785 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7786 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7787 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7788 (find_proc_framesize): Ditto.
7789 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7790 (alpha_init_extra_frame_info): Ditto.
7791 * infrun.c (handle_inferior_event): Ditto.
7792 (handle_inferior_event): Ditto.
7793 (check_sigtramp2): Ditto.
7794 * blockframe.c (create_new_frame): Ditto.
7795 (get_prev_frame): Ditto.
7796 * ppc-linux-tdep.c: Update comments.
7797 * i386-linux-tdep.c: Update comments.
7798 * breakpoint.c (bpstat_what): Update comment.
7799
7800 2002-04-24 David S. Miller <davem@redhat.com>
7801
7802 * i960-tdep.c (register_in_window_p): New function.
7803 (i960_find_saved_register): Use it instead of
7804 REGISTER_IN_WINDOW_P.
7805 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7806
7807 * symtab.h (find_stab_function_addr): Kill extern.
7808 * minsyms.c (find_stab_function_addr): Remove from here...
7809 * dbxread.c: ... to here, and mark it static.
7810
7811 2002-04-20 David S. Miller <davem@redhat.com>
7812
7813 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7814 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7815
7816 2002-04-21 David S. Miller <davem@redhat.com>
7817
7818 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7819 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7820 (vx_write_register): Likewise.
7821
7822 2002-04-23 J. Brobecker <brobecker@gnat.com>
7823
7824 * source.c (is_regular_file): New function.
7825 (openp): Check wether file to open is a regular file
7826 to avoid opening directories.
7827
7828 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7829
7830 * findvar.c (extract_signed_integer): Cast printf argument
7831 to suppress format warning.
7832 (extract_unsigned_integer): Likewise.
7833 * infcmd.c (registers_info): Likewise.
7834 * top.c (get_prompt_1): Likewise.
7835 * valops.c (value_assign): Likewise.
7836 * valprint.c (print_decimal): Likewise.
7837
7838 2002-04-22 H.J. Lu (hjl@gnu.org)
7839
7840 * c-exp.y (typebase): Support
7841
7842 [long|long long|short] [signed|unsigned] [int|]
7843
7844 and
7845
7846 signed [long|long long|short] int
7847
7848 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7849
7850 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7851 and vax-tdep.h.
7852 * vax-tdep.h: New file.
7853 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7854 Make several routines static.
7855 (vax_get_saved_register): New function.
7856 (vax_gdbarch_init): New function.
7857 (_initialize_vax_tdep): Register vax_gdbarch_init.
7858 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7859 Remove macros now under the control of gdbarch.
7860
7861 2002-04-22 Michael Snyder <msnyder@redhat.com>
7862
7863 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7864 Some whitespace and coding standards tweaks.
7865
7866 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7867
7868 * vax-tdep.c: Include regcache.h.
7869 (vax_call_dummy_words): New.
7870 (sizeof_vax_call_dummy_words): New.
7871 (vax_fix_call_dummy): New function.
7872 (vax_saved_pc_after_call): Ditto.
7873 * config/vax/tm-vax.h: Don't include regcache.h.
7874 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7875 (CALL_DUMMY): Remove.
7876 (CALL_DUMMY_WORDS): Define.
7877 (SIZEOF_CALL_DUMMY_WORDS): Define.
7878 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7879
7880 2002-04-18 Michael Snyder <msnyder@redhat.com>
7881
7882 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7883
7884 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7885
7886 * vax-tdep.c (vax_frame_chain): New function.
7887 (vax_push_dummy_frame): Ditto.
7888 (vax_pop_frame): Ditto.
7889 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7890 (FRAMELESS_FUNCTION_INVOCATION): Use
7891 generic_frameless_function_invocation_not.
7892 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7893 (POP_FRAME): Use vax_pop_frame.
7894
7895 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7896
7897 * vax-tdep.c (vax_store_struct_return): New function.
7898 (vax_extract_return_value): Ditto.
7899 (vax_store_return_value): Ditto.
7900 (vax_extract_struct_value_address): Ditto.
7901 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7902 vax_store_struct_return.
7903 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7904 (STORE_RETURN_VALUE): Use vax_store_return_value.
7905 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7906
7907 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7908
7909 * vax-tdep.c (vax_frame_saved_pc): New function.
7910 (vax_frame_args_address_correct): Ditto.
7911 (vax_frame_args_address): Ditto.
7912 (vax_frame_locals_address): Ditto.
7913 (vax_frame_num_args): Move code to be in proximity to
7914 other frame-related functions.
7915 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7916 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7917 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7918 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7919 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7920
7921 2002-04-22 H.J. Lu (hjl@gnu.org)
7922
7923 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7924 includedir.
7925
7926 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7927
7928 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7929 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7930 (FRAME_INIT_SAVED_REGS): New macro.
7931
7932 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7933
7934 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7935
7936 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7937
7938 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7939 where needed.
7940 (fetch_osf_core_registers): Likewise.
7941 (supply_gregset): Likewise.
7942
7943 2002-04-22 J. Brobecker <brobecker@gnat.com>
7944
7945 * symfile.h (get_section_index): Define.
7946 * symfile.c (get_section_index): New function.
7947 * mdebugread.c (SC_IS_SBSS): New macro.
7948 (SC_IS_BSS): Return true for the scBss storage class only, as
7949 the scSBss storage class refers to the .sbss section.
7950 (parse_partial_symbols): Discard the symbols which associated
7951 section does not exist.
7952 Make sure to use the .sbss section index for symbols which
7953 storage class is scBss, rather than using the .bss section index.
7954
7955 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7956
7957 * vax-tdep.c: Update copyright years.
7958 (vax_register_name): New function.
7959 (vax_register_byte): Ditto.
7960 (vax_register_raw_size): Ditto.
7961 (vax_register_virtual_size): Ditto.
7962 (vax_register_virtual_type): Ditto.
7963 * config/vax/tm-vax.h: Update copyright years.
7964 (REGISTER_NAMES): Remove.
7965 (REGISTER_NAME): Define.
7966 (REGISTER_BYTE): Use vax_register_byte.
7967 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7968 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7969 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7970
7971 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7972
7973 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7974 declaration
7975 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7976
7977 2002-04-21 David S. Miller <davem@redhat.com>
7978
7979 * arch-utils.c (generic_prologue_frameless_p): Kill
7980 SKIP_PROLOGUE_FRAMELESS_P code.
7981 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7982 references.
7983 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7984 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7985 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7986 references.
7987 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7988 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7989 (sparc_gdbarch_init): Pass it to
7990 set_gdbarch_prologue_frameless_p.
7991
7992 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7993
7994 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7995 (alphabsd-nat.o): New dependency list.
7996
7997 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7998
7999 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8000 alphafbsd-tdep.c.
8001 (alpha-linux-tdep.o): New dependency list.
8002 (alphafbsd-tdep.o): Likewise.
8003
8004 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8005
8006 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
8007 to here...
8008 * alpha-tdep.c: ...from here.
8009 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8010
8011 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8012
8013 * config/alpha/tm-alpha.h: Move alpha_software_single_step
8014 prototype from here...
8015 * alpha-tdep.h: ...to here.
8016
8017 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8018
8019 * frame.h (selected_frame_level): Document as deprecated.
8020 (frame_relative_level): Declare.
8021 * stack.c (frame_relative_level): New function.
8022 (selected_frame_level): Document as deprecated.
8023 (select_frame): Do not set the selected_frame_level.
8024
8025 * stack.c (frame_info, record_selected_frame): Update.
8026 (frame_command, current_frame_command): Update.
8027 (up_silently_base, up_command, down_silently_base): Update.
8028 (down_command): Update.
8029 * inflow.c (kill_command): Update.
8030 * tracepoint.c (finish_tfind_command): Update.
8031 * corelow.c (core_open): Update.
8032 * thread.c (info_threads_command): Update.
8033 (do_captured_thread_select): Update.
8034 * infcmd.c (finish_command): Update.
8035 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8036
8037 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8038
8039 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8040
8041 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8042
8043 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8044 type const.
8045
8046 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8047
8048 * alphafbsd-tdep.c: Update copyright years. Include
8049 alpha-tdep.h.
8050 (alphafbsd_use_struct_convention): Make static.
8051 (alphafbsd_init_abi): New function.
8052 (_initialize_alphafbsd_tdep): New function.
8053 * config/alpha/tm-fbsd.h: Update copyright years.
8054 (USE_STRUCT_CONVENTION): Remove.
8055
8056 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8057
8058 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8059 an Alpha ABI variant.
8060 (alpha_abi_handler_list): Declare.
8061 (alpha_gdbarch_register_os_abi): New function.
8062 (alpha_gdbarch_init): Give registered ABI variant handlers a
8063 chance to tweak the gdbarch once we have set up defaults.
8064 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8065
8066 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8067
8068 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8069 to standard_coerce_float_to_double.
8070 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8071
8072 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8073
8074 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8075 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8076 from gdbarch_tdep rather than a constant.
8077 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8078 the default text address for all Alpha Unix ABIs.
8079 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8080 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8081
8082 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8083
8084 * alpha-tdep.h: New file. Includes several Alpha target constants
8085 taken from...
8086 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8087 let gdbarch deal with.
8088 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8089 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8090 to dependency list.
8091 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8092 Alpha target register names.
8093 * alphabsd-nat.c: Likewise.
8094 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8095 Alpha target register names. Make serveral routines static.
8096 (alpha_get_saved_register): New function.
8097 (alpha_abi_names): New.
8098 (process_note_abi_tag_sections): New function.
8099 (get_elfosabi): New function.
8100 (alpha_gdbarch_init): New function.
8101 (alpha_dump_tdep): New function.
8102 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8103
8104 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8105
8106 * frame.c (find_saved_register): Delete #ifdef
8107 HAVE_REGISTER_WINDOWS code.
8108 * config/sparc/tm-sparc.h: Update comments.
8109 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8110
8111 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8112
8113 * i960-tdep.c (i960_find_saved_register): New function.
8114 (i960_get_saved_register): New function.
8115 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8116 (i960_get_saved_register): Declare.
8117 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8118
8119 2002-04-20 David S. Miller <davem@redhat.com>
8120
8121 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8122
8123 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8124
8125 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8126 instead of NUM_PSEUDO_REGS.
8127
8128 2002-04-20 David S. Miller <davem@redhat.com>
8129
8130 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8131 GDB_MULTI_ARCH_PARTIAL
8132 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8133 define, let tm-sp64.h do it.
8134
8135 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8136
8137 * frame.c (find_saved_register): Avoid a NULL pointer
8138 dereference and actually walk the frame list.
8139
8140 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8141
8142 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8143 sorted in most most-recent-used order. Document.
8144 * gdbarch.h, gdbarch.c: Regenerate.
8145
8146 2002-04-19 Andrew Cagney <ac131313@redhat.com>
8147
8148 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8149 instead of ->prev.
8150 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8151 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8152 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8153 instead of ->prev.
8154
8155 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
8156
8157 Fix PR gdb/471.
8158 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8159 (build_builtin_type_vec128): Ditto.
8160 (append_composite_type_field): Fix calculation of type length in
8161 union case.
8162
8163 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8164
8165 * config/djgpp/README: Update.
8166
8167 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8168 compiler warnings.
8169
8170 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8171
8172 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8173 (alpha_setup_arbitrary_frame): ...to this.
8174 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8175 for alpha_setup_arbitrary_frame.
8176
8177 2002-04-18 Andrew Cagney <cagney@redhat.com>
8178
8179 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8180 * gdbarch.h, gdbarch.c: Regenerate.
8181
8182 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8183 * target.h (memory_breakpoint_from_pc): Update declaration.
8184 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8185
8186 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8187 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8188 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8189 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8190 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8191 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8192 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8193 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8194 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8195 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8196 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8197 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8198
8199 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8200 const pointer.
8201 * monitor.c (monitor_insert_breakpoint): Ditto.
8202 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8203
8204 * config/mcore/tm-mcore.h: Update copyright.
8205 * mem-break.c: Ditto.
8206 * xstormy16-tdep.c: Ditto.
8207
8208 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8209
8210 * p-exp.y: Add precedence rule for '^' token.
8211 This removes the shift/reduce conflicts.
8212 Remove the comment concerning these shift/reduce conflicts.
8213
8214 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
8215
8216 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8217 (registers_powerpc_nofp): New register set for processors
8218 without floating point unit.
8219
8220 2002-04-18 David S. Miller <davem@redhat.com>
8221
8222 * MAINTAINERS: Add myself to write-after-approval.
8223
8224 2002-04-17 Michael Snyder <msnyder@redhat.com>
8225
8226 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8227
8228 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8229
8230 * rs6000-tdep.c (frame_initial_stack_address): Use
8231 frame_register_read to read the alloca_reg.
8232
8233 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8234
8235 * frame.c (find_saved_register): Find saved registers in the next
8236 not prev frame.
8237 Fix PR gdb/365.
8238
8239 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8240
8241 * gdbarch.sh (LANG): Set to ``c''.
8242
8243 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8244
8245 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8246
8247 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8248
8249 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8250 Update copyright.
8251
8252 * hpread.c (hpread_get_lntt): Add declaration.
8253 Also fix PR gdb/391.
8254
8255 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8256
8257 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8258 * aclocal.m4, configure: Re-generate.
8259 Fix PR gdb/391.
8260
8261 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8262
8263 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8264 instead of tm_print_insn.
8265
8266 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8267
8268 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8269
8270 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8271
8272 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8273 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8274 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8275
8276 2002-04-12 Don Howard <dhoward@redhat.com>
8277
8278 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8279 max_user_call_depth.
8280 (init_cmd_lists): Initialize the new value;
8281 * cli/cli-script.c (execute_user_command): Limit the call depth of
8282 user defined commands. This avoids a core-dump when user commands
8283 are infinitly recursive.
8284
8285 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8286
8287 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8288 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8289 from tdep struct instead of DEFAULT_LR_SAVE.
8290 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8291 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8292 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8293
8294 2002-04-12 Michael Snyder <msnyder@redhat.com>
8295
8296 * Remote.c: Spelling fix.
8297 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8298 If no symbol found for "sbrk", try "_sbrk".
8299 (make_output_phdrs): Use bfd_section_name.
8300 (gcore_copy_callback): Use bfd_section_name.
8301 * eval.c: Indentation fix-ups.
8302 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8303 in case it gets applied to an address that is already
8304 in the instruction space.
8305 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8306 * symfile.c: Fix indentation, long lines.
8307 * source.c: White space fix-up.
8308
8309 2002-04-12 Andrew Cagney <cagney@redhat.com>
8310
8311 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8312 * frame.c (frame_register_read): New function. Return non-zero on
8313 success.
8314 (read_relative_register_raw_bytes_for_frame): Delete.
8315 (read_relative_register_raw_bytes): Delete.
8316 * frame.h (frame_register_read): Declare.
8317 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8318 * sh-tdep.c: Ditto.
8319 * infcmd.c (do_registers_info): Ditto.
8320 * hppa-tdep.c: Ditto.
8321 * rs6000-tdep.c: Ditto.
8322 * h8500-tdep.c: Ditto.
8323 * mips-tdep.c: Ditto.
8324 * h8300-tdep.c: Ditto.
8325 * z8k-tdep.c: Ditto.
8326
8327 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8328
8329 From Jimi X <jimix@watson.ibm.com>:
8330 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8331 64-bit SysV ABI.
8332
8333 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8334
8335 From Jimi X <jimix@watson.ibm.com>:
8336 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8337 bfd info.
8338
8339 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8340
8341 From Jimi X <jimix@watson.ibm.com>:
8342 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8343 register sets for these processor variants.
8344
8345 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
8346
8347 * regformats/reg-ppc.dat: Support FPSCR.
8348
8349 2002-04-11 Kevin Buettner <kevinb@redhat.com>
8350
8351 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8352 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8353 Add fpscr as an invalid/unfetchable register.
8354 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8355 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8356 (fill_fpregset): Add support for register fpscr.
8357 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8358 (fill_gregset): Account for the fact that register ``mq'' might
8359 not exist.
8360 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8361 (registers_power): Add fpscr to register set at slot 71.
8362 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8363 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8364
8365 2002-04-11 Michael Snyder <msnyder@redhat.com>
8366
8367 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8368 * configure: Regenerate.
8369 * config.in: Regenerate.
8370 * acconfig.h: Add define for _SYSCALL32.
8371 * core-sol2.c: Remove #define _SYSCALL32.
8372 * solib-legacy.c: Remove #define _SYSCALL32.
8373
8374 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8375
8376 * stack.c (select_frame): Cleanup internal error message, do not
8377 use %p.
8378
8379 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8380
8381 * stack.c (select_frame): Check that selected_frame and the
8382 specified level are as expected.
8383 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8384 Update copyright.
8385 * frame.h (struct frame_info): Add field `level'. Update
8386 copyright.
8387 Work-in-progress PR gdb/464.
8388
8389 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8390
8391 * maint.c (maint_print_section_info): Rename print_section_info.
8392 (print_bfd_section_info, print_objfile_section_info): Update.
8393 * inferior.h (struct gdbarch): Add opaque declaration.
8394 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8395 * gdbarch.h: Regenerate.
8396
8397 2002-04-10 Michal Ludvig <mludvig@suse.cz>
8398
8399 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8400 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8401 (kernel_u_size): Added.
8402 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8403 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8404
8405 2002-04-04 Jim Ingham <jingham@apple.com>
8406
8407 * valarith.c (find_size_for_pointer_math): New function, either returns
8408 the size for a pointer's target, returns 1 for void *, or errors for
8409 incomplete types.
8410 (value_add, value_sub): use find_size_for_pointer_math.
8411
8412 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8413
8414 * linux-low.c (linux_look_up_symbols): New hook.
8415 (linux_target_ops): Add linux_look_up_symbols.
8416 * remote-utils.c (decode_address): New function.
8417 (look_up_one_symbol): New function.
8418 * server.c (handle_query): Call target look_up_symbols hook.
8419 * server.h (look_up_one_symbol): Add prototype.
8420 * target.h (struct target_ops): Add look_up_symbols hook.
8421
8422 2002-04-09 Andrew Cagney <ac131313@redhat.com>
8423
8424 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8425 override FP_REGNUM with frame->fp. Update copyright.
8426 * parse.c (num_std_regs, std_regs): Delete.
8427 (target_map_name_to_register): Do not search std_regs. Update
8428 function description.
8429 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8430 declarations. Update copyright.
8431 Fix PR gdb/251.
8432
8433 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8434
8435 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8436 after the last symbol in a block.
8437
8438 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8439
8440 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8441 is non zero as a found symbol.
8442
8443 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8444
8445 * findvar.c: Include "builtin-regs.h".
8446 (value_of_register): Call value_of_builtin_reg when applicable.
8447 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8448 (target_map_name_to_register): Call
8449 builtin_reg_map_name_to_regnum.
8450 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8451 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8452 (builtin_regs_h): Define.
8453 (builtin-regs.o): New target.
8454 (findvar.o): Add $(builtin_regs_h).
8455 * builtin-regs.c, builtin-regs.h: New files.
8456 * std-regs.c: New file.
8457 Partial fix for PR gdb/251.
8458
8459 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8460
8461 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8462 it's no longer required.
8463
8464 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8465
8466 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8467
8468 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8469
8470 From Jimi X <jimix@watson.ibm.com>:
8471 * rs6000-tdep.c (rs6000_software_single_step): Use
8472 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8473 and size. Use target_insert_breakpoint() and
8474 target_remove_breakpoint() to insert and remove breakpoints
8475 instead of explicit memory reads and writes.
8476
8477 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8478
8479 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8480 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8481 ELF_OBJECT_FORMAT ifdef.
8482
8483 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8484
8485 From Jimi X <jimix@watson.ibm.com>:
8486 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8487
8488 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8489
8490 From Jimi X <jimix@watson.ibm.com>:
8491 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8492 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8493
8494 2002-04-07 Mark Kettenis <kettenis@gnu.org>
8495
8496 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8497 s/asprintf/xasprintf/.
8498 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8499
8500 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8501
8502 I believe Jeff Law denies responsability for this one:
8503 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8504 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8505 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8506 Work-around for PR gdb/366.
8507
8508 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8509
8510 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8511 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8512 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8513
8514 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8515
8516 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8517 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8518 information.
8519
8520 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8521
8522 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8523 maintainer.
8524
8525 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8526
8527 * README (Reporting Bugs in GDB): Document the bug web page as the
8528 prefered way of submitting bugs.
8529 Fix PR gdb/402.
8530
8531 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8532
8533 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8534 -1. Update comment.
8535 * gdbarch.h, gdbarch.c: Re-generate.
8536
8537 2002-04-07 Andreas Schwab <schwab@suse.de>
8538
8539 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8540 buffer to regcache_collect.
8541
8542 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8543
8544 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8545 * gdbarch.c, gdbarch.h: Re-generate.
8546
8547 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8548
8549 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8550 declaration. Fix -Werror.
8551
8552 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
8553
8554 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8555 * gdbarch.c: Regenerate.
8556
8557 2002-04-05 Michael Snyder <msnyder@redhat.com>
8558
8559 * breakpoint.c (clear_command): Rewrite middle section to
8560 combine two loops with identical control conditions.
8561 Add a cleanup to eliminate a memory leak.
8562 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8563
8564 2002-04-05 H.J. Lu (hjl@gnu.org)
8565
8566 * solib-svr4.c (bkpt_names): Add "__start".
8567
8568 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8569
8570 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8571 as test for 64 bit target.
8572
8573 2002-04-05 Andrew Cagney <ac131313@redhat.com>
8574
8575 * h8500-tdep.c (h8500_write_fp): Delete function.
8576 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8577 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8578 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8579 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8580 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8581 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8582 (s390_write_fp):
8583 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8584 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8585 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8586 (d10v_write_fp): Delete function.
8587 * inferior.h (write_fp, generic_target_write_fp): Delete
8588 declarations.
8589 * regcache.c (generic_target_write_fp): Delete function.
8590 (write_fp): Delete function.
8591 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8592 * gdbarch.h, gdbarch.c: Regenerate.
8593 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8594 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8595 (sparc64_write_fp): Delete declaration.
8596 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8597 (h8500_write_fp): Delete declaration.
8598
8599 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8600
8601 * sparc-tdep.c (sparc64_write_fp): Delete.
8602 (sparc_push_dummy_frame): Replace write_fp call with code to store
8603 the FP directly.
8604 (sparc_gdbarch_init): Do not initialize write_fp.
8605
8606 2002-04-05 Kevin Buettner <kevinb@redhat.com>
8607
8608 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8609 clause.
8610
8611 2002-03-29 Jim Blandy <jimb@redhat.com>
8612
8613 * stack.c (get_selected_block): Add new argument `addr_in_block',
8614 used to return the exact code address we used to select the block,
8615 not just the block.
8616 * blockframe.c (get_frame_block, get_current_block): Same.
8617 * frame.h (get_frame_block, get_current_block,
8618 get_selected_block): Update declarations.
8619 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8620 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8621
8622 2002-04-05 Michael Snyder <msnyder@redhat.com>
8623
8624 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8625 warning message.
8626
8627 2002-04-05 J. Brobecker <brobecker@gnat.com>
8628
8629 * utils.c (xfullpath): New function.
8630 * defs.h (xfullpath): Add declaration.
8631 * source.c (openp): Use xfullpath in place of gdb_realpath to
8632 avoid resolving the basename part of filenames when the
8633 associated file is a symbolic link. This fixes a potential
8634 inconsistency between the filenames known to GDB and the
8635 filenames it prints in the annotations.
8636 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8637 to be able to match a filename with either the real filename, or
8638 the name of any symbolic link to this file.
8639 (lookup_partial_symtab): Ditto.
8640
8641 2002-04-04 Michael Snyder <msnyder@redhat.com>
8642
8643 * breakpoint.c: Add support for hardware breakpoints in overlays.
8644 (overlay_events_enabled): New state variable.
8645 (insert_breakpoints): Use overlay_events_enabled to decide
8646 whether to attempt to set a breakpoint at the overlay load addr.
8647 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8648 (remove_breakpoint): Use overlay_events_enabled to decide
8649 whether breakpoints need to be removed from overlay load addr.
8650 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8651 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8652 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8653 disable_overlay_breakpoints): Update overlay_events_enabled.
8654
8655 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
8656
8657 * dwarf2read.c (struct function_range): New.
8658 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8659 (check_cu_functions): New.
8660 (read_file_scope): Initialize global function lists.
8661 Call dwarf_decode_line after processing children.
8662 (read_func_scope): Add to global function list.
8663 (dwarf_decode_lines): Call check_cu_functions everywhere
8664 record_line is called. Call record_line with a linenumber
8665 of 0 to mark sequence ends.
8666
8667 2002-04-04 Michal Ludvig <mludvig@suse.cz>
8668
8669 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8670 change sync with glibc.
8671
8672 2002-04-03 Jim Blandy <jimb@redhat.com>
8673
8674 * configure.in: Call AC_C_INLINE.
8675 * configure: Regenerated.
8676
8677 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
8678
8679 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8680 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8681
8682 2002-03-31 Mark Kettenis <kettenis@gnu.org>
8683
8684 * NEWS: Mention gcore support on FreeBSD/i386.
8685
8686 * fbsd-proc.c: New file.
8687 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8688 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8689
8690 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8691 while statement.
8692
8693 2002-03-29 Jim Blandy <jimb@redhat.com>
8694
8695 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8696 unescaped newlines in string literals, but newer ones don't. So
8697 escape them.
8698
8699 2002-03-26 Michael Snyder <msnyder@redhat.com>
8700 Andrew Cagney <cagney@redhat.com>
8701
8702 * cli/cli-dump.c: New file. Dump memory to file,
8703 restore file to memory.
8704 * cli/cli-dump.h: New file.
8705 * Makefile.in: Add rules, dependencies for cli-dump.o.
8706 * NEWS: Mention new commands.
8707
8708 2002-03-28 Michael Snyder <msnyder@redhat.com>
8709
8710 * symfile.c (symbol_file_add): Move test for null symbols to later.
8711
8712 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8713
8714 From veksler at il.ibm.com:
8715 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8716 the xstrduped original path.
8717 Fix PR gdb/417.
8718
8719 2002-03-27 Michael Snyder <msnyder@redhat.com>
8720
8721 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8722 * infcmd.c (_initialize_infcmd): Ditto.
8723 * language.c (_initialize_language): Ditto.
8724 * symfile.c (_initialize_symfile): Ditto.
8725 * top.c (_init_main): Ditto.
8726 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8727
8728 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
8729
8730 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8731 vector registers handling.
8732 (skip_prologue): Handle new AltiVec instructions. Fill in new
8733 fields of frame data.
8734 (frame_get_saved_regs): Fill in information for AltiVec registers.
8735
8736 2002-03-27 Jim Blandy <jimb@redhat.com>
8737
8738 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8739 a function; leave this macro here to invoke that function.
8740 (symbol_init_mangled_name): Declaration for that function.
8741 * symtab.c (symbol_init_mangled_name): New function.
8742
8743 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8744
8745 * valarith.c: Replace strerror with safe_strerror.
8746 * tracepoint.c: Ditto.
8747 * lin-lwp.c: Ditto.
8748 * go32-nat.c: Ditto.
8749 * inflow.c: Ditto.
8750 * gnu-nat.c: Ditto.
8751
8752 2002-03-27 Andreas Schwab <schwab@suse.de>
8753
8754 * event-top.c (command_line_handler): Remove useless if.
8755
8756 2002-03-27 Andreas Jaeger <aj@suse.de>
8757
8758 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8759 comment.
8760
8761 2002-03-27 Michal Ludvig <mludvig@suse.cz>
8762
8763 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8764 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8765 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8766 (x86_64_linux_dr_get_status, supply_gregset),
8767 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8768 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8769 (x86_64_register_info_table): Add.
8770 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8771 (x86_64_register_raw_size, x86_64_register_virtual_type),
8772 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8773 general x86_64_register_info_table.
8774 (i386_gdbarch_init): gdbarch_register_bytes is now set
8775 dynamicaly during initialization.
8776 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8777 * gdbserver/linux-x86-64-low.c: Ditto.
8778
8779 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8780
8781 * gdbserver/server.c (main): Call target_signal_to_host_p
8782 and target_signal_to_host on signals received from the remote.
8783 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8784 target_signal_from_host on signals sent to the remote.
8785 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8786 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8787
8788 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8789
8790 * signals/signals.c: Include "server.h" in gdbserver build.
8791 (target_signal_from_name): Don't use STREQ.
8792 (_initialize_signals): Likewise. Don't include function in
8793 gdbserver build.
8794
8795 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8796
8797 * signals.c: Moved to...
8798 * signals/signals.c: Here.
8799 * Makefile (signals.o): Update.
8800
8801 2002-03-26 Jeff Law (law@redhat.com)
8802
8803 * somread.c (som_symtab_read): Remove some commented out code and
8804 updated related comments. Do not set the minimal symbol table to
8805 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8806 in a dynamic executable.
8807 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8808 where we are unable to find the minimal symbol for the given
8809 PC value.
8810
8811 2002-03-25 Jeff Law (law@redhat.com)
8812
8813 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8814
8815 2002-03-25 Michal Ludvig <mludvig@suse.cz>
8816
8817 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8818
8819 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8820
8821 * command.h: Update copyright.
8822 (struct cmd_list_element): Replace definition with opaque
8823 declaration.
8824 (enum cmd_types): Document that it will eventually be moved to
8825 cli/cli-decode.h
8826 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8827 (MALLOCED_REPLACEMENT): Delete macro.
8828 * Makefile.in (cli_decode_h): Add $(command_h).
8829 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8830 * top.c: Include "cli/cli-decode.h".
8831 * completer.c: Include "cli/cli-decode.h".
8832 * maint.c: Include "cli/cli-decode.h".
8833 * cli/cli-decode.h: Include "command.h".
8834 (enum command_class): Delete.
8835 (enum cmd_types): Comment out.
8836 (enum cmd_auto_boolean): Delete.
8837 (enum var_types): Delete.
8838
8839 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8840
8841 * cli/cli-decode.c: Include "gdb_assert.h".
8842 (add_set_or_show_cmd): New static function.
8843 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8844 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8845 all fields, such as func, from the set command.
8846
8847 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8848
8849 * MAINTAINERS (sh-elf): Change warning flag to -w.
8850
8851 2002-03-23 Andrew Cagney <cagney@redhat.com>
8852
8853 * defs.h (error): Add printf format attribute.
8854 * thread-db.c (thread_from_lwp): Fix error format string.
8855 * stack.c (parse_frame_specification): Ditto.
8856 * cli/cli-decode.c (undef_cmd_error): Ditto.
8857 * scm-lang.c (scm_lookup_name): Ditto.
8858 * tracepoint.c (trace_error): Ditto.
8859 * remote-utils.c (usage): Ditto.
8860 * remote.c (compare_sections_command): Ditto.
8861 Fix PR gdb/328.
8862
8863 2002-03-22 Andrew Cagney <ac131313@redhat.com>
8864
8865 * gdbtypes.c (append_composite_type_field): New function.
8866 (init_composite_type): New function.
8867 * gdbtypes.h (append_composite_type_field): Declare.
8868 (init_composite_type): Ditto.
8869
8870 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
8871
8872 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
8873 function.
8874 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8875 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8876 structure returning convention for SYSV ABI case, but not
8877 for GNU/Linux, FreeBSD, or NetBSD.
8878
8879 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
8880
8881 * symtab.h (lookup_block_symbol): Add mangled_name argument
8882 to prototype.
8883
8884 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8885 with new mangled_name argument.
8886 * linespec.c (decode_line_1): Likewise.
8887 * valops (value_of_this): Likewise.
8888 * symtab.c (lookup_transparent_type): Likewise.
8889 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8890 (lookup_symbol): If we are given a mangled name, pass it down
8891 to lookup_symbol_aux.
8892 (lookup_block_symbol): If we are given a mangled name to check
8893 against, only return symbols which match it.
8894
8895 2002-03-22 Christopher Faylor <cgf@redhat.com>
8896
8897 * win32-nat.c (child_create_inferior): Check for proper shell to use
8898 here, in case the user changes it on the fly.
8899 (_initialize_inftarg): Remove shell path considerations.
8900
8901 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
8902
8903 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8904 for gdbarch_max_register_raw_size and max_register_virtual_size.
8905 Adjust copyright year.
8906
8907 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
8908
8909 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8910 in a function to cover the entire beginning of the function
8911 as well if it does not already.
8912
8913 2002-03-21 Tom Rix <trix@redhat.com>
8914
8915 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8916 (rs6000_ptrace64): Renamed from ptrace64.
8917
8918 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8919
8920 * gdbserver/remote-utils.c (remote_open): Don't call
8921 getprotobyname, we're all using TCP here so just use
8922 IPPROTO_TCP.
8923 * gdbserver/gdbreplay.c (remote_open): Ditto.
8924
8925 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8926
8927 * regcache.c (_initialize_regcache): No need to call
8928 build_regcache() at this time; it gets called whenever
8929 the gdbarch changes.
8930
8931 2002-03-20 David O'Brien <obrien@FreeBSD.org>
8932
8933 * sparc-nat.c: Include sys/param.h where possible.
8934
8935 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
8936
8937 Fix PR gdb/422.
8938 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8939 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8940 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8941 complex types.
8942 * stabsread.c (rs6000_builtin_type): Likewise.
8943 (read_sun_floating_type): Likewise.
8944
8945 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8946
8947 * stabsread.c (read_member_functions): Remove skip code for duplicate
8948 constructor/destructor methods. Use standard parsing for these
8949 methods and just do not chain them to the list of methods after
8950 parsing.
8951
8952 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
8953
8954 * coffread.c: Remove redundant static declarations. Replace
8955 occurrences of `PTR' with `void *'.
8956 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8957 * top.h (quit_cover): Likewise.
8958 * defs.h (catch_errors): Likewise.
8959
8960 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8961
8962 * defs.h (XMALLOC): Define.
8963 * gdb-events.sh (XMALLOC): Delete macro.
8964 * gdb-events.c, gdb-events.h: Regenerate.
8965 * gdbarch.sh (XMALLOC): Delete macro.
8966 * gdbarch.c: Regenerate.
8967 * serial.c (XMALLOC): Delete macro.
8968 * ui-file.c (XMALLOC): Ditto.
8969 * ser-unix.h (XMALLOC): Ditto.
8970 * sh-tdep.c (XMALLOC): Ditto.
8971 * ui-out.c (XMALLOC): Ditto.
8972 * utils.c (XMALLOC): Ditto.
8973 * i386-tdep.c (XMALLOC): Ditto.
8974 * gdb-events.c (XMALLOC): Ditto.
8975 * d10v-tdep.c (XMALLOC): Ditto.
8976 * cli-out.c (XMALLOC): Ditto.
8977
8978 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8979 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8980 * ui-file.c, ui-out.c: Ditto.
8981
8982 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8983
8984 * command.h (struct cmd_list_element): Add field context.
8985 (set_cmd_context, get_cmd_context): Declare.
8986 * cli/cli-decode.h: Ditto.
8987 * cli/cli-decode.c (get_cmd_context): New function.
8988 (set_cmd_context): New function.
8989 (add_cmd): Initialize context.
8990 Part of fixing PR gdb/145 and PR gdb/146.
8991
8992 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8993
8994 * cli/cli-decode.c (cmd_type): New function.
8995 * command.h (cmd_type): Declare.
8996 * infrun.c (set_schedlock_func): Call function cmd_type.
8997 * kod.c (kod_set_os): Call cmd_type.
8998 * cris-tdep.c (cris_version_update): Use function cmd_type.
8999 (cris_mode_update, cris_abi_update): Ditto.
9000
9001 * command.h: (execute_cmd_post_hook): Declare.
9002 (execute_cmd_pre_hook): Declare.
9003 * cli/cli-script.c (clear_hook_in_cleanup): New function.
9004 (execute_cmd_post_hook, execute_cmd_pre_hook): New
9005 functions. Execute pre/post hook while ensuring that afterwords
9006 hook_in is cleared.
9007 * top.c (execute_command): Use execute_cmd_post_hook, and
9008 execute_cmd_pre_hook to execute pre/post commands.
9009 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
9010 hook_stop_stub.
9011 (hook_stop_stub): Call execute_cmd_pre_hook.
9012
9013 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9014
9015 * kod.c (kod_set_os): Revert previous change. Is called by ``info
9016 set'' and this leads to a core dump. Move xstrdup of
9017 operating_system to after check that it is not NULL.
9018
9019 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9020
9021 * kod.c (kod_set_os): Remove unnecessary check that
9022 ``command->type'' is set_cmd.
9023
9024 * valprint.c (set_input_radix): Use input_radix.
9025 (set_output_radix): Use output_radix.
9026 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9027 isn't reverted.
9028
9029 2002-03-16 Andrew Cagney <ac131313@redhat.com>
9030
9031 * value.h (struct value): Delete field ``substring_addr''. Change
9032 aligner fields to force_doublest_align, force_longest_align,
9033 force_core_addr_align and force_pointer_aligh.
9034
9035 * value.h (struct value): Fix typo in above change.
9036
9037 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9038
9039 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9040 to fix internal_error from ``maintenance print architecture''.
9041
9042 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9043
9044 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9045 for gcc versions after gcc-2.8.1.
9046
9047 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9048
9049 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9050 for method resolution. Restore adjustment of ``this'' pointer after
9051 calling value_struct_elt, which was accidentally removed during the
9052 HP merge.
9053
9054 2002-03-15 Andrew Cagney <ac131313@redhat.com>
9055
9056 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9057 value_of_register.
9058 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9059 get_saved_register.
9060 * value.h (value_of_register): Update.
9061
9062 2002-03-14 Richard Henderson <rth@redhat.com>
9063
9064 * configure.in: Detect declaration for canonicalize_file_name.
9065 * utils.c (canonicalize_file_name): Declare, if needed.
9066 (gdb_realpath): Prefer realpath if available and usable.
9067 * config.in, configure: Rebuild.
9068
9069 2002-03-14 Richard Henderson <rth@redhat.com>
9070
9071 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9072 a constant array bound.
9073
9074 * MAINTAINERS: Add myself to write-after-approval.
9075
9076 2002-03-14 Michael Snyder <msnyder@redhat.com>
9077
9078 * symfile.c (syms_from_objfile): Return immediately if no syms.
9079 (symbol_file_add): Return immediately if no syms.
9080 (find_sym_fns): Return immediately if no syms.
9081
9082 2002-03-13 Michal Ludvig <mludvig@suse.cz>
9083
9084 * gdbserver/remote-util.c (remote_open): Print remote-side's
9085 IP address when remote debugging over the network.
9086
9087 2002-03-12 David O'Brien <obrien@FreeBSD.org>
9088
9089 * config/sparc/fbsd.mh: Fix copyright.
9090 * config/sparc/fbsd.mt: Likewise.
9091
9092 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
9093
9094 * MAINTAINERS: Fix typo in name of gdb warnings option.
9095 (x86-64): Fix formating so that this can be parsed by awk.
9096
9097 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9098
9099 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9100 * defs.h: Include "gdb/signals.h".
9101 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9102
9103 2002-03-10 Michal Ludvig <mludvig@suse.cz>
9104
9105 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
9106 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
9107 from x86-64-tdep.h
9108
9109 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9110 Don Howard <dhoward@redhat.com>
9111
9112 * mips-tdep.c (ST0_FR): Define.
9113 (mips2_fp_compat): New function, temporarily disabled.
9114 (mips_read_fp_register_single): New function.
9115 (mips_read_fp_register_double): New function.
9116 (mips_print_register): Use them.
9117 (do_fp_register_row): Likewise.
9118
9119 2002-03-09 Andrew Cagney <ac131313@redhat.com>
9120
9121 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9122 approval''.
9123
9124 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9125
9126 * stabsread.c (read_member_functions): Fix is_stub test for
9127 static member functions, improve comment.
9128
9129 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
9130
9131 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9132 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9133 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9134 commands that set boolean values.
9135 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9136 (arm_rdi_resume): Always initialize PC.
9137 (arm_rdi_open): Don't use rslt as a boolean.
9138 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9139 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9140 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9141 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9142
9143 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
9144
9145 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9146 * configure: Rebuilt.
9147
9148 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9149
9150 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9151 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9152
9153 2002-03-06 Andrew Cagney <ac131313@redhat.com>
9154
9155 * cli/cli-decode.c (set_cmd_completer): New function.
9156 * command.h (set_cmd_completer): Declare.
9157 * cli/cli-decode.h (set_cmd_completer): Ditto.
9158
9159 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9160 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9161 * win32-nat.c (_initialize_inftarg): Ditto.
9162 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9163 * proc-api.c (_initialize_proc_api): Ditto.
9164 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9165 * source.c (_initialize_source): Ditto.
9166 * exec.c (_initialize_exec): Ditto.
9167 * solib.c (_initialize_solib): Ditto.
9168 * top.c (init_main): Ditto.
9169 * tracepoint.c (_initialize_tracepoint): Ditto.
9170 * symfile.c (_initialize_symfile): Ditto.
9171 * printcmd.c (_initialize_printcmd): Ditto.
9172 * infcmd.c (_initialize_infcmd): Ditto.
9173 * corefile.c (_initialize_core): Ditto.
9174
9175 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9176
9177 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9178
9179 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9180
9181 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9182
9183 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9184
9185 * NEWS: Update headings, 5.2 has branched.
9186
9187 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
9188
9189 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9190 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9191 (register_addr, REGISTER_RAW_SIZE): Likewise.
9192 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9193 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9194
9195 2002-03-03 Michal Ludvig <mludvig@suse.cz>
9196
9197 * MAINTAINERS (x86-64): Add myself.
9198 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9199 changed value_ptr -> struct value *
9200
9201 2002-03-01 David O'Brien <obrien@FreeBSD.org>
9202
9203 * configure.host (sparc64-*-freebsd): Add.
9204 * configure.tgt: Likewise.
9205 * config/sparc/fbsd.mh: New file.
9206 * config/sparc/fbsd.mt: Likewise.
9207 * config/sparc/nm-fbsd.h: Likewise.
9208 * config/sparc/tm-fbsd.h: Likewise.
9209
9210 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
9211
9212 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9213 regformats/reg-s390x.dat.
9214
9215 2002-03-01 Andrew Cagney <ac131313@redhat.com>
9216
9217 * utils.c: Add FIXME explaining true/false problem.
9218
9219 2002-02-28 Andrew Cagney <ac131313@redhat.com>
9220
9221 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9222
9223 2002-02-28 Michael Chastain <mec@shout.net>
9224
9225 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9226
9227 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
9228
9229 * gdbserver/linux-s390-low.c: New file.
9230 * regformats/reg-s390.dat: New file.
9231 * regformats/reg-s390x.dat: New file.
9232 * gdbserver/configure.srv: Add S/390.
9233 * gdbserver/Makefile.in: Add S/390.
9234 * configure.tgt: Enable gdbserver for S/390.
9235
9236 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9237
9238 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9239 first line of the doc string for "info dos", except at the end of
9240 the sentence, since the short help stops at the first period.
9241
9242 2002-02-28 Jason Merrill <jason@redhat.com>
9243
9244 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9245
9246 2002-02-27 Fred Fish <fnf@redhat.com>
9247
9248 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9249 comment (dumy -> dummy).
9250
9251 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9252
9253 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9254
9255 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
9256
9257 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9258
9259 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9260
9261 * gdbserver/acconfig.h: New file.
9262 * gdbserver/i387-fp.c: New file.
9263 * gdbserver/i387-fp.h: New file.
9264 * gdbserver/linux-x86-64.c: New file.
9265 * regformats/reg-x86-64.dat: New file.
9266 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9267 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9268 * gdbserver/configure.in: Add support for regsets.
9269 * gdbserver/config.in: Regenerate.
9270 * gdbserver/configure: Regenerate.
9271 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9272 * gdbserver/linux-low.h: New file.
9273 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9274 for regsets.
9275 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9276 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9277 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9278 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9279 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9280 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9281 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9282 "i387-fp.h". Add PTRACE_GETREGS and friends.
9283 * gdbserver/regcache.c (supply_register): New function.
9284 (supply_register_by_name): New function.
9285 (collect_register): New function.
9286 (collect_register_by_name): New function.
9287
9288 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9289
9290 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9291 (config.status): Add configure.srv dependency.
9292 (server_h): Add config.h dependency.
9293
9294 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9295
9296 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9297 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9298 * gdbserver/configure.srv: Change i386-*-linux* to use
9299 reg-i386-linux.o.
9300
9301 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9302
9303 * x86-64-tdep.c: Re-indent. Update copyright date.
9304
9305 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9306
9307 From Michal Ludvig <mludvig@suse.cz>:
9308 * x86-64-tdep.c (value.h): Delete.
9309 (gdb_assert.h): Include.
9310 (x86_64_register_convert_to_virtual,
9311 x86_64_register_convert_to_raw ): Add check which lets only
9312 floating-point values to be converted.
9313 (value_push): Delete.
9314 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9315 (i386_gdbarch_init): Number of register_bytes fixed.
9316
9317 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9318
9319 * MAINTAINERS: Add x86-64 target.
9320
9321 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9322
9323 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9324 * osfsolib.c (solib_map_sections): Ditto.
9325 * irix5-nat.c (solib_map_sections): Ditto.
9326 * corelow.c (gdb_check_format): Ditto.
9327 * symfile.c (symfile_bfd_open): Ditto.
9328 * solib.c (solib_map_sections): Ditto.
9329 Fix PR gdb/354.
9330
9331 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9332
9333 * remote.c (_initialize_remote): By default, disable ``e'' and
9334 ``E'' step out-of-range packets.
9335
9336 2002-02-26 Andreas Schwab <schwab@suse.de>
9337
9338 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9339 m68k_linux_frame_saved_pc.
9340 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9341 in_sigtramp.
9342 (SIGCONTEXT_PC_OFFSET): Remove.
9343 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9344 m68k_linux_sigtramp_saved_pc): New functions.
9345 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9346 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9347 (UCONTEXT_PC_OFFSET): Define.
9348 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9349 non-RT and RT signal trampolines.
9350
9351 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
9352
9353 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9354 (TARGET_NBPG, STACK_END_ADDR): Delete
9355 (VARIABLES_INSIDE_BLOCK): Delete.
9356
9357 2002-02-25 Andrew Cagney <ac131313@redhat.com>
9358
9359 * utils.c (perror_with_name): Make string parameter constant.
9360 (print_sys_errmsg): Ditto.
9361 (query): Ditto.
9362 * defs.h (perror_with_name): Update.
9363 (print_sys_errmsg): Update.
9364 (query): Update.
9365
9366 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
9367
9368 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9369 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9370
9371 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9372
9373 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9374 if it already matches the current architecture from the exec file.
9375 Include arch-utils.h for gdbarch_info_init prototype.
9376 * Makefile.in (rs6000-nat.o): Update dependencies.
9377
9378 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9379
9380 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9381 list of exported variables.
9382
9383 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
9384
9385 * gdbserver/configure.srv: New file.
9386 * gdbserver/configure.in: Use configure.srv instead
9387 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9388 from it.
9389 * gdbserver/configure: Regenerated.
9390 * gdbserver/terminal.h: New file.
9391 * gdbserver/Makefile.in: Update for configure changes. Remove
9392 more unneeded include paths.
9393
9394 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9395
9396 From wiz at danbala:
9397 * config/sparc/tm-sp64.h: Fix grammar and typos.
9398 Fix PR gdb/287.
9399
9400 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9401
9402 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9403 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9404 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9405 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9406 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9407 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9408 * s390-tdep.c: Ditto.
9409 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9410 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9411 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9412 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9413 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9414 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9415 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9416 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9417 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9418 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9419 Fix PR gdb/378.
9420
9421 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9422
9423 * lin-thread.c: Delete file.
9424 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9425 to gdb_proc_service.h.
9426 * configure: Re-generate.
9427
9428 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9429 * serial.c (serial_open): Delete check for "ocd".
9430 Fix PR gdb/349.
9431
9432 * Makefile.in (linux-thread.o): Delete target.
9433 * linux-thread.c: Delete file.
9434
9435 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9436 renamed SH files to be consistent.
9437
9438 * symtab.c (sort_search_symbols): Use xfree.
9439
9440 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9441
9442 * arm-linux-tdep.c (arm_linux_init_abi): Register
9443 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9444 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9445 definition with undef, since we don't want the sysvr4 definition.
9446 (SKIP_TRAMPOLINE_CODE): Likewise.
9447
9448 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9449
9450 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9451
9452 * configure.in: (AC_CHECK_FUNCS) Added test for
9453 canonicalize_file_name Regenerated.
9454 * config.in, configure: Regenerated.
9455 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9456 defined use canonicalize_file_name.
9457
9458 2002-02-23 Michael Chastain <mec@shout.net>
9459
9460 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9461
9462 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9463
9464 * README: Remove references to cygnus.com.
9465 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9466 dot com'' form. Remove references to cygnus.com and sourceware.
9467
9468 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9469
9470 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9471 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9472 1003.1-2001 no longer allows "head -1".
9473 * gdb/Makefile.in (version.c): Likewise.
9474 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9475 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9476 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9477
9478 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9479
9480 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9481 * command.h (cmd_cfunc_eq): Declare.
9482 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9483
9484 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9485 ``struct cmd_list_element *''.
9486 * cli/cli-cmds.c (is_complete_command): Update. Use
9487 cmd_cfunc_eq.
9488 * top.c (execute_command): Pass the command to
9489 is_complete_command.
9490 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9491
9492 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9493
9494 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9495 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9496 architecture defines.
9497 * s390-tdep.c (s390_gdbarch_init): Likewise.
9498
9499 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9500
9501 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9502 (arm_linux_push_arguments): Likewise.
9503 (arm_linux_init_abi): Register them. Also register linux-specific
9504 call_dummy_words.
9505 (find_minsym_and_objfile): Use strcmp, not STREQ.
9506 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9507 (arm_linux_call_dummy_words): Delete declaration.
9508 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9509 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9510 declarations.
9511 (LOWEST_PC): Delete.
9512
9513 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9514
9515 * maint.c (print_section_info): Do not prepend `0x' to filepos
9516 output, it will be handled by local_hex_string_custom.
9517
9518 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9519
9520 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9521 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9522 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9523
9524 2002-02-22 Jim Blandy <jimb@redhat.com>
9525
9526 Indicate that the bcache functions don't change the strings
9527 they're passed.
9528 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9529 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9530
9531 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9532
9533 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9534
9535 2002-02-21 Christopher Faylor <cgf@redhat.com>
9536
9537 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9538 find the complete path to a loaded DLL.
9539
9540 2002-02-21 Fred Fish <fnf@redhat.com>
9541
9542 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9543 that marks the end of the range of a function, enter a line number
9544 entry that has a line number of zero and a PC offset that matches
9545 the end of the function. This starts a range of PC's for which no
9546 line number information is known.
9547 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9548 PC's for which no line number info is found (line number is zero)
9549 then we didn't find any valid line information.
9550 * symtab.h: Document use of zero line number entry.
9551
9552 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
9553
9554 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9555 (have_ptrace_getvrregs): Define for run time checks.
9556 (gdb_vrregset_t): New type for Altivec register handling.
9557 (fetch_register, store_register): Fetch/store altivec register
9558 when needed.
9559 (fetch_altivec_register, store_altivec_register): New functions.
9560 (supply_vrregset, fill_vrregset): New functions.
9561 (fetch_altivec_registers, store_altivec_registers): New functions.
9562 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9563 registers as well.
9564
9565 2002-02-21 Jiri Smid <smid@suse.cz>
9566
9567 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9568
9569 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9570
9571 * Makefile.in (armnbsd-nat.o): Update dependencies.
9572 * armnbsd-nat.c (supply_gregset): New function. Common code to
9573 supply the integer register set.
9574 (supply_fparegset): New function. Similar for FPA registers.
9575 (fetch_regs, fetch_fp_regs): Use them.
9576 (fetch_core_registers): Likewise.
9577 (fetch_elfcore_registers): New function.
9578 (arm_netbsd_elfcore_fns): New core-file type specification.
9579 (_initialize_arm_netbsd_nat): Register it.
9580
9581 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9582
9583 * armnbsd-nat.c: Include gdbcore.h.
9584 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9585 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9586 'void' to declaration, to shut up ARI.
9587 (fetch_core_registers): Make static. Rewrite using supply_register.
9588 (arm_netbsd_core_fns): New core-file type specification.
9589 (_initialize_arm_netbsd_nat): New function.
9590
9591 2002-02-21 Christopher Faylor <cgf@redhat.com>
9592
9593 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9594 value.
9595
9596 2002-02-20 Christopher Faylor <cgf@redhat.com>
9597
9598 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9599 fails.
9600
9601 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9602
9603 * jv-exp.y (parse_number): Change type of implicit longs
9604 to builtin_type_uint64.
9605
9606 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9607
9608 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9609 to be an integer instead of a `union wait'.
9610
9611 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9612
9613 * mips-linux-nat.c: Call the operating system GNU/Linux.
9614 * mips-linux-tdep.c: Likewise.
9615 * mips-tdep.c: Likewise.
9616
9617 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9618
9619 Fix PR gdb/265.
9620 * jv-exp.y (parse_number): Handle 64-bit integers.
9621
9622 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9623
9624 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9625 AC_STDC_HEADERS to AC_HEADER_STDC.
9626 * gdbserver/configure: Regenerated.
9627
9628 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9629
9630 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9631 is defined.
9632 * sparc-tdep.c (get_longjmp_target): Likewise.
9633
9634 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9635
9636 * News: Add news about ARM and Multi-arch. Mention the new target
9637 arm*-*-netbsd*.
9638
9639 2002-02-19 Jim Blandy <jimb@redhat.com>
9640
9641 * stabsread.c (error_type_complaint): Improve error message.
9642
9643 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
9644
9645 * gdbserver/README: Update documentation.
9646 * gdbserver/configure.in: Update configury to match documentation.
9647 * gdbserver/Makefile.in: Likewise.
9648 * gdbserver/configure: Regenerated.
9649 * gdbserver/aclocal.m4: New file, generated by aclocal.
9650 * gdbserver/config.in: New file, generated by autoheader.
9651
9652 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9653
9654 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9655 armnbsd-nat.c.
9656
9657 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9658
9659 * arm-tdep.h (enum arm_float_model): New enum.
9660 (struct gdbarch_tdep): Add fp_model.
9661 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9662 up floating-point conversions until we know the floating-point model
9663 in use by the inferior. Don't complain about being unable to
9664 determine the ABI of the inferior when we don't have one.
9665 (arm_extract_return_value): Support different floating-point models.
9666 (arm_store_return_value): Likewise.
9667 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9668 ARM_FLOAT_SOFT.
9669 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9670
9671 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9672
9673 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9674 of ``current_gdbarch''.
9675
9676 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9677
9678 * armnbsd-nat.c : ANSIfy all function declarations.
9679 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9680 (fetch_inferior_registers): Re-implement in terms of above.
9681 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9682 (store_inferior_registers): Re-implement in terms of above.
9683
9684 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9685
9686 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9687 kernel.
9688 * arm-linux-tdep.c: Likewise.
9689 * config/arm/tm-linux.h: Likewise.
9690
9691 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9692
9693 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9694 * config/arm/nbsd.mt (TM_FILE): Delete.
9695 * config/arm/tm-nbsd.h: Delete.
9696
9697 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9698
9699 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9700 Initialize CALL_DUMMY_LENGTH.
9701
9702 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9703
9704 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9705 function.
9706 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
9707 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
9708 defines one thing and that is incorrect for this port.
9709 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9710
9711 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9712
9713 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9714
9715 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9716
9717 * win32-nat.c (display_selector): New function. Displays information
9718 about the information returned by GetThreadSelectorEntry API function.
9719 (display_selectors): New function. Displays the infomation of
9720 the selector given as argument, or of CS, DS ans FS selectors
9721 if no argument is given.
9722 ( _initialize_inftarg): Add "w32" as info prefix command.
9723 Add "info w32 selector" as command calling display_selectors.
9724
9725 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9726
9727 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9728 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9729 if not defined.
9730
9731 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9732
9733 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9734
9735 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9736
9737 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9738 (arm_fix_call_dummy): Call it.
9739 (arm_call_dummy_breakpoint_offset): Delete.
9740 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9741 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9742
9743 2002-02-18 Andrew Cagney <ac131313@redhat.com>
9744
9745 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9746 Default to func_frame_chain_valid.
9747 * gdbarch.h, gdbarch.c: Re-generate.
9748 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9749
9750 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
9751
9752 * ppc-linux-nat.c: Update copyright.
9753 (fetch_register, store_register): Add tid parameter, don't compute
9754 tid here.
9755 (fetch_ppc_registers, store_ppc_registers): Add tid
9756 parameter. Pass it along to callees.
9757 (fetch_inferior_registers, store_inferior_registers): Compute tid
9758 here, and pass it to calleed functions.
9759 (fill_gregset, supply_fpregset): Clean up formatting.
9760
9761 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9762
9763 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9764 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9765
9766 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9767
9768 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9769 * gdbarch.c gdbarch.h: Regenerate.
9770 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9771 function.
9772 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9773 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9774 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9775
9776 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9777 * arm-tdep.c (arm_get_longjmp_target): New function.
9778 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9779 this to a positive value register arm_get_longjmp_target as the
9780 longjmp handler.
9781 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9782 (arm_linux_init_abi): Set up longjmp description in tdep.
9783 * armnbsd-nat.c (get_longjmp_target): Delete.
9784 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9785 description in tdep.
9786 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9787 (get_longjmp_target): Delete declaration.
9788 (GET_LONGJMP_TARGET): Delete.
9789 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9790 (GET_LONGJMP_TARGET): Delete.
9791
9792 2002-02-17 Kevin Buettner <kevinb@redhat.com>
9793
9794 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9795 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9796 of ``current_gdbarch''.
9797
9798 2002-02-17 Tom Tromey <tromey@redhat.com>
9799
9800 * cli/cli-cmds.c (compare_strings): New function.
9801 (complete_command): Only print each unique item once.
9802 * completer.h (complete_line): Declare.
9803 * completer.c (complete_line): New function.
9804 (line_completion_function): Use it.
9805
9806 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9807
9808 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9809 * gdbarch.h, gdbarch.c: Re-generate.
9810
9811 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9812
9813 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9814
9815 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9816
9817 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9818 * valops.c (value_arg_coerce): Don't take the address of a reference
9819 to convert an argument to a reference.
9820
9821 2002-02-15 Christopher Faylor <cgf@redhat.com>
9822
9823 * win32-nat.c (get_image_name): New function.
9824 (handle_load_dll): Use get_image_name function.
9825 (get_child_debug_event): Avoid registering debug events until possibly
9826 execed process is started.
9827 (child_create_inferior): Allow invocation via shell so that command
9828 line redirection, etc. works ok.
9829 (_initialize_inftarg): Add new command: "set shell" to control whether
9830 a shell is used to start a process.
9831
9832 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9833
9834 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9835 instead of find_register_by_number.
9836 (cannot_store_register): Likewise.
9837
9838 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9839
9840 * dwarf2read.c: Replace fprintf (stderr, ...) by
9841 fprintf_unfiltered (gdb_stderr, ...).
9842
9843 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9844
9845 * gdbserver/gdbserver.1: Document --attach.
9846
9847 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9848
9849 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9850 descriptions.
9851 * arm-tdep.c (arm_default_arm_le_breakpoint)
9852 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9853 (arm_default_thumb_be_breakpoint): New. Initialize them from
9854 traditional breakpoint defines.
9855 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9856 (arm_gdbarch_init): Initialize new breakpoint variables.
9857 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9858 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9859 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9860 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9861 code out to ...
9862 (arm_netbsd_init_abi_common): ... here; new function.
9863 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9864 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9865 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9866 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9867
9868 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9869
9870 * arm-tdep.h (enum arm_abi): New enum.
9871 (struct gdbarch_tdep): New structure.
9872 (LOWEST_PC): Provide a default.
9873 (arm_gdbarch_register_os_abi): Declare new function.
9874 * arm-tdep.c (arm_abi_names): New array.
9875 (process_note_abi_tag_sections): New function.
9876 (get_elfosabi): New function.
9877 (arm_gdbarch_register_os_abi): New function.
9878 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9879 support for that ABI has been built in, then call the appropriate
9880 configuration routine. Use gdbarch_num_regs() to get the number
9881 of registers.
9882 (arm_dump_tdep): New function.
9883 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9884 place-holder functions.
9885 (_initialize_arm_tdep): Register them.
9886 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9887
9888 * armnbsd-tdep.c: New file.
9889 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9890 * config/arm/nbsd.mt (TDEPFILES): Add it.
9891 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9892
9893 * armnbsd-nat.c: Include regcache.h.
9894 * Makefile.in (armnbsd-nat.o): Update dependency list.
9895
9896 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9897
9898 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9899
9900 * gdbserver/Makefile.in: Fix typos in target rules.
9901
9902 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9903
9904 Fix part of PR gdb/267.
9905 * linespec.c (find_methods): Handle constructors specially for now.
9906
9907 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
9908
9909 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9910 handling.
9911 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9912 standard_coerce_float_to_double().
9913
9914 2002-02-14 Christopher Faylor <cgf@redhat.com>
9915
9916 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9917 GDBINIT_FILENAME.
9918
9919 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
9920
9921 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9922 find_variant_by_name, because it confuses the multiarch
9923 framework. Return NULL if there isn't an architecture with the
9924 user supplied name, instead of forcing a different one without
9925 recording the change with the multiarch machinery.
9926 (find_variant_by_name): Delete.
9927
9928 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9929
9930 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9931 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9932
9933 2002-02-13 Martin M. Hunt <hunt@redhat.com>
9934
9935 * stack.c (print_frame_info_base): When calling
9936 print_frame_info_listing_hook, set current_source_symtab.
9937
9938 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9939
9940 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9941 and remove unused $(INCLUDE_DIR).
9942 Add regcache.c to OBS.
9943 Add generated register protocol files to clean target.
9944 Update dependencies for new objects, obsolete old target code.
9945
9946 * gdbserver/linux-low.c: Remove all platform-specific code to
9947 new files. Remove various dead code. Update to use regcache
9948 functionality.
9949 * gdbserver/remote-utils.c (fromhex): Add return statement
9950 to quiet warning.
9951 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9952 constant.
9953 (input_interrupt): Add integer parameter to match prototype
9954 of a signal handler.
9955 (outreg): Use register_data ().
9956 (prepare_resume_reply): Use gdbserver_expedite_regs.
9957 * gdbserver/server.c (main): Dynamically allocate own_buf because
9958 PBUFSIZ is no longer constant. Use registers_to_string () and
9959 registers_from_string ().
9960 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9961 for error (), fatal (), and warning (). Update definition of
9962 PBUFSIZ to use regcache functionality. Add include guard.
9963 * gdbserver/utils.c (fatal): Add missing ``const''.
9964 (warning): New function.
9965
9966 * regformats/regdat.sh: Include "regcache.h" in generated files.
9967 Provide init_registers () function.
9968 * regformats/regdef.h: Add prototype for set_register_cache ().
9969 Add include guard.
9970
9971 * gdbserver/linux-arm-low.c: New file.
9972 * gdbserver/linux-i386-low.c: New file.
9973 * gdbserver/linux-ia64-low.c: New file.
9974 * gdbserver/linux-m68k-low.c: New file.
9975 * gdbserver/linux-mips-low.c: New file.
9976 * gdbserver/linux-ppc-low.c: New file.
9977 * gdbserver/linux-sh-low.c: New file.
9978
9979 * gdbserver/regcache.c: New file.
9980 * gdbserver/regcache.h: New file.
9981
9982 * gdbserver/low-linux.c: Removed obsolete file.
9983
9984 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9985
9986 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9987 * config/i386/linux.mt: Likewise.
9988 * config/ia64/linux.mt: Likewise.
9989 * config/m68k/linux.mh: Likewise.
9990 * config/powerpc/linux.mh: Likewise.
9991 * config/mips/linux.mt: Likewise.
9992
9993 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9994
9995 * config/i386/i386lynx.mh: Mark gdbserver variables
9996 as (currently) obsolete for this target.
9997 * config/i386/nbsd.mt: Likewise.
9998 * config/i386/nbsdelf.mt: Likewise.
9999 * config/m32r/m32r.mt: Likewise.
10000 * config/m68k/m68klynx.mh: Likewise.
10001 * config/m68k/nbsd.mt: Likewise.
10002 * config/m68k/sun3os4.mh: Likewise.
10003 * config/mips/vr5000.mt: Likewise.
10004 * config/ns32k/nbsd.mt: Likewise.
10005 * config/pa/hppabsd.mh: Likewise.
10006 * config/pa/hppaosf.mh: Likewise.
10007 * config/powerpc/nbsd.mt: Likewise.
10008 * config/rs6000/rs6000lynx.mh: Likewise.
10009 * config/s390/s390.mt: Likewise.
10010 * config/s390/s390x.mt: Likewise.
10011 * config/sparc/sparclynx.mh: Likewise.
10012 * config/sparc/sun4os4.mh: Likewise.
10013 * config/i386/x86-64linux.mt: Likewise.
10014 * config/sparc/linux.mh: Likewise.
10015
10016 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10017
10018 * configure.tgt: Configure gdbserver only for known working
10019 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
10020 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
10021 SUBDIRS if it is configured. Update comment for ${nativefile}.
10022 * configure: Regenerated.
10023
10024 2002-02-13 Michael Snyder <msnyder@redhat.com>
10025
10026 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10027
10028 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10029 (default_gcore_mach): Just return 0, work around a problem in bfd.
10030 (default_gcore_target): OK to return NULL if exec_bfd is null.
10031 (make_mem_sec): Use a cast, avoid a warning.
10032
10033 * procfs.c (find_memory_regions_callback): Use a cast instead of
10034 calling host_pointer_to_address (which complains if
10035 sizeof (host pointer) != sizeof (target pointer)).
10036 (procfs_make_note_section): Avoid overflow in psargs string.
10037
10038 * procfs.c (procfs_make_note_section): Make the default
10039 implementation return an error.
10040
10041 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
10042
10043 * procfs.c (procfs_make_note_section): Provide a default definition
10044 (for alpha-dec-osf4.0f). Fix typos.
10045
10046 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
10047
10048 * linux-proc.c: Add include of regcache.h.
10049 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10050
10051 2002-02-13 Andrew Cagney <ac131313@redhat.com>
10052
10053 From 2002-01-18 Greg McGary <greg@mcgary.org>:
10054 * memattr.c (create_mem_region): Disallow useless empty region.
10055 Regions are half-open intervals, so allow [A..B) [B..C) as
10056 non-overlapping.
10057
10058 2002-02-13 Michael Chastain <mec@shout.net>
10059
10060 * defs.h: Kill CONST_PTR.
10061 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10062 * c-lang.c (c_builtin_types): Likewise.
10063 * ch-lang.c (ch_builtin_types): Likewise.
10064 * f-lang.c (f_builtin_types): Likewise.
10065 * language.c (unknown_builtin_types): Likewise.
10066 * m2-lang.c (m2_builtin_types): Likewise.
10067 * p-lang.c (pascal_builtin_types): Likewise.
10068 * scm-lang.c (c_builtin_types): Likewise.
10069
10070 2002-02-13 Keith Seitz <keiths@redhat.com>
10071
10072 * arm-tdep.h (arm_get_next_pc): Add declaration.
10073
10074 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
10075
10076 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10077 with other related struct-returning functions.
10078 (arm_extract_struct_value_address): New function.
10079 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10080 initialize float_format, double_format and long_double_format as
10081 appropriate to the endianness of the target.
10082 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10083 (arm_use_struct_convention): Delete declaration.
10084 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10085
10086 2002-02-13 Keith Seitz <keiths@redhat.com>
10087
10088 * defs.h (core_addr_to_string_nz): New function.
10089
10090 2002-02-13 Mark Kettenis <kettenis@gnu.org>
10091
10092 Apply missing bits of 2002-01-15 patch.
10093 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10094 (fill_fpregset): Use i387_fill_fsave.
10095
10096 2002-02-12 Keith Seitz <keiths@redhat.com>
10097
10098 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10099 (core_addr_to_string_nz): New function.
10100
10101 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10102
10103 * arm-linux-nat.c: Really include arm-tdep.h.
10104 * config/arm/tm-linux.h (struct type, struct value): Declare.
10105
10106 2002-02-11 Michael Snyder <msnyder@redhat.com>
10107
10108 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10109 (gcore section): Ifdef for Solaris and Unixware only.
10110 (procfs_do_thread_registers): Unixware needs one lwpstatus
10111 per thread (not one prstatus or pstatus).
10112 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10113 not over all gdb threads. For unixware, call elfcore_write_pstatus
10114 once before iterating over threads.
10115
10116 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10117
10118 * arm-tdep.h: New file.
10119 * arm-tdep.c: Include arm-tdep.h.
10120 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10121 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10122 (arm_print_float_info, arm_register_type, convert_to_extended)
10123 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10124 (arm_extract_return_value, arm_register_name): Make static.
10125 (arm_software_single_step): Similarly. Fix types in declaration.
10126 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10127 (arm_store_return_value, arm_store_struct_return): New functions.
10128 (arm_gdbarch_init): Register the above functions. Also register
10129 call_dummy_start_offset, sizeof_call_dummy_words,
10130 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10131 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
10132 max_register_virtual_size, register_size. Set up
10133 prologue_cache.saved_regs here, rather than ...
10134 (_initialize_arm_tdep): ... here.
10135 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10136 declarations.
10137 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10138 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10139 (arm_print_float_info, arm_register_type, convert_to_extended)
10140 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10141 (arm_extract_return_value, arm_register_name): Delete declarations.
10142 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10143 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10144 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10145 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10146 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10147 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10148 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10149 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10150 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10151 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10152 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10153 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10154 interface.
10155 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10156 * remote-rdi.c remote-rdp.c: Likewise.
10157 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10158 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10159 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10160 definition.
10161
10162 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10163 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10164 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10165 from non-ARM_ prefixed definitions.
10166 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10167 all uses of above.
10168 * remote-rdi.c remote-rdp.c: Likewise.
10169 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10170
10171 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10172
10173 * arm-tdep.c (arm_frameless_function_invocation)
10174 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10175 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10176 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10177 (arm_pop_frame, arm_get_next_pc): Make static.
10178 (arm_gdbarch_init): Register above in gdbarch structure.
10179 (arm_read_fp): Renamed from arm_target_read_fp.
10180 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10181 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10182 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10183 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10184 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10185 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10186 (arm_pc_is_thumb_dummy): Delete declarations.
10187 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10188 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10189 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10190 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
10191
10192 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
10193
10194 * symtab.c (compare_search_syms): New function.
10195 (sort_search_symbols): New function.
10196 (search_symbols): Sort symbols after searching rather than
10197 before.
10198
10199 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10200
10201 * NEWS: Linux -> GNU/Linux.
10202
10203 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10204
10205 * gdbarch.sh: For for level one methods, disallow a definition
10206 when partially multi-arched. Add comments explaining rationale.
10207 * gdbarch.h: Re-generate.
10208
10209 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10210
10211 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10212 multi-arch partial.
10213
10214 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10215
10216 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10217 field. Use diff -u.
10218 * gdbarch.c: Re-generate.
10219
10220 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10221
10222 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
10223 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10224 partial.
10225
10226 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10227
10228 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10229 multi-arch partial.
10230 (PUSH_ARGUMENTS): Switch to using predefault.
10231 * gdbarch.c: Regenerate.
10232
10233 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10234
10235 * valops.c (PUSH_ARGUMENTS): Delete definition.
10236 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10237 partial. Default to default_push_arguments.
10238 * gdbarch.h, gdbarch.c: Regenerate.
10239
10240 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10241
10242 * defs.h (throw_exception): Rename return_to_top_level. Update
10243 comments.
10244 * utils.c (error_stream, internal_verror, quit): Ditto.
10245 * top.c (throw_exception, catcher): Ditto.
10246 * sparclet-rom.c (sparclet_load): Ditto.
10247 * remote.c (interrupt_query, minitelnet): Ditto.
10248 * remote-sds.c (interrupt_query): Ditto.
10249 * remote-mips.c (mips_error, mips_kill): Ditto.
10250 * ocd.c (interrupt_query): Ditto.
10251 * monitor.c (monitor_interrupt_query): Ditto.
10252 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10253 * target.h: Update comment.
10254
10255 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10256
10257 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10258
10259 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10260 default_double_format.
10261 * gdbarch.h, gdbarch.c: Re-generate.
10262 * findvar.c (floatformat_unknown): Delete variable definition.
10263 * doublest.h (floatformat_unknown): Delete variable declaration.
10264
10265 2002-02-09 Jim Blandy <jimb@redhat.com>
10266
10267 * stabsread.c (read_type): Add code to parse Sun's syntax for
10268 prototyped function types.
10269
10270 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10271
10272 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10273 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10274
10275 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10276
10277 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10278 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10279 now _initialize_xcoffsolib gets called again and overrides the
10280 commands from solib.c in a native configuration.
10281
10282 2002-02-09 Mark Kettenis <kettenis@gnu.org>
10283
10284 * doublest.c (store_typed_floating): Don't try to return a value.
10285 Fixes PR gdb/290.
10286
10287 2002-02-08 Jim Blandy <jimb@redhat.com>
10288
10289 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10290 is prototyped and has no arguments, print its argument list as
10291 `(void)'.
10292
10293 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10294
10295 * MAINTAINERS (write-after-approval): Add myself.
10296 (paper-trail): I've escaped!
10297
10298 2002-02-08 Christopher Faylor <cgf@redhat.com>
10299
10300 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10301 changes.
10302 (_initialize_check_for_gdb_ini): Ditto.
10303
10304 2002-02-08 Martin M. Hunt <hunt@redhat.com>
10305
10306 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10307 xaprintf -> xasprintf.
10308
10309 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10310
10311 * win32-nat.c: Remove use of printf and sprintf functions.
10312
10313 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
10314
10315 * arm-tdep.c (arm_frame_chain_valid): Make static.
10316 (arm_push_arguments): Likewise.
10317 (arm_gdbarch_init): New function.
10318 (_initialize_arm_tdep): Call it.
10319 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10320 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10321 (FRAME_CHAIN_VALID): Delete.
10322 (arm_frame_chain_valid): Delete declaration.
10323 (PUSH_ARGUMENTS): Delete.
10324 (arm_push_arguments): Delete declaration.
10325 (CALL_DUMMY_P): Delete.
10326
10327 2002-02-08 Andrew Cagney <ac131313@redhat.com>
10328 Corinna Vinschen <vinschen@redhat.com>
10329
10330 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10331 on builtin float types.
10332
10333 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
10334
10335 * utils.c: Include <curses.h> before "bfd.h".
10336 * tui/tui-hooks.c: Likewise.
10337 * tui/tui.c: Likewise.
10338 * tui/tuiCommand.c: Likewise.
10339 * tui/tuiData.c: Likewise.
10340 * tui/tuiDataWin.c: Likewise.
10341 * tui/tuiDisassem.c: Likewise.
10342 * tui/tuiGeneralWin.c: Likewise.
10343 * tui/tuiIO.c: Likewise.
10344 * tui/tuiLayout.c: Likewise.
10345 * tui/tuiRegs.c: Likewise.
10346 * tui/tuiSource.c: Likewise.
10347 * tui/tuiSourceWin.c: Likewise.
10348 * tui/tuiStack.c: Likewise.
10349 * tui/tuiWin.c: Likewise.
10350
10351 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
10352
10353 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10354 to include space for pseudoregs as well. Update loops accordingly.
10355 (sh_fp_frame_init_saved_regs): Ditto.
10356 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10357
10358 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10359
10360 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10361 Add Richard Earnshaw to Arm maintainers.
10362
10363 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10364
10365 * defs.h (warning_begin): Delete declaration.
10366
10367 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10368 Delete macro.
10369
10370 2002-02-07 Michael Snyder <msnyder@redhat.com>
10371
10372 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10373 Logic bug, remove misplaced else.
10374
10375 2002-02-07 Klee Dienes <klee@apple.com>
10376
10377 * fork-inferior.c (fork_inferior): Add '!' to the list of
10378 characters that need to be quoted when building a string for the
10379 shell. Quote '!' specifically with a backslash, since CSH chokes
10380 when trying to evaluate "str!str".
10381
10382 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10383
10384 * rdi-share/host.h: Only provide a typedef for bool if it is not
10385 defined.
10386
10387 2002-02-04 Michael Snyder <msnyder@redhat.com>
10388
10389 * breakpoint.h (enum bptype): Add new overlay event bp type.
10390 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10391
10392 * breakpoint.c (create_internal_breakpoint): New function.
10393 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10394 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10395 (create_thread_event_breakpoint): Ditto.
10396 (create_solib_event_breakpoint): Ditto.
10397 (create_overlay_event_breakpoint): New function.
10398 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10399 (update_breakpoints_after_exec): Delete and re-initialize
10400 overlay event breakpoints after an exec. Add FIXME comment
10401 about longjmp breakpoint.
10402 (print_it_typical): Ignore overlay event breakpoints.
10403 (print_one_breakpoint): Ditto.
10404 (mention): Ditto.
10405 (bpstat_what): Do not stop for overlay event breakpoints.
10406 (delete_breakpoint): Don't delete overlay event breakpoints.
10407 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10408 (breakpoint_re_set): Re-create overlay event breakpoint.
10409
10410 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10411 (overlay_manual_command): Disable overlay breakpoints.
10412 (overlay_off_command): Disable overlay breakpoints.
10413
10414 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10415
10416 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10417 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10418 to here from config/tm-arm.h.
10419 (coff_sym_is_thumb): Make static.
10420 (arm_elf_make_msymbol_special): New function.
10421 (arm_coff_make_msymbol_special): New function.
10422 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10423 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10424 (coff_sym_is_thumb): Delete declaration.
10425 (arm_elf_make_msymbol_special): Declare.
10426 (arm_coff_make_msymbol_special): Declare.
10427 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10428 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10429
10430 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10431
10432 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10433
10434 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10435
10436 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10437 * gdbarch.c gdbarch.h: Regenerate.
10438 * arch-utils.c (default_print_float_info): New function.
10439 * arch-utils.h (default_print_float_info): Prototype it.
10440 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10441 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10442 (PRINT_FLOAT_INFO): Document it.
10443
10444 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10445 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10446 (PRINT_FLOAT_INFO): Define.
10447
10448 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10449
10450 * win32-nat.c (_initialize_check_for_gdb_ini):
10451 Add typecast to sprintf argument to suppress a warning.
10452
10453 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10454
10455 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10456 to allow easier handling of pass state.
10457 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10458 that gives exception name and address.
10459 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10460 and set last_sig value to ourstatus->value.sig. Some missing
10461 exceptions added.
10462 (child_continue): Correctly report continue_status.
10463 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10464 TARGET_SIGNAL_0 (new default value).
10465 (child_resume): consider sig argument passed to decide if
10466 the exception should be passed to debuggee or not.
10467
10468 2002-02-05 Michael Snyder <msnyder@redhat.com>
10469
10470 * regcache.c (fetch_register): Call target_fetch_register
10471 only if we don't call FETCH_PSEUDO_REGISTER.
10472 (store_register): Call target_store_register only if we
10473 don't call STORE_PSEUDO_REGISTER.
10474
10475 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
10476
10477 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10478 ELF_MAKE_MSYMBOL_SPECIAL.
10479 * gdbarch.c, gdbarch.h: Regenerate.
10480 * arch-utils.c (default_make_msymbol_special): New function.
10481 * arch-utils.h (default_make_msymbol_special): Export.
10482 * elfread.c (elf_symtab_read): Compile use of
10483 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10484 multiarched.
10485 * coffread.c (coff_symtab_read): Ditto, for
10486 COFF_MAKE_MSYMBOL_SPECIAL.
10487
10488 2002-02-05 Jim Blandy <jimb@redhat.com>
10489
10490 * solib-svr4.c (svr4_truncate_ptr): New function.
10491 (svr4_relocate_section_addresses): Do the address arithmetic with
10492 the appropriate truncation for target addresses, even when
10493 CORE_ADDR is larger than a target address.
10494
10495 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10496
10497 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10498 to (int *).
10499
10500 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10501
10502 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10503 code.
10504
10505 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10506
10507 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10508
10509 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10510
10511 * gdbserver/linux-low.c: Remove unused include files.
10512
10513 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10514
10515 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10516 (read_inferior_memory): Use it.
10517 (write_inferior_memory): Likewise.
10518
10519 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10520
10521 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10522 grubbing through sys_errlist.
10523
10524 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10525
10526 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10527
10528 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10529 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10530
10531 2002-02-04 Andrew Cagney <ac131313@redhat.com>
10532
10533 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10534 (do_sfunc, set_cmd_sfunc): New functions.
10535
10536 * command.h (struct cmd_list_element): Add field func.
10537 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10538 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10539 * cli/cli-decode.h: Ditto.
10540
10541 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10542 (help_all, help_cmd_list): Ditto.
10543 (find_cmd, complete_on_cmdlist): Ditto.
10544 * top.c (execute_command): Ditto.
10545
10546 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10547 function.sfunc.
10548
10549 * infcmd.c (notice_args_read): Fix function signature.
10550
10551 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10552 * cli/cli-decode.c (add_set_cmd): Ditto.
10553 * utils.c (initialize_utils): Ditto.
10554 * maint.c (_initialize_maint_cmds): Ditto.
10555 * infrun.c (_initialize_infrun): Ditto.
10556 * demangle.c (_initialize_demangler): Ditto.
10557 * remote.c (add_packet_config_cmd): Ditto.
10558 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10559 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10560 * proc-api.c (_initialize_proc_api): Ditto.
10561 * kod.c (_initialize_kod): Ditto.
10562 * valprint.c (_initialize_valprint): Ditto.
10563 * top.c (init_main): Ditto.
10564 * infcmd.c (_initialize_infcmd): Ditto.
10565 * corefile.c (_initialize_core): Ditto.
10566 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10567 * arch-utils.c (initialize_current_architecture): Ditto.
10568 (_initialize_gdbarch_utils): Ditto.
10569 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10570
10571 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10572 * wince.c (_initialize_inftarg): Ditto.
10573 * symfile.c (_initialize_symfile): Ditto.
10574 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10575 * language.c (_initialize_language): Ditto.
10576 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10577
10578 2002-02-04 Michael Snyder <msnyder@redhat.com>
10579
10580 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10581
10582 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10583
10584 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10585 Add rules for building the register data files.
10586
10587 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10588
10589 * regformats/regdat.sh: Add braces to the definition of
10590 expedite_regs_${arch}.
10591
10592 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10593
10594 * regformats/regdef.h (struct reg): Add comment describing the
10595 requirements for offset and size fields.
10596
10597 2002-02-04 Andreas Schwab <schwab@suse.de>
10598
10599 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10600 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10601
10602 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
10603
10604 * gdbarch.sh (copyright): Update years in generated header.
10605 (SMASH_TEXT_ADDRESS): Add rule.
10606 * gdbarch.h, gdbarch.c: Re-generate.
10607 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10608 * dbxread.c: Likewise.
10609 * dwarfread.c: Likewise.
10610 * elfread.c: Likewise.
10611 * somread.c: Likewise.
10612
10613 * arm-tdep.c (arm_smash_text_address): New function.
10614 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10615
10616 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10617
10618 Add support for hardware watchpoints on win32 native.
10619 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10620 CONTEXT_DEBUG_REGISTERS.
10621 (dr variable): New variable. Static array containing a local copy
10622 of debug registers.
10623 (debug_registers_changed): New variable. Reflects when debug registers
10624 are changed and need to be written to inferior.
10625 (debug_registers_used): New variable. Reflects when any debug register
10626 was set, used when new threads are created.
10627 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10628 i386-nat code.
10629 (thread_rec): Set dr array if id is the thread of current_event .
10630 (child_continue, child_resume): Change the debug registers for all
10631 threads if debug_registers_changed.
10632 (child_add_thread): Change the debug registers if debug_registers_used.
10633 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10634 Link nm.h to new nm-cygwin.h file.
10635 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10636 of hardware registers.
10637
10638 2002-02-03 Andrew Cagney <ac131313@redhat.com>
10639
10640 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10641 Restore behavour broken by 2002-01-20 Andrew Cagney
10642 <ac131313@redhat.com> IEEE_FLOAT removal.
10643
10644 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10645
10646 * c-valprint.c (c_val_print): Pass a proper valaddr to
10647 cp_print_class_method.
10648 * valops.c (search_struct_method): If there is only one method
10649 and args is NULL, return that method.
10650
10651 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10652
10653 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10654 accessing tag_name directly.
10655
10656 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10657
10658 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10659 of accessing tag_name directly.
10660
10661 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10662
10663 PR gdb/280
10664 * gdbtypes.c (replace_type): New function.
10665 * gdbtypes.h (replace_type): Add prototype.
10666 * stabsread.c (read_type): Use replace_type.
10667
10668 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
10669
10670 * Makefile.in (memattr.o): Add missing dependencies rule.
10671
10672 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10673
10674 * breakpoint.c (break_at_finish_command): Really export.
10675 (break_at_finish_at_depth_command): Ditto.
10676 (tbreak_at_finish_command): Ditto.
10677 * hppa-tdep.c: Include completer.h.
10678 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10679 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10680
10681 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10682
10683 * utils.c (do_write): New function.
10684 (error_stream): Rewrite combining the code from error_begin and
10685 verror.
10686 (verror): Rewrite using error_stream.
10687 (error_begin): Delete function.
10688
10689 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10690
10691 * utils.c (error_begin): Make static.
10692 * defs.h (error_begin): Delete declaration.
10693
10694 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10695 (decode_line_1): Use cplusplus_error instead of error_begin,
10696 cplusplus_hint and return_to_top_level.
10697 * coffread.c (coff_symfile_read): Use error instead of error_begin
10698 and return_to_top_level.
10699 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10700
10701 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10702
10703 * language.h (type_error, range_error): Make string parameter
10704 constant.
10705 * language.c (warning_pre_print): Delete extern declaration.
10706 * dwarfread.c (warning_pre_print): Ditto.
10707 * language.c (type_error, range_error): Rewrite to use verror and
10708 vwarning instead of warning_begin.
10709
10710 2002-02-01 Michael Snyder <msnyder@redhat.com>
10711
10712 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10713 (set_ignore_count): Move misplaced comment back where it belongs.
10714
10715 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10716
10717 * command.h (NO_FUNCTION): Delete macro.
10718 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10719 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10720 * tracepoint.c (_initialize_tracepoint): Ditto.
10721 * cli/cli-decode.c (add_set_cmd): Ditto.
10722 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10723
10724 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10725
10726 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10727 Update ``this'' pointer when calling virtual functions.
10728
10729 2002-02-01 Michael Snyder <msnyder@redhat.com>
10730
10731 * breakpoint.c (create_temp_exception_breakpoint): Delete.
10732 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10733
10734 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10735
10736 * regformats/reg-arm.dat: New file.
10737 * regformats/reg-i386.dat: New file.
10738 * regformats/reg-ia64.dat: New file.
10739 * regformats/reg-m68k.dat: New file.
10740 * regformats/reg-mips.dat: New file.
10741 * regformats/reg-ppc.dat: New file.
10742 * regformats/reg-sh.dat: New file.
10743 * regformats/regdef.h: New file.
10744 * regformats/regdat.sh: New file.
10745
10746 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
10747
10748 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10749 (arm_frame_args_address, arm_frame_locals_address): New functions.
10750 (arm_frame_num_args): New function.
10751 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10752 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10753 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10754
10755 2002-01-31 Michael Snyder <msnyder@redhat.com>
10756
10757 * breakpoint.c (break_at_finish_command): Export.
10758 (break_at_finish_at_depth_command): Export.
10759 (tbreak_at_finish_command): Export.
10760 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
10761 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10762 "txbreak" commands, which are HPPA specific.
10763
10764 * printcmd.c (disassemble_command): Remove an ancient
10765 artifact of an old merge.
10766
10767 * symfile.h (enum overlay_debugging_state):
10768 Define enum constant values for overlay mode.
10769 * symfile.c (overlay_debugging): Use enums instead of literals.
10770 (overlay_is_mapped, overlay_auto_command,
10771 overlay_manual_command): Ditto.
10772
10773 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10774 breakpoint_here_p, breakpoint_inserted_here_p,
10775 breakpoint_thread_match, bpstat_stop_status,
10776 describe_other_breakpoints, check_duplicates, clear_command):
10777 Coding standard fixes.
10778
10779 * target.c (target_xfer_memory): Add spaces, coding standard.
10780 (do_xfer_memory): Add missing line to trust-readonly
10781 code: check bfd SEC_READONLY flag for section.
10782
10783 2002-01-31 Andrew Cagney <ac131313@redhat.com>
10784
10785 * PROBLEMS: Fix typo, 5.1->5.1.1.
10786
10787 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
10788
10789 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10790 data symbols, since we search based on textlow and texthigh.
10791 (find_pc_sect_symtab): Likewise.
10792
10793 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10794
10795 * defs.h (vwarning): Declare.
10796 * utils.c (vwarning): New function.
10797 (warning): Call vwarning.
10798 (warning_begin): Delete function.
10799
10800 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10801 the warning message.
10802 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10803 warning_begin.
10804
10805 2002-01-30 Michael Snyder <msnyder@redhat.com>
10806
10807 * NEWS: Mention "set trust-readonly-sections" command.
10808 Mention generate-core-file command.
10809
10810 2002-01-15 Michael Snyder <msnyder@redhat.com>
10811
10812 * target.c: New command, "set trust-readonly-sections on".
10813 (do_xfer_memory): Honor the suggestion to trust readonly sections
10814 by reading them from the object file instead of from the target.
10815 (initialize_targets): Register command "set trust-readonly-sections".
10816
10817 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10818
10819 * parse.c (target_map_name_to_register): Simplify, search regs and
10820 pseudo-regs using a single loop.
10821
10822 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10823
10824 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10825
10826 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
10827
10828 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10829 * config/i386/i386v42mp.mh: Add i387-nat.o .
10830 * i386v4-nat.c: Include i387-nat.h.
10831 (supply_fpregset): Use i387_supply_fsave.
10832 (fill_fpregset): Use i387_fill_fsave.
10833
10834 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
10835
10836 * arm-tdep.c (arm_call_dummy_words): Define.
10837 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10838 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10839 (CALL_DUMMY_WORDS): Define.
10840 (arm_call_dummy_words): Declare.
10841 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10842 (arm_linux_call_dummy_words): Declare.
10843
10844 2002-01-30 Andreas Schwab <schwab@suse.de>
10845
10846 * m68klinux-nat.c: Fix last change to use regcache_collect
10847 instead of referencing registers[] directly.
10848
10849 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10850
10851 * parse.c (target_map_name_to_register): Delete code wrapped in
10852 #ifdef REGISTER_NAME_ALIAS_HOOK.
10853
10854 2002-01-28 Michael Snyder <msnyder@redhat.com>
10855
10856 * regcache.c (legacy_read_register_gen): Need to be able to
10857 read pseudo-register as well as real register.
10858 (legacy_write_register_gen): Ditto.
10859
10860 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10861
10862 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10863 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10864 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10865 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10866 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10867 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10868 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10869 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10870 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10871 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10872 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10873 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10874 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10875 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10876 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10877 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10878 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10879 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10880 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10881 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10882
10883 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10884
10885 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10886 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10887 (initialize_current_architecture): Update target_byte_order using
10888 information from BFD.
10889 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
10890 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10891
10892 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10893
10894 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10895 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10896
10897 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10898 #ifdef INVALID_FLOAT.
10899 * infcmd.c (do_registers_info): Ditto.
10900 * values.c (unpack_double): Ditto. Add comment.
10901
10902 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10903 already commented out.
10904
10905 2002-01-26 Andreas Schwab <schwab@suse.de>
10906
10907 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10908 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10909 registers and add support for PTRACE_GETREGS.
10910
10911 2002-01-24 Andrew Cagney <ac131313@redhat.com>
10912
10913 GDB 5.1.1 released from 5.1 branch.
10914 * NEWS: Add 5.1.1 news.
10915 * README: Sync with 5.1 branch.
10916
10917 2002-01-23 Fred Fish <fnf@redhat.com>
10918
10919 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10920 stabstring on initial malloc. Reallocing will copy it for us,
10921 if necessary.
10922
10923 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10924
10925 * Makefile.in (hpread_h): Delete.
10926 (HFILES_NO_SRCDIR): Remove hpread.h.
10927 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10928 (hpread.o): Update dependencies.
10929 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10930
10931 * hp-psymtab-read.c: Remove file.
10932 * hp-symtab-read.c: Remove file.
10933 * hpread.h: Remove file.
10934
10935 * hpread.c: Merge all contents of hp-psymtab-read.c,
10936 hp-symtab-read.c and hpread.h into this file, as it was prior to
10937 January 1999.
10938
10939 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
10940 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
10941 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10942 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10943
10944 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10945
10946 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10947 fill_gregset): Call gdbarch_tdep() just once, assign result to
10948 variable and use that, instead of calling the function several
10949 times.
10950
10951 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10952
10953 * configure.host: Accept sparcv9 as alias for sparc64.
10954 * configure.tgt: Likewise.
10955
10956 2002-01-22 Kevin Buettner <kevinb@redhat.com>
10957
10958 * solib-aix5.c (build_so_list_from_mapfile)
10959 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10960 arguments is not reversed.
10961 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10962 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
10963
10964 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
10965
10966 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10967 modified version of obsolete sh_fetch_pseudo_register.
10968 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10969 (sh4_register_read): New function.
10970 (sh_pseudo_register_write): New function. Renamed and modified
10971 version of obsolete sh_store_pseudo_register.
10972 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10973 (sh4_register_write): New function.
10974 (sh_gdbarch_init): Remove setting of gdbarch function
10975 fetch_pseudo_register and store_pseudo_register. Remove setting of
10976 register_convert_to_raw, register_convert_to_virtual,
10977 register_convertible.
10978 (sh_sh4_register_convertible): Delete. No longer needed. All is
10979 taken care by architecture specific functions
10980 register_read/register_write.
10981 (sh_sh4_register_convert_to_virtual): Make static.
10982 (sh_sh4_register_convert_to_raw): Ditto.
10983
10984 2002-01-22 Andrew Cagney <ac131313@redhat.com>
10985
10986 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10987 (floatformat_is_nan, floatformat_mantissa): Ditto.
10988
10989 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10990 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10991 builtin_type_ieee_double_little,
10992 builtin_type_ieee_double_littlebyte_bigword,
10993 builtin_type_m68881_ext, builtin_type_i960_ext,
10994 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10995 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10996 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10997 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10998
10999 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
11000
11001 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
11002 parameter. Set frameless flag if it exists and depended of
11003 whether the scanned function is frameless or not.
11004 (xstormy16_skip_prologue): If function is frameless, return
11005 result of xstormy16_scan_prologue().
11006 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
11007 call.
11008
11009 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
11010
11011 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11012 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11013 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11014 sh_sh4_register_byte, sh_sh4_register_raw_size,
11015 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11016 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11017 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11018 sh_store_pseudo_register, sh_do_pseudo_register): Call
11019 gdbarch_tdep() just once, assign result to variable and use that,
11020 instead of calling the function several times.
11021
11022 2002-01-20 Mark Kettenis <kettenis@gnu.org>
11023
11024 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11025 macros instead of LAST_FPU_CTRL_REGNUM.
11026 (store_register): Likewise.
11027
11028 2002-01-21 Jim Blandy <jimb@redhat.com>
11029
11030 * infcmd.c (run_command): Check that the `exec' target layer's BFD
11031 is up-to-date before running the program, not just when a program
11032 exits.
11033
11034 2002-01-21 Fred Fish <fnf@redhat.com>
11035
11036 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11037 when we have found all instructions we are looking for.
11038
11039 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11040
11041 * arm-tdep.c (arm_register_name): New function.
11042 (arm_registers_names): Make static.
11043 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11044 (arm_register_name): Declare.
11045 (REGISTER_NAME): Use it.
11046
11047 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11048 Kevin Buettner <kevinb@redhat.com>
11049
11050 Convert arm targets to new FRAME interface.
11051 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11052 (arm_frame_find_save_regs): Delete.
11053 (arm_frame_init_saved_regs): New.
11054 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11055 Allocate extra_info as required. Convert all uses of fsr.regs
11056 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11057 to use extra_info.
11058 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11059 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11060 (check_prologue_cache, save_prologue_cache): Likewise.
11061 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11062 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11063 (FRAME_FIND_SAVED_REGS): Delete.
11064 (arm_frame_find_saved_regs): Delete prototype.
11065 (arm_frame_init_saved_regs): New prototype.
11066 (FRAME_INIT_SAVED_REGS): Define.
11067
11068 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11069
11070 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11071
11072 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11073
11074 From Jeff Law <law@redhat.com>:
11075 * infttrace.c: Include <sys/pstat.h>.
11076 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11077 exec file if the ttrace equivalent fails.
11078
11079 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11080
11081 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11082 (closeLogFile): Ditto.
11083
11084 2002-01-20 Michael Chastain <mec@shout.net>
11085
11086 * top.c (print_gdb_version): Bump copyright year to 2002.
11087
11088 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11089
11090 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11091 Zannoni and Eli Zaretskii.
11092
11093 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11094
11095 * buildsym.c: Update copyright years.
11096 * c-typeprint.c: Likewise.
11097 * dwarf2read.c: Likewise.
11098 * f-typeprint.c: Likewise.
11099 * gdbtypes.c: Likewise.
11100 * gdbtypes.h: Likewise.
11101 * hp-symtab-read.c: Likewise.
11102 * hpread.c: Likewise.
11103 * mdebugread.c: Likewise.
11104 * p-typeprint.c: Likewise.
11105
11106 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11107
11108 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11109 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11110 byte-order selectable.
11111 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11112 * arch-utils.c: Ditto.
11113 (set_endian): Ditto.
11114 (set_endian_from_file): Ditto.
11115 * gdbserver/low-sim.c (create_inferior): Ditto.
11116 * gdbarch.sh: Ditto.
11117 * gdbarch.h: Re-generate.
11118 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11119 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11120 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11121 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11122 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11123 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11124 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
11125 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11126 macro definition.
11127 * config/mips/tm-wince.h: Remove #undef of macro
11128 TARGET_BYTE_ORDER_SELECTABLE.
11129 * config/sh/tm-wince.h: Ditto.
11130
11131 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11132
11133 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11134 member function fields. Add accessor macro
11135 TYPE_FN_FIELD_ARTIFICIAL.
11136 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11137 * c-typeprint.c (c_type_print_base): Skip artificial member
11138 functions.
11139
11140 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11141
11142 * f-typeprint.c: Delete unused function f_type_print_args.
11143 * p-typeprint.c: Delete unused function pascal_type_print_args.
11144
11145 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11146
11147 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11148 comment. Add ``artificial'' to ``union field_location''.
11149
11150 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11151
11152 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11153 * mdebugread.c (parse_symbol): Likewise.
11154 * stabsread.c (define_symbol): Likewise.
11155 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11156 initializing TYPE_FIELD_BITPOS to n (obsolete).
11157 (hpread_doc_function_type): Likewise.
11158 * hpread.c (hpread_function_type): Likewise.
11159
11160 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11161
11162 * configure.in (host_makefile_frag): Only require a host makefile
11163 fragment when a native build.
11164 * configure: Re-generate.
11165
11166 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11167
11168 * doublest.h (floatformat_from_type): Declare.
11169 * doublest.c (floatformat_from_type): New function.
11170 (convert_typed_floating): Use.
11171
11172 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11173 call to function floatformat_from_type.
11174
11175 * gdbarch.sh (IEEE_FLOAT): Delete.
11176 * gdbarch.h, gdbarch.c: Re-generate.
11177 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11178 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11179 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11180 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11181 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11182 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11183 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11184 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11185 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11186 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11187 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
11188 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11189
11190 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11191 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11192 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11193 * sh-tdep.c (sh_gdbarch_init): Ditto.
11194 * mips-tdep.c (mips_gdbarch_init): Ditto.
11195 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11196 * cris-tdep.c (cris_gdbarch_init): Ditto.
11197
11198 2002-01-20 Jiri Smid <smid@suse.cz>
11199
11200 * configure.host, configure.tgt: Support x86-64.
11201 * NEWS: Note new target x86-64.
11202
11203 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11204 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11205 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11206 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11207 x86-64-linux-nat.o): Fix dependencies.
11208
11209 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11210
11211 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11212 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11213 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11214 * config/sparc/xm-sun4os4.h: Delete file.
11215 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
11216
11217 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11218
11219 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11220 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11221 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11222 * config/i386/i386lynx.mh (XM_FILE): Delete.
11223 * config/rs6000/xm-rs6000ly.h: Delete file.
11224 * config/sparc/xm-sparclynx.h: Delete file.
11225 * config/m68k/xm-m68klynx.h: Delete file.
11226 * config/i386/xm-i386lynx.h: Delete file.
11227 * config/xm-lynx.h: Delete file.
11228 * config/djgpp/fnchange.lst: Update.
11229
11230 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11231
11232 * alpha-tdep.c (alpha_register_byte): New function.
11233 (alpha_register_raw_size): Ditto.
11234 (alpha_register_virtual_size): Ditto.
11235 (alpha_skip_prologue_internal): Renamed from
11236 alpha_skip_prologue.
11237 (alpha_skip_prologue): New version that calls
11238 alpha_skip_prologue_internal.
11239 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11240 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11241 second argument from alpha_skip_prologue.
11242 (REGISTER_BYTE): Use alpha_register_byte.
11243 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11244 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11245 (FRAMELESS_FUNCTION_INVOCATION): Use
11246 generic_frameless_function_invocation_not.
11247 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11248 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11249
11250 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11251
11252 * config/mips/xm-news-mips.h: Delete file.
11253 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11254
11255 * config/m88k/xm-m88k.h: Delete file.
11256 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11257 * config/m88k/xm-delta88v4.h: Ditto.
11258 * config/m88k/xm-delta88.h: Ditto.
11259
11260 * config/alpha/xm-fbsd.h: Delete file.
11261 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11262
11263 * config/sparc/xm-sparc.h: Delete file.
11264 * Makefile.in (xm-sun4os4.h): Delete dependency.
11265 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11266 * config/sparc/xm-sun4os4.h: Ditto.
11267 * config/sparc/xm-linux.h: Ditto.
11268
11269 * config/i386/xm-windows.h: Delete file.
11270
11271 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11272
11273 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11274 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11275
11276 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11277
11278 * alpha-tdep.c (alpha_call_dummy_words): New.
11279 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11280 (CALL_DUMMY_P): Define.
11281 (CALL_DUMMY_WORDS): Define.
11282 (SIZEOF_CALL_DUMMY_WORDS): Define.
11283
11284 2002-01-19 Per Bothner <per@bothner.com>
11285
11286 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11287 isn't NULL, which can happen with some gcj-3.x-produced code.
11288
11289 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11290
11291 * alpha-tdep.c (alpha_register_virtual_type): New function.
11292 (alpha_init_frame_pc_first): Ditto.
11293 (alpha_fix_call_dummy): Ditto.
11294 (alpha_store_struct_return): Ditto.
11295 (alpha_extract_struct_value_address): Ditto.
11296 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11297 alpha_register_virtual_type.
11298 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11299 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11300 alpha_extract_struct_value_address.
11301 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11302 (INIT_FRAME_PC): Use init_frame_pc_noop.
11303 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11304
11305 2002-01-19 Mark Kettenis <kettenis@gnu.org>
11306
11307 * i386gnu-nat.c: Include "i386-tdep.h".
11308 (fetch_fpregs): Simplify code dealing with uninitialized floating
11309 point states such that it doesn't require FP7_REGNUM.
11310
11311 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11312
11313 * alpha-tdep.c (frame_extra_info): New.
11314 (alpha_find_saved_regs): Make static. Use
11315 frame->extra_info.
11316 (alpha_frame_init_saved_regs): New function.
11317 (alpha_frame_saved_pc): Use frame->extra_info.
11318 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11319 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11320 (init_extra_frame_info): Rename to...
11321 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
11322 (alpha_print_extra_frame_info): New function.
11323 (alpha_frame_locals_address): Ditto.
11324 (alpha_frame_args_address): Ditto.
11325 (alpha_pop_frame): Use frame->extra_info.
11326 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11327 alpha_frame_args_address.
11328 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11329 (alpha_find_saved_regs): Remove prototype.
11330 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11331 (EXTRA_FRAME_INFO): Remove.
11332 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11333 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11334
11335 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11336
11337 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11338 (alpha_cannot_fetch_register): Ditto.
11339 (alpha_cannot_store_register): Ditto.
11340 (alpha_register_convertible): Ditto.
11341 (alpha_use_struct_convention): Ditto.
11342 * config/alpha/tm-alpha.h: Update copyright years.
11343 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11344 (INNER_THAN): Use core_addr_lessthan.
11345 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11346 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11347 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11348 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11349 (FRAME_CHAIN): Remove unnecessary cast.
11350
11351 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11352
11353 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11354 obsolete.
11355
11356 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11357
11358 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11359 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11360 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11361 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11362 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11363 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11364 * x86-64-linux-nat.c: Ditto.
11365
11366 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11367
11368 * alpha-tdep.c (alpha_register_name): New function.
11369 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11370 (REGISTER_NAME): Define.
11371
11372 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11373
11374 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11375
11376 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11377
11378 * alpha-tdep.c: Update copyright years.
11379 (alpha_next_pc): New function.
11380 (alpha_software_single_step): Ditto.
11381 * config/alpha/tm-alpha.h: Add prototype for
11382 alpha_software_single_step.
11383
11384 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11385
11386 * alphabsd-nat.c: Update copyright years.
11387 (fill_gregset): Use regcache_collect.
11388 (fill_fpregset): Likewise.
11389 (fetch_inferior_registers): Only fetch integer registers
11390 if requested to do so.
11391 (store_inferior_registers): Only store integer registers
11392 if requested to do so.
11393
11394 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11395
11396 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11397 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11398 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11399 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11400 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11401 * config/arm/linux.mh (XDEPFILES): Delete.
11402 * config/arm/nbsd.mh (XDEPFILES): Delete.
11403 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11404 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11405 * config/i386/i386m3.mh (XDEPFILES): Delete.
11406 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11407 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11408 * config/i386/fbsd.mh (XDEPFILES): Delete.
11409 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11410 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11411 * config/i386/i386v4.mh (XDEPFILES): Delete.
11412 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11413 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11414 * config/i386/i386aix.mh (XDEPFILES): Delete.
11415 * config/i386/go32.mh (XDEPFILES): Delete.
11416 * config/i386/cygwin.mh (XDEPFILES): Delete.
11417 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11418 * config/i386/i386mach.mh (XDEPFILES): Delete.
11419 * config/i386/i386v32.mh (XDEPFILES): Delete.
11420 * config/i386/linux.mh (XDEPFILES): Delete.
11421 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11422 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11423 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11424 * config/i386/i386sco.mh (XDEPFILES): Delete.
11425 * config/i386/i386v.mh (XDEPFILES): Delete.
11426 * config/i386/nbsd.mh (XDEPFILES): Delete.
11427 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11428 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11429 * config/i386/symmetry.mh (XDEPFILES): Delete.
11430 * config/i386/obsd.mh (XDEPFILES): Delete.
11431 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11432 * config/ia64/linux.mh (XDEPFILES): Delete.
11433 * config/ia64/aix.mh (XDEPFILES): Delete.
11434 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11435 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11436 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11437 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11438 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11439 * config/m68k/linux.mh (XDEPFILES): Delete.
11440 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11441 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11442 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11443 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11444 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11445 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11446 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11447 * config/m88k/delta88.mh (XDEPFILES): Delete.
11448 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11449 * config/m88k/m88k.mh (XDEPFILES): Delete.
11450 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11451 * config/mips/linux.mh (XDEPFILES): Delete.
11452 * config/mips/irix6.mh (XDEPFILES): Delete.
11453 * config/mips/irix5.mh (XDEPFILES): Delete.
11454 * config/mips/irix4.mh (XDEPFILES): Delete.
11455 * config/mips/irix3.mh (XDEPFILES): Delete.
11456 * config/mips/decstation.mh (XDEPFILES): Delete.
11457 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11458 (NATDEPFILES): Move core-aout.o to here.
11459 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11460 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11461 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11462 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11463 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11464 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11465 * config/pa/hpux11.mh (XDEPFILES): Delete.
11466 * config/powerpc/aix.mh (XDEPFILES): Delete.
11467 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11468 * config/powerpc/linux.mh (XDEPFILES): Delete.
11469 * config/romp/rtbsd.mh: Rename XDEPFILES.
11470 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11471 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11472 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11473 * config/s390/s390.mh (XDEPFILES): Delete.
11474 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11475 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11476 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11477 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11478 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11479 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11480 * config/sparc/linux.mh (XDEPFILES): Delete.
11481 * config/vax/vaxult.mh (XDEPFILES): Delete.
11482 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11483 * Makefile.in (DEPFILES): Remove XDEPFILES.
11484
11485 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11486
11487 * utils.c (internal_verror): Fix comments, default is yes not no.
11488 Update queries to match. Default to quit and dump core.
11489
11490 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11491
11492 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11493 copyright.
11494 * defs.h, event-top.c, gdbcmd.h: Ditto.
11495 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11496 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11497 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11498 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11499 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11500 * mi/mi-main.c:Ditto.
11501
11502 * stack.c, symfile.c: Update copyright.
11503
11504 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11505
11506 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11507 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11508 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11509 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11510
11511 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11512
11513 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11514 * gdbserver/low-lynx.c (myattach): Likewise.
11515 * gdbserver/low-nbsd.c (myattach): Likewise.
11516 * gdbserver/low-sim.c (myattach): Likewise.
11517 * gdbserver/low-sparc.c (myattach): Likewise.
11518 * gdbserver/low-sun3.c (myattach): Likewise.
11519
11520 * gdbserver/low-linux.c (myattach): New function.
11521
11522 * gdbserver/server.c (attach_inferior): New function.
11523 (main): Handle "--attach".
11524
11525 2002-01-16 Andrew Cagney <ac131313@redhat.com>
11526
11527 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11528 maintainer.
11529
11530 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
11531
11532 * c-typeprint.c (is_type_conversion_operator): Add additional
11533 check for non-conversion operators.
11534
11535 2002-01-15 Michael Snyder <msnyder@redhat.com>
11536
11537 * linux-proc.c: Add "info proc" command, a la procfs.c.
11538 (read_mapping): New function, abstract and re-use code.
11539 (linux_find_memory_regions): Use new func read_mapping.
11540 (linux_info_proc_cmd): New function, implement "info proc".
11541 (_initialize_linux_proc): Add new command "info proc".
11542
11543 2002-01-15 Michael Snyder <msnyder@redhat.com>
11544
11545 * symfile.c (generic_load): Use bfd_map_over_sections method
11546 instead of manipulating bfd structure members directly.
11547 (add_section_size_callback): New function, bfd sections callback
11548 used by generic_load.
11549 (load_sections_callback): New function, bfd sections callback
11550 used by generic_load.
11551
11552 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
11553
11554 [Based on work by Jim Blandy]
11555 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11556 (builtin_type_vec128): Export.
11557 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11558 types.
11559 (builtin_type_vec128): New builtin type for 128 bit vector
11560 registers.
11561 (build_gdbtypes): Initialize builtin_type_v16qi and
11562 builtin_type_v8hi. Create the vec128 register builtin type
11563 structure.
11564 (build_builtin_type_vec128): New function.
11565 (_initialize_gdbtypes): Register builtin_type_v16qi and
11566 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11567 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11568 AltiVec register to new builtin type.
11569
11570 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
11571
11572 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11573 to make_cv_type.
11574
11575 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11576
11577 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11578 CLEAN_UP_REGISTER_VALUE.
11579 * regcache.c (supply_register): Update only call.
11580
11581 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11582
11583 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11584 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11585 a29k-*-vxworks* targets as obsolete.
11586
11587 2002-01-14 Michael Snyder <msnyder@redhat.com>
11588
11589 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11590 until we can resolve portability issues.
11591 * gregset.h: Remove references to fpxregs.
11592 * gcore.c (gcore_command): Initialize note_sec to NULL.
11593
11594 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11595
11596 * signals.c (target_signal_to_name): Rewrite. Only use
11597 signals[].name when in bounds and non-NULL.
11598
11599 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11600
11601 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11602 * signals.c (target_signal_to_name): Verify that SIG is within the
11603 bounds of the signals array.
11604
11605 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11606
11607 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11608
11609 2002-01-13 Keith Seitz <keiths@redhat.com>
11610
11611 * stack.c (print_frame_info_base): Print the frame's pc
11612 only if when print_frame_info_listing_hook is not defined.
11613
11614 2002-01-13 Keith Seitz <keiths@redhat.com>
11615
11616 * varobj.c (varobj_set_value): Make sure that there were no
11617 errors evaluating the object before attempting to set its
11618 value.
11619 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11620 so this offset adjustment is no longer necessary.
11621 (create_child): Don't set the error flag if the child is
11622 a CPLUS_FAKE_CHILD.
11623 (value_of_child): If value_fetch_lazy fails, return NULL
11624 so that callers will be notified that an error occurred.
11625 (c_value_of_variable): Delay check of variable's validity
11626 until later. We actually want all structs and unions to have
11627 the value "{...}".
11628 Do not return "???" for variables which could not be evaluated.
11629 This error condition must be returned to the caller so that it
11630 can get the error condition from gdb.
11631 (cplus_name_of_child): Adjust index for vptr before figuring
11632 out the name of the child.
11633 (cplus_value_of_child): If a child's (real) parent is not valid,
11634 don't even bother trying to give a value for it. Just return
11635 an error. Change all instances in this function.
11636 (cplus_type_of_child): If our parent is one of the "fake"
11637 parents, we need to get at the type of the real parent, and
11638 derive the child's true type using this information.
11639
11640 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11641
11642 From 2002-01-09 John Marshall <johnm@falch.net>:
11643 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11644 sources.redhat.com, and tweak some related URLs which had
11645 suffered from linkrot.
11646
11647 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11648
11649 From Jeff law:
11650 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11651 structures passed in registers.
11652
11653 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11654
11655 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11656 white space which prevented compilation. Reported by DSK
11657 <dsk@student.unsw.edu.au>.
11658
11659 2002-01-11 Michael Snyder <msnyder@redhat.com>
11660
11661 * symfile.c (build_section_addr_info_from_section_tab):
11662 Use bfd access method instead of manipulating bfd directly.
11663 (syms_from_objfile): Ditto.
11664 (simple_overlay_update_1): Ditto.
11665 (simple_overlay_update): Ditto.
11666 (generic_load): Ditto.
11667 (overlay_unmapped_address): FIXME comment, bfd access methods.
11668 (sections_overlap): FIXME comment, bfd access methods.
11669 (pc_in_mapped_range): FIXME comment, bfd access methods.
11670 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11671 (section_is_mapped): FIXME comment, bfd access methods.
11672 (section_is_overlay): FIXME comment, bfd access methods.
11673
11674 * symfile.c (generic_load): Whitespace and long line cleanups.
11675 Remove duplicate variable, change several local variables to
11676 more appropriate data types.
11677 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11678
11679 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11680
11681 From Peter Schauer:
11682 * language.c (longest_local_hex_string_custom): Use phex_nz to
11683 convert NUM to a hex string.
11684
11685 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
11686
11687 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11688 the function.
11689 Update Copyright year.
11690
11691 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11692
11693 * language.c (longest_raw_hex_string): Delete unused function.
11694
11695 2002-01-11 Petr Sorfa <petrs@caldera.com>
11696
11697 * MAINTAINERS (write-after-approval): Add myself.
11698 * dwarf2read.c (read_tag_string_type): Handling of
11699 DW_AT_byte_size.
11700 (read_tag_string_type): FORTRAN fix to prevent propagation of
11701 first string size.
11702 (set_cu_language): Handling of DW_LANG_Fortran95
11703
11704 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
11705
11706 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11707 GETPID(inferior_ptid).
11708 (store_inferior_registers): Likewise.
11709
11710 2002-01-10 Jason Merrill <jason@redhat.com>
11711
11712 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11713 Fix DW_OP_minus.
11714
11715 2002-01-10 Andrew Cagney <ac131313@redhat.com>
11716
11717 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11718 and bfd/elf32-sh-nbsd.c.
11719
11720 2002-01-10 Michael Snyder <msnyder@redhat.com>
11721
11722 * NEWS: Mention --pid and corefile/proc-id behavior change.
11723
11724 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11725 * gcore.c: Include cli/cli-decode.h instead of command.h.
11726
11727 * main.c (captured_main): Add new command line option "--pid".
11728 If the second command line argument (following the symbol-file)
11729 begins with a digit, try to attach to it before trying to open
11730 it as a corefile.
11731 (print_gdb_help): Document the "--pid" argument.
11732
11733 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11734
11735 * completer.c (command_completer): New function.
11736
11737 * completer.h <command_completer>: Add prototype.
11738
11739 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11740 completer for the "help" command.
11741
11742 2002-01-09 Jason Merrill <jason@redhat.com>
11743
11744 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11745
11746 2002-01-09 Michael Snyder <msnyder@redhat.com>
11747
11748 * i386-linux-nat.c (fill_fpxregset): Make global.
11749 (store_fpxregset): Ditto.
11750
11751 * gregset.h (gdb_fpxregset_t): Define.
11752 (supply_fpxregset): Prototype.
11753 (fill_fpxregset): Prototype.
11754
11755 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11756
11757 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11758
11759 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11760 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11761 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11762
11763 2002-01-09 Andrew Cagney <ac131313@redhat.com>
11764
11765 * MAINTAINERS: Update target maintainer rules so that any
11766 Maintainer can approve a tested patch for a maintenance-only
11767 target.
11768
11769 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11770
11771 * MAINTAINERS (write-after-approval): Add myself.
11772
11773 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
11774 IN_SIGTRAMP.
11775
11776 2002-01-08 Michael Snyder <msnyder@redhat.com>
11777
11778 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11779 real name of the executable, rather than the /proc name.
11780
11781 2002-01-03 Michael Snyder <msnyder@redhat.com>
11782
11783 Implement a "generate-core-file" command in gdb, save target state.
11784 * gcore.c: New file. Implement new command 'generate-core-file'.
11785 Save a corefile image of the current state of the inferior.
11786 * linux-proc.c: Add linux-specific code for saving corefiles.
11787 * target.h (struct target_ops): Add new target vectors for saving
11788 corefiles; to_find_memory_regions and to_make_corefile_notes.
11789 (target_find_memory_regions): New macro.
11790 (target_make_corefile_notes): New macro.
11791 * target.c (update_current_target): Inherit new target methods.
11792 (dummy_find_memory_regions): New place-holder method.
11793 (dummy_make_corefile_notes): New place-holder method.
11794 (init_dummy_target): Initialize new dummy target vectors.
11795 * exec.c (exec_set_find_memory_regions): New function.
11796 Allow the exec_ops vector for memory regions to be taken over.
11797 (exec_make_note_section): New function, target vector method.
11798 * defs.h (exec_set_find_memory_regions): Export prototype.
11799 * procfs.c (proc_find_memory_regions): New function, corefile method.
11800 (procfs_make_note_section): New function, corefile method.
11801 (init_procfs_ops): Set new target vector pointers.
11802 (find_memory_regions_callback): New function.
11803 (procfs_do_thread_registers): New function.
11804 (procfs_corefile_thread_callback): New function.
11805 * sol-thread.c (sol_find_memory_regions): New function.
11806 (sol_make_note_section): New function.
11807 (init_sol_thread_ops): Initialize new target vectors.
11808 * inftarg.c (inftarg_set_find_memory_regions): New function.
11809 Allow to_find_memory_regions vector to be taken over.
11810 (inftarg_set_make_corefile_notes): New function.
11811 Allow to_make_corefile_notes vector to be taken over.
11812 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11813 interface layer if not target_has_execution (may be a corefile).
11814 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11815 * config/sparc/sun4sol2.mh: Ditto.
11816 * config/alpha/alpha-linux.mh: Ditto.
11817 * config/arm/linux.mh: Ditto.
11818 * config/i386/x86-64linux.mh: Ditto.
11819 * config/ia64/linux.mh: Ditto.
11820 * config/m68k/linux.mh: Ditto.
11821 * config/mips/linux.mh: Ditto.
11822 * config/powerpc/linux.mh: Ditto.
11823 * config/sparc/linux.mh: Ditto.
11824
11825 2002-01-07 Michael Snyder <msnyder@redhat.com>
11826
11827 * arm-linux-nat.c: Remove references to regcache.c internal data
11828 (registers[] and register_valid[]).
11829
11830 2002-01-07 Michael Snyder <msnyder@redhat.com>
11831
11832 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11833 so that attaching to a pid will automatically read the process's
11834 symbol file and shlibs.
11835 * Makefile.in: Add rule for linux-proc.o.
11836 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11837 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11838 * config/arm/linux.mh: Ditto.
11839 * config/i386/linux.mh: Ditto.
11840 * config/i386/x86-64linux.mh: Ditto.
11841 * config/ia64/linux.mh: Ditto.
11842 * config/m68k/linux.mh: Ditto.
11843 * config/mips/linux.mh: Ditto.
11844 * config/powerpc/linux.mh: Ditto.
11845 * config/sparc/linux.mh: Ditto.
11846
11847 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11848
11849 * win32-nat.c: Add i386-tdep.h dependency.
11850
11851 2002-01-07 Michael Snyder <msnyder@redhat.com>
11852
11853 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11854 instead of bfd_get_arch_size. Don't bail out just because
11855 there's no exec_bfd.
11856
11857 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11858 * p-valprint.c (pascal_object_print_value): Ditto.
11859 * somread.c (som_symtab_read): Ditto.
11860 * symfile.c (simple_free_overlay_region_table): Ditto.
11861 * valops.c (value_assign): Ditto.
11862
11863 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11864 use tilde_expand and strerror for opening save-tracepoints file.
11865
11866 * thread-db.c (thread_db_new_objfile): Indendation fix.
11867
11868 * infptrace.c (GDB_MAX_ALLOCA): New define.
11869 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
11870 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
11871 can be overridden with whatever value is appropriate to the host).
11872 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11873 alloca to allocate potentially large buffer.
11874 * rs6000-nat.c (child_xfer_memory): Ditto.
11875 * symm-nat.c (child_xfer_memory): Ditto.
11876 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11877
11878 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11879
11880 From Nick Clifton <nickc@redhat.com>
11881 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11882
11883 2002-01-07 Michael Snyder <msnyder@redhat.com>
11884
11885 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11886 Don't use exec_bfd if it's NULL.
11887
11888 2002-01-06 Mark Kettenis <kettenis@gnu.org>
11889
11890 * valops.c (value_arg_coerce): Fix formatting.
11891
11892 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11893
11894 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11895 * gnu-nat.c: Ditto.
11896
11897 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11898
11899 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11900 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11901 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11902 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11903 z8k-coff have not been multi-arched. Update z8k-coff build
11904 status.
11905
11906 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11907
11908 * MAINTAINERS: Mark a29k target as obsolete.
11909 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11910 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11911 comments.
11912 * NEWS: Note that a29k targets are obsolete.
11913 * a29k-tdep.c: Mark as obsolete.
11914 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11915 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11916 a29k-*-vxworks* targets as obsolete.
11917 * remote-adapt.c: Obsolete.
11918 * remote-eb.c: Obsolete.
11919 * remote-mm.c: Obsolete.
11920 * remote-udi.c: Obsolete.
11921 * config/a29k/a29k-udi.mt: Obsolete.
11922 * config/a29k/a29k.mt: Obsolete.
11923 * config/a29k/tm-a29k.h: Obsolete.
11924 * config/a29k/tm-vx29k.h: Obsolete.
11925 * config/a29k/vx29k.mt: Obsolete.
11926
11927 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11928
11929 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11930 with BFD_ENDIAN_BIG.
11931
11932 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11933
11934 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11935 * configure, config.in: Re-generate.
11936 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11937 * defs.h: Do not include <endian.h>.
11938
11939 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11940
11941 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11942 * config.in: Regenerate.
11943 * configure.in: Update copyright years.
11944 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11945 * configure: Regenerate.
11946 * i386bsd-nat.c: Update copyright years.
11947 (fill_gregset): Use regcache_collect.
11948 (fetch_inferior_registers): Only fetch integer registers
11949 if requested to do so. Add support for XMM registers
11950 using PT_GETXMMREGS.
11951 (store_inferior_registers): Only store integer registers
11952 if requested to do so. Add support for XMM registers
11953 using PT_SETXMMREGS.
11954 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11955 (store_inferior_registers): Remove.
11956 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11957 (fetch_elfcore_registers): New function.
11958 (i386nbsd_elfcore_fns): New.
11959 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11960 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11961 i386bsd-nat.o.
11962 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11963 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11964 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11965 * config/i386/tm-nbsd.h: Update copyright years.
11966 (HAVE_SSE_REGS): Define.
11967 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11968 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11969 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11970 (SIGCONTEXT_PC_OFFSET): Remove.
11971 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11972
11973 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11974
11975 * configure.tgt: Remove powerpc-*-macos* target.
11976 * config/m68k/xm-mpw.h: Delete file.
11977 * config/xm-mpw.h: Delete file.
11978 * ser-mac.c: Delete file.
11979 * mpw-make.sed: Delete file.
11980 * mpw-config.in: Delete file.
11981 * mac-xdep.c: Delete file.
11982 * mac-gdb.r: Delete file.
11983 * mac-defs.h: Delete file.
11984 * mac-nat.c: Delete file.
11985 * config/powerpc/macos.mh: Delete file.
11986 * config/powerpc/macos.mt: Delete file.
11987 * config/powerpc/nm-macos.h: Delete file.
11988 * config/powerpc/tm-macos.h: Delete file.
11989 * source.c (openp, open_source_file): Remove obsolete code.
11990 * top.c (gdb_readline): Ditto.
11991 * utils.c (query): Ditto.
11992 * event-top.c (display_gdb_prompt): Ditto.
11993 * Makefile.in (ser-mac.o): Delete obsolete target.
11994 * NEWS: Update.
11995
11996 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11997
11998 * defs.h (BIG_ENDIAN): Delete macro definition.
11999 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
12000 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
12001 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
12002 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
12003 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
12004 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
12005 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
12006 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
12007 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
12008 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
12009 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
12010 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12011 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12012 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12013 * gdbarch.c: Re-generate.
12014
12015 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12016
12017 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12018 for core files.
12019
12020 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12021
12022 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12023
12024 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12025
12026 * value.h (value_ptr): Delete typedef.
12027
12028 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12029
12030 * i386nbsd-nat.c: Update copyright years.
12031 Include i386-tdep.h.
12032
12033 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
12034
12035 * stabsread.c: Update copyright years.
12036
12037 From Debashis Mahata <debashis.mahata@wipro.com>:
12038 (read_struct_fields): Deal with Sun C compiler erroneous stab
12039 output for structs and unions.
12040 Fix PR gdb/269.
12041
12042 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12043
12044 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12045 prototype.
12046
12047 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12048
12049 * cp-abi.c: Fix whitespace.
12050 (baseclass_offset): New wrapper function.
12051 * cp-abi.h (baseclass_offset): Add prototype.
12052 (struct cp_abi_ops): Add baseclass_offset pointer.
12053
12054 * valops.c (vb_match): Move to...
12055 * gnu-v2-abi.c (vb_match): here.
12056 * valops.c (baseclass_offset): Move to...
12057 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12058
12059 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12060
12061 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12062 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12063 * hpacc-abi.c (init_hpacc_ops): Likewise.
12064
12065 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12066
12067 * valops.c (find_overload_match): Accept obj as a
12068 reference parameter. Update it before returning.
12069 * value.h (find_overload_match): Update prototype.
12070 * eval.c (evaluate_subexp_standard): Pass object to
12071 find_overload_match by reference.
12072
12073 2002-01-03 Andrew Cagney <ac131313@redhat.com>
12074
12075 * valarith.c: Replace value_ptr with struct value pointer. Remove
12076 register attribute from value declarations.
12077 * valops.c: Ditto.
12078 * value.h: Ditto.
12079 * scm-lang.c (scm_lookup_name): Ditto.
12080
12081 2002-01-03 Michael Snyder <msnyder@redhat.com>
12082
12083 Abstract the functionality of iterating over mapped memory
12084 regions into a general purpose iterator function.
12085 * procfs.c (iterate_over_mappings): New function, general purpose
12086 iterator for memory sections.
12087 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12088 (solib_mappings_callback): New function, callback for above.
12089 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12090 (info_mappings_callback): New function, callback for above.
12091
12092 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12093
12094 2002-01-01 Mark Kettenis <kettenis@gnu.org>
12095
12096 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12097 * i386-tdep.c: Include "elf-bfd.h".
12098 (process_note_abi_tag_sections): New function.
12099 (i386_gdbarch_init): Add code to recognize various OS/ABI
12100 combinations.
12101
12102 * maint.c (_initialize_maint_cmds): Add missing \ in
12103 string-literal.
12104
12105 For older changes see ChangeLog-2001
12106 \f
12107 Local Variables:
12108 mode: change-log
12109 left-margin: 8
12110 fill-column: 74
12111 version-control: never
12112 End: