* Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
[binutils-gdb.git] / gdb / ChangeLog
1 2002-10-25 Mark Kettenis <kettenis@gnu.org>
2
3 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
4 * i386v-nat.c: Include "i386-tdep.h".
5
6 2002-10-25 Andrew Cagney <cagney@redhat.com>
7
8 * gdbtypes.c (address_space_name_to_int): Update.
9 (address_space_int_to_name): Update.
10 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
11 multi-arch predicate.
12 (address_class_name_to_type_flags): Ditto.
13 * gdbarch.h, gdbarch.c: Re-generate.
14
15 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
16
17 2002-10-24 Martin M. Hunt <hunt@redhat.com>
18
19 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
20
21 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
22
23 * symtab.h (INIT_SAL): Delete macro.
24 (init_sal): Export.
25 * symtab.c (init_sal): New function.
26
27 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
28 to init_sal function call.
29 (find_sal_from_funcs_and_line): Ditto.
30 (all_sals_for_line): Ditto.
31 * breakpoint.c (create_internal_breakpoint): Ditto.
32 (create_fork_vfork_event_catchpoint): Ditto.
33 (create_exec_event_catchpoint): Ditto.
34 (parse_breakpoint_sals): Ditto.
35 (watch_command_1): Ditto.
36 (handle_gnu_4_16_catch_command): Ditto.
37 (clear_command): Ditto.
38 * hppa-tdep.c (child_enable_exception_callback): Ditto.
39 * infcmd.c (run_stack_dummy): Ditto.
40 * infrun.c (process_event_stop_test): Ditto.
41 (check_sigtramp2): Ditto.
42 (step_over_function): Ditto.
43 * linespec.c (decode_line_2): Ditto.
44 (decode_line_1): Ditto.
45 * source.c (line_info): Ditto.
46 * symtab.c (find_pc_sect_line): Ditto.
47
48 2002-10-24 Michal Ludvig <mludvig@suse.cz>
49
50 * dwarf2cfi.c (struct context)
51 (struct context_reg): Moved to dwarf2cfi.h
52 (context_alloc, frame_state_alloc, context_cpy):
53 Made extern instead of static, removed prototypes.
54 * dwarf2cfi.h (struct context)
55 (struct context_reg): New, moved from dwarf2cfi.c
56 (context_alloc, frame_state_alloc, context_cpy):
57 New prototypes.
58 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
59 Changed from static to extern.
60 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
61 (LINUX_SIGCONTEXT_FP_OFFSET)
62 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
63 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
64 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
65 * x86-64-tdep.c (x86_64_gdbarch_init): Several
66 set_gdbarch_*() calls now use x86-64 specific functions
67 instead of DWARF2 CFI ones.
68 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
69 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
70 (x86_64_init_extra_frame_info): New prototypes.
71
72 2002-10-23 David Carlton <carlton@math.stanford.edu>
73
74 * linespec.c: #include "parser-defs.h".
75 Delete prototype for find_template_name_end.
76 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
77
78 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
79
80 * NEWS: add recent mi fixes.
81 * varobj.c (struct varobj): Add new "updated" flag.
82 (new_variable): Default "updated" flag to 0.
83 (varobj_set_value): Set "updated" flag to 1 if value
84 changes.
85 (varobj_update): Check varobj "updated" flag before
86 comparing old and refreshed values. Fix for
87 PR gdb/702.
88
89 2002-10-23 David Carlton <carlton@math.stanford.edu>
90
91 * parse.c (parse_exp_1): Use BLOCK_START.
92 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
93 SYMBOL_BLOCK_VALUE.
94 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
95
96 2002-10-23 David Carlton <carlton@math.stanford.edu>
97
98 * symtab.c: Delete cplusplus_hint.
99 Delete prototype for find_template_name_end.
100
101 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
102
103 * symtab.h: Update comment.
104
105 2002-10-23 Michael Snyder <msnyder@redhat.com>
106
107 * printcmd.c (address_info): Restore quotes in output.
108 * valops.c (value_of_local): Restore quotes in error message.
109
110 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
111
112 * symtab.c (symbol_demangled_name): New function.
113 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
114 turning most of it into a function.
115 (symbol_demangled_name): Export.
116
117 2002-10-23 Michael Snyder <msnyder@redhat.com>
118
119 * valops.c (value_of_local): Restore quotes in error message.
120
121 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
122
123 * symtab.c (symbol_init_language_specific): New function.
124 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
125 turning most of it into a function.
126 (symbol_init_language_specific): Export.
127
128 2002-10-23 David Carlton <carlton@math.stanford.edu>
129
130 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
131 (dwarf_attr_name): Ditto.
132 (dwarf_type_encoding_name): Ditto.
133 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
134 (process_die): Handle DW_TAG_namespace,
135 DW_TAG_imported_declaration, DW_TAG_imported_module.
136 (read_namespace): New function.
137
138 2002-10-22 Joel Brobecker <brobecker@gnat.com>
139
140 * configure.in: Define NEW_PROC_API on Interix too.
141 * configure: Regenerate.
142
143 2002-10-21 Joel Brobecker <brobecker@gnat.com>
144
145 * configure: Regenerate using the proper version of autoconf.
146
147 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
148
149 * findvar.c (read_var_value): Temporarily disable TLS code, until
150 complete TLS support is added.
151
152 2002-10-21 Jim Blandy <jimb@redhat.com>
153 Elena Zannoni <ezannoni@redhat.com>
154
155 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
156 for thread local storage locations.
157 (struct symbol): Add objfile field.
158 (SYMBOL_OBJFILE): Define.
159 * dwarf2read.c (is_thread_local): New static variable.
160 (new_symbol): If variable is in thread local fill in address class
161 and objfile appropriately.
162 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
163 stack operation.
164 * printcmd.c (address_info): Print the information for thread
165 local storage variable.
166 * findvar.c (read_var_value): In case of thread local variable,
167 defer to the target vector code to compute address.
168
169 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
170
171 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
172 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
173
174 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
175
176 * symtab.h (address_class): Rename
177 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
178 * hpread.c (hpread_process_one_debug_symbol): Ditto.
179 * printcmd.c (address_info): Ditto.
180 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
181
182 2002-10-20 Mark Kettenis <kettenis@gnu.org>
183
184 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
185 DBREG_DRX macro to acces debug registers.
186
187 * Makefile.in (i386obsd-tdep.o): New target.
188
189 * solib-sunos.c: Include "bcache.h" and "regcache.h".
190 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
191
192 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
193 * config/i386/obsd.mt: New file.
194 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
195 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
196 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
197 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
198 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
199 * i386obsd-tdep.c: New file.
200
201 2002-10-19 Adam Fedor <fedor@gnu.org>
202
203 * objc-exp.y (name_not_typename): Fix invalid comment.
204
205 2002-10-20 Mark Kettenis <kettenis@gnu.org>
206
207 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
208 to allocate partial syms and macro byte caches.
209
210 2002-10-18 David Carlton <carlton@math.stanford.edu>
211
212 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
213
214 2002-10-18 Adam Fedor <fedor@gnu.org>
215
216 * stabsread.c (find_name_end): New function.
217 (define_symbol): Use it.
218
219 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
220
221 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
222 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
223 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
224 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
225
226 2002-10-17 David Carlton <carlton@math.stanford.edu>
227
228 * symfile.h: Add opaque declaration for struct obstack.
229 Declare obsavestring to take a const char *.
230 * symfile.c (obsavestring): Make first argument a const char *.
231
232 2002-10-16 Adam Fedor <fedor@gnu.org>
233
234 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
235 names when matching breakpoints in current file.
236
237 2002-10-16 Kevin Buettner <kevinb@redhat.com>
238
239 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
240 (read_tag_pointer_type): Add address class support.
241 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
242 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
243 New methods.
244 * gdbarch.h, gdbarch.c: Regenerate.
245 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
246 (make_type_with_address_space, recursive_type_dump): Add address
247 class support.
248 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
249 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
250 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
251
252 2002-10-16 Klee Dienes <kdienes@apple.com>
253
254 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
255 to get the last character of a char[] buffer, not
256 name[sizeof(vptr_name)-1].
257
258 2002-10-14 Adam Fedor <fedor@gnu.org>
259
260 * symtab.h: New objc_specific struct.
261 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
262 (SYMBOL_DEMANGLED_NAME): Likewise.
263
264 2002-10-14 Adam Fedor <fedor@gnu.org>
265
266 * symfile.c (init_filename_language_table): Add ObjC file extension.
267
268 2002-10-14 Adam Fedor <fedor@gnu.org>
269
270 * utils.c (puts_filtered_tabular): New function.
271 (fprintf_symbol_filtered): Get ObjC demangled name.
272 * defs.h (puts_filtered_tabular): Declared.
273
274 2002-10-14 Kevin Buettner <kevinb@redhat.com>
275
276 * c-lang.h (c_type_print_varspec_prefix): Delete.
277 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
278 ``need_post_space'' parameter. Adjust all callers.
279
280 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
281
282 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
283 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
284 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
285 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
286
287 2002-10-13 Adam Fedor <fedor@gnu.org>
288
289 * source.c (print_source_lines): Update comments.
290
291 2002-10-13 Adam Fedor <fedor@gnu.org>
292
293 * valops.c (value_of_local): New function.
294 (value_of_this): Use it.
295 * value.h (value_of_local): Declared.
296
297 2002-10-13 Adam Fedor <fedor@gnu.org>
298
299 * parse.c: (length_of_subexp, prefixify_subexp): Handle
300 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
301
302 2002-10-12 Adam Fedor <fedor@gnu.org>
303
304 * language.c (binop_result_type): Add language_objc to case.
305 (integral_type): Likewise.
306 (character_type): Likewise.
307 (string_type): Likewise.
308 (boolean_type): Likewise.
309 (structured_type): Likewise.
310 (binop_type_check): Likewise.
311
312 2002-10-11 Adam Fedor <fedor@gnu.org>
313
314 * printcmd.c (address_info): Print 'self' for ObjC.
315
316 2002-10-11 Adam Fedor <fedor@gnu.org>
317
318 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
319 OP_SELF.
320
321 2002-10-11 Adam Fedor <fedor@gnu.org>
322
323 * language.h (CAST_IS_CONVERSION): Add language_objc.
324
325 2002-10-11 Adam Fedor <fedor@gnu.org>
326
327 * defs.h (enum language): Add language_objc.
328
329 2002-10-11 Klee Dienes <kdienes@apple.com>
330
331 * findvar.c (read_memory_typed_address): New function.
332 * gdbcore.h (read_memory_typed_address): Add prototype.
333 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
334 to read a value destined for a CORE_ADDR, not read_memory_integer.
335 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
336 (f77_get_dynamic_lowerbound): Ditto.
337
338 2002-10-11 Martin M. Hunt <hunt@redhat.com>
339
340 * utils.c (string_to_core_addr): After turning string into
341 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
342 which will do necessary sign-extension, etc.
343
344 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
345
346 * c-exp.y (THIS): Delete token and grammar rule.
347 (yylex): Don't return THIS.
348 * cp-valprint.c (vtbl_ptr_name_old): Delete.
349 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
350 * demangle.c (cplus_markers): Update comment. Put '$'
351 first. Remove CPLUS_MARKER.
352 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
353 * jv-exp.y (THIS): Delete token and grammar rule.
354 (yylex): Don't return THIS.
355 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
356 * objc-exp.y (THIS): Delete token and grammar rule.
357 (yylex): Don't return THIS.
358 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
359 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
360 (read_member_functions): Likewise for opname.
361 (read_tilde_fields): Use is_cplus_marker.
362
363 * defs.h (CPLUS_MARKER): Don't define.
364 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
365 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
366 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
367 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
368 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
369
370 * config/i386/tm-i386v4.h: Delete file.
371 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
372 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
373 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
374 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
375 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
376 * config/i386/i386sco5.mt (TM_FILE): Likewise.
377 * config/i386/i386v4.mt (TM_FILE): Likewise.
378 * config/i386/ncr3000.mt (TM_FILE): Likewise.
379
380 2002-10-10 Marko Mlinar <markom@opencores.org>
381
382 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
383 accidentially not commited 2002-10-09
384 * gdbarch.h, gdbarch.c: Re-generate.
385
386 2002-10-09 Marko Mlinar <markom@opencores.org>
387
388 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
389 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
390 * gdbarch.h, gdbarch.c: Re-generate.
391
392 2002-10-08 Petr Sorfa <petrs@caldera.com>
393
394 Revised and re-submitted by John Wolfe <jlw@caldera.com>
395
396 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
397 so we can work on more than one compilation unit at a time. This
398 helps prepare GDB to handle inter-CU die references.
399 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
400 the code to be defined before struct comp_unit_head.
401 (comp_unit_head): Added new members - offset, cu_head,
402 begin_die, next and dwarf2_abbrevs.
403 (dwarf2_abbrevs): Removed single static var; now member of
404 struct comp_unit_head.
405 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
406 members.
407 (psymtab_to_symtab_1): Changed to work with the new
408 struct comp_unit_head.
409 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
410 constructs the dwarf2_abbrevs[] inside the cu_header.
411 (dwarf2_empty_abbrev_table): Now expects a ptr to a
412 dwarf2_abbrev table to clean up.
413 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
414 handling of dwarf2_abbrevs inside the cu_header.
415 (read_partial_die): Now supports the call to the new
416 dwarf2_lookup_abbrev.
417 (read_full_die): Now supports the call to the new
418 dwarf2_lookup_abbrev.
419
420 2002-10-06 Christopher Faylor <cgf@redhat.com>
421
422 * Makefile.in (install-gdbtk): Add missing continuation backslash to
423 insure that shell variables, such as "transformed_name" are propagated
424 to later shell statements in rule.
425
426 2002-10-06 Mark Kettenis <kettenis@gnu.org>
427
428 * config/i386/nm-i386sco.h: Add protection against
429 multiple-inclusion. Include "i386/nm-i386v.h".
430 (REGISTER_U_ADDR): Remove define.
431 (i386_register_u_addr): Remove prototype.
432
433 2002-10-04 Michael Snyder <msnyder@redhat.com>
434
435 * m32r-stub.c (handle_exception): Make sure exception is "trap"
436 before treating it as a single-step event.
437
438 2002-10-03 Adam Fedor <fedor@gnu.org>
439
440 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
441 (objc_demangle): Remove assignment in if statements, Replace
442 free with xfree.
443 (add_msglist): Likewise.
444 (end_msglist): Likewise.
445 (complare_selectors): Likewise.
446 (selectors_info): Likewise.
447 (compare_classes): Likewise.
448 (classes_info): Likewise.
449 (print_object_command): Likewise.
450 (find_objc_msgcall_submethod): Replace PTR with void *.
451 * objc-lang.h: Remove check for __STDC__.
452
453 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
454
455 * ui-out.h (ui_out_field_fmt_int): New prototype.
456 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
457 of field width and alignment.
458 * stack.c (print_frame_info_base): When printing frame level, use
459 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
460 PR gdb/192
461
462 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
463
464 * MAINTAINERS: Add self to Write After Approval list.
465
466 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
467
468 * infcmd.c (interrupt_target_command_wrapper): Delete.
469 (interrupt_target_command): Make non static.
470 (nofp_registers_info): Make static.
471 * stack.c (return_command_wrapper): Delete.
472 (return_command): Make non static.
473
474 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
475
476 * event-top.c (gdb_setup_readline): New function. Code moved from
477 _initialize_event_loop().
478 (_initialize_event_loop): Call gdb_setup_readline().
479
480 2002-10-02 Andrew Cagney <ac131313@redhat.com>
481
482 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
483 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
484 * gdbarch.h, gdbarch.c: Re-generate.
485
486 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
487
488 Fix PR gdb/778
489 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
490 before recursing.
491 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
492 of fill_in_vptr_fieldno.
493
494 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
495
496 * inferior.h (registers_info, stepi_command, nexti_command,
497 continue_command, interrupt_target_command): Export from infcmd.c.
498 * frame.h (args_info, selected_frame_level_changed_hook,
499 return_command): Export from stack.c.
500 * v850ice.c (stepi_command, nexti_command, continue_command): use
501 prototypes from inferior.h.
502 * tracepoint.c (registers_info, args_info, locals_info): Use
503 prototypes from frame.h and inferior.h.
504 * Makefile.in (mi-main.o): Add dependency on frame.h.
505
506 2002-10-02 Andrew Cagney <ac131313@redhat.com>
507
508 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
509 value in register 3 adjusted by ppc_gp0_regnum.
510
511 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
512
513 2002-10-02 Marko Mlinar <markom@opencores.org>
514
515 * MAINTAINERS: Add myself to the Write After Approval list.
516
517 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
518
519 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
520 of the section for the N64 ABI, fixed.
521
522 * config/mips/tm-irix6.h: Include solib.h.
523
524 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
525
526 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
527 GNU operators.
528
529 2002-10-01 Andrew Cagney <ac131313@redhat.com>
530
531 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
532 and that "mi0" syntax has been removed.
533
534 2002-09-30 David Carlton <carlton@math.stanford.edu>
535
536 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
537 * ppc-sysv-tdep.c: #include "gdb_string.h".
538 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
539 pacify GCC.
540
541 2002-10-01 Andrew Cagney <ac131313@redhat.com>
542
543 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
544 "vrsave"'s register number.
545
546 2002-09-30 Andrew Cagney <ac131313@redhat.com>
547
548 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
549 use frame_unwind_signed_register to obtain the PC.
550 (mips_frame_chain): Handle a generic dummy frame.
551 (mips_init_extra_frame_info): When a generic dummy frame, don't
552 re-compute the frame base.
553 (mips_pop_frame): Handle generic dummy frames.
554 (mips_gdbarch_init): When generic dummy frames, set
555 use_generic_dummy_frames, push_dummy_frame to
556 generic_push_dummy_frame, pc_in_call_dummy to
557 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
558 generic_save_dummy_frame_tos.
559
560 2002-09-30 Andrew Cagney <ac131313@redhat.com>
561
562 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
563 against TOP when TOP was explictly set.
564 (generic_push_dummy_frame): Set TOP to zero.
565
566 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
567
568 * event-loop.c (start_event_loop): Rename variable 'result' to
569 'gdb_result', to avoid conflicts with upcoming intepreters changes.
570
571 2002-09-30 Keith Seitz <keiths@redhat.com>
572
573 * gdb-events.sh (selected_thread_changed): New event.
574 * gdb-events.c: Regenerated.
575 * gdb-events.h: Regenerated.
576
577 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
578
579 * MAINTAINERS: Add self to Write After Approval list.
580
581 2002-09-30 Fernando Nasser <fnasser@redhat.com>
582
583 * disasm.c: New file.
584 * disasm.h: New file.
585 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
586 (compare_lines): Ditto.
587 (dump_insns): Ditto.
588 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
589 argument.
590 (do_assembly_only): Ditto.
591 (do_disassembly): Renamed to gdb_disassembly and moved to
592 disasm.c. Sdded uiout argument.
593 * Makefile.in: Add new files. Reorder SFILES list. Update
594 dependencies. Include libgdb.a later in the insight executable.
595
596 2002-09-29 Andrew Cagney <ac131313@redhat.com>
597
598 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
599 bfd/elf64-alpha-fbsd.c.
600
601 2002-09-29 Andrew Cagney <ac131313@redhat.com>
602
603 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
604 i386gnu-tdep.c.
605
606 2002-09-29 Andrew Cagney <ac131313@redhat.com>
607
608 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
609 __FUNCTION__.
610 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
611 function name.
612 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
613 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
614 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
615 (S_msg_sig_post_reply): Ditto.
616
617 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
618
619 * sh-tdep.c (sh_use_struct_convention): Use definition according
620 to ABI.
621 (sh_push_arguments): Store in register with correct endianess.
622 (sh_default_store_return_value): Ditto.
623 (sh_gdbarch_init): Set sizeof long double to 8.
624
625 2002-09-27 Mark Kettenis <kettenis@gnu.org>
626
627 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
628 Fix some whitespace problems.
629
630 2002-09-27 David Carlton <carlton@math.stanford.edu>
631
632 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
633 (mcore-tdep.o): Ditto.
634 (ns32k-tdep.o): Ditto.
635 (ns32knbsd-tdep.o): Ditto.
636 (sh3-rom.o): Ditto.
637 (vax-tdep.o): Ditto.
638 * cris-tdep.c: #include "gdb_string.h"
639 * mcore-tdep.c: Ditto.
640 * ns32k-tdep.c: Ditto.
641 * ns32knbsd-tdep.c: Ditto.
642 * sh3-rom.c: Ditto.
643 * vax-tdep.c: Ditto.
644
645 2002-09-27 David Carlton <carlton@math.stanford.edu>
646
647 * config/djgpp/fnchange.lst: Add entries for
648 gdb/testsuite/gdb.c++/m-static files.
649
650 2002-09-27 Jim Wilson <wilson@redhat.com>
651
652 * MAINTAINERS: Add myself to the Write After Approval list.
653
654 2002-09-26 Martin M. Hunt <hunt@redhat.com>
655
656 * mips-tdep.c (find_proc_desc): Initialize startaddr.
657
658
659 2002-09-26 Andrew Cagney <ac131313@redhat.com>
660
661 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
662 frame.
663
664 2002-09-26 Andrew Cagney <ac131313@redhat.com>
665
666 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
667 (rs6000_struct_return_address): Delete variable.
668 (rs6000_store_struct_return): Update.
669 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
670 deprecated_extract_struct_value_address.
671 (rs6000_frame_align): New function.
672 (rs6000_gdbarch_init): Set frame_align.
673
674 2002-09-26 Andrew Cagney <ac131313@redhat.com>
675
676 From Grace Sainsbury <graces@redhat.com>:
677 * Makefile.in (gdbtk-main.o): New target.
678 (gdb.o): New target.
679 (main_h): Define.
680 (main.o): Update dependencies.
681 (gdb$(EXEEXT)): Add gdb.o.
682 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
683 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
684 (SUBDIR_GDBTK_CLEAN): Set.
685 (install-gdbtk): Install the insight binary.
686 (uninstall-gdbtk): New target.
687 (all-gdbtk, clean-gdbtk): New rule.
688 * top.c (use_windows): Default to zero.
689 * main.c: Include "main.h".
690 (main): Delete.
691 (struct captured_main_args): Delete.
692 (gdb_main): New function.
693 * main.h: New file.
694 * gdb.c: New File.
695
696 2002-09-25 Andrew Cagney <cagney@redhat.com>
697
698 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
699 (frame_map_regnum_to_name): New function.
700 (frame_map_name_to_regnum): New function.
701 * frame.h (frame_map_name_to_regnum): Declare.
702 (frame_map_regnum_to_name): Declare.
703 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
704 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
705 * parse.c: Do not include "builtin-regs.h".
706 (target_map_name_to_register): Delete function.
707 (write_dollar_variable): Use frame_map_name_to_regnum.
708 * parser-defs.h (target_map_name_to_register): Delete declaration.
709 * expprint.c: Include "frame.h".
710 (print_subexp): Use frame_map_regnum_to_name.
711 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
712 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
713
714 2002-09-25 Andrew Cagney <ac131313@redhat.com>
715
716 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
717 wasn't saved, and the next innermost frame is a dummy, return the
718 dummy frame's link register.
719
720 2002-09-24 Jim Blandy <jimb@redhat.com>
721
722 Fix from Paul Breed:
723 * main.c (captured_main): Add a `break' after the case for 'b'.
724
725 2002-09-24 Keith Seitz <keiths@redhat.com>
726
727 * varobj.c (c_type_of_child): Use get_target_type instead
728 of TYPE_TARGET_TYPE.
729
730 2002-09-22 Fernando Nasser <fnasser@redhat.com>
731
732 * source.c (get_current_or_default_source_symtab_and_line): Remove
733 function.
734 (set_default_source_symtab_and_line): New function. Attempts to
735 determine a source file to list lines from if one is not currently
736 defined.
737 (get_current_source_symtab_and_line): Initialize sal.pc and
738 sal.end fields.
739 (set_current_source_symtab_and_line): Mark argument as const.
740 * source.h: Update declarations and comments.
741 * linespec.c (decode_line_1): Replace call to removed routine above.
742 * stack.c (print_frame_info_base): Ditto.
743 * cli/cli-cmds.c (edit_command): Ditto.
744 (list_command): Ditto.
745
746 2002-09-22 Fernando Nasser <fnasser@redhat.com>
747
748 * source.c (get_current_or_default_source_symtab_and_line): Initialize
749 sal.pc and sal.end fields.
750 (get_current_or_default_source_symtab_and_line): Ditto.
751 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
752 so we do not cause a new source symtab to be searched for (reverting an
753 unintentional change from the 2002-09-20 patch).
754 * scm-lang.c (scm_unpac): Ditto.
755
756 2002-09-21 Andrew Cagney <cagney@redhat.com>
757
758 * complaints.c (symfile_explanations): Remove new-line from
759 ``isolated_message''.
760 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
761 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
762
763 2002-09-20 Nick Clifton <nickc@redhat.com>
764
765 * NEWS: Announce that V850EA ISA is no longer supported.
766 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
767
768 2002-09-20 David Carlton <carlton@math.stanford.edu>
769
770 * Makefile.in (c-lang.o): Correct dependencies.
771 (utils.o): Gather dependencies.
772 (charset.o): Move.
773 * c-lang.c: #include "gdb_string.h"
774
775 2002-09-20 Fernando Nasser <fnasser@redhat.com>
776
777 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
778 * cli/cli-cmds.c (list_command): New function. Implements the new
779 cli edit command.
780 (_init_cli_cmds): Add new command definition.
781 * gdb.1: Document edit command.
782 * doc/gdb.texinfo: Document edit command.
783
784 2002-09-20 Fernando Nasser <fnasser@redhat.com>
785
786 * source.c: Make global variables current_source_symtab and
787 current_source_line static.
788 (list_command): Moved to cli/cli-cmds.c.
789 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
790 (get_first_line_listed): New accessor function.
791 (get_lines_to_list): New accessor function.
792 (get_current_source_symtab_and_line): New function. Retrieves the
793 position in the source code that we consider current.
794 (get_current_or_default_source_symtab_and_line): New function.
795 Like the above but attempts to determine a default position if one
796 is not currently defined.
797 (set_current_source_symtab_and_line): New function. Sets the source
798 code position considered current and returns the previously set one.
799 (clear_current_source_symtab_and_line): Reset stored information about
800 a current source line.
801 (_initialize_source): Remove registration for the "list" command and
802 its alias.
803 * source.h: Add declarations for the new functions above.
804 * symtab.h: Remove declarations for the global variables mentioned
805 above.
806 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
807 obtain current source line.
808 * linespec.c (decode_line_1): Ditto.
809 * macroscope.c (default_macro_scope): Ditto.
810 * scm-lang.c (scm_unpac): Ditto.
811 * stack.c (print_frame_info_base): Ditto.
812 * symfile.c (clear_symtab_users): Ditto.
813 * symtab.c (decode_line_spec): Ditto.
814 * cli/cli-cmds.c (list_command): Moved here from source.c.
815 (ambiguous_line_spec): Moved here from source.c.
816 (_init_cli_cmds): Add definition for "list" and its alias.
817 * Makefile.in: Update dependencies.
818
819 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
820
821 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
822 with what gcc thinks is correct.
823
824 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
825
826 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
827 multiple register push instruction.
828
829 2002-09-19 Jim Blandy <jimb@redhat.com>
830
831 Add support for distinct host and target character sets.
832 * charset.c, charset.h: New files.
833 * c-exp.y: #include "charset.h".
834 (yylex): Convert character and string literals to the target
835 character set, before returning them as the semantic value of the
836 token.
837 * c-lang.c: #include "charset.h".
838 (c_emit_char): Use charset-specific methods to recognize
839 characters with backslash escape forms, to decide which characters
840 to print literally and which to print using numeric escape
841 sequences, and to convert target characters to host characters
842 before printing.
843 * utils.c: #include "charset.h".
844 (no_control_char_error): New function.
845 (parse_escape): Use charset-specific methods to recognize
846 backslash escapes, parse `control character' notation, and convert
847 characters from the host character set to the target character set.
848 * configure.in: Set the default host character set.
849 Check where to find iconv, and what its argument types might be.
850 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
851 * Makefile.in (SFILES): List charset.c.
852 (COMMON_OBS): List charset.o.
853 (charset.o): New rule.
854 (charset_h): New header dependency variable.
855 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
856 (LIBICONV): New variable, set by configure.
857 (CLIBS): Include $(LIBICONV) here.
858 * aclocal.m4, config.in, configure: Regenerated.
859
860 2002-09-19 Joel Brobecker <brobecker@gnat.com>
861
862 * ada-exp.y: Add missing semicolons to end rules. Fixes a
863 bison 1.35 warning.
864
865 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
866
867 * gdb_mbuild.sh: New file.
868
869 2002-09-19 Andrew Cagney <ac131313@redhat.com>
870
871 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
872
873 2002-09-18 Andrew Cagney <ac131313@redhat.com>
874
875 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
876 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
877 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
878 valops.c, value.h: Revert previous change.
879
880 2002-09-18 Michael Snyder <msnyder@redhat.com>
881
882 Preliminary support for Objective-C:
883 * defs.h (language_objc): New enum value.
884 (puts_filtered_tabular): Declaration only, exported from utils.c.
885 (skip_quoted): Delete, declared in completer.h.
886 * c-exp.y: Include completer.h.
887 * p-exp.y: Ditto.
888 * jv-exp.y: Ditto.
889 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
890 New operator enum values.
891 * language.h (CAST_IS_CONVERSION): Test for language_objc.
892 * language.c (binop_result_type): Handle language_objc case.
893 (integral_type, character_type, string_type, boolean_type,
894 structured_type, binop_type_check): Ditto.
895 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
896 (struct objc_specific): Add to general_symbol_info.
897 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
898 (SYMBOL_DEMANGLED_NAME): Handle objc case.
899 * parser-defs.h (struct objc_class_str): New struct type.
900 (start_msglist, end_msglist, add_msglist): Declaration only,
901 exported from objc-lang.c.
902 * value.h (value_of_local, value_nsstring,
903 call_function_by_hand_expecting_type): Exported from valops.c.
904 * valops.c (find_function_addr): Export.
905 (call_function_by_hand_expecting_type): New function.
906 (value_of_local): New function.
907 * symfile.c (init_filename_language_table): Add ".m" extension
908 for Objective-C.
909 * utils.c (puts_filtered_tabular): New function.
910 (fprintf_symbol_filtered): Add objc demangling support (disabled).
911 (set/show demangle): Extend help-string to refer to ObjC.
912 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
913 * stabsread.c (symbol_reference_defined): Objective-C symbols
914 may contain colons: make allowances when scanning stabs strings
915 for colons.
916 (objc_find_colon): New function.
917 * printcmd.c (address_info): If language == objc then print
918 "self" instead of "this".
919 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
920 OP_NSSTRING, and OP_SELF.
921 (prefixify_subexp): Ditto.
922 * source.c (print_source_lines): Mention objc in comment.
923 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
924 method names.
925
926 2002-09-18 Andrew Cagney <ac131313@redhat.com>
927
928 * complaints.h: Update copyright.
929 (struct complaints): Declare.
930 (struct complaint): Make `message' constant.
931 (internal_complaint): Declare.
932 (complaint): Declare.
933 (complaint_root): Delete declaration.
934 (symfile_complaints): Delete declaration.
935 (struct complaints): Add opaque declaration.
936 (clear_complaints): Add a complaints parameter.
937 * complaints.c: Update copyright.
938 (enum complaint_series): Define.
939 (complaint_root): Delete.
940 (struct complaints): Define.
941 (complaint_sentinel, symfile_complaint_book): New variables.
942 (symfile_explanations, symfile_complaints): New variables.
943 New variables.
944 (get_complaints): New function.
945 (vcomplaint): New function.
946 (complaint): New function.
947 (internal_complaint): New function.
948 (complain): Call vcomplain with symfile_complaint.
949 (clear_complaints): Rewrite.
950 (_initialize_complaints): Use add_setshow_command.
951 * Makefile.in (complaints.o): Update dependencies.
952 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
953 to call to clear_complaints.
954 (new_symfile_objfile, reread_symbols): Ditto.
955 (oldsyms_complaint): Delete.
956 (empty_symtab_complaint, unknown_option_complaint): Delete.
957 (free_named_symtabs): Use complaint instead of complain.
958
959 2002-09-18 Michael Snyder <msnyder@redhat.com>
960
961 Contributed by Apple Computer, Inc. Merged with current sources
962 by Adam Fedor <fedor@doc.com> [cagney].
963
964 * objc-lang.c: First clean-up round: comments, indentation.
965 * objc-lang.h: Ditto.
966 * objc-lang.y: Ditto.
967
968 2002-09-18 Andrew Cagney <ac131313@redhat.com>
969
970 * maint.c (maintenance_internal_error): Print the parameter as the
971 error message.
972 (maintenance_internal_warning): New function.
973 (_initialize_maint_cmds): Add command `maint internal-warning'.
974
975 * defs.h (internal_warning, internal_vwarning): Declare.
976 * utils.c (struct internal_problem): Define.
977 (internal_vproblem): New function.
978 (internal_warning): New function.
979 (internal_vwarning): New function.
980 (internal_warning_problem, internal_error_problem): New variables.
981 (internal_verror): Just call internal_vproblem.
982
983 2002-09-18 Michael Snyder <msnyder@redhat.com>
984
985 * objc-lang.c: New file, support for Objective-C.
986 Preliminary check-in, not yet integrated into gdb.
987 * objc-lang.h: New file.
988 * objc-exp.y: New file.
989
990 2002-09-18 Andrew Cagney <ac131313@redhat.com>
991
992 * infrun.c (signal_stop_update): Convert definition to ISO C.
993 (signal_print_update): Ditto.
994 (signal_pass_update): Ditto.
995 * inflow.c (terminal_save_ours): Ditto.
996
997 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
998 comments.
999
1000 * config/djgpp/fnchange.lst: Handle name clashes between
1001 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
1002 bfd/coff-tic80.c.
1003
1004 * i386-linux-tdep.h: Fix tipo.
1005
1006 2002-09-18 Adam Fedor <fedor@gnu.org>
1007
1008 * MAINTAINERS: Add myself to the Write After Approval list.
1009
1010 2002-09-18 Jim Blandy <jimb@redhat.com>
1011
1012 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
1013 texthigh and textlow to reader-specific structs caused
1014 objfile_relocate to miss them. This is fixable, but the work that
1015 the change was supposed to prepare GDB for never got done anyway.
1016
1017 2002-09-18 David Carlton <carlton@math.stanford.edu>
1018
1019 * MAINTAINERS: Alphabetize Write After Approval list.
1020
1021 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
1022
1023 Fix PR gdb/709
1024 * values.c (value_static_field): Call read_var_value.
1025
1026 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1027
1028 * valops.c (hand_function_call): Align the initial stack pointer
1029 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
1030 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
1031 return value.
1032 * mips-tdep.c (mips_frame_align): New function.
1033 (mips_gdbarch_init): Set frame_align.
1034 * gdbarch.sh (FRAME_ALIGN): New method.
1035 * gdbarch.h, gdbarch.c: Re-generate.
1036
1037 2002-09-18 Michal Ludvig <mludvig@suse.cz>
1038
1039 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
1040 registers.
1041
1042 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1043
1044 * NEWS: Mention that MIPS $fp behavior changed.
1045 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
1046 reference to FP_REGNUM.
1047 (mipsnbsd_cannot_store_register): Ditto.
1048 * mips-linux-nat.c: Update copyright.
1049 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
1050 (mips_linux_cannot_store_register): Ditto.
1051 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
1052 * config/mips/tm-mips.h: Update copyright.
1053 (FP_REGNUM): Delete macro.
1054 (MIPS_REGISTER_NAMES): Replace "fp" with "".
1055 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
1056 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
1057 (mips_r3041_reg_names, mips_r3051_reg_names)
1058 (mips_r3081_reg_names): Replace "fp" with "".
1059 Fix PR gdb/480.
1060
1061 2002-09-17 Theodore A. Roth <troth@verinet.com>
1062
1063 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
1064 generic_read_register_dummy() (PR gdb/703).
1065 (avr_push_return_address): #if 0 out unused vars.
1066 (avr_gdbarch_init): Enable use of avr_push_return_address().
1067
1068 2002-09-17 Michael Snyder <msnyder@redhat.com>
1069
1070 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
1071 RTE will take care of it.
1072
1073 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1074
1075 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
1076 invalid, return SP_REGNUM.
1077
1078 2002-09-17 Michael Snyder <msnyder@redhat.com>
1079
1080 * mips-tdep.c (mips_pop_frame): Read saved values of floating
1081 point registers without sign extension.
1082
1083 2002-09-17 Andrew Cagney <cagney@redhat.com>
1084
1085 * blockframe.c (deprecated_read_register_dummy): Rename
1086 generic_read_register_dummy.
1087 * frame.c (frame_unwind_signed_register): New function.
1088 (frame_unwind_unsigned_register): New function.
1089 * frame.h (frame_unwind_signed_register): Declare.
1090 (frame_unwind_unsigned_register): Declare.
1091 (deprecated_read_register_dummy): Rename
1092 generic_read_register_dummy.
1093
1094 * h8300-tdep.c (h8300_frame_chain): Update.
1095 (h8300_frame_saved_pc): Update.
1096 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1097 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1098 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1099 (s390_frame_chain): Update.
1100 * v850-tdep.c (v850_find_callers_reg): Update.
1101 (v850_frame_saved_pc): Update.
1102 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1103 (m32r_find_callers_reg): Update.
1104 (m32r_frame_saved_pc): Update.
1105 * sh-tdep.c (sh_find_callers_reg): Update.
1106 (sh64_get_saved_pr): Update.
1107 (sh_init_extra_frame_info): Update.
1108 (sh_init_extra_frame_info): Update.
1109 (sh64_init_extra_frame_info): Update.
1110 (sh64_init_extra_frame_info): Update.
1111 * mcore-tdep.c (mcore_find_callers_reg): Update.
1112 (mcore_frame_saved_pc): Update.
1113 (mcore_init_extra_frame_info): Update.
1114 * i386-tdep.c (i386_frame_saved_pc): Update.
1115 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1116 (ia64_init_extra_frame_info): Update.
1117 (ia64_init_extra_frame_info): Update.
1118 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1119 * cris-tdep.c (cris_init_extra_frame_info): Update.
1120 * avr-tdep.c (avr_frame_chain): Update.
1121 (avr_init_extra_frame_info): Update.
1122 (avr_frame_saved_pc): Update.
1123 * arm-tdep.c (arm_find_callers_reg): Update.
1124 (arm_init_extra_frame_info): Update.
1125 (arm_frame_saved_pc): Update.
1126
1127 2002-09-17 Tom Tromey <tromey@redhat.com>
1128
1129 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1130 is "'".
1131
1132 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
1133
1134 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1135 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1136 NEXT_PROLOGUE_INSN.
1137 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1138 NEXT_PROLOGUE_INSN.
1139
1140 2002-09-16 Joel Brobecker <brobecker@gnat.com>
1141
1142 * osfsolib.c: Remove file, replaced by solib-osf.c.
1143 * Makefile.in: Remove compilation rules for osfsolib.c.
1144
1145 2002-09-16 David Carlton <carlton@math.stanford.edu>
1146
1147 * cp-valprint.c (cp_print_class_method): Correct args to
1148 check_stub_method_group.
1149
1150 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
1151
1152 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1153 `set architecture'. Unify naming convention of functions.
1154 (h8300_skip_prologue): Improve prologue analysis.
1155 (h8300_push_arguments): Rewritten to more closely match GCC's
1156 bizarre argument-passing behavior, along with the comment describing
1157 said behavior.
1158 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1159 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1160 sim, remote-e7000.c, remote-hms.c and remote.c
1161
1162 2002-09-15 Mark Kettenis <kettenis@gnu.org>
1163
1164 * i386-tdep.c (gdb_print_insn_i386): Removed.
1165 (i386_print_insn): New function.
1166 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1167 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1168 tm_print_insn_info.
1169
1170 2002-09-14 Mark Kettenis <kettenis@gnu.org>
1171
1172 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1173 zero.
1174
1175 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
1176
1177 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1178 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1179 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1180
1181 2002-09-13 Christopher Faylor <cgf@redhat.com>
1182
1183 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1184
1185 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
1186
1187 * gdbtypes.c (check_stub_method): Make static.
1188 (check_stub_method_group): New function.
1189 * gdbtypes.h: Update prototypes.
1190 * cp-support.c: New file.
1191 * cp-support.h: New file.
1192
1193 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1194 (update_method_name_from_physname): New function.
1195 (read_member_functions): Correct method names for operators
1196 and v3 constructors/destructors. Separate v2 constructors and
1197 destructors.
1198 * Makefile.in (stabsread.o): Update dependencies.
1199 (SFILES): Add cp-support.c.
1200 (COMMON_OBS): Add cp-support.o.
1201 (cp_support_h, cp-support.o): Add.
1202
1203 * cp-valprint.c (cp_print_class_method): Call
1204 check_stub_method_group instead of check_stub_method. Remove
1205 extraneous QUITs.
1206 * p-valprint.c (pascal_object_print_class_method): Likewise.
1207 * valops.c (search_struct_method): Likewise.
1208 (find_method_list, value_struct_elt_for_reference): Likewise.
1209
1210 2002-09-13 Andrew Cagney <cagney@redhat.com>
1211
1212 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1213 * gdbarch.h, gdbarch.c: Regenerate.
1214
1215 2002-09-13 Andrew Cagney <ac131313@redhat.com>
1216
1217 * frame.c (find_saved_register): Delete function.
1218 * frame.h (find_saved_register): Delete declaration.
1219 Fix PR gdb/631.
1220
1221 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1222
1223 * mips-tdep.c (read_next_frame_reg): Re-hack using
1224 frame_register_unwind.
1225
1226 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1227
1228 * mips-tdep.c (mips_get_saved_register): Re-hack using
1229 frame_register_unwind.
1230
1231 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1232
1233 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1234 vector. Will be useful for Interix.
1235 * gdbarch.h, gdbarch.c: Regenerate.
1236
1237 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1238 name of the malloc function by NAME_OF_MALLOC.
1239
1240 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1241
1242 * value.h (find_function_in_inferior): Add const keyword to
1243 one of the parameters. Allows us to invoke this function with
1244 a const char *.
1245 * valops.c (find_function_in_inferior): Likewise.
1246
1247 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1248
1249 * exec.c (xfer_memory): Fix compilation warning with old versions
1250 of GCC.
1251 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1252
1253 2002-09-12 David Carlton <carlton@math.stanford.edu>
1254
1255 * symtab.h: Run through gdb_indent.h.
1256 Add 2002 to Copyright year list.
1257
1258 2002-09-12 Alan Modra <amodra@bigpond.net.au>
1259
1260 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1261 mach constants.
1262 * MAINTAINERS: Add myself to write after approval list.
1263
1264 2002-09-11 J. Brobecker <brobecker@gnat.com>
1265
1266 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1267
1268 2002-09-11 J. Brobecker <brobecker@gnat.com>
1269
1270 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1271 Interix.
1272
1273 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1274
1275 * procfs.c (do_detach): Clear current signal, not just fault.
1276 Corrects problem with breakpoint trap signal leaking to detached
1277 process on Tru64.
1278
1279 2002-09-10 Michael Snyder <msnyder@redhat.com>
1280
1281 * buildsym.c (finish_block): Protect against null pointer.
1282
1283 2002-09-10 Andrew Cagney <cagney@redhat.com>
1284
1285 * infcmd.c (default_print_registers_info): Send all output to
1286 ``file'' instead of ``gdb_stdout''.
1287
1288 2002-09-10 Michael Snyder <msnyder@redhat.com>
1289
1290 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1291 LONGEST, and use signed register read (addresses are sign-
1292 extended for mips).
1293
1294 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1295
1296 * event-loop.c (gdb_do_one_event): Make public.
1297 * event-loop.h (gdb_do_one_event): Declare.
1298
1299 2002-09-10 Jeff Law <law@redhat.com>
1300
1301 * infttrace.c (child_resume): Simplify and rework to avoid
1302 TT_PROC_CONTINUE.
1303
1304 2002-09-09 Fred Fish <fnf@intrinsity.com>
1305
1306 * printcmd.c (print_scalar_formatted): "len" is the number of
1307 target bytes, NOT the number of target bits.
1308
1309 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
1310
1311 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1312 * top.c (init_main): Set rl_terminal_name.
1313
1314 2002-09-08 Aidan Skinner <aidan@velvet.net>
1315
1316 * ada-lang.c (ada_array_bound, ada_type_match,
1317 _initialize_ada_language): Fix K&R definitions.
1318 * ada-tasks.c (get_current_task): Fix K&R definitions.
1319 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1320
1321 2002-09-07 Christopher Faylor <cgf@redhat.com>
1322
1323 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1324 Add XP.
1325
1326 2002-09-06 Mark Kettenis <kettenis@gnu.org>
1327
1328 * i386-tdep.c (i386_register_virtual_type,
1329 i386_register_convertible, i386_register_convert_to_virtual,
1330 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1331 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1332 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1333 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1334 Don't set push_arguments twice.
1335
1336 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1337 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1338 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1339 sigtramp_end to NULL.
1340 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1341 defines.
1342 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1343
1344 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1345 whitespace.
1346
1347 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1348 * gdbarch.h, gdbarch.c: Re-generate.
1349 * blockframe.c (find_pc_sect_partial_function): Convert to use
1350 SIGTRAMP_START_P predicate.
1351
1352 2002-09-05 Michael Snyder <msnyder@redhat.com>
1353
1354 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1355 generic_dummy_frame method and old method. Also distinguish
1356 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1357 (arm_extract_return_value): Use new regcache method.
1358
1359 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1360 adjustment that doesn't conform to the ABI.
1361 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1362 saved regcache, not from current regcache.
1363
1364 2002-09-05 Andrew Cagney <ac131313@redhat.com>
1365
1366 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1367 * README: Update.
1368
1369 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1370
1371 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1372 if arm_apcs_32 is false.
1373
1374 2002-09-04 Andrew Cagney <ac131313@redhat.com>
1375
1376 GDB 5.3 branch created.
1377
1378 2002-09-03 Theodore A. Roth <troth@verinet.com>
1379
1380 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1381 generic_unwind_get_saved_register.
1382
1383 2002-09-03 David Carlton <carlton@math.stanford.edu>
1384
1385 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1386 argument (PR gdb/653). Update call to smash_to_method_type.
1387 (read_structure_scope): Update call to dwarf2_add_member_fn.
1388
1389 2002-09-03 Michal Ludvig <mludvig@suse.cz>
1390
1391 * x86-64-linux-tdep.c: Include gdb_string.h
1392 * x86-64-linux-nat.c: Ditto.
1393
1394 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1395
1396 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1397 when YYDEBUG is set to 1.
1398 * c-exp.y: Likewise.
1399 * f-exp.y: Likewise.
1400 * jv-exp.y: Likewise.
1401 * m2-exp.y: Likewise.
1402 * p-exp.y: Likewise.
1403
1404 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1405
1406 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1407 dependency list.
1408 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1409 solib_svr4_fetch_link_map_offsets to
1410 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1411 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1412 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1413 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1414 solib-svr4.o, and solib-legacy.o.
1415 * config/i386/tm-nbsd.h: Include solib.h.
1416
1417 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1418
1419 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1420 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1421 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1422 comment noting that this needs its own target configuration.
1423 * config/i386/nbsd.mt: New file.
1424 * config/i386/nbsdaout.mt: Remove.
1425 * config/i386/nbsdelf.mt: Ditto.
1426 * config/i386/tm-nbsdaout.h: Ditto.
1427
1428 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1429
1430 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1431 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1432 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1433 tdep->sigtramp_end.
1434 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1435 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1436 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1437
1438 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1439
1440 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1441 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1442 * i386-tdep.h (i386bsd_init_abi): New prototype.
1443 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1444 function declaration.
1445 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1446 for NetBSD-a.out or NetBSD-ELF.
1447 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1448 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1449 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1450 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1451 and nbsd-tdep.h.
1452 (i386nbsd_pc_in_sigtramp): New function.
1453 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1454 i386nbsd_pc_in_sigtramp.
1455 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1456 and i386nbsdelf_init_abi OS ABI handlers.
1457 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1458 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1459
1460 2002-09-02 Mark Kettenis <kettenis@gnu.org>
1461
1462 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1463 registers if the target really has them.
1464
1465 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1466
1467 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1468 than nbsd-tdep.h.
1469
1470 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1471
1472 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1473 list.
1474 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1475 (alphanbsd_skip_sigtramp_frame): New functions.
1476 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1477 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1478 to alphanbsd_sigcontext_addr.
1479
1480 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1481
1482 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1483 list.
1484 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1485 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1486 nbsd_pc_in_sigtramp.
1487 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1488 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1489 * nbsd-tdep.c: Include gdb_string.h.
1490 (nbsd_pc_in_sigtramp): New function.
1491 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1492 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1493 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1494 ppcnbsd_pc_in_sigtramp.
1495 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1496 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1497 shnbsd_pc_in_sigtramp.
1498 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1499 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1500 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1501
1502 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1503
1504 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1505 watchpoints to NULL.
1506 (insert_breakpoints): set val field of watchpoints if NULL.
1507
1508
1509 2002-08-29 Jim Blandy <jimb@redhat.com>
1510
1511 * symtab.c (lookup_symbol_aux): In the cases where we find a
1512 minimal symbol of an appropriate name and use its address to
1513 select a symtab to read and search, use `name' (as passed to us)
1514 as the demangled name when searching the symtab's global and
1515 static blocks, not the minsym's name.
1516
1517 2002-08-29 Keith Seitz <keiths@redhat.com>
1518
1519 * stack.c (print_frame_info_base): Always set current_source_symtab
1520 and current_source_line.
1521
1522 2002-08-29 Donn Terry <donnte@microsoft.com>
1523
1524 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1525
1526 2002-08-28 Keith Seitz <keiths@redhat.com>
1527
1528 * stack.c (select_frame): Add FIXME concerning selected-frame
1529 events.
1530 (select_frame_command): Send selected-frame-level-changed
1531 event notification, but only if the level actually changed.
1532 (up_silently_base): Add selected-frame-level-changed event
1533 notification.
1534 (down_silently_base): Likewise.
1535
1536 2002-08-28 Andrew Cagney <ac131313@redhat.com>
1537
1538 * Makefile.in: Update dependencies for all gdb/*.c files.
1539
1540 2002-08-27 Tom Tromey <tromey@redhat.com>
1541
1542 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1543 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1544 Update dependencies.
1545 * i387-tdep.c: Include gdb_string.h.
1546 * osabi.c: Likewise.
1547 * i386-linux-nat.c: Likewise.
1548 * lin-lwp.c: Likewise.
1549 * ax-gdb.c: Likewise.
1550 * signals/signals.c: Likewise.
1551 * jv-valprint.c: Likewise.
1552 * p-lang.c: Likewise.
1553 * c-valprint.c: Likewise.
1554 * cp-abi.c: Likewise.
1555
1556 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
1557
1558 * cli/cli-script.h (copy_command_lines): Export.
1559 * breakpoint.c: Include cli/cli-script.h.
1560 * Makefile.in (breakpoint.o): Update dependencies.
1561
1562 2002-08-26 Michael Snyder <msnyder@redhat.com>
1563
1564 * breakpoint.c (insert_breakpoints): Protect all references
1565 to 'process_warning'. Shorten long lines.
1566
1567 2002-08-26 Joel Brobecker <brobecker@gnat.com>
1568
1569 * cli/cli-script.c (copy_command_lines): New function.
1570 * defs.h (copy_command_lines): Export.
1571 * testsuite/gdb.base/commands.exp: New tests for commands
1572 attached to a temporary breakpoint, and for commands that
1573 delete the breakpoint they are attached to.
1574
1575 2002-08-26 Michael Snyder <msnyder@redhat.com>
1576
1577 * breakpoint.c (bpstat_stop_status): Instead of copying the
1578 pointer to the breakpoint commands struct, make a new copy
1579 of the struct and point to that.
1580 (bpstat_clear): Free the commands struct.
1581 (bpstat_clear_actions): Free the commands struct.
1582 (bpstat_do_actions): Free the command actions. Also execute
1583 the local cleanups, instead of deleting them.
1584 (delete_breakpoint): Leave the commands field of the bpstat
1585 chain alone -- it will be freed later.
1586
1587 2002-08-26 Kevin Buettner <kevinb@redhat.com>
1588
1589 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1590 deleted in 2002-08-20 commit. This function is still used by
1591 ppc-linux-nat.c.
1592
1593 2002-08-26 Keith Seitz <keiths@redhat.com>
1594
1595 * gdb-events.sh: Add selected-frame-level-changed event.
1596 * gdb-events.c: Regenerated.
1597 * gdb-events.h: Regenerated.
1598
1599 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1600
1601 Fix PR gdb/393:
1602 * inflow.c (terminal_save_ours): New function to save terminal
1603 settings.
1604 * inferior.h (terminal_save_ours): Declare.
1605 * target.c (debug_to_terminal_save_ours): New function.
1606 (cleanup_target): Defaults to_terminal_save_ours.
1607 (update_current_target): Inherit to_terminal_save_ours.
1608 (setup_target_debug): Set to_terminal_save_ours.
1609 * target.h (target_terminal_save_ours): New to save terminal settings.
1610 (target_ops): New member to_terminal_save_ours.
1611 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1612 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1613 * inftarg.c (init_child_ops): Likewise.
1614 * m3-nat.c (init_m3_ops): Likewise.
1615 * procfs.c (init_procfs_ops): Likewise.
1616 * wince.c (init_child_ops): Likewise.
1617 * win32-nat.c (init_child_ops): Likewise.
1618 * sol-thread.c (init_sol_thread_ops): Likewise.
1619
1620 2002-08-26 Mark Kettenis <kettenis@gnu.org>
1621
1622 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1623 use regcache_* functions.
1624 (i386_gdbarch_init): Set store_return_value instead of
1625 deprecated_store_return_value.
1626
1627 * regcache.c (regcache_raw_write_signed,
1628 regcache_raw_write_unsigned): New functions.
1629 * regcache.h (regcache_raw_write_signed,
1630 regcache_raw_write_unsigned): New prototypes.
1631
1632 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1633
1634 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1635 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1636 source file dependencies. Cleanup corresponding generator rules.
1637
1638 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1639
1640 * regcache.h (register_offset_hack): Declare.
1641 (regcache_cooked_read_using_offset_hack): Declare.
1642 (regcache_cooked_write_using_offset_hack): Declare.
1643
1644 * regcache.c (register_offset_hack): New function.
1645 (regcache_cooked_read_using_offset_hack): New function.
1646 (regcache_cooked_write_using_offset_hack): New function.
1647 (regcache_dump): Check that the registers, according to their
1648 offset, are packed hard against each other.
1649 (cooked_xfer_using_offset_hack): New function.
1650
1651 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1652
1653 * regcache.c (struct regcache_descr): Add field register_type.
1654 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1655 in as a parameter
1656 (init_regcache_descr): Initialize register_type. Pass the descr
1657 to init_legacy_regcache_descr. Use register_type instead of
1658 REGISTER_VIRTUAL_TYPE.
1659 (register_type): New function.
1660 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1661 * regcache.h (register_type): Declare.
1662
1663 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1664
1665 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1666 instead of deprecated_store_return_value. Fix fallout from
1667 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1668
1669 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1670
1671 * regcache.c (max_register_size): New function.
1672 (init_legacy_regcache_descr): Ensure that max_register_size is
1673 large enough for REGISTER_VIRTUAL_SIZE.
1674 * regcache.h (max_register_size): Declare.
1675
1676 2002-08-24 Andrew Cagney <ac131313@redhat.com>
1677
1678 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1679 store_return_value.
1680 (e500_extract_return_value): Change type of valbuf pointer to
1681 void.
1682
1683 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1684
1685 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1686 workaround.
1687
1688 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1689 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1690 long long) to prevent compiler warning on 64-bit systems.
1691
1692 2002-08-23 Andrew Cagney <cagney@redhat.com>
1693
1694 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1695 (DEPRECATED_STORE_RETURN_VALUE): New method.
1696 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1697 * gdbarch.h, gdbarch.c: Re-generate.
1698
1699 * values.c (set_return_value): Pass current_regcache to
1700 STORE_RETURN_VALUE.
1701 * arch-utils.h (legacy_store_return_value): Declare.
1702 * arch-utils.c (legacy_store_return_value): New function.
1703 (legacy_extract_return_value): Update parameters.
1704
1705 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1706 STORE_RETURN_VALUE.
1707 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1708 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1709 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1710 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1711 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1712 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1713 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1714 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1715 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1716 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1717
1718 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1719 * i386-tdep.c (i386_extract_return_value): Update.
1720 * arch-utils.c (legacy_extract_return_value): Update.
1721 * frv-tdep.c (frv_gdbarch_init): Update.
1722 * cris-tdep.c (cris_gdbarch_init): Update.
1723 * d10v-tdep.c (d10v_gdbarch_init): Update.
1724 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1725 * m68k-tdep.c (m68k_gdbarch_init): Update.
1726 * mcore-tdep.c (mcore_gdbarch_init): Update.
1727 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1728 * s390-tdep.c (s390_gdbarch_init): Update.
1729 * sparc-tdep.c (sparc_gdbarch_init): Update.
1730 * sh-tdep.c (sh_gdbarch_init): Update.
1731 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1732 * v850-tdep.c (v850_gdbarch_init): Update.
1733 * avr-tdep.c (avr_gdbarch_init): Update.
1734 * ia64-tdep.c (ia64_gdbarch_init): Update.
1735 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1736 * vax-tdep.c (vax_gdbarch_init): Update.
1737 * alpha-tdep.c (alpha_gdbarch_init): Update.
1738 * arm-tdep.c (arm_gdbarch_init): Update.
1739 * mips-tdep.c (mips_gdbarch_init): Update.
1740 * i386-tdep.c (i386_gdbarch_init): Update.
1741
1742 2002-08-23 Andrew Cagney <ac131313@redhat.com>
1743
1744 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1745 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1746
1747 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1748
1749 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1750 problems.
1751
1752 2002-08-23 Joel Brobecker <brobecker@gnat.com>
1753
1754 * infrun.c (handle_inferior_event): Move a comment outside of a
1755 function call, in order to avoid indent reformatting this part
1756 of the code in an unreadable way.
1757
1758 2002-08-23 Grace Sainsbury <graces@redhat.com>
1759
1760 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1761 when breakpoints fail. Move general breakpoint error messages to
1762 insert_breakpoints.
1763 * breakpoint.c (insert_breakpoints): Change warnings when
1764 breakpoints are nto inserted to specify the type. Remove call to
1765 memory_error when hardware breakpoints can't be inserted. Remove
1766 multiple calls to warning so all messages are sent to the user at
1767 once.
1768 (delete_breakpoints): Make insert error messsages more explicit.
1769
1770 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
1771
1772 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1773 gdbserver/ChangeLog.
1774
1775 2002-08-23 Mark Kettenis <kettenis@gnu.org>
1776
1777 * i386-tdep.c: Include "objfiles.h".
1778 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1779 skip_trampoline_code.
1780 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1781 (CPLUS_MARKER): Define to '.'.
1782
1783 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1784 member.
1785 (linux_corefile_thread_callback): Increase args->num_notes.
1786 (linux_make_note_section): Initialize thread_args.num_notes, and
1787 use it to determine whether notes for any threads were created.
1788
1789 2002-08-23 Donn Terry <donnte@microsoft.com>
1790
1791 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1792 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1793 and PCUNKILL.
1794 (write_with_trace): Conditionalize out the switch branch handling
1795 PCSHOLD if the corresponding macro is not defined. Likewise for
1796 PRSABORT and PRSTOP.
1797 This change will be needed by the Interix port.
1798
1799 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1800
1801 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1802 write_register wherever possible instead of manipulating the
1803 register bytes directly.
1804 Assign VALUE_CONTENTS to a variable and use that.
1805 The GPR numbers are now dependent on the architecture.
1806
1807 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1808
1809 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1810 ev_offset fields.
1811 (skip_prologue): Add support for BookE/e500 instructions.
1812 (e500_extract_return_value): New function.
1813 (frame_get_saved_regs): Add support for saving ev registers and
1814 pseudo gpr's.
1815 (e500_store_return_value): New function.
1816 (rs6000_gdbarch_init): Move up default intializations of
1817 deprecated_extract_return_value and store_return_value. Overwrite
1818 init of store_return_value with e500 specific version.
1819 Set extract_return_value for e500.
1820
1821 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1822
1823 * blockframe.c (generic_call_dummy_register_unwind): Use
1824 regcache_cooked_read to catch cases in which the variable is
1825 stored in a pseudo register.
1826
1827 2002-08-22 Andrew Cagney <cagney@redhat.com>
1828
1829 * NEWS: Mention that the i960 has been made obsolete.
1830 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1831 i960-tdep.c
1832 (remote-nrom.o): Obsolete target.
1833 (remote-nindy.o, i960-tdep.o): Ditto.
1834 * remote-nrom.c: Make file obsolete.
1835 * remote-nindy.c, remote-vx960.c: Ditto.
1836 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1837 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1838 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1839 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1840 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1841 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1842 i960-*-vxworks* obsolete.
1843 * MAINTAINERS: Note that the i960 is obsolete.
1844
1845 2002-08-21 Corinna Vinschen <vinschen@redhat.com
1846
1847 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1848 detach to allow reinitialization.
1849
1850 2002-08-22 Andrew Cagney <ac131313@redhat.com>
1851
1852 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1853 attempt).
1854
1855 2002-08-22 Jim Blandy <jimb@redhat.com>
1856
1857 * coffread.c (coff_symfile_read): Don't try to read the line
1858 number table from disk if the image file doesn't have a symbol
1859 table; we'll never actually look at the info anyway, and Windows
1860 ships DLL's with bogus file offsets for the line number data.
1861
1862 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1863
1864 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1865 an e500 executable.
1866
1867 2002-08-21 Michael Snyder <msnyder@redhat.com>
1868
1869 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1870 (MSYMBOL_SIZE): Replace macro with function.
1871 (DEFAULT_MIPS_TYPE): Delete unused macro.
1872 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1873 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1874
1875 2002-08-21 Jim Blandy <jimb@redhat.com>
1876
1877 * valops.c (value_cast): Simplify and correct logic for doing a
1878 static cast from a pointer to a base class to a pointer to a
1879 derived class.
1880
1881 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1882
1883 * infcmd.c (default_print_registers_info): Replace
1884 do_registers_info.
1885 (registers_info): Use gdbarch_print_registers_info instead of
1886 DO_REGISTERS_INFO.
1887 * inferior.h (default_print_registers_info): Replace
1888 do_registers_info.
1889 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1890 (DO_REGISTERS_INFO): Change to a predicate function.
1891 * gdbarch.h, gdbarch.c: Regenerate.
1892
1893 2002-08-21 Keith Seitz <keiths@redhat.com>
1894
1895 * gdb-events.sh: Add target-changed event.
1896 * gdb-events.c: Regenerated.
1897 * gdb-events.c: Regenerated.
1898 * valops.c (value_assign): Add target-changed event notification
1899 to inlval_register, lval_memory, and lval_reg_frame_relative.
1900
1901 2002-08-21 Joel Brobecker <brobecker@gnat.com>
1902
1903 * NEWS: Add an entry regarding the improvement of the next/step
1904 operation on Alpha Tru64 multi-processor machines.
1905
1906 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1907
1908 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1909 directores.
1910 * Makefile.in: Update all _h macro definitions.
1911 * Makefile.in (install-gdbtk): Move to install section.
1912 (rdi-share/libangsd.a): Move to end of file.
1913
1914 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1915
1916 * frame.c (frame_register_unwind): When a register, set addrp to
1917 the register's byte.
1918
1919 2002-08-20 Michael Snyder <msnyder@redhat.com>
1920
1921 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1922 used locally, so move them from the target machine header to here.
1923 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1924 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1925 Make static.
1926 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1927
1928 2002-08-20 Andrew Cagney <cagney@redhat.com>
1929
1930 * NEWS: Mention that the Apollo line was made obsolete.
1931 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1932 m68*-hp-hpux* obsolete.
1933 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1934 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1935 * buildsym.c (make_blockvector): Make static.
1936 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1937 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1938 (ALLDEPFILES): Remove dstread.c.
1939 (dstread.o): Obsolete make rule.
1940 * dstread.c: Makefile obsolete.
1941 * dst.h: Ditto.
1942 * config/m68k/hp300hpux.mt: Ditto.
1943 * config/m68k/hp300hpux.mh: Ditto.
1944 * config/m68k/hp300bsd.mt: Ditto.
1945 * config/m68k/hp300bsd.mh: Ditto.
1946 * config/m68k/apollo68b.mt: Ditto.
1947 * config/m68k/apollo68v.mh: Ditto.
1948 * config/m68k/apollo68b.mh: Ditto.
1949
1950 2002-08-20 Michael Snyder <msnyder@redhat.com>
1951
1952 * mips-tdep.c (mips_in_return_stub): Make static.
1953 (mips_gdbarch_init): Set in_solib_return_trampoline.
1954 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1955
1956 2002-08-20 Michael Snyder <msnyder@redhat.com>
1957
1958 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1959 * gdbarch.c, gdbarch.h: Regenerate.
1960 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1961 Add.
1962 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1963
1964 2002-08-20 Michael Snyder <msnyder@redhat.com>
1965
1966 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1967 (mips_gdbarch_init): Set skip_trampoline_code,
1968 in_solib_call_trampoline.
1969 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1970 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1971
1972 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1973
1974 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1975
1976 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1977 vector type for ev registers.
1978 (e500_pseudo_register_read): New function.
1979 (e500_pseudo_register_write): New function.
1980 (e500_dwarf2_reg_to_regnum): New function.
1981 (PPC_UISA_NOFP_SPRS): New macro.
1982 (PPC_EV_REGS): New macro.
1983 (PPC_GPRS_PSEUDO_REGS): New macro.
1984 (registers_e500): New register set for e500.
1985 (variants): Add e500 variant.
1986 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1987 before setting architectural dependent variations. Initialize ev
1988 registers numbers. Add case for e500 architecture. Set the
1989 number of pseudo registers.
1990
1991 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1992
1993 * rs6000-tdep.c: Clean up comments.
1994
1995 2002-08-20 Andrew Cagney <cagney@redhat.com>
1996
1997 * h8300-tdep.c: Re-indent file.
1998
1999 2002-08-20 Jim Blandy <jimb@redhat.com>
2000
2001 * Makefile.in (LDFLAGS): Allow the configure script to establish a
2002 default for this.
2003
2004 2002-08-20 Keith Seitz <keiths@redhat.com>
2005
2006 * breakpoints.c (watch_command_1): Use internal breakpoint
2007 when setting a watchpoint_scope breakpoint.
2008
2009 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2010
2011 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
2012 (build_builtin_type_vec64i): Ditto.
2013 (build_builtin_type_vec128): Ditto.
2014 (build_builtin_type_vec128i): Ditto.
2015
2016 2002-08-19 Michael Snyder <msnyder@redhat.com>
2017
2018 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
2019 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
2020 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
2021 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
2022 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
2023 CALL_DUMMY_ADDRESS): Delete.
2024 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
2025 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
2026 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
2027 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
2028 push_return_address.
2029 (mips_register_raw_size, mips_eabi_use_struct_convention,
2030 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
2031 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
2032 mips_init_extra_frame_info, mips_eabi_push_arguments,
2033 mips_n32n64_push_arguments, mips_push_return_address,
2034 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
2035 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
2036
2037 2002-08-19 Michael Snyder <msnyder@redhat.com>
2038
2039 * mips-tdep.c (mips_frame_num_args): New function.
2040 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
2041 frame_saved_pc, frame_args_address, frame_locals_address,
2042 frame_num_args, and frame_args_skip.
2043 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
2044 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
2045 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
2046 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
2047
2048 2002-08-20 Michael Snyder <msnyder@redhat.com>
2049
2050 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
2051 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2052 * mips-tdep.c (mips_store_struct_return): New function.
2053 (mips_extract_struct_value_address): New function.
2054 (mips_gdbarch_init): Set store_struct_return and
2055 extract_struct_value_address.
2056
2057 2002-08-20 David Carlton <carlton@math.stanford.edu>
2058
2059 * dwarf2read.c (dwarf2_build_psymtabs): Check that
2060 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
2061 (read_file_scope): Check that line_header is nonzero before
2062 decoding macro information.
2063
2064 2002-08-20 Mark Kettenis <kettenis@gnu.org>
2065
2066 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
2067 flag the general-purpose registers as floating-point on targets
2068 that don't support the floating-point registers.
2069
2070 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2071
2072 * rs6000-tdep.c (altivec_register_p): Delete.
2073 (rs6000_do_altivec_registers): Delete.
2074 (rs6000_altivec_registers_info): Delete.
2075 (rs6000_do_registers_info): Delete.
2076 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
2077 (rs6000_gdbarch_init): Remove setting of do_registers_info.
2078
2079 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2080
2081 * infcmd.c (do_registers_info): Print vector registers in hex
2082 format only.
2083 (print_vector_info): Check that printing registers
2084 makes sense.
2085 (print_float_info): Ditto.
2086
2087 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2088
2089 * mips-tdep.c (mips_gdbarch_init): Update.
2090 (mips_o32_extract_return_value): Rewrite.
2091 (mips_o32_store_return_value): Rewrite.
2092 (mips_o32_xfer_return_value): New function.
2093 (mips_xfer_register): Tweak debug print message. Allow for
2094 buf_offset when dumping the value transfered.
2095
2096 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2097
2098 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2099 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2100 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2101 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2102 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2103
2104 2002-08-14 Michael Snyder <msnyder@redhat.com>
2105
2106 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2107
2108 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2109
2110 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2111 register.
2112 (P): New macro to define a register as a pseudo register.
2113 (R, R4, R8, R16, FR32, R64, R0): Updated.
2114 (struct variant): Add new fields for number of pseudo registers
2115 and number of total registers.
2116 (tot_num_registers): New macro replacing....
2117 (num_registers): ...deleted macro.
2118 (num_registers): New function.
2119 (num_pseudo_registers): New function.
2120 (variants): Update all variants to intialize new fields correctly.
2121 Postpone initialization of number of pseudo regs and real regs.
2122 (init_variants): New function.
2123 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2124 registers offsets.
2125
2126 2002-08-19 David Carlton <carlton@math.stanford.edu>
2127
2128 * valops.c (search_struct_field): Change error message to treat
2129 return value of 0 from value_static_field as meaning that field is
2130 optimized out.
2131 (value_struct_elt_for_reference): Ditto.
2132 * values.c (value_static_field): Treat an unresolved location the
2133 same as a nonexistent symbol. Fix PR gdb/635.
2134 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2135 enclosed. Fix PR gdb/574.
2136 * MAINTAINERS: Add self to Write After Approval list.
2137
2138 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2139
2140 * mips-tdep.c (mips_xfer_register): New function.
2141 (mips_n32n64_extract_return_value): Rewrite.
2142 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2143 instead of deprecated_extract_return_value.
2144
2145 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2146
2147 * rs6000-tdep.c (TDEP): Delete macro.
2148 (branch_dest): Replace use of TDEP macro with its body.
2149 (rs6000_pop_frame): Ditto.
2150 (rs6000_push_arguments): Ditto.
2151 (rs6000_skip_trampoline_code): Ditto.
2152 (rs6000_frame_saved_pc): Ditto.
2153 (rs6000_frame_chain): Ditto.
2154 (rs6000_register_name): Ditto.
2155 (rs6000_register_byte): Ditto.
2156 (rs6000_register_raw_size): Ditto.
2157 (rs6000_register_virtual_type): Ditto.
2158 (rs6000_register_convertible): Ditto.
2159 (rs6000_convert_from_func_ptr_addr): Ditto.
2160
2161 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
2162
2163 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2164 conditionally.
2165 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2166 MIPS_LINUX_JB_ELEMENT_SIZE.
2167 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2168 for MAX_REGISTER_RAW_SIZE arrays.
2169 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2170 MIPS_LINUX_JB_ELEMENT_SIZE.
2171
2172 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2173
2174 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2175
2176 2002-08-19 Aidan Skinner <aidan@velvet.net>
2177
2178 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2179 ada-valprint.c ada-tasks.c.
2180 (YYFILES): Add ada-exp.y.
2181 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2182 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2183 (ada-exp.tab.o): New target.
2184
2185 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2186
2187 * regcache.c (regcache_xfer_part): New function.
2188 (regcache_raw_read_part): New function.
2189 (regcache_raw_write_part): New function.
2190 (regcache_cooked_read_part): New function.
2191 (regcache_cooked_write_part): New function.
2192 * regcache.h (regcache_raw_read_part): Declare.
2193 (regcache_raw_write_part): Declare.
2194 (regcache_cooked_read_part): Declare.
2195 (regcache_cooked_write_part): Declare.
2196
2197 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
2198
2199 * remote.c (remote_open_1): Add async_p.
2200 (remote_async_open_1): Delete.
2201 (open_remote_target): Delete.
2202 (remote_open, extended_remote_open): Update calls to remote_open_1.
2203 (remote_async_open, extended_remote_async_open): Call
2204 remote_open_1 instead of remote_async_open_1.
2205
2206 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2207
2208 * blockframe.c: Fix a few coding standard violations.
2209
2210 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2211
2212 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2213 here from ...
2214 * config/i386/tm-i386sco5.h: ... here. File removed.
2215 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2216
2217 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
2218 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2219 (TM_FILE): Set to tm-i386.h.
2220 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2221 * config/i386/tm-i386v.h: Remove file.
2222 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2223 instead of "i386/tm-i386v.h".
2224 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2225 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2226 "i386/tm-i386v.h".
2227 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2228 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2229 "i386/tm-i386.h".
2230
2231 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2232
2233 * config/i386/nm-i386v.h: Add protection against
2234 multiple-inclusion.
2235 (i386_register_u_addr): Remove prototype.
2236 (register_u_addr): New prototype.
2237 (REGISTER_U_ADDR): Redefine accordingly.
2238 * i386v-nat.c: Improve several comments.
2239 (i386_register_u_addr): Change signature and rename to
2240 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2241 ubase variable.
2242
2243 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2244
2245 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2246 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2247 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2248 deprecated_extract_return_value.
2249 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2250 rename mips_o32o64_push_arguments.
2251 (mips_gdbarch_init): Update.
2252 (mips_extract_return_value): Delete.
2253 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2254 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2255 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2256 (mips_n32n64_extract_return_value): Clone
2257 mips_extract_return_value.
2258 (mips_store_return_value): Delete.
2259 (mips_o32_store_return_value): Clone mips_store_return_value.
2260 (mips_o64_store_return_value): Clone mips_store_return_value.
2261 (mips_eabi_store_return_value): Clone mips_store_return_value.
2262 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2263
2264 2002-08-18 Aidan Skinner <aidan@velvet.net>
2265
2266 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2267 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2268
2269 2002-08-18 Aidan Skinner <aidan@velvet.net>
2270
2271 * ada-lang.c: Run through gdb_indent.sh.
2272 * ada-lang.h: Run through gdb_indent.sh.
2273 * ada-tasks.c: Run through gdb_indent.sh.
2274 * ada-typeprint.c: Run through gdb_indent.sh.
2275 * ada-valprint.c: Run through gdb_indent.sh.
2276
2277 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2278
2279 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2280 ABI.
2281
2282 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2283
2284 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2285
2286 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2287 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2288
2289 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2290 write_register_gen instead of write_register_bytes.
2291
2292 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2293 i[3456]-*-osf1mk* configurations have been made obsolete.
2294 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2295 i[3456]86-*-osf1mk* hosts obsolete.
2296 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2297 targets obsolete.
2298 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2299 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2300 config/i386/i386m3.mt, config/i386/nm-m3.h,
2301 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2302 config/i386/i386mk.mh, config/i386/i386mk.mt,
2303 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2304 obsolete.
2305 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2306 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2307 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2308
2309 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2310
2311 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2312 (hppa_value_returned_from_stack): Declare.
2313 (hppa_extract_return_value): Declare.
2314 * config/pa/hppa.mt: New file.
2315 * configure.tgt: Recognize hppa*-*-*.
2316 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2317
2318 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2319
2320 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2321 comment.
2322
2323 2002-08-17 Mark Kettenis <kettenis@gnu.org>
2324
2325 * top.c (gdb_rl_operate_and_get_next): Make sure
2326 operate-and-get-next functions correctly even when the history
2327 list is completely filled.
2328
2329 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2330
2331 * MAINTAINERS (Target Instruction Set Architectures): Rename
2332 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2333 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2334 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2335 already listed under Host/Native.
2336
2337 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2338 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2339 mips*-*-*.
2340
2341 2002-08-17 Andrew Cagney <ac131313@redhat.com>
2342
2343 * config/ia64/ia64.mt: New file.
2344 * config/alpha/alpha.mt: New file.
2345 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2346 ia64-linux-gnu. Mention that ia64-elf is broken.
2347 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2348
2349 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2350
2351 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2352 generic_func_frame_valid instead of func_frame_valid.
2353
2354 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2355
2356 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2357 procfs appears to be broken when debugging on multi-processor
2358 machines. So enable software single stepping in order to avoid
2359 using the procfs interface to do next/step operations, using
2360 internal breakpoints instead.
2361
2362 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2363 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2364 make this pc address equal to the value it would have if the
2365 system stepping capability was used. Also set a new flag used
2366 to ensure that we don't readjust the PC one more time later.
2367
2368 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2369 address by DECR_PC_AFTER_BREAK when software single step is
2370 in use for this architecture, as this has already been taken
2371 care of in handle_inferior_event().
2372
2373 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2374
2375 * infrun.c (handle_inferior_event): Minor reformatting, to make
2376 a rather long condition expression easier to read.
2377
2378 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2379
2380 * Makefile.in (gdbtk.o): Move to end of file.
2381 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2382 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2383 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2384 (gdbtk-wrapper.o, gdbres.o): Ditto.
2385
2386 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2387
2388 * Makefile.in (copying.o): Separate out compile rule.
2389 (hpux-thread.o, procfs.o, signals.o): Ditto.
2390 (v850ice.o, z8k-tdep.o): Ditto.
2391 (tui-file.o): Move to TUI section.
2392 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2393 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2394
2395 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2396
2397 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2398 skip_trampoline_code, for better namespace-proofing.
2399
2400 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2401
2402 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2403
2404 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2405
2406 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2407
2408 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2409 signal, check whether we hit a breakpoint before checking for a
2410 single step breakpoint. Otherwise, GDB fails to notice that a
2411 breakpoint has been hit when stepping onto a breakpoint.
2412
2413 2002-08-16 Keith Seitz <keiths@redhat.com>
2414
2415 * gdb-events.sh (clear_gdb_event_hooks): New function.
2416 * gdb-events.c: Regenerate.
2417 * gdb-events.h: Regenerate.
2418
2419 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2420
2421 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2422 not_a_sw_breakpoint.
2423 * breakpoint.h (bpstat_stop_status): Add parameter names.
2424
2425 2002-08-16 Grace Sainsbury <graces@redhat.com>
2426
2427 * remote.c (remote_insert_hw_breakpoint)
2428 (remote_remove_hw_breakpoint): Fix calculation of length field
2429 for Z-packet.
2430
2431 2002-08-15 Michael Snyder <msnyder@redhat.com>
2432
2433 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2434 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2435 (supply_fpregset): Ditto.
2436
2437 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2438 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2439 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2440 (TARGET_READ_SP): Delete.
2441 (DO_REGISTERS_INFO): Delete.
2442 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2443 Delete.
2444 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2445 from macros to functions.
2446
2447 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2448 (mips_register_convertible, mips_register_convert_to_virtual,
2449 mips_register_convert_to_raw): Make static.
2450 (mips_read_sp): New function.
2451 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2452 (mips_do_registers_info): Make static.
2453 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2454 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2455 (mips_register_convert_from_type, mips_register_convert_to_type):
2456 New functions.
2457 (mips_gdbarch_init): Set up function_start_offset,
2458 register_virtual_size, pc_in_sigtramp.
2459
2460 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2461
2462 * infcmd.c (vector_info): New function.
2463 (_initialize_infcmd): Add command "info vector".
2464 (print_vector_info): New function.
2465
2466 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2467 * gdbarch.h, gdbarch.c: Regenerate.
2468
2469 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2470
2471 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2472 ``print_all''. Only print vector registers when ``print_all''.
2473
2474 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2475
2476 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2477 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2478
2479 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2480 Add `args' parameter.
2481 * gdbarch.h, gdbarch.c: Regenerate.
2482
2483 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2484
2485 * infcmd.c (float_info): Call print_float_info.
2486 (print_float_info): New function. By default, print the
2487 floating-point registers.
2488
2489 * arch-utils.h (default_print_float_info): Delete declaration.
2490 * arch-utils.c (default_print_float_info): Delete function.
2491
2492 2002-08-16 Mark Kettenis <kettenis@gnu.org>
2493
2494 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2495 out define.
2496
2497 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2498 FRAME.
2499
2500 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2501 * configure.host: Make i[3456]86-*-aix host obsolete.
2502 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2503 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2504 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2505 config/i386/xm-i386aix.h: Make files obsolete.
2506 * i386aix-nat.c: Make file obsolete.
2507 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2508 (i386aix-nat.o): Make target obsolete.
2509
2510 * config/i386/nm-gnu.h: Removed.
2511 * config/i386/nm-i386gnu.h: New file.
2512 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2513 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2514 Moved here from ...
2515 * config/i386/tm-i386gnu.h: ... here. Removed.
2516 * config/i386/xm-i386gnu.h: Removed.
2517 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2518 (NAT_FILE): Set to nm-i386gnu.h.
2519 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2520 * i386-tdep.c: New file.
2521 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2522 (i386gnu-tdep.o): Specify dependencies.
2523
2524 2002-08-15 Mark Kettenis <kettenis@gnu.org>
2525
2526 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2527 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2528 Adjust a few comments to reflect reality a bit closer.
2529 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2530 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2531 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2532 target_insert_watchpoint, target_remove_watchpoint):
2533 Move defines to ...
2534 * config/i386/nm-i386sco5.h: ... here.
2535 (kernel_u_size): Add prototype. Improve a few comments and add
2536 protection against multiple inclusion.
2537
2538 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2539 out define.
2540
2541 * uw-thread.c (SP_ARG0): Define if not already defined.
2542 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2543
2544 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2545
2546 * config/i386/tm-i386.h: Don't include "regcache.h".
2547
2548 * i387-tdep.h (i387_print_float_info): New prototype.
2549 * i387-tdep.c (print_i387_value, print_i387_ext,
2550 print_i387_status_word, print_i387_control_word): Add `struct
2551 ui_file *' argument and use it for output.
2552 (i387_print_float_info): Renamed from i387_float_info. Add
2553 `struct gdbarch *' and `struct ui_file *' arguments and use the
2554 latter for output.
2555 * i386-tdep.c: Include "i387-tdep.h".
2556 (i386_gdbarch_init): Set print_float_info.
2557 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2558 (FLOAT_INFO): Remove define.
2559
2560 2002-08-13 Michael Snyder <msnyder@redhat.com>
2561
2562 * mips-tdep.c (mips_push_arguments): Rename to
2563 mips_eabi_push_arguments, and tune for EABI.
2564 (MIPS_REGS_HAVE_HOME_P): Delete.
2565 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2566 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2567 Delete references to mips_regs_have_home_p.
2568
2569 2002-08-14 Keith Seitz <keiths@redhat.com>
2570
2571 * Makefile.in (install-gdbtk): Create insight plugin directory.
2572 Install plugins.tcl file.
2573
2574 2002-08-14 Keith Seitz <keiths@redhat.com>
2575
2576 * configure.in: Move SUBDIRS to near top of the file so that
2577 --enable options may add things to it.
2578 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2579 * configure: Regenerate.
2580
2581 2002-08-13 Michael Snyder <msnyder@redhat.com>
2582
2583 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2584 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2585 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2586
2587 2002-08-13 Andrew Cagney <ac131313@redhat.com>
2588
2589 * vax-tdep.c (vax_get_saved_register): Delete function.
2590 (vax_gdbarch_init): Update.
2591 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2592 (ns32k_gdbarch_init): Update.
2593 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2594 (alpha_gdbarch_init): Update.
2595
2596 2002-08-13 Andrew Cagney <cagney@redhat.com>
2597
2598 * regcache.c (init_regcache_descr): Overallocate the
2599 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2600 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2601 nr_raw_registers.
2602 (set_register_cached): Add range checking assertions. Use
2603 current_regcache.
2604
2605 2002-08-13 Mark Kettenis <kettenis@gnu.org>
2606
2607 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2608 numbers for MMX registers.
2609
2610 2002-08-13 Andrew Cagney <cagney@redhat.com>
2611
2612 * i386-tdep.c (i386_gdbarch_init): Use
2613 generic_unwind_get_saved_register.
2614
2615 2002-08-13 Kevin Buettner <kevinb@redhat.com>
2616
2617 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2618 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2619 target vector.
2620 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2621 Delete. Add comment regarding this now-deleted target method.
2622
2623 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2624
2625 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2626 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2627 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2628 real PC and the page number (if it's within the memory bank window).
2629 (m68hc11_pseudo_register_write): Likewise when saving.
2630 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2631 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2632 (m68hc11_register_raw_size): And use 32-bit for it.
2633 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2634 16K memory bank is used by the prog; also use the virtual pc.
2635
2636 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2637
2638 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2639 (m68hc11_gdbarch_init): Install it in gdbarch.
2640 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2641 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2642 (MSYMBOL_SIZE): New for documentation.
2643 (insn_return_kind): Enum to specify how a function returns.
2644 (frame_extra_info): Cleanup and record the return mode.
2645 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2646 register in address computation.
2647 (m68hc11_get_return_insn): New to obtain the return instruction used
2648 by the function.
2649 (m68hc11_frame_init_saved_regs): Take into account the return
2650 instruction used by the function for far and interrupt functions.
2651 (m68hc11_init_extra_frame_info): Take into account page register.
2652 (m68hc11_frame_args_address): Adjust according to the return mode.
2653 (show_regs): Print page register only when it's used.
2654
2655 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2656
2657 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2658 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2659 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2660 registers.
2661 (m68hc11_register_raw_size): Likewise.
2662
2663 2002-08-13 Andrew Cagney <cagney@redhat.com>
2664
2665 * i386-tdep.c (i386_register_name): Handle mmx registers.
2666 (mmx_regnum_p): New function.
2667 (i386_mmx_names): New array.
2668 (mmx_num_regs): New variable.
2669 (i386_pseudo_register_read): New function.
2670 (i386_pseudo_register_write): New function.
2671 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2672
2673 * regcache.c (regcache_raw_read_unsigned): New function.
2674 (regcache_raw_read_signed): New function.
2675 * regcache.h (regcache_raw_read_unsigned): Declare.
2676 (regcache_raw_read_signed): Declare.
2677
2678 2002-08-13 Andrew Cagney <cagney@redhat.com>
2679
2680 * regcache.c (regcache_raw_read_as_address): Delete function.
2681 (regcache_cooked_read_signed): New function.
2682 (regcache_cooked_read_unsigned): New function.
2683 * regcache.h (regcache_cooked_read_signed): Declare.
2684 (regcache_cooked_read_unsigned): Declare.
2685 (regcache_raw_read_as_address): Delete declaration.
2686
2687 * blockframe.c (generic_read_register_dummy): Use
2688 regcache_cooked_read_unsigned.
2689 * i386-tdep.c (i386_extract_struct_value_address): Use
2690 regcache_cooked_read_unsigned.
2691
2692 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2693
2694 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2695 double sizes according to ELF ABI flags.
2696 (gdbarch_tdep): Record elf_flags.
2697
2698 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2699
2700 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2701 (m6812_prolog): They can appear in 68HC12 function prologue.
2702 (m68hc11_frame_chain): Cleanup.
2703
2704 2002-08-12 Andrew Cagney <cagney@redhat.com>
2705
2706 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2707 declarations.
2708 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2709 (i386_linux_register_raw_size): Delete function.
2710 (i386_linux_init_abi): Update.
2711 * i386-tdep.c (i386_register_raw_size): Delete function.
2712 (i386_register_byte): Delete function.
2713 (i386_gdbarch_init): Update.
2714 (i386_register_size): Delete array.
2715 (i386_register_offset): Delete array.
2716
2717 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2718 (REGISTER_RAW_SIZE): Delete macro.
2719 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2720 (REGISTER_BYTE): Delete macro.
2721
2722 2002-08-11 Aidan Skinner <aidan@velvet.net>
2723
2724 * ada-lang.c (ada_lookup_partial_symbol)
2725 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2726 prototype names so that grep ^func works properly.
2727
2728 * ada-lang.c (ada_array_element_type)
2729 (ada_lookup_partial_symbol): Fix typos in parameter list.
2730
2731 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2732 Fix prototype names so that grep ^func works properly.
2733
2734 2002-08-10 Andrew Cagney <cagney@redhat.com>
2735 Elena Zannoni <ezannoni@redhat.com>
2736 Martin M. Hunt <hunt@redhat.com>
2737
2738 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2739 (build_builtin_type_vec128i): Set the vector bit.
2740 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2741 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2742 (build_builtin_type_vec64): New function.
2743 (build_builtin_type_vec64i): New function.
2744 (build_gdbtypes): Initialize builtin_type_vec64 and
2745 builtin_type_vec64i.
2746
2747 2002-08-09 Andrew Cagney <cagney@redhat.com>
2748
2749 * regcache.c (regcache_dump): Compare the register offset
2750 with REGISTER_BYTE.
2751 * arch-utils.c (generic_register_byte): New function.
2752 * arch-utils.h (generic_register_byte): Declare.
2753 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2754 * gdbarch.h, gdbarch.c: Regenerate.
2755
2756 2002-08-09 Andrew Cagney <cagney@redhat.com>
2757
2758 * regcache.c: Include "gdbcmd.h"
2759 (_initialize_regcache): Add commands "maintenance print
2760 registers", "maintenance print raw-registers" and "maintenance
2761 print cooked-registers".
2762 (enum regcache_dump_what): Define.
2763 (dump_endian_bytes): New function.
2764 (regcache_dump): New function.
2765 (regcache_print): New function.
2766 (maintenance_print_registers): New function.
2767 (maintenance_print_raw_registers): New function.
2768 (maintenance_print_cooked_registers): New function.
2769 * Makefile.in (regcache.o): Update dependencies.
2770
2771 2002-08-09 Michael Snyder <msnyder@redhat.com>
2772
2773 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2774 (mips_push_arguments): Correct some comments. Use paddr_nz
2775 for printing addresses in debug output. Replace static
2776 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2777 (mips_n32n64_push_arguments): New function, cloned from
2778 mips_push_arguments and tuned for the n32/n64 ABI.
2779 (mips_push_register): Buffer needs dynamic allocation.
2780 (mips_print_register): Ditto.
2781 (do_gp_register_row): Ditto.
2782 (mips_store_return_value): Ditto.
2783 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2784
2785 2002-08-09 Don Howard <dhoward@redhat.com>
2786
2787 * memattr.c (mem_info_command): Print special case of upper bound
2788 as max CORE_ADDR + 1.
2789
2790 2002-08-08 Michael Snyder <msnyder@redhat.com>
2791
2792 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2793 returns structs by ref if they're too big to fit in two registers.
2794
2795 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2796
2797 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2798 saved regs value.
2799 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2800 mips_find_saved_regs().
2801 (mips_pop_frame): Likewise.
2802
2803 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2804
2805 * blockframe.c (frame_saved_regs_register_unwind): Revise
2806 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2807 frames are in use.
2808
2809 2002-08-09 Grace Sainsbury <graces@redhat.com>
2810
2811 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2812 T-packets; the 'a' is not taken as a register number.
2813 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2814 (remote_stopped_data_address): New functions; add to target
2815 vector.
2816 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2817 prototypes to match other implementations of this
2818 function. replace integer argument with pointer -- the length
2819 field in the Z-packet is the length of what is pointed to or 1 if
2820 pointer is null. Add to target vector.
2821 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2822 target vector.
2823
2824 From Mark Salter:
2825 * remote.c (remote_wait): Add support to extract optional
2826 watchpoint information from T-packet. Ignore unrecognized
2827 optional info in T-packet.
2828 (remote_async_wait): Ditto.
2829
2830 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
2831
2832 * cli/cli-dump.c: Change fopen modes to use binary open modes
2833 as defined in include/fopen-bin.h throughout.
2834
2835 2002-08-08 Michael Snyder <msnyder@redhat.com>
2836
2837 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2838
2839 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2840
2841 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2842 assertion failure by returning early after a warning.
2843
2844 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2845
2846 * mips-tdep.c (mips_find_saved_regs): Make static.
2847 (mips_frame_init_saved_regs): New function.
2848 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2849 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2850 (mips_find_saved_regs): Delete declaration.
2851
2852 2002-08-08 Grace Sainsbury <graces@redhat.com>
2853
2854 * remote.c (remote_wait, remote_async_wait): Change
2855 thread_num from int to ULONGEST.
2856 (unpack_varlen_hex): Change result parameter from
2857 int * to ULONGEST *.
2858
2859 2002-08-08 Andrew Cagney <ac131313@redhat.com>
2860
2861 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2862 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2863 powerpc*-*-*.
2864 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2865
2866 2002-08-08 Andrew Cagney <cagney@redhat.com>
2867
2868 * gcore.c (override_derive_stack_segment): Delete variable.
2869 (preempt_derive_stack_segment): Delete function.
2870 (derive_stack_segment): Delete function.
2871 (default_derive_stack_segment): Renamed to derive_stack_segment.
2872 (override_derive_heap_segment): Delete variable.
2873 (preempt_derive_heap_segment): Delete function.
2874 (derive_heap_segment): Delete function.
2875 (default_derive_heap_segment): Rename to derive_heap_segment.
2876
2877 2002-08-06 Michael Snyder <msnyder@redhat.com>
2878
2879 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2880 * mips-tdep.c (mips_EABI_use_struct_convention,
2881 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2882 New functions. (mips_use_struct_convention): Delete.
2883 (mips_gdbarch_init): set use_gdbarch_convention.
2884
2885 2002-08-06 Michael Snyder <msnyder@redhat.com>
2886
2887 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2888 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2889 mips_o32_reg_struct_has_addr): New functions.
2890 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2891
2892 2002-08-07 Andrew Cagney <ac131313@redhat.com>
2893
2894 * regcache.c (pseudo_register): Delete function.
2895 (fetch_register): Delete function.
2896 (store_register): Delete function.
2897 (regcache_raw_read, legacy_read_register_gen): Use
2898 target_fetch_registers instead of fetch_register.
2899 (legacy_write_register_gen, regcache_raw_write): Use
2900 target_store_register instead of store_register.
2901 (write_register_bytes): Ditto.
2902
2903 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2904 (STORE_PSEUDO_REGISTER): Delete.
2905 * gdbarch.h, gdbarch.c: Regenerate.
2906
2907 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
2908
2909 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2910 write dump file binary.
2911
2912 2002-08-05 Michael Snyder <msnyder@redhat.com>
2913
2914 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2915 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2916 (mips_gdbarch_init): Set N32 target to be mips64.
2917
2918 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2919
2920 * frame.c (find_saved_register): Break out of loop once saved
2921 register address is found. Don't mention sparc in loop comment
2922 anymore.
2923
2924 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2925
2926 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2927 mips_default_saved_regsize to 8.
2928
2929 2002-08-06 Andrew Cagney <ac131313@redhat.com>
2930
2931 * gcore.c: Do not include <sys/procfs.h>.
2932 * Makefile.in (gcore.o): Update dependencies.
2933
2934 2002-08-06 Andrew Cagney <cagney@redhat.com>
2935
2936 * configure.tgt: Make arc-*-* obsolete.
2937 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2938 * MAINTAINERS: Make arc-elf obsolete.
2939 * arc-tdep.c: Make file obsolete.
2940 * config/arc/arc.mt: Ditto.
2941 * config/arc/tm-arc.h: Ditto.
2942
2943 2002-08-05 Theodore A. Roth <troth@verinet.com>
2944
2945 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
2946
2947 2002-08-05 Andrew Cagney <ac131313@redhat.com>
2948
2949 * mcore-tdep.c (mcore_gdbarch_init): Use
2950 generic_unwind_get_saved_register instead of
2951 generic_get_saved_register.
2952 * v850-tdep.c (v850_gdbarch_init): Ditto.
2953 * frv-tdep.c (frv_gdbarch_init): Ditto.
2954 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2955 * s390-tdep.c (s390_gdbarch_init): Ditto.
2956 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2957 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2958 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2959
2960 2002-08-05 Joel Brobecker <brobecker@gnat.com>
2961
2962 * objfiles.h: Add missing #include "symfile.h"
2963
2964 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2965
2966 2002-08-04 Andrew Cagney <ac131313@redhat.com>
2967
2968 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2969 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2970 of FIELD_BITSIZE.
2971
2972 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
2973
2974 * NEWS: Cleanup and nitpick.
2975
2976 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2977
2978 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2979
2980 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2981
2982 * Makefile.in (gdbtk-bp.o): Update dependencies.
2983 (gdbtk-register.o): Ditto.
2984 (gdbtk-varobj.o): Ditto.
2985
2986 2002-08-03 Andrew Cagney <cagney@redhat.com>
2987
2988 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2989 m68hc11_fetch_pseudo_register.
2990 (m68hc11_pseudo_register_write): Replace
2991 m68hc11_store_pseudo_register.
2992 (m68hc11_gdbarch_init): Update.
2993
2994 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2995
2996 * gdbarch.sh: Include "gdb_string.h".
2997 * gdbarch.c: Regenerate.
2998
2999 * regcache.c: Include "gdb_string.h".
3000 * ax-general.c: Ditto.
3001 * varobj.c: Ditto.
3002 * std-regs.c: Ditto.
3003 * fbsd-proc.c: Ditto.
3004 * thread.c: Ditto.
3005
3006 * Makefile.in (regcache.o): Update dependencies.
3007 (thread.o, gdbarch.o): Ditto.
3008 (ax-general.o, gdbarch.o): Ditto.
3009 (varobj.o, std-regs.o): Ditto.
3010 (fbsd-proc.o): Specify dependencies.
3011
3012 2002-08-02 Andrew Cagney <cagney@redhat.com>
3013
3014 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
3015 regnum.
3016 (regcache_cooked_write): Ditto.
3017
3018 2002-08-02 Andrew Cagney <ac131313@redhat.com>
3019
3020 * regcache.c (regcache_cooked_read): New function.
3021 (regcache_cooked_write): New function.
3022 (read_register_gen): Rewrite using regcache_cooked_read.
3023 (write_register_gen): Rewrite using regcache_cooked_write.
3024
3025 * regcache.h (regcache_cooked_read, regcache_cooked_write):
3026 Declare.
3027
3028 2002-08-02 Andrew Cagney <cagney@redhat.com>
3029
3030 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
3031 Replace the architecture methods register_read and register_write.
3032 * gdbarch.h, gdbarch.c: Regenerate.
3033 * regcache.c (init_regcache_descr): Update.
3034 (read_register_gen): Update.
3035 (write_register_gen): Update.
3036 (supply_register): Update comment.
3037
3038 * sh-tdep.c (sh_gdbarch_init): Update.
3039 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
3040 `regcache' and `gdbarch' parameters. Make `buffer' a void
3041 pointer. Update code.
3042 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
3043 `regcache' and `gdbarch' parameters. Make `buffer' a constant
3044 void pointer. Update code.
3045 (sh64_register_write): Delete.
3046 (sh4_register_read): Delete.
3047 (sh64_register_read): Delete.
3048 (sh4_register_write): Delete.
3049 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
3050 void pointer, `to' parameter a void pointer.
3051 (sh_sh64_register_convert_to_raw): Ditto.
3052
3053 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3054
3055 * mips-tdep.c (mips_register_virtual_type): Use architecture
3056 invariant return values.
3057
3058 2002-08-01 Andrew Cagney <cagney@redhat.com>
3059
3060 * linux-proc.c: Include "gdb_string.h".
3061 * Makefile.in (linux-proc.o): Update dependency list.
3062
3063 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3064
3065 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
3066 comment.
3067
3068 2002-08-01 Grace Sainsbury <graces@redhat.com>
3069
3070 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3071 to_insert_watchpoint, to_remove_watchpoint,
3072 to_stopped_by_watchpoint, to_stopped_data_address,
3073 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
3074 target vecctor. Define their corresponding macros so they call
3075 them.
3076
3077 * target.c: Add default and debug versions of for
3078 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3079 to_insert_watchpoint, to_remove_watchpoint,
3080 to_stopped_by_watchpoint, to_stopped_data_address,
3081 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
3082
3083 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3084
3085 * mips-tdep.c (mips_register_virtual_type): New function.
3086 (mips_gdbarch_init): Register mips_register_virtual_type()
3087 with gdbarch machinery.
3088 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3089 this file instead of tm-bigmips.h.
3090 (MIPS_REGSIZE): Delete this macro.
3091 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
3092 multiarch version in mips-tdep.c will be found.
3093
3094 2002-08-01 Andrew Cagney <cagney@redhat.com>
3095
3096 * NEWS: Menion that CHILL has been made obsolete.
3097
3098 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
3099 * stabsread.c (read_range_type): Ditto.
3100 * gdbtypes.h: Ditto.
3101 * language.c (binop_type_check): Ditto.
3102 (binop_result_type): Ditto.
3103 (integral_type): Ditto.
3104 (character_type): Ditto.
3105 (string_type): Ditto.
3106 (boolean_type): Ditto.
3107 (structured_type): Ditto.
3108 (lang_bool_type): Ditto.
3109 (binop_type_check): Ditto.
3110 * language.h (_LANG_chill): Ditto.
3111 * dwarfread.c (set_cu_language): Ditto.
3112 * dwarfread.c (CHILL_PRODUCER): Ditto.
3113 * dwarfread.c (handle_producer): Ditto.
3114 * expression.h (enum exp_opcode): Ditto.
3115 * eval.c: Ditto for comments.
3116 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3117 * expprint.c (print_subexp): Ditto.
3118 (print_subexp): Ditto.
3119 * valops.c (value_cast): Ditto.
3120 (search_struct_field): Ditto.
3121 * value.h (COERCE_VARYING_ARRAY): Ditto.
3122 * symfile.c (init_filename_language_table): Ditto.
3123 (add_psymbol_with_dem_name_to_list): Ditto.
3124 * valarith.c (value_binop): Ditto.
3125 (value_neg): Ditto.
3126 * valops.c (value_slice): Ditto.
3127 * symtab.h (union language_specific): Ditto.
3128 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3129 (SYMBOL_DEMANGLED_NAME): Ditto.
3130 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3131 * defs.h (enum language): Ditto.
3132 * symtab.c (got_symtab): Ditto.
3133 * utils.c (fprintf_symbol_filtered): Ditto.
3134
3135 * ch-typeprint.c: Make file obsolete.
3136 * ch-valprint.c: Make file obsolete.
3137 * ch-lang.h: Make file obsolete.
3138 * ch-exp.c: Make file obsolete.
3139 * ch-lang.c: Make file obsolete.
3140
3141 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3142 CHILL_LIB.
3143 (TARGET_FLAGS_TO_PASS): Ditto.
3144 (CHILLFLAGS): Obsolete.
3145 (CHILL): Obsolete.
3146 (CHILL_FOR_TARGET): Obsolete.
3147 (CHILL_LIB): Obsolete.
3148 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3149 ch-valprint.c.
3150 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3151 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3152 ch-lang.o.
3153 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3154 targets.
3155
3156 2002-07-31 Joel Brobecker <brobecker@gnat.com>
3157
3158 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3159 This does not change anything at the moment, but will be helpful
3160 later when full Ada support is integrated.
3161
3162 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3163
3164 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3165 help message.
3166
3167 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3168
3169 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3170 and save it in a local variable. Use variable in later test.
3171
3172 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3173
3174 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3175 test. (Thanks to Daniel Jacobowitz.)
3176
3177 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3178
3179 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3180 (mips_abi_strings): Add "n64".
3181 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3182
3183 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3184
3185 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3186 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3187
3188 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3189
3190 * utils.c (host_pointer_to_address, address_to_host_pointer):
3191 Use gdb_assert() instead of explicit call to internal_error().
3192
3193 2002-07-30 Kevin Buettner <kevinb@redhat.com>
3194
3195 * Makefile.in (rs6000-nat.o): Update dependencies.
3196
3197 From Nicholas Duffek:
3198 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3199 (aix-thread.o): New rule.
3200 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3201 * config/powerpc/aix432.mh: New file.
3202
3203 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3204
3205 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3206 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3207 (fetch_core_registers, ppc_linux_supply_gregset)
3208 (ppc_linux_supply_fpregset): New functions.
3209 (ppc_linux_regset_core_fns): New.
3210 (_initialize_ppc_linux_tdep): Call add_core_fns.
3211 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3212 and ppc_linux_supply_gregset.
3213 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3214 (supply_fpregset): Call ppc_linux_supply_fpregset.
3215 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3216 corelow.o.
3217 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3218
3219 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3220
3221 * symtab.c (lookup_symbol): Demangle before lowercasing.
3222
3223 2002-07-30 Andrew Cagney <ac131313@redhat.com>
3224
3225 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3226 declaration.
3227 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3228 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3229 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3230 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3231 "gdb_string.h".
3232 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3233 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3234 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3235 (avr-tdep.o, mon960-rom.o): Ditto.
3236 (aout_stabs_gnu_h): Define.
3237 (symtab_h): Remove $(gdb_obstack_h).
3238
3239 2002-07-30 Jim Blandy <jimb@redhat.com>
3240
3241 Patch from David Carlton <carlton@math.stanford.edu>:
3242 * gdbinit.in: Move the `dir' commands that add GDB's own source
3243 directory to the search path to the end, so that the `gdb' source
3244 directory will be searched first.
3245
3246 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3247
3248 * gdb_obstack.h: New file.
3249 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3250 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3251 * objfiles.h: Include "gdb_obstack.h".
3252 * Makefile.in (gdb_obstack_h): Define.
3253 (symtab_h): Add $(gdb_obstack_h).
3254 (objfiles_h): Add $(gdb_obstack_h).
3255
3256 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3257 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3258 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3259 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3260 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3261 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3262 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3263 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3264
3265 * Makefile.in (bcache.o): Update dependencies.
3266 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3267 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3268 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3269 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3270 (stabsread.o, symfile.o, symmisc.o): Ditto.
3271 (symtab.o, typeprint.o, macroexp.o): Ditto.
3272 (macrotab.o, mdebugread.o): Ditto.
3273 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3274 (coff_ecoff_h, aout_aout64_h): Define.
3275 (aout_stabs_gnu_h, libaout_h): Define.
3276
3277 2002-07-29 Andrew Cagney <cagney@redhat.com>
3278
3279 * regcache.c (struct regcache_descr): Rename nr_registers to
3280 nr_cooked_registers. Revise comments describing the structure
3281 member fields.
3282 (init_regcache_descr): Update.
3283 (init_legacy_regcache_descr): Update.
3284 (read_register_gen, write_register_gen): When a cooked register in
3285 the raw register range, directly access the value from the raw
3286 register cache.
3287
3288 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3289
3290 * z8k-tdep.c: Do not include "obstack.h".
3291 * h8300-tdep.c, h8500-tdep.c: Ditto.
3292 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3293 * valprint.c, v850-tdep.c: Ditto.
3294 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3295 * mn10200-tdep.c: Ditto.
3296
3297 * Makefile.in (z8k-tdep.o): Update dependencies.
3298 (m68hc11-tdep.o, valprint.o): Ditto.
3299 (v850-tdep.o, d10v-tdep.o): Ditto.
3300 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3301 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3302 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3303 (sh_opc_h, gdb_sim_sh_h): Define.
3304 (elf_sh_h, elf_bfd_h): Define.
3305 (opcode_m68hc11_h): Define.
3306 (OPCODES_SRC, OPCODES_DIR): define.
3307 (OPCODES): Use $(OPCODES_DIR).
3308 (gdb_sim_d10v_h): Rename sim_d10v_h.
3309 (gdb_sim_arm_h): Rename sim_arm_h.
3310
3311 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3312
3313 * utils.c (host_pointer_to_address, address_to_host_pointer):
3314 Change internal_error() message to indicate function responsible
3315 for the error.
3316
3317 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3318
3319 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3320 calls to local_hex_string_custom().
3321
3322 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3323
3324 * irix5-nat.c: Move IRIX shared library support from here...
3325 * solib-irix.c: ...to here. Revised substantially to work with
3326 generic solib framework.
3327
3328 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3329 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3330 * mips-irix-tdep.c: New file.
3331
3332 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3333 (mips-irix-tdep.o, solib-irix.o): New rules.
3334 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3335 solib-irix.o.
3336 * config/mips/irix6.mt (TDEPFILES): Likewise.
3337 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3338
3339 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3340
3341 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3342 disabled (via ``#if 0'') includes.
3343
3344 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3345
3346 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3347 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3348 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3349 Add support for the fpscr register.
3350 * rs6000-nat.c (regmap, fetch_inferior_registers)
3351 (store_inferior_registers, fetch_core_registers): Likewise.
3352
3353 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3354
3355 * rs6000-nat.c (language.h): Include.
3356 (special_regs): Delete this array.
3357 (regmap): New function.
3358 (fetch_register, store_register): Use regmap() to map gdb
3359 register numbers to ptrace register numbers. Also, use
3360 outputs from regmap() to make decisions regarding type of
3361 ptrace() call to make. In particular, don't compare against
3362 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3363 (fetch_inferior_registers, store_inferior_registers): Where
3364 possible, obtain register numbers from tdep struct. Don't
3365 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3366 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3367 (LAST_UISA_SP_REGNUM): Delete.
3368
3369 2002-07-25 Kevin Buettner <kevinb@redhat.com>
3370
3371 * rs6000-nat.c (ppc-tdep.h): Include.
3372 (fetch_registers, store_register, fetch_core_registers): Don't
3373 access registers[] directly. Instead, use supply_register() or
3374 regcache_collect() as appropriate.
3375 (find_toc_address): Format hex address with local_hex_string().
3376
3377 2002-07-25 Andrew Cagney <ac131313@redhat.com>
3378
3379 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3380 bfd/elf32-frv.c.
3381
3382 2002-07-24 Tom Tromey <tromey@redhat.com>
3383
3384 * jv-exp.y: Marked all strings with _().
3385 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3386 internal_error.
3387 (MethodInvocation, CastExpression, parse_number, yyerror,
3388 java_type_from_name, push_expression_name, yylex): Typo fixes.
3389
3390 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
3391
3392 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3393 (tee_file_flush, tee_file_write, tee_file_fputs)
3394 (tee_file_isatty): New.
3395 * ui-file.h (tee_file_new): Add prototype.
3396
3397 2002-07-24 Aidan Skinner <aidan@velvet.net>
3398
3399 * ada-lang.c: Change k&r style function definitions to prototyped
3400 form.
3401 * ada-typeprint.c: Change k&r style function definitions to prototyped
3402 form.
3403 * ada-valprint.c: Change k&r style function definitions to prototyped
3404 form.
3405
3406 2002-07-24 Andrew Cagney <cagney@redhat.com>
3407
3408 * README: Remove reference to remote-bug.
3409 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3410 remote-bug.c.
3411 (m88k-nat.o): Delete rule.
3412 (m88k-tdep.o): Delete rule.
3413 (remote-bug.o): Delete rule.
3414 * MAINTAINERS: Mark as obsolete.
3415 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3416 * m88k-tdep.c: Make file obsolete.
3417 * config/m88k/m88k.mh: Ditto.
3418 * config/m88k/delta88v4.mh: Ditto.
3419 * config/m88k/delta88v4.mt: Ditto.
3420 * config/m88k/delta88.mt: Ditto.
3421 * config/m88k/delta88.mh: Ditto.
3422 * remote-bug.c: Ditto.
3423 * config/m88k/tm-delta88.h: Ditto.
3424 * config/m88k/nm-delta88v4.h: Ditto.
3425 * config/m88k/xm-delta88.h: Ditto.
3426 * config/m88k/xm-dgux.h: Ditto.
3427 * config/m88k/tm-m88k.h: Ditto.
3428 * config/m88k/nm-m88k.h: Ditto.
3429 * config/m88k/tm-delta88v4.h: Ditto.
3430 * m88k-nat.c: Ditto.
3431 * cxux-nat.c: Ditto.
3432 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3433 and m88*-*-* obsolete.
3434 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3435 m88*-*-* obsolete.
3436
3437 2002-07-24 Andrew Cagney <cagney@redhat.com>
3438
3439 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3440 constant. Same for local pointer variables.
3441 (extract_signed_integer): Ditto.
3442 * defs.h (extract_unsigned_integer): Update.
3443 (extract_signed_integer): Update.
3444
3445 2002-07-24 Andrew Cagney <cagney@redhat.com>
3446
3447 * regcache.c (regcache_raw_write): Change buf parameter to a
3448 constant void pointer.
3449 (regcache_raw_read): Change buf parameter to a void pointer.
3450 (legacy_write_register_gen): Change myaddr parameter a constant
3451 void pointer.
3452 (supply_register): Change val parameter to a const void pointer.
3453 * regcache.h (regcache_raw_write): Update declaration.
3454 (regcache_raw_read): Update declaration.
3455 (supply_register): Update declaration.
3456
3457 2002-07-24 Tom Tromey <tromey@redhat.com>
3458
3459 * defs.h (gdb_readline_wrapper): Declare.
3460 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3461 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3462 * top.c (gdb_readline_wrapper): New function.
3463 (command_line_input): Use it.
3464
3465 2002-07-24 Andrew Cagney <cagney@redhat.com>
3466
3467 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3468 regcache_read and regcache_write.
3469 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3470 * regcache.c: Update.
3471 * sh-tdep.c (sh64_push_arguments): Update comment.
3472 (sh_pseudo_register_read): Update.
3473 (sh_pseudo_register_write): Update.
3474 (sh4_register_read): Update.
3475 (sh4_register_write): Update.
3476 (sh64_pseudo_register_read): Update.
3477 (sh64_pseudo_register_write): Update.
3478 (sh64_register_read): Update.
3479 (sh64_register_write): Update.
3480 * i386-tdep.c (i386_extract_return_value): Update.
3481 (i386_extract_struct_value_address): Update.
3482 (i386_extract_return_value): Update.
3483 * blockframe.c (generic_read_register_dummy): Update.
3484 (generic_call_dummy_register_unwind): Update
3485 * infrun.c (write_inferior_status_register): Update.
3486
3487 2002-07-23 Jim Blandy <jimb@redhat.com>
3488
3489 * parser-defs.h (expression_context_pc): Make this extern.
3490 (Thanks to Michael Snyder.)
3491
3492 2002-07-23 Andrew Cagney <ac131313@redhat.com>
3493
3494 GDB 5.2.1 released from 5.2 branch.
3495 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3496 * README: Update to mention 5.2.1.
3497
3498 2002-07-23 Mark Salter <msalter@redhat.com>
3499
3500 * remote.c (remote_read_bytes): Fix check for error.
3501
3502 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3503
3504 * aix-thread.c (language.h): Include.
3505 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3506 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3507 Print newlines at end of debug messages.
3508 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3509 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3510
3511 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3512
3513 * aix-thread.c (ppc-tdep.h): Include.
3514 (special_register_p): New function.
3515 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3516 (store_regs_user_thread): Use register number information from
3517 gdbarch_tdep struct instead of hardcoded offsets relative to
3518 FIRST_UISA_SP_REGNUM.
3519 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3520 special_register_p() instead of using FPLAST_REGNUM and
3521 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3522 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3523 will be MQ's register number.
3524
3525 2002-07-22 Michael Snyder <msnyder@redhat.com>
3526
3527 * aix-thread.c (ops): Rename to aix_thread_ops.
3528 (base_ops): Rename to base_target.
3529 (ops_attach): Rename to aix_thread_attach.
3530 (ops_detach): Rename to aix_thread_detach.
3531 (ops_resume): Rename to aix_thread_detach.
3532 (ops_wait): Rename to aix_thread_wait.
3533 (ops_kill): Rename to aix_thread_kill.
3534 (init_ops): Rename to init_aix_thread_ops.
3535 (ops_fetch_register): Rename to aix_thread_fetch_register.
3536 (ops_store_register): Rename to aix_thread_store_register.
3537 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3538 (ops_thread_alive): Rename to aix_thread_thread_alive.
3539 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3540 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3541 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3542 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3543 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3544 (store_regs_lib): Rename to store_regs_user_thread.
3545 (store_regs_kern): Rename to store_regs_kernel_thread.
3546
3547 2002-07-22 Michael Snyder <msnyder@redhat.com>
3548
3549 * aix-thread.c (ops_prepare_to_store): Eliminate.
3550 (init_ops): Don't initialize ops.prepare_to_store.
3551 (store_regs_kern): Pre-fetch register buffers from child,
3552 because some registers may not be in the cache. Copy
3553 regs from register cache only if they are cached.
3554 (store_regs_lib): Copy regs from register cache only
3555 if they are cached.
3556 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3557 fill_gprs64): Ditto.
3558
3559 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3560
3561 * aix-thread.c (gdb_assert.h): Include.
3562 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3563 register sizes (from register cache) match size of buffer holding
3564 register data.
3565 (fill_sprs32): Change parameter types to match those in the ptrace()
3566 buffer.
3567 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3568 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3569
3570 2002-07-22 Michael Snyder <msnyder@redhat.com>
3571
3572 * aix-thread.c (supply_sprs64): Cosmetic change.
3573 (supply_sprs32): Cosmetic change.
3574 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3575 (fill_sprs64): Use regcache_collect instead of read_register.
3576 (store_regs_lib): Use regcache_collect instead of
3577 read_register. Use fill_sprs32 instead of fill_sprs64,
3578 if debugging a 32-bit architecture.
3579 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3580 out of the register cache, instead of passing a pointer into
3581 the register cache directly to ptrace. Use regcache_collect
3582 insteaad of read_register.
3583 (ops_prepare_to_store): Use target_read_registers instead
3584 of read_register_bytes.
3585
3586 2002-07-20 Aidan Skinner <aidan@velvet.net>
3587
3588 * MAINTAINERS: Add self under write after approval.
3589
3590 2002-07-20 Aidan Skinner <aidan@velvet.net>
3591
3592 * ada-tasks.c: Change k&r style function definitions to prototyped
3593 form.
3594
3595 2002-07-19 Andrew Cagney <ac131313@redhat.com>
3596
3597 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3598 * x86-64-tdep.c: Include "objfiles.h".
3599 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3600 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3601
3602 2002-07-17 Michal Ludvig <michal@suse.cz>
3603
3604 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3605 (update_context): Initialise cfa variable.
3606
3607 2002-07-17 Michael Snyder <msnyder@redhat.com>
3608
3609 * aix-thread.c: Shorten some long lines.
3610 Bring comments into line with code spec.
3611
3612 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3613
3614 * infrun.c: Re-indent using gdb_indent.sh.
3615
3616 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3617
3618 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3619 Leave the indentation temporarily untouched, to minimize the diffs.
3620
3621 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
3622
3623 * stabsread.c: Make os9k sections of the code obsolete,
3624 for real this time.
3625 * stabsread.h: Make os9k sections of the code obsolete.
3626
3627 2002-07-18 Michal Ludvig <mludvig@suse.cz>
3628
3629 * linux-low.c (regsets_store_inferior_registers): Add free()
3630 at the end of a loop to prevent memory leak.
3631 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3632 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3633 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3634 line a comment.
3635 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3636
3637 2002-07-17 Jim Blandy <jimb@redhat.com>
3638
3639 * macrocmd.c (info_macro_command): Remove newline from error
3640 message.
3641
3642 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
3643
3644 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3645 (sh_gdbarch_init): Use it for sh-dsp.
3646
3647 2002-07-16 Kevin Buettner <kevinb@redhat.com>
3648
3649 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3650 64-bit DWARF2 format.
3651
3652 2002-07-16 Joel Brobecker <brobecker@gnat.com>
3653
3654 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3655 <sys/proc.h> when not available.
3656
3657 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3658
3659 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3660 * stabsread.c: Make os9k sections of the code obsolete.
3661 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3662 * config/i386/i386os9k.mt: Make file obsolete.
3663 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3664 (COMMON_OBS): Remove os9kread.o
3665 (SFILES): Remove os9kread.c.
3666 (os9kread.o, remote-os9k.o): Make target obsolete.
3667 * remote-os9k.c: Make file obsolete.
3668 * os9kread.c: Make file obsolete.
3669 * Makefile.in
3670
3671 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3672
3673 * NEWS: Mention that the FR30 has been made obsolete.
3674 * fr30-tdep.c: Make file obsolete.
3675 * config/fr30/tm-fr30.h: Ditto.
3676 * config/fr30/fr30.mt: Ditto.
3677 * configure.tgt: Make fr30-*-elf obsolete.
3678 * MAINTAINERS: Make fr30-elf obsolete.
3679
3680 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3681
3682 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3683 found is not inside a section.
3684
3685 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3686
3687 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3688 strerror().
3689 (pdc_realloc): Use xrealloc() instead of realloc().
3690
3691 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3692
3693 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3694 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3695 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3696 macros.
3697
3698 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3699
3700 * aix-thread.c (ptrace_check): Eliminate goto.
3701 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3702 problem.
3703
3704 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3705
3706 * aix-thread.c (gdbcmd.h): Include.
3707 (DEBUG, DBG, DBG2, dbg): Eliminate.
3708 (debug_aix_thread): New static global.
3709 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3710 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3711 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3712 invocations to DBG and DBG2 macros to test against
3713 ``debug_aix_thread'' and call fprintf_unfiltered().
3714 (_initialize_aix_thread): Add new command "set debug aix-thread".
3715
3716 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3717
3718 From Gerhard Tonn <TON@de.ibm.com>:
3719 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3720 instead of supply_register.
3721
3722 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3723
3724 * dwarf2cfi.c: Include "gdb_assert.h".
3725 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3726 non-NULL.
3727 (update_context): Do not use __func__. Add missing ``break''.
3728 (update_context): Do not use __func__.
3729
3730 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
3731
3732 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3733 and its setting. Set gdbarch instruction printing functions
3734 directly. For non-rs6000 case use new function
3735 gdb_print_insn_powerpc.
3736 (gdb_print_insn_powerpc): New function.
3737
3738 2002-07-13 Andrew Cagney <ac131313@redhat.com>
3739
3740 * NEWS: Mention that the d30v has been marked obsolete.
3741 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3742 * configure.tgt: Mark d30v-*-* as obsolete.
3743 * d30v-tdep.c: Mark file as obsolete.
3744 * config/d30v/d30v.mt: Ditto.
3745 * config/d30v/tm-d30v.h: Ditto.
3746
3747 2002-07-13 Aidan Skinner <aidan@velvet.net>
3748
3749 * ada-tasks.c (add_task_entry): replace calls to
3750 malloc() with xmalloc
3751 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3752
3753 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3754 ada_finish_decode_line_1, all_sals_for_line
3755 ada_breakpoint_rewrite): replace calls to free() with xfree()
3756
3757 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3758
3759 From Nicholas Duffek (with minor changes by Martin Hunt,
3760 Louis Hamilton, and Kevin Buettner):
3761 * aix-thread.c: New file.
3762
3763 2002-07-12 Petr Sorfa <petrs@caldera.com>
3764
3765 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3766 complaint for invalid attribute class or form.
3767 (read_func_scope): DW_AT_frame_base
3768 better handling of DW_AT_block*.
3769 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3770 better handling of DW_AT_block*.
3771 (read_common_block): DW_AT_location
3772 better handling of DW_AT_block*.
3773 (read_partial_die): DW_AT_location better handling
3774 of DW_AT_block*.
3775 (new_symbol): DW_AT_external better handling of
3776 DW_AT_block*. Proper initialization of variable
3777 "addr".
3778 (attr_form_is_block): New function that returns true
3779 if the attribute's form is of DW_FORM_block*.
3780
3781 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3782
3783 * valops.c (find_method_list): Remove comment about
3784 removed STATIC_MEMFUNCP argument.
3785 (value_find_oload_method_list): Likewise.
3786
3787 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3788
3789 From Nicholas Duffek:
3790 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3791 target_new_objfile_hook.
3792
3793 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3794
3795 From Nicholas Duffek:
3796 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3797 csect.
3798
3799 2002-07-12 Andrew Cagney <cagney@redhat.com>
3800
3801 * MAINTAINERS: Mention --enable-sim-build-warnings.
3802 (m68hc11-elf): Disable sim build warnings.
3803 (m32r-elf): Mark as broken obsolete candidate.
3804 (x86_64-linux-gnu): Mark as buildable with -Werror.
3805 (arm-elf): Change -w to ``,'' which enables warnings but not
3806 -Werror.
3807
3808 2002-07-12 Andrew Cagney <ac131313@redhat.com>
3809
3810 * bcache.h: Update copyright.
3811 (struct bstring, struct bcache): Move definition to "bcache.c".
3812 Replaced by opaque declaration.
3813 (bcache_xfree): Replace free_bcache.
3814 (bcache_xmalloc, bcache_memory_used): Declare.
3815
3816 * bcache.c: Update copyright.
3817 (struct bstring, struct bcache): Moved to here from "bcache.h".
3818 Update comments.
3819 (bcache_xmalloc, bcache_memory_used): New functions.
3820 (bcache_xfree): Replace function free_bcache.
3821
3822 * Makefile.in (objfiles.o): Add $(bcache_h).
3823 (objfiles_h): Remove $(bcache_h).
3824 (symfile.o): Add $(bcache_h).
3825
3826 * symmisc.c: Update copyright.
3827 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3828 (print_objfile_statistics): Use bcache_memory_used.
3829
3830 * symfile.c: Include "bcache.h".
3831 (reread_symbols): Use bcache_xfree.
3832 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3833 (add_psymbol_to_list): Pass psymbol_cache by value.
3834 (add_psymbol_with_dem_name_to_list): Ditto.
3835
3836 * objfiles.h: Update copyright.
3837 (struct bcache): Declare opaque. Do not include "bcache.h".
3838 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3839 bcache'' pointers.
3840 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3841
3842 * objfiles.c: Include "bcache.h". Update copyright.
3843 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3844 macro_cache.
3845 (free_objfile): Use bcache_xfree.
3846
3847 2002-07-11 Grace Sainsbury <graces@redhat.com>
3848
3849 * monitor.c (monitor_fetch_register): Make name a constant.
3850 (monitor_store_register): Same.
3851
3852 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
3853
3854 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3855 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3856 (finish_block) For non-function blocks, hash the symbol table. For
3857 function blocks, mark the symbol table as unhashed.
3858 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3859 (msymbol_hash_iw): Likewise.
3860 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3861 value.
3862 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3863 (lookup_minimal_symbol): Likewise for both.
3864 * symtab.h (struct block): Add `hashtable' flag. Comment the
3865 hashtable.
3866 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3867 (ALL_BLOCK_SYMBOLS): Update.
3868 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3869 (struct symbol): Add `hash_next' pointer.
3870 * symtab.c (lookup_block_symbol): Search using the hash table when
3871 possible.
3872 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3873 (search_symbols, find_addr_symbol): Likewise.
3874
3875 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3876 (read_dst_symtab): Likewise.
3877 * jv-lang.c (get_java_class_symtab): Likewise.
3878 * mdebugread.c: Include "gdb_assert.h".
3879 (shrink_block): Assert that the block being modified is not hashed.
3880 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3881 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3882 symbols.
3883 (dump_symtab): Recognize hashed blocks.
3884 * printcmd.c (print_frame_args): Assert that function blocks do not
3885 have hashed symbol tables.
3886 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3887 (fill_in_ada_prototype, debug_print_block): Likewise.
3888 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3889
3890 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
3891
3892 * stack.c (print_frame): Use result of frame_address_in_block()
3893 instead of fi->pc when evaluating symbols.
3894 (backtrace_command_1): Ditto.
3895
3896 2002-07-11 Andrew Cagney <cagney@redhat.com>
3897
3898 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3899 Make static.
3900
3901 * arm-tdep.c (arm_register_name): Make return type constant.
3902
3903 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3904
3905 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3906 prototype.
3907 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3908 * s390-tdep.c (s390_fp_regnum): Ditto.
3909 (s390_read_fp): Ditto.
3910 (s390_pop_frame): Ditto.
3911 (_initialize_s390_tdep): Ditto.
3912 * remote.c (get_remote_state): Ditto.
3913 * procfs.c (mappingflags): Ditto.
3914 * memattr.c (_initialize_mem): Ditto.
3915 * mcore-tdep.c (mcore_pop_frame): Ditto.
3916 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3917 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3918 * language.c (set_case_str): Ditto.
3919 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3920 * frv-tdep.c (new_variant): Ditto.
3921 (frv_stopped_data_address): Ditto.
3922 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3923 (context_alloc): Ditto.
3924 (frame_state_alloc): Ditto.
3925 (unwind_tmp_obstack_init): Ditto.
3926 (unwind_tmp_obstack_free): Ditto.
3927 (cfi_read_fp): Ditto.
3928 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3929 (cris_pop_frame): Ditto.
3930 * c-lang.c (scanning_macro_expansion): Ditto.
3931 (finished_macro_expansion): Ditto.
3932 (c_preprocess_and_parse): Ditto.
3933 * gdbarch.sh: Ditto.
3934 * gdbarch.h, gdbarch.c: Regenerate.
3935 * config/mn10200/tm-mn10200.h: Adjust indentation.
3936 * target.c: Adjust indentation.
3937 * symtab.h: Adjust indentation.
3938 * stabsread.h: Adjust indentation.
3939 * remote-es.c: Adjust indentation.
3940 * os9kread.c: Adjust indentation.
3941
3942 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3943
3944 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3945 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3946
3947 2002-07-10 Grace Sainsbury <graces@redhat.com>
3948
3949 * NEWS: Mention m68k, mcore multi-arching.
3950 * MAINTAINERS: Change status of m68k, mcore to reflect
3951 multi-arching.
3952
3953 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
3954
3955 * valops.c (find_overload_match): Free oload_syms.
3956
3957 2002-07-09 Joel Brobecker <brobecker@gnat.com>
3958
3959 Define HAVE_SYS_PROC_H if sys/proc.h exists
3960 * configure.in: Add check for sys/proc.h
3961 * config.in: Regenerate.
3962 * configure: Regenerate.
3963
3964 2002-07-09 Grace Sainsbury <graces@redhat.com>
3965
3966 * config/m68k/tm-m68k.h: Remove macros wrapped in
3967 #if !GDB_MULTI_ARCH.
3968
3969 2002-07-08 Andrew Cagney <ac131313@redhat.com>
3970
3971 * config.in, configure: Regenerate.
3972
3973 2002-07-08 Mark Kettenis <kettenis@gnu.org>
3974
3975 * dwarf2cfi.c: Include "gcore.h".
3976 (execute_stack_op): Fix implementation of the
3977 DW_OP_deref and DW_OP_deref_size operators by letting do their
3978 lookup in the target.
3979
3980 2002-07-07 Mark Kettenis <kettenis@gnu.org>
3981
3982 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3983 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3984 tdep->sc_sp_offset.
3985
3986 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
3987
3988 Fix PR gdb/595, gdb/602
3989 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3990 Don't call value_cast, just read the vtable pointer; update comments
3991 to match.
3992
3993 2002-07-05 Grace Sainsbury <graces@redhat.com>
3994
3995 * config/mcore/tm-mcore.h: Remove file.
3996 * config/mcore/mcore.mt: Remove definition of TM_FILE
3997 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3998
3999 2002-07-05 Mark Kettenis <kettenis@gnu.org>
4000
4001 * i386bsd-tdep.c: Include "gdb_string.h".
4002
4003 2002-07-04 Grace Sainsbury <graces@redhat.com>
4004
4005 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
4006 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
4007 mcore-tdep.
4008 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
4009 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
4010 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
4011 (RETVAL_REGNUM): Move macros from tm-mcore.h
4012 (mcore_reg_struct_has_addr): New function.
4013 (mcore_gdbarch_init): Added initializations for the macros removed
4014 from tm-mcore.h.
4015
4016 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4017
4018 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
4019 traditonal string branding within the ELF header.
4020
4021 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
4022
4023 * symtab.c (remove_params): New function.
4024 (make_symbol_overload_list): Use it instead of cplus_demangle.
4025 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
4026
4027 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4028
4029 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
4030
4031 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
4032 New variables.
4033 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
4034 and tdep->sigtramp_end.
4035 * i386obsd-nat.c: New file.
4036 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
4037
4038 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
4039 Don't call get_current_frame().
4040
4041 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
4042
4043 * i386-nat.c (child_post_startup_inferior): New function
4044 calling i386_cleanup_dregs if
4045 I386_USE_GENERIC_WATCHPOINTS is defined.
4046 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
4047 conditional to acknowledge that i386-nat.c has its
4048 own child_post_startup_inferior function.
4049
4050 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4051
4052 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
4053 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
4054 instead of MAX_REGISTER_RAW_SIZE.
4055 (i386_extract_return_value, i386_extract_struct_value_address):
4056 Convert to use regcache.
4057 (i386_gdbarch_init): Set max_register_raw_size and
4058 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
4059 Set extract_return_value and extract_struct_value_address instead
4060 of their deprecated variants.
4061
4062 Convert i386 target to generic dummy frames.
4063 * i386-tdep.c: Include "symfile.h".
4064 (i386_frameless_signal_p): Consider a function to be frameless if
4065 the pc points at the first instruction of the function.
4066 (i386_frame_chain): Handle (generic) call dummies.
4067 (i386_frame_saved_pc): Likewise.
4068 (i386_frame_init_saved_regs): Remove code dealing with call
4069 dummies on the stack.
4070 (i386_push_dummy_frame): Removed.
4071 (i386_call_dummy_words): Removed.
4072 (i386_fix_call_dummy): Removed.
4073 (i386_push_return_address): New function.
4074 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
4075 parameter, and don't call get_current_frame.
4076 (i386_pop_frame): New function.
4077 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
4078 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
4079 entry_point_address, set call_dummy_breakpoint_offset to 0, set
4080 call_dummy_length to 0, set call_dummy_words to NULL, set
4081 sizeof_call_dummy_words to 0, set fix_call_dummy to
4082 generic_fix_call_dummy, set pc_in_call_dummy to
4083 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
4084 generic_push_dummy_frame, set push_return_address to
4085 i386_push_return_address and set frame_chain_valid to
4086 generic_file_frame_chain_valid.
4087
4088 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4089
4090 * gdbarch.sh (struct regcache): Add opaque declaration.
4091 (EXTRACT_RETURN_VALUE): New architecture method.
4092 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4093 * gdbarch.h, gdbarch.c: Regenerate.
4094 * arch-utils.c (legacy_extract_return_value): New function.
4095 * arch-utils.h (legacy_extract_return_value): Declare.
4096 * values.c (value_being_returned): Re-enable code handling
4097 EXTRACT_STRUCT_VALUE_ADDRESS. Move
4098 deprecated_grub_regcache_for_registers call to block handling
4099 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4100 (EXTRACT_RETURN_VALUE): Do not define.
4101
4102 2002-07-03 Grace Sainsbury <graces@redhat.com>
4103
4104 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4105 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4106 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4107 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4108 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4109 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4110 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4111 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4112 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4113 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4114 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4115 argument so the function fits the prototype in the architecture
4116 vector.
4117 (mcore_pop_frame): Remove argument so the function fits the
4118 prototype. Use get_current_frame instead of the argument.
4119 (mcore_push_arguments): Change type of struct_return so the
4120 function can be used in the architecture vector.
4121 (mcore_store_struct_return): Add.
4122 (mcore_frame_init_saved_regs): Add.
4123 (mcore_gdbarch_init): Add function calls to replace the macros
4124 removed from tm-mcore.h
4125
4126 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4127
4128 * infcmd.c (print_return_value): Remove compatibility code calling
4129 deprecated_grub_regcache_for_registers.
4130
4131 * values.c: Include "regcache.h".
4132 (value_being_returned): Update. Use
4133 deprecated_grub_regcache_for_registers to extract the register
4134 buffer address.
4135 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4136 ``struct regcache''.
4137 * Makefile.in (values.o): Add dependency on $(regcache_h).
4138
4139 * inferior.h (run_stack_dummy): Change type of second parameter to
4140 a ``struct regcache''.
4141 * valops.c (hand_function_call): Change type of retbuf to ``struct
4142 regcache''. Allocate using regcache_xmalloc, clean using
4143 make_cleanup_regcache_xfree.
4144 * infcmd.c (run_stack_dummy): Update. Use
4145 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4146
4147 * regcache.c (do_regcache_xfree): New function.
4148 (make_cleanup_regcache_xfree): New function.
4149 * regcache.h (make_cleanup_regcache_xfree): Declare.
4150
4151 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4152
4153 * event-top.c (command_line_handler): Don't read past
4154 beginning of buffer.
4155
4156 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4157
4158 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4159 struct frame_id.
4160 (varobj_create): Store frame_id for root.
4161 (varobj_gen_name): Use xasprintf.
4162 (varobj_update): Save and restore frame using get_frame_id() and
4163 frame_find_by_id().
4164 (create_child): Use xasprintf.
4165 (new_root_variable): Initialize frame_id.
4166 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4167 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4168 to prevent memory leak.
4169
4170 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4171
4172 * valops.c (hand_function_call): Move declaration of retbuf to
4173 start of function, allocate using malloc, add a cleanup but before
4174 the inf_status cleanup, cleanup the buffer. Rename local variable
4175 old_chain to inf_status_cleanup.
4176
4177 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4178
4179 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4180
4181 * cli/cli-decode.c (cmd_func_p): New function.
4182 (cmd_func): New function.
4183
4184 * command.h: Add cmd_func() and cmd_func_p().
4185
4186 2002-07-03 Grace Sainsbury <graces@redhat.com>
4187
4188 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4189 (REGISTER_SIZE): Remove.
4190 (MAX_REGISTER_RAW_SIZE): Remove.
4191 (REGISTER_VIRTUAL_TYPE): Remove.
4192 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4193 (REGISTER_NAME): Remove.
4194 (USE_GENERIC_DUMMY_FRAMES): Remove.
4195 (CALL_DUMMY): Remove.
4196 (CALL_DUMMY_START_OFFSET): Remove.
4197 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4198 (CALL_DUMMY_LOCATION): Remove.
4199 (FIX_CALL_DUMMY): Remove.
4200 (CALL_DUMMY_ADDRESS): Remove.
4201 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4202 (SAVE_DUMMY_FRAME_TOS): Remove.
4203 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4204 (mcore_register_virtual_type): New function.
4205 (mcore_register_byte): New function.
4206 (mcore_register_size): New function.
4207 (mcore_register_name): New function.
4208 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4209 macros removed from tm-mcore.h.
4210 (mcore_dump_tdep): Add.
4211 (_initialize_mcore_tdep): Add gdbarch_register call.
4212
4213 2002-07-03 Mark Kettenis <kettenis@gnu.org>
4214
4215 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4216 frameless_look_for_prologue, such that we actually call this
4217 function.
4218
4219 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4220
4221 * frame.h (frame_address_in_block): New function.
4222
4223 * blockframe.c (frame_address_in_block): New function extracted
4224 from get_frame_block().
4225 (get_frame_block): Use frame_address_in_block().
4226 (block_innermost_frame): Use frame_address_in_block() to match
4227 the frame pc address against the block boundaries rather than
4228 the frame pc directly. This prevents a failure when a frame pc
4229 is actually a return-address pointing immediately after the end
4230 of the given block.
4231
4232 2002-07-02 Grace Sainsbury <graces@redhat.com>
4233
4234 * MAINTAINERS: Add self under write after approval.
4235
4236 2002-07-02 Grace Sainsbury <graces@redhat.com>
4237
4238 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4239 used in architecture vector. The default is
4240 m68k_local_breakpoint_from_pc.
4241 (m68k_local_breakpoint_from_pc): Add.
4242 (enum): Add register numbers from tm-m68k.h.
4243 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4244 vector.
4245 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4246 GDB_MULTI_ARCH_PARTIAL.
4247 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4248 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4249 m68k-tdep.c.
4250 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4251 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4252 to enum in m68k-tdep.c
4253
4254 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4255
4256 * solib-osf.c (open_map): Compute the list of shared libraries
4257 loaded by the inferior, rather than the list of libraries loaded
4258 by GDB itself. Otherwise, GDB ends up reading the symbols from
4259 the wrong shared libraries...
4260
4261 2002-07-02 Mark Kettenis <kettenis@gnu.org>
4262
4263 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4264 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4265 macros.
4266 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4267 Remove functions.
4268 (FRAMELESS_SIGNAL): Remove function.
4269 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4270 i386_linux_saved_pc_after_call): Removed.
4271 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4272 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4273 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4274
4275 * i386-tdep.c (i386_frameless_signal_p): New function.
4276 (i386_frame_chain): Deal with frameless signals.
4277 (i386_sigtramp_saved_sp): New function.
4278 (i386_frame_saved_pc): Deal with frameless signals.
4279 (i386_saved_pc_after_call): Make sure the correct value is
4280 returned just after entry into a sigtramp.
4281 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4282 i386fbsd4_sc_sp_offset): New variables.
4283 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4284 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4285 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4286 similiar to what we already did for sc_pc_offset.
4287 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4288 tdep->sc_sp_offset.
4289
4290 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4291
4292 2002-07-02 Michal Ludvig <mludvig@suse.cz>
4293
4294 * config/i386/tm-x86-64linux.h: New.
4295 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4296 definitions.
4297 * config/i386/nm-x86-64.h: Rename to ...
4298 * config/i386/nm-x86-64linux.h: ... this one.
4299 * config/i386/x86-64linux.mh: Reflect the above change.
4300
4301 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4302
4303 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4304 with sigcontext_addr. Add sc_sp_offset.
4305 (i386bsd_sigtramp_saved_pc): Remove prototype.
4306 (i386bsd_sicontext_addr): Add prototype.
4307 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4308 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4309 (i386_svr4_sigtramp_saved_pc): Removed.
4310 (i386_svr4_sigcontext_addr): New function.
4311 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4312 Initialize tdep->sigcontext_addr instead. Initialize
4313 tdep->sc_pc_offset and tdep->sc_sp_offset.
4314 (i386_gdbarch_init): Likewise.
4315 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4316 any more.
4317 (i386bsd_sigtramp_saved_pc): Remove function.
4318 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4319 Initialize tdep->sigcontext_addr instead. Initialize
4320 tdep->sc_pc_offset.
4321 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4322 of tdep->sigtramp_saved_pc.
4323 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4324 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4325 instead.
4326
4327 * i386-tdep.c (i386_frameless_function_invocation,
4328 i386_frame_num_args, i386_frame_init_saved_regs,
4329 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4330 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4331 i386_extract_return_value, i386_store_return_value,
4332 i386_extract_struct_value_address, i386_register_virtual_type,
4333 i386_register_convertible, i386_register_convert_to_virtual,
4334 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4335 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4336 static.
4337
4338 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4339
4340 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4341
4342 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4343 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4344 this macro. Include "value.h".
4345
4346 2002-06-30 Aidan Skinner <aidan@velvet.net>
4347
4348 * ada-exp.tab.c: remove as it's a generated file
4349 * ada-lex.c: remove as it's a generated file
4350
4351 2002-06-30 Mark Kettenis <kettenis@gnu.org>
4352
4353 * config/i386/tm-i386.h (struct frame_info, struct
4354 frame_saved_regs, struct value, struct type): Remove forward
4355 declarations.
4356
4357 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4358 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4359 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4360 (FILL_FPXREGSET): Define.
4361
4362 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4363
4364 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4365 i[3456]86-*-netbsd* case.
4366 * config/i386/tm-obsd.h: Removed.
4367 * config/i386/obsd.mt: Removed.
4368 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4369 core-aout.o.
4370 (MH_CFLAGS): Add -DYYDEBUG=0.
4371
4372 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4373 i386nbsd_sc_pc_offset on OpenBSD too.
4374
4375 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4376 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4377 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4378 define.
4379 * i386bsd-tdep.c: Include "arch-utils.h".
4380 (i386bsd_aout_in_solib_call_trampoline): New function.
4381 (i386bsd_init_abi): Set in_solib_call_trampoline to
4382 i386bsd_aout_in_solib_call_trampoline.
4383 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4384 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4385
4386 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4387
4388 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4389 (struct obstack, struct bcache): Add opaque declarations.
4390 * Makefile.in (macrotab_h): Update
4391
4392 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4393
4394 * blockframe.c (generic_find_dummy_frame): Change return type to
4395 ``struct regcache''.
4396 (struct dummy_frame): Replace field ``registers'' with regcache, a
4397 struct regcache object.
4398 (generic_find_dummy_frame): Update.
4399 (generic_push_dummy_frame): Update. Use regcache_xfree,
4400 regcache_xmalloc and regcache_cpy.
4401 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4402 regcache_xfree.
4403 (deprecated_generic_find_dummy_frame): Update.
4404 (generic_read_register_dummy): Update. Use
4405 regcache_read_as_address.
4406 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4407 (generic_get_saved_register): Update. Use regcache_read.
4408
4409 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4410
4411 * Makefile.in (objfiles_h): Add $(bcache_h).
4412 * objfiles.h: Include "bcache.h".
4413
4414 * Makefile.in (symtab_h): Remove $(bcache_h).
4415 * symtab.h: Do not include "bcache.h".
4416
4417 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4418
4419 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4420 generic_func_frame_chain_valid.
4421
4422 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4423
4424 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4425 * config/i386/tm-fbsd.h: Likewise.
4426
4427 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4428
4429 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4430 generic_unwind_get_saved_register.
4431
4432 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4433
4434 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4435 * regcache.c (supply_register): Add missing argument to
4436 register_buffer call.
4437
4438 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4439
4440 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4441 Solaris /bin/grep does not not like it. From Peter Schauer.
4442
4443 2002-06-26 Tom Tromey <tromey@redhat.com>
4444
4445 * command.h (add_setshow_cmd): Declare.
4446 (add_setshow_cmd_full): Declare.
4447 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4448 returns void. Use add_setshow_cmd_full.
4449 (add_setshow_cmd_full): New function.
4450 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4451 (add_setshow_boolean_cmd): Likewise.
4452
4453 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4454
4455 * config/vax/tm-vax.h: Protect from multiple inclusion.
4456 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4457 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4458 * config/vax/tm-vaxbsd.h: ...here. New file.
4459 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4460
4461 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4462
4463 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4464 (BELIEVE_PCC_PROMOTION): Remove.
4465 (AP_REGNUM): Move to...
4466 * config/vax/nm-vax.h: ...here.
4467 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4468 (vax_breakpoint_from_pc): New function.
4469 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4470 and gdbarch_believe_pcc_promotion.
4471
4472 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4473
4474 * Makefile.in (vax_tdep_h): Define.
4475 (vax-tdep.o): Use $(vax_tdep_h).
4476 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4477 (vax_dump_tdep): New function.
4478 (_initialize_vax_tdep): Register vax_dump_tdep.
4479 * vax-tdep.h: Include osabi.h.
4480 (struct gdbarch_tdep): New.
4481
4482 2002-06-26 Andrew Cagney <cagney@redhat.com>
4483
4484 * frame.h (deprecated_generic_find_dummy_frame): Rename
4485 generic_find_dummy_frame.
4486 * blockframe.c (generic_find_dummy_frame): Make static.
4487 (deprecated_generic_find_dummy_frame): New function.
4488 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4489 generic_find_dummy_frame with deprecated_find_dummy_frame.
4490 (sh64_nofp_frame_init_saved_regs): Ditto.
4491 (sh_fp_frame_init_saved_regs): Ditto.
4492 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4493 (s390_frame_chain): Ditto.
4494 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4495
4496 2002-06-26 Grace Sainsbury <graces@redhat.com>
4497
4498 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4499 gdbarch vector are at the top.
4500 (NUM_REGS): Remove.
4501 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4502 (FRAME_ARGS_ADDRESS): Remove.
4503 (FRAME_LOCALS_ADDRESS): Remove.
4504 (FRAME_NUM_ARGS): Remove.
4505 (FRAME_ARGS_SKIP): Remove.
4506 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4507 (m68k_gdbarch_init): Add gdbarch initializations for macros
4508 undefined in tm-m68k.h
4509
4510 2002-06-26 Grace Sainsbury <graces@redhat.com>
4511
4512 * monitor.h: Add the function regname to monitor_ops
4513 structure. This way NUM_REGS does not have to be a constant.
4514 * monitor.c (monitor_fetch_register): Added support for regname
4515 function. The function is called if the array regnames is NULL.
4516 (monitor_store_register): Same.
4517 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4518 regnames array.
4519 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4520 cpu32bug_cmds.regname to point to new function.
4521 * abug-rom.c (abug_regname): Same as above.
4522 (init_abug_cmds): Same.
4523 * dbug-rom.c (dbug_regname): Same as above.
4524 (init_dbug_cmds): Same.
4525 * remote-est.c (est_regname): Same.
4526 (init_est_cmds): Same.
4527 * rom68k-rom.c (rom68k_regname): Same.
4528 (init_rom68k_cmds): Same.
4529
4530 2002-06-25 Tom Tromey <tromey@redhat.com>
4531
4532 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4533
4534 2002-06-25 Andrew Cagney <cagney@redhat.com>
4535
4536 * infrun.c (stop_registers): Change variable's type to ``struct
4537 regcache'''.
4538 (xmalloc_inferior_status): Delete function.
4539 (free_inferior_status): Delete function.
4540 (normal_stop): Use regcache_cpy.
4541 (struct inferior_status): Change type of fields ``stop_registers''
4542 and ``registers'' to ``struct regcache''.
4543 (write_inferior_status_register): Use regcache_write.
4544 (save_inferior_status): Instead of calling
4545 xmalloc_inferior_status, allocate the inf_status buffer directly.
4546 Use regcache_dup_no_passthrough and regcache_dup to save the
4547 buffers.
4548 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4549 Replace the stop_registers regcache instead of overriding it. Use
4550 regcache_xfree. Instead of calling free_inferior_status, xfree
4551 the buffer directly.
4552 (discard_inferior_status): Use regcache_xfree. Instead of calling
4553 free_inferior_status, xfree the buffer directly.
4554 (build_infrun): Use regcache_xmalloc.
4555 (_initialize_infrun): Delete redundant call to build_infrun.
4556
4557 * Makefile.in (infcmd.o): Add $(regcache_h).
4558
4559 * infcmd.c: Include "regcache.h".
4560 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4561 obtain the address of `stop_registers' register buffer.
4562 (print_return_value): Ditto.
4563
4564 * inferior.h (struct regcache): Add opaque declaration.
4565 (stop_registers): Change variable's declared type to ``struct
4566 regcache''.
4567
4568 2002-06-24 Tom Tromey <tromey@redhat.com>
4569
4570 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4571 * target.c (initialize_targets): Fixed typo in
4572 trust-readonly-sections `show' documentation.
4573
4574 * main.c: Marked all strings with _().
4575
4576 2002-06-24 Don Howard <dhoward@redhat.com>
4577
4578 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4579 that means max CORE_ADDR+1.
4580 (lookup_mem_region): Ditto.
4581 (mem_info_command): Ditto.
4582
4583 2002-06-24 Grace Sainsbury <graces@redhat.com>
4584
4585 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4586 (REGISTER_BYTES_OK): Remove.
4587 (REGISTER_BYTES): Remove.
4588 (STORE_STRUCT_RETURN): Remove.
4589 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4590 (STORE_RETURN_VALUE): Remove.
4591 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4592 (FRAME_CHAIN): Remove.
4593 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4594 (FRAME_SAVED_PC): Remove.
4595 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4596 (m68k_store_struct_return): Add.
4597 (m68k_deprecated_extract_return_value): Add.
4598 (m68k_deprecated_extract_struct_value_address): Add.
4599 (m68k_store_return_value): Add.
4600 (m68k_frame_chain): Add.
4601 (m68k_frameless_function_invocation): Add.
4602 (m68k_frame_saved_pc): Add.
4603 (m68k_gdbarch_init): added set_gdbarch calls for new
4604 functions and deleted macros.
4605
4606 2002-06-23 Tom Tromey <tromey@redhat.com>
4607
4608 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4609 (ALLDEPFILES): Likewise.
4610 (udiheaders): Removed.
4611 (udip2soc.o): Likewise.
4612 (udi2go32.o): Likewise.
4613 (udr.o): Likewise.
4614 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4615
4616 2002-06-22 Andrew Cagney <ac131313@redhat.com>
4617
4618 * infrun.c (_initialize_infrun): Delete unnecessary call to
4619 build_infrun.
4620
4621 * regcache.h: Update comments describing the regcache_cpy family
4622 of functions.
4623 (regcache_save, regcache_restore): Delete declaration.
4624 (regcache_save_no_passthrough): Delete declaration.
4625 (regcache_restore_no_passthrough): Delete declaration.
4626 * regcache.c (regcache_save): Delete function.
4627 (regcache_save_no_passthrough): Delete function.
4628 (regcache_restore): Delete function.
4629 (regcache_restore_no_passthrough): Delete function.
4630
4631 2002-06-21 Andrew Cagney <ac131313@redhat.com>
4632
4633 * config/m68k/tm-m68k.h: Fix typo.
4634 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4635 (m68k_frame_init_saved_regs): Declare.
4636
4637 2002-06-21 Jim Blandy <jimb@redhat.com>
4638
4639 Remove some vestiges of Harris 88k support.
4640 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4641 register numbering quirk.
4642 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4643 odd symbols occurring in Harris 88k ELF targets.
4644
4645 2002-06-21 Tom Tromey <tromey@redhat.com>
4646
4647 * gdb_locale.h: New file.
4648 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4649 (defs_h): Added gdb_locale.h.
4650 * configure, config.in: Rebuilt.
4651 * configure.in (PACKAGE): Define.
4652 * defs.h: Include gdb_locale.h.
4653 * main.c (captured_main): Call setlocale, bindtextdomain,
4654 textdomain.
4655
4656 2002-06-21 Dave Brolley <brolley@redhat.com>
4657
4658 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4659 * config/frv/frv.mt: New file.
4660 * config/frv/tm-frv.h: New file.
4661 * configure.tgt: Support frv-*-*.
4662 * Makefile.in (frv-tdep.o): New target.
4663 * frv-tdep.c: New file.
4664 * NEWS: Mention frv.
4665
4666 2002-06-21 Dave Brolley <brolley@redhat.com>
4667
4668 * MAINTAINERS: Add self to "Write After Approval" list.
4669
4670 2002-06-21 Grace Sainsbury <graces@redhat.com>
4671
4672 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4673 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4674 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4675 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4676 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4677
4678 * m68k-tdep.c: Include arch-utils.h
4679 (m68k_register_raw_size): Add.
4680 (m68k_register_virtual_size): Add.
4681 (m68k_register_virtual_type): Add.
4682 (m68k_register_name): Add.
4683 (m68k_stack_align): Add.
4684 (m68k_register_byte): Add.
4685 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4686 tm-m68k.h.
4687
4688 2002-06-21 Grace Sainsbury <graces@redhat.com>
4689
4690 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4691 m68k_find_saved_regs.
4692 (m68k_pop_frame): Removed saved_regs structure, and replaced
4693 references to it with frame->saved_regs.
4694 (m68k_gdbarch_init): Added function calls to initialize the
4695 gdbarch structure.
4696 (m68k_fix_call_dummy): Add.
4697 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4698 (CALL_DUMMY): Remove.
4699 (CALL_DUMMY_LENGTH): Remove.
4700 (CALL_DUMMY_START_OFFSET): Remove.
4701 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4702 (FIX_CALL_DUMMY): Remove.
4703 (PUSH_DUMMY_FRAME): Remove.
4704 (POP_FRAME): Remove.
4705
4706 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4707
4708 * parse.c (parse_fprintf): New function used to avoid calls to
4709 fprintf in bison parser generated debug code.
4710 * parser-defs.h: Declaration of new parse_fprintf function.
4711 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4712 Set YYDEBUG to 1 by default.
4713 Set YYFPRINTF as parse_fprintf.
4714
4715 2002-06-21 Michal Ludvig <mludvig@suse.cz>
4716
4717 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4718 encoding anymore.
4719 (pointer_encoding, enum ptr_encoding): New.
4720 (execute_cfa_program): Take care about pointer encoding.
4721 (dwarf2_build_frame_info): Only call parse_frame_info for
4722 .debug_frame and .eh_frame.
4723 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4724 fixed augmentation handling, added relative addressing,
4725 ignore duplicate FDEs. Added comments.
4726 * dwarf2cfi.c: Reindented.
4727
4728 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
4729
4730 * event-top.c (command_handler): Don't use space_at_cmd_start
4731 unless there is sbrk() on the host. Assign time and space data
4732 to union fields of the appropriate length.
4733
4734 2002-06-20 Michal Ludvig <mludvig@suse.cz>
4735
4736 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4737 x86_64_register_name. Return type changed to 'const char *'.
4738 (x86_64_register_name2nr): Rename to x86_64_register_number.
4739 (x86_64_gdbarch_init): Update to reflect the change.
4740 * x86-64-tdep.h: Ditto.
4741 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4742 (supply_fpregset): Ditto.
4743
4744 2002-06-19 Andrew Cagney <cagney@redhat.com>
4745
4746 * regcache.h: Update copyright.
4747 (struct regcache, struct gdbarch): Add opaque declarations.
4748 (current_regcache): Declare global variable.
4749 (regcache_read, regcache_write): Add gdbarch parameter.
4750 (regcache_save, regcache_save_no_passthrough)
4751 (regcache_restore, regcache_restore_no_passthrough)
4752 (regcache_dup, regcache_dup_no_passthrough)
4753 (regcache_cpy, regcache_cpy_no_passthrough)
4754 (deprecated_grub_regcache_for_registers)
4755 (deprecated_grub_regcache_for_register_valid)
4756 (regcache_valid_p): Add function declarations.
4757
4758 * regcache.c: Update copyright.
4759 (regcache_descr_handle): New global variable.
4760 (struct regcache_descr): Define.
4761 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4762 (regcache_descr, xfree_regcache_descr): New functions.
4763 (struct regcache): Define.
4764 (regcache_xmalloc, regcache_xfree): New functions.
4765 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4766 (regcache_dup, regcache_dup_no_passthrough): New functions.
4767 (regcache_valid_p, regcache_read_as_address): New functions.
4768 (deprecated_grub_regcache_for_registers): New function.
4769 (deprecated_grub_regcache_for_register_valid): New function.
4770 (current_regcache): New global variable.
4771 (register_buffer): Add regcache parameter. Update calls.
4772 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4773 (read_register_gen, write_register_gen): Update register_buffer
4774 call. Test for legacy_p instead of gdbarch_register_read_p or
4775 gdbarch_register_write_p.
4776 (regcache_collect): Update register_buffer call.
4777 (build_regcache): Rewrite. Use deprecated grub functions.
4778 (regcache_save, regcache_save_no_passthrough): New functions.
4779 (regcache_restore, regcache_restore_no_passthrough): New
4780 functions.
4781 (_initialize_regcache): Create the regcache_data_handle. Swap
4782 current_regcache global variable.
4783
4784 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4785 parameter to regcache_read and regcache_write calls.
4786 (sh4_register_read): Ditto.
4787 (sh64_pseudo_register_read): Ditto.
4788 (sh64_register_read): Ditto.
4789 (sh_pseudo_register_write): Ditto.
4790 (sh4_register_write): Ditto.
4791 (sh64_pseudo_register_write): Ditto.
4792 (sh64_register_write): Ditto.
4793
4794 * defs.h (XCALLOC): Define.
4795
4796 2002-06-19 Grace Sainsbury <graces@redhat.com>
4797
4798 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4799 * m68k-tdep.c (m68k_gdbarch_init): Added.
4800 (m68k_dump_tdep): Added.
4801
4802 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4803
4804 * ada-lang.c (fill_in_ada_prototype): Update comment.
4805
4806 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4807
4808 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4809 MIPS_ABI_LAST.
4810 (mips_abi_string, mips_abi_strings): New.
4811 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4812 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4813 tdep->mips_abi_string. Honor mips_abi_string. Default to
4814 O32 if no ABI is found.
4815 (mips_dump_tdep): Use mips_abi_strings.
4816 (mips_abi_update): New function.
4817 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4818 ``set mips abi'' and ``show mips abi''. Check the size of
4819 mips_abi_strings.
4820
4821 2002-06-19 Andrew Cagney <cagney@redhat.com>
4822
4823 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4824 constant.
4825
4826 2002-06-18 Joel Brobecker <brobecker@gnat.com>
4827
4828 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4829 current frame using only the first stack size adjustment. All
4830 subsequent size adjustments are not considered to be part of
4831 the "static" part of the current frame.
4832 Compute the address of the saved registers relative to the
4833 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4834 in use in this frame.
4835
4836 2002-06-18 Don Howard <dhoward@redhat.com>
4837
4838 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4839 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4840 suggesting this solution.
4841
4842 2002-06-18 Andrew Cagney <ac131313@redhat.com>
4843
4844 * config/romp/xm-rtbsd.h: Delete file.
4845 * config/romp/rtbsd.mh: Delete file.
4846
4847 2002-06-18 Keith Seitz <keiths@redhat.com>
4848
4849 * breakpoint.c (condition_command): Post breakpoint_modify
4850 when a condition is added to an existing breakpoint.
4851 (commands_command): Likewise for commands.
4852 (set_ignore_count): Likewise for ignore counts.
4853 If no tty, do not simply return, still need to send event
4854 notification.
4855 (ignore_command): Only print a newline if the command came
4856 from a tty.
4857 Don't call breakpoints_changed, since this is now properly
4858 handled by set_ignore_count.
4859
4860 2002-06-18 Andrew Cagney <cagney@redhat.com>
4861
4862 * MAINTAINERS: Note that cris-elf target can be compiled with
4863 -Werror.
4864 * cris-tdep.c (cris_register_name): Make return type constant.
4865 (cris_breakpoint_from_pc): Ditto.
4866
4867 2002-06-18 Michal Ludvig <mludvig@suse.cz>
4868
4869 * frame.h (struct frame_info): Change type of context to
4870 'struct context'.
4871
4872 2002-06-17 Andrew Cagney <cagney@redhat.com>
4873
4874 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4875 pointer.
4876 * gdbarch.h, gdbarch.c: Regenerate.
4877 * config/mips/tm-mips.h (mips_register_name): Update.
4878 * i386-tdep.h (i386_register_name): Update.
4879 * mips-tdep.c (mips_register_name): Update
4880 * alpha-tdep.c (alpha_register_name): Update.
4881 * arch-utils.c (legacy_register_name): Update.
4882 * arch-utils.h (legacy_register_name): Update.
4883 * avr-tdep.c (avr_register_name): Update.
4884 * ia64-tdep.c (ia64_register_name): Update.
4885 * i386-tdep.c (i386_register_name): Update.
4886 * sparc-tdep.c (sparc32_register_name): Update.
4887 (sparc64_register_name): Update.
4888 (sparclite_register_name): Update.
4889 (sparclet_register_name): Update.
4890 * sh-tdep.c (sh_generic_register_name): Update.
4891 (sh_sh_register_name): Update.
4892 (sh_sh3_register_name): Update.
4893 (sh_sh3e_register_name): Update.
4894 (sh_sh_dsp_register_name): Update.
4895 (sh_sh3_dsp_register_name): Update.
4896 (sh_sh4_register_name): Update.
4897 (sh_sh64_register_name): Update.
4898 * s390-tdep.c (s390_register_name): Update.
4899 * rs6000-tdep.c (rs6000_register_name): Update.
4900 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4901 (ns32k_register_name_32382): Update.
4902 * d10v-tdep.c (d10v_ts2_register_name): Update.
4903 (d10v_ts3_register_name): Update.
4904 * xstormy16-tdep.c (xstormy16_register_name): Update.
4905 * vax-tdep.c (vax_register_name): Update.
4906 * v850-tdep.c (v850_register_name): Update.
4907 * m68hc11-tdep.c (m68hc11_register_name): Update.
4908 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4909 (am33_register_name): Update.
4910
4911 2002-06-17 Grace Sainsbury <graces@redhat.com>
4912
4913 * m68k-tdep.c: Reindented.
4914
4915 2002-06-17 Andrew Cagney <ac131313@redhat.com>
4916
4917 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4918 list of predefined types.
4919
4920 2002-06-16 Mark Kettenis <kettenis@gnu.org>
4921
4922 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4923 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4924 REGISTER_CONVERT_TO_RAW): Remove defines.
4925 (i386_register_virtual_type, i386_register_convertible,
4926 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4927 Remove prototypes.
4928 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4929 macros mentioned above.
4930
4931 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4932 (i386lynx_saved_pc_after_call): Remove prototype.
4933 * i386ly-tdep.c: Include "i386-tdep.h".
4934 (i386lynx_saved_pc_after_call): Make static. Use
4935 read_memory_nobpt instead of read_memory. Use
4936 read_memory_unsigned_integer instead of read_memory_integer.
4937 (i386lynx_init_abi): New function.
4938 (i386lynx_coff_osabi_sniffer): New function.
4939 (_initialize_i386bsd_tdep): New function.
4940
4941 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4942 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4943 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4944 (i386_fix_call_dummy): Remove prototype.
4945 * i386-tdep.c (i386_call_dummy_words): New variable.
4946 (i386_gdbarch_init): Adjust for removal of the
4947 macros mentioned above.
4948
4949 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4950
4951 * command.h (add_setshow_auto_boolean_cmd): Replace
4952 add_set_auto_boolean_cmd.
4953 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4954 add_set_auto_boolean_cmd.
4955 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4956 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4957 mask-address'' command.
4958 (show_mask_address): Add cmd parameter.
4959 * remote.c (add_packet_config_cmd): Update. Change type of
4960 set_func and show_func to cmd_sfunc_ftype.
4961 (_initialize_remote): Update `set remote Z-packet'
4962 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4963 (show_remote_protocol_e_packet_cmd): Ditto.
4964 (show_remote_protocol_E_packet_cmd): Ditto.
4965 (show_remote_protocol_P_packet_cmd): Ditto.
4966 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4967 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4968 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4969 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4970 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4971 (show_remote_protocol_Z_packet_cmd): Ditto.
4972 (show_remote_protocol_binary_download_cmd): Ditto.
4973 (show_remote_cmd): Pass NULL to all of above.
4974
4975 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4976
4977 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4978 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4979 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4980 POP_FRAME): Remove defines.
4981 (i386_push_arguments, i386_store_struct_return,
4982 i386_extract_return_value, i386_store_return_value,
4983 i386_extract_struct_value_address, i386_push_dummy_frame,
4984 i386_pop_frame): Renove prototypes.
4985 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4986 macros mentioned above.
4987
4988 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4989
4990 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4991 add_set_boolean_cmd.
4992 (add_setshow_cmd): New function.
4993 * command.h (add_setshow_boolean_cmd): Replace
4994 add_set_boolean_cmd.
4995 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4996 and ``set rdiromatzero''.
4997 * maint.c (_initialize_maint_cmds): Update commented out code.
4998 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4999 * target.c (initialize_targets): Update `set
5000 trust-readonly-sections'.
5001 * remote.c (_initialize_remote): Update `set remotebreak'.
5002
5003 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5004
5005 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
5006 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
5007 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
5008 fit into multi-arch framework.
5009 (i386_breakpoint_from_pc): New function.
5010 (i386_gdbarch_init): Adjust for removal of the macros mentioned
5011 above.
5012
5013 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
5014 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
5015 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
5016 (i386_frameless_function_invocation, i386_frame_num_args,
5017 i386_frame_init_saved_regs): Remove prototypes.
5018 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5019 macros mentioned above.
5020
5021 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5022
5023 * cli/cli-decode.c (set_cmd_cfunc): Update.
5024 (set_cmd_sfunc): Update.
5025 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
5026 (set_cmd_sfunc, set_cmd_cfunc): Update.
5027 * cli/cli-decode.h: Update.
5028
5029 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5030
5031 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
5032 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
5033
5034 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5035
5036 * defs.h (auto_boolean): Declare enum.
5037 * command.h (cmd_auto_boolean): Delete enum.
5038 * mips-tdep.c (mask_address_var): Update.
5039 (mips_mask_address_p): Update.
5040 (show_mask_address): Update.
5041 * remote.c (struct packet_config): Update.
5042 (update_packet_config): Update.
5043 (show_packet_config_cmd): Update.
5044 (packet_ok): Update.
5045 (add_packet_config_cmd): Update.
5046 (_initialize_remote):
5047 * command.h: Update.
5048 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
5049 (do_setshow_command): Update.
5050 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
5051 * cli/cli-decode.h: Update.
5052
5053 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5054
5055 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
5056 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
5057 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
5058 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
5059 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
5060 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
5061
5062 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
5063 list of DJGPP COFF targets.
5064
5065 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
5066 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
5067 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
5068 (FP0_REGNUM): Remove define.
5069 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5070 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
5071 (i386_register_virtual_size): Remove protoype.
5072 * i386-tdep.c (i386_register_virtual_size): Removed.
5073 (i386_extract_return_value, i386_store_return_value): Use
5074 FP0_REGNUM instead of NUM_FREGS to determine whether the
5075 floating-point registers are available.
5076 (i386_gdbarch_init): Tweak FIXME about FPU registers.
5077 Adjust for removal of macros mentioned above.
5078
5079 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5080
5081 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
5082 comments.
5083 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5084 Remove prototypes.
5085 (supply_gregset, fill_gregset): Remove use of register keyword and
5086 remove declaration for regmap. Use I386_NUM_GREGS instead of
5087 NUM_REGS and NUM_FREGS.
5088 (FPREGSET_FSAVE_OFFSET): Remove.
5089 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5090 NUM_FREGS to determine whether the floating-point registers are
5091 available.
5092
5093 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5094 gnu_store_registers): Replace usage of NUM_GREGS with
5095 I386_NUM_GREGS.
5096
5097 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5098 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5099 usage of NUM_GREGS with I386_NUM_GREGS.
5100
5101 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5102
5103 * i386bsd-nat.c: Include "i386-tdep.h".
5104 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5105 I386_NUM_GREGS.
5106
5107 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5108 and associated comment. They no longer make any sense, since we
5109 don't use this file anymore on Linux.
5110
5111 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5112 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5113 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5114 elements in these arrays.
5115 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5116 MAX_NUM_REGS.
5117
5118 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5119
5120 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5121 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5122
5123 2002-06-14 Andrew Cagney <cagney@redhat.com>
5124
5125 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5126 EXTRACT_RETURN_VALUE.
5127 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5128 EXTRACT_STRUCT_VALUE_ADDRESS.
5129 * gdbarch.h, gdbarch.c: Regenerate.
5130
5131 * values.c (value_being_returned): Handle
5132 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5133 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5134
5135 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5136 * arm-tdep.c (arm_gdbarch_init): Update.
5137 * avr-tdep.c (avr_gdbarch_init): Update.
5138 * cris-tdep.c (cris_gdbarch_init): Update.
5139 * d10v-tdep.c (d10v_gdbarch_init): Update.
5140 * ia64-tdep.c (ia64_gdbarch_init): Update.
5141 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5142 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5143 * s390-tdep.c (s390_gdbarch_init): Update.
5144 * sh-tdep.c (sh_gdbarch_init): Update.
5145 * s390-tdep.c (s390_gdbarch_init): Update.
5146 * sparc-tdep.c (sparc_gdbarch_init): Update.
5147 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5148 * v850-tdep.c (v850_gdbarch_init): Update.
5149 * vax-tdep.c (vax_gdbarch_init): Update.
5150 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5151 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5152
5153 * config/arc/tm-arc.h: Update.
5154 * config/d30v/tm-d30v.h: Update.
5155 * config/fr30/tm-fr30.h: Update.
5156 * config/h8300/tm-h8300.h: Update.
5157 * config/h8500/tm-h8500.h: Update.
5158 * config/i386/tm-i386.h: Update.
5159 * config/i386/tm-ptx.h: Update.
5160 * config/i386/tm-symmetry.h: Update.
5161 * config/i960/tm-i960.h: Update.
5162 * config/m32r/tm-m32r.h: Update.
5163 * config/m68k/tm-delta68.h: Update.
5164 * config/m68k/tm-linux.h: Update.
5165 * config/m68k/tm-m68k.h: Update.
5166 * config/m88k/tm-m88k.h: Update.
5167 * config/mcore/tm-mcore.h: Update.
5168 * config/mips/tm-mips.h: Update.
5169 * config/mn10200/tm-mn10200.h: Update.
5170 * config/pa/tm-hppa.h: Update.
5171 * config/pa/tm-hppa64.h: Update.
5172 * config/sparc/tm-sp64.h: Update.
5173 * config/sparc/tm-sparc.h: Update.
5174 * config/sparc/tm-sparclet.h: Update.
5175 * config/z8k/tm-z8k.h: Update.
5176
5177 2002-06-14 Andrew Cagney <cagney@redhat.com>
5178
5179 * Makefile.in (i386_linux_tdep_h): Define.
5180 (i386_tdep_h, i387_tdep_h): Define.
5181 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5182 $(i386_tdep_h) and $(i387_tdep_h).
5183 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5184
5185 2002-06-14 Mark Kettenis <kettenis@gnu.org>
5186
5187 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5188 Already covered by the default.
5189
5190 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5191 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5192 (i386_gdbarch_init): Initialize long_double_format and long_double
5193 bit.
5194
5195 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5196 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5197 Move these to ...
5198 * config/i386/i386sol2.mh: ... here.
5199 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5200 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5201 (SIGCONTEXT_PC_OFFSET): Remove define.
5202 (IN_SIGTRAMP): Remove define.
5203 * i386-sol2-tdep.c: New file.
5204
5205 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5206 * config/i386/tm-i386nw.h: Removed.
5207
5208 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5209 USE_STRUCT_CONVENTION): Remove defines.
5210 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5211 (get_longjmp_target): Remove prototype.
5212 (IN_SIGTRAMP): Remove define.
5213 (i386bsd_in_sigtramp): Remove prototype.
5214 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5215 function. Update comment accordingly
5216 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5217 (FRAME_SAVED_PC): Remove define.
5218 (i386bsd_frame_saved_pc): Remove prototype.
5219 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5220 GET_LONGJMP_TARGET): Remove defines.
5221 (get_longjmp_target): Remove prototype.
5222 (IN_SIGTRAMP): Remove define.
5223 (i386bsd_in_sigtramp): Remove prototype.
5224 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5225 function. Update comment accordingly
5226 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5227 (FRAME_SAVED_PC): Remove define.
5228 (i386bsd_frame_saved_pc): Remove prototype.
5229 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5230 Remove prototype.
5231 (USE_STRUCT_CONVENTION): Remove prototype.
5232 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5233 declaration.
5234 (_initialize_i386bsd_nat): Revise logic to determine some
5235 constants at compile time when compiling a native GDB. Warn if
5236 things don't match up with what we expect.
5237 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5238 Remove variables.
5239 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5240 to use date stored in `struct gdbarch_tdep'.
5241 (i386bsd_sigcontext_offset): Remove varaible.
5242 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5243 stored in `struct gdbarch_tdep'.
5244 (i386bsd_frame_saved_pc): Make static.
5245 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5246 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5247 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5248 i386fbsd4_sc_pc_offset): New variables.
5249 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5250 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5251 functions.
5252 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5253 functions.
5254 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5255 Modify the value of i386fbsd_sigtramp_start and
5256 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5257 i386fbsd_sigtramp_end.
5258 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5259 function.
5260
5261 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5262 define to i386-linux-tdep.h.
5263 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5264 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5265 defines.
5266 (i386_linux_register_name, i386_linux_register_byte,
5267 i386_linux_register_raw_size): Remove prototypes.
5268 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5269 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5270 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5271 TARGET_WRITE_PC): Remove defines.
5272 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5273 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5274 i386_linux_write_pc): Remove prototypes.
5275 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5276 (get_longjmp_target): Remove prototype.
5277 * i386-linux-tdep.h: New file.
5278 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5279 * i386-linux-tdep.c: Include "i386-tdep.h" and
5280 "i386-linux-tdep.h".
5281 (i386_linux_register_name, i386_linux_register_byte,
5282 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5283 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5284 Make static.
5285 (i386_linux_init_abi): New function.
5286 (_initialize_i386_linux_tdep): New function.
5287
5288 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5289 (i386_saved_pc_after_call): Remove prototype.
5290 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5291 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5292 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5293 (i386_register_name, i386_stab_reg_to_regnum,
5294 i386_dwarf_reg_to_regnum): Remove prototypes.
5295 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5296 SIZEOF_SSE_REGS): Remove defines.
5297 (REGISTER_BYTES): Remove define.
5298 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5299 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5300 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5301 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5302 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5303 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5304 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5305 (get_longjmp_target): Remove prototype.
5306 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5307 (sigtramp_saved_pc): Remove define.
5308 (i386v4_sigtramp_saved_pc): Remove prototype.
5309 * config/i386/tm-go32.h (FRAME_CHAIN,
5310 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5311 (i386go32_frame_saved_pc): Remove prototype.
5312 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5313 (get_longjmp_target): Remove prototype.
5314 * i386-tdep.h: Include "osabi.h".
5315 (enum i386_abi): Removed.
5316 (enum struct_return): New enum.
5317 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5318 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5319 sc_pc_offset members.
5320 (i386_gdbarch_register_os_abi): Remove prototype.
5321 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5322 I386_SSE_NUM_REGS): New defines.
5323 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5324 I386_SSE_SIZEOF_REGS): New defines.
5325 (i386_register_name, i386_register_byte, i386_register_raw_size):
5326 New prototypes.
5327 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5328 (i386bsd_sigtramp_saved_pc): New prototype.
5329 * i386-tdep.c: Don't include "elf-bfd.h".
5330 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5331 i386_frame_chain, i386_saved_pc_after_call): Make static.
5332 (i386_frame_saved_pc): Rewrite to call architecture dependent
5333 function to deal with signal handlers. Make static.
5334 (i386go32_frame_saved_pc): Removed.
5335 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5336 Removed.
5337 (i386_get_longjmp_target): New function.
5338 (default_struct_convention, pcc_struct_convention,
5339 reg_struct_convention, valid_conventions, struct_convention): New
5340 variables.
5341 (i386_use_struct_convention): New function.
5342 (i386v4_sigtramp_saved_pc): Renamed to
5343 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5344 (i386_pc_in_sigtramp): New function.
5345 (i386_abi_names): Removed.
5346 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5347 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5348 Removed.
5349 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5350 i386_gdbarch_register_os_abi): Removed.
5351 (struct i386_abi_handler): Removed.
5352 (i386_abi_handler_list): Removed.
5353 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5354 functions.
5355 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5356 i386_nw_init_abi): New functions.
5357 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5358 Use set_gdbarch_xxx() calls instead of relying on macros for a
5359 number of calls.
5360 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5361 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5362 Register the various architecture variants defined in this file.
5363
5364 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
5365
5366 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5367 (struct main_type): Remove arg_types member. Update comments for
5368 struct field.
5369 (TYPE_ARG_TYPES): Remove.
5370 (TYPE_FN_FIELD_ARGS): Update.
5371 (smash_to_method_type): Update prototype.
5372
5373 * c-typeprint.c (cp_type_print_method_args): Take method type
5374 instead of argument list. Use new argument layout. Simplify.
5375 (c_type_print_args): Use new argument layout. Simplify.
5376 (c_type_print_base): Update call to cp_type_print_method_args.
5377 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5378 argument; use die->type instead. Update call to
5379 smash_to_method_type.
5380 (read_structure_scope): Update call to dwarf2_add_member_fn.
5381 * gdbtypes.c (allocate_stub_method): Update comment.
5382 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5383 Use new argument layout.
5384 (check_stub_method): Use new argument layout. Don't count
5385 void as an argument.
5386 (print_arg_types): Update comments. Use new argument layout.
5387 (recursive_dump_type): Don't print arg_types member.
5388 * hpread.c (hpread_read_struct_type): Use new argument layout.
5389 (fixup_class_method_type): Likewise.
5390 (hpread_type_lookup): Likewise.
5391 * stabsread.c (read_type): Update calls to read_args and
5392 smash_to_method_type.
5393 (read_args): Use new argument layout. Simplify.
5394 * valops.c (typecmp): Use new argument layout. Update parameters
5395 and comments. Simplify.
5396 (hand_function_call): Use new argument layout.
5397 (search_struct_method): Update call to typecmp.
5398 (find_overload_match): Use new argument layout.
5399
5400 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5401
5402 * NEWS: Mention multithreaded debug support for gdbserver.
5403
5404 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5405
5406 * MAINTAINERS: Mention NEWS.
5407
5408 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5409
5410 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5411 (struct mips_objfile_private, compare_pdr_entries): New.
5412 (non_heuristic_proc_desc): Read the ".pdr" section if it
5413 is present.
5414
5415 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5416
5417 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5418 (arm_debug): New static variable.
5419 (_initialize_arm_tdep): Add ``set debug arm'' command.
5420
5421 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5422
5423 * Makefile.in (sim_arm_h): Define.
5424 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5425 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5426 (arm_register_sim_regno): New function, map an internal REGNUM
5427 onto a simulator register number.
5428 (arm_gdbarch_init): Set register_sim_regno.
5429
5430 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
5431
5432 * MAINTAINERS: Add self.
5433
5434 2002-06-11 Jim Blandy <jimb@redhat.com>
5435
5436 * source.c (source_info): Mention whether the symtab has
5437 information about preprocessor macros.
5438
5439 Call the command `info macro', not `show macro'.
5440 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5441 Fix error message.
5442 (_initialize_macrocmd): Register `info_macro_command' in
5443 `infolist', not `showlist'.
5444
5445 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
5446
5447 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5448 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5449 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5450 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5451 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5452 unconditionally.
5453 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5454 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5455 (_initialize_mips_tdep): Remove dead code.
5456 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5457 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5458 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5459 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5460 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5461 MIPS_LAST_FP_ARG_REGNUM): Remove.
5462
5463 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5464
5465 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5466 (unwind_tmp_obstack_free, parse_frame_info)
5467 (update_context, cfi_read_fp, cfi_write_fp)
5468 (cfi_frame_chain, cfi_init_extra_frame_info)
5469 (cfi_virtual_frame_pointer): Use the above function.
5470 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5471
5472 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
5473
5474 * v850-tdep.c (v850_type_is_scalar): New function.
5475 (v850_use_struct_convention): Match current gcc implementation
5476 as close as possible.
5477 (v850_push_arguments): Fix stack_offset handling. Don't write
5478 struct_addr into register. This is done by v850_store_struct_return.
5479 (v850_extract_return_value): Care for structs.
5480 (v850_store_return_value): Ditto.
5481 (v850_store_struct_return): Actually write address.
5482
5483 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5484
5485 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5486 without debug information too.
5487
5488 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5489
5490 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5491 Make multi-arch pure.
5492 * gdbarch.h, gdbarch.c: Re-generate.
5493 * arm-tdep.c (arm_print_float_info): Update.
5494 * arch-utils.h (default_print_float_info): Update.
5495 * arch-utils.c (default_print_float_info): Update.
5496 * infcmd.c (float_info): Update call.
5497
5498 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5499
5500 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5501 the front of the initialize list.
5502
5503 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5504
5505 * infrun.c (struct inferior_status): Replace fields
5506 selected_frame_address and selected_level with field
5507 selected_frame_id.
5508 (save_inferior_status): Update. Use get_frame_id.
5509 (struct restore_selected_frame_args): Delete.
5510 (restore_selected_frame): Update. Use frame_find_by_id.
5511 (restore_inferior_status): Update.
5512
5513 * breakpoint.h (struct breakpoint): Change type of
5514 watchpoint_frame to frame_id.
5515 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5516 call to get_current_frame.
5517 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5518 get_current_frame.
5519 (watchpoint_check): Use frame_find_by_id.
5520
5521 * frame.h (record_selected_frame): Delete declaration.
5522 * stack.c (record_selected_frame): Delete function.
5523
5524 * frame.h (struct frame_id): Define.
5525 (get_frame_id): Declare.
5526 (frame_find_by_id): Declare.
5527 * frame.c (frame_find_by_id): New function.
5528 (get_frame_id): New function.
5529
5530 2002-06-10 Andrey Volkov <avolkov@transas.com>
5531
5532 * ser-e7kpc.c: Fix duplicated define and call of
5533 _initialize_ser_e7000pc
5534
5535 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5536
5537 * signals/signals.c (target_signal_from_host): Fix #ifdef
5538 SIGRTMIN case.
5539 (do_target_signal_to_host): Likewise.
5540
5541 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5542
5543 * mips-tdep.c (mips_find_abi_section): New function.
5544 (mips_gdbarch_init): Call it.
5545
5546 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5547
5548 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5549 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5550 after Andrew's 2002-06-08 gdbarch change.
5551
5552 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5553
5554 * i386-linux-nat.c (suppy_gregset): Don't supply
5555 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5556 register cache.
5557 (fill_gregset): Don't fetch it under the same circumstances.
5558
5559 2002-06-09 Andrew Cagney <cagney@redhat.com>
5560
5561 * Makefile.in (callback_h): Define.
5562 (remote_sim_h): Update path to remote-sim.h.
5563 (remote-rdp.o): Add $(callback_h).
5564 (remote-sim.o): Use $(callback_h).
5565 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5566 * remote-rdp.c: Include "gdb/callback.h".
5567
5568 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5569
5570 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5571 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5572
5573 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5574
5575 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5576 * rdi-share/serpardr.c: Ditto.
5577 * rdi-share/unixcomm.c: Ditto.
5578 * rdi-share/serdrv.c: Ditto.
5579 * rdi-share/hostchan.h: Ditto.
5580 * rdi-share/hostchan.c: Ditto.
5581 * rdi-share/host.h: Ditto.
5582 * rdi-share/devsw.c: Ditto.
5583
5584 * objfiles.h: Change type of obj_private to void pointer.
5585 * pa64solib.c: Update copyright. Don't include "assert.h", use
5586 strcmp instead of STREQ, use LONGEST, do not use PTR
5587 * somsolib.c: Ditto.
5588
5589 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5590 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5591 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5592
5593 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5594
5595 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5596 (default_get_saved_register): Delete function.
5597 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5598 generic_unwind_get_saved_register.
5599 * gdbarch.h, gdbarch.c: Re-generate.
5600
5601 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5602
5603 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5604 generic_func_frame_chain_valid.
5605 * gdbarch.h, gdbarch.c: Re-generate.
5606 * blockframe.c (generic_func_frame_chain_valid): Only check
5607 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5608 passing FP to PC_IN_CALL_DUMMY.
5609 Fix PR gdb/360.
5610
5611 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5612
5613 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5614 (register_gdbarch_data): Initialize init_p.
5615 (gdbarch_data): Initialize data pointer using the init function.
5616 (init_gdbarch_data): Delete function.
5617 (gdbarch_update_p): Update.
5618 (initialize_non_multiarch): Update.
5619 (struct gdbarch): Add field initialized_p.
5620 * gdbarch.h, gdbarch.c: Re-generate.
5621
5622 2002-06-07 Michal Ludvig <mludvig@suse.cz>
5623
5624 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5625 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5626 better do the things actually here.
5627 * x86-64-tdep.c (x86_64_register_name2nr): New.
5628 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5629 (x86_64_gdbarch_init): Respect the above change.
5630 * x86-64-tdep.h (x86_64_register_name2nr)
5631 (x86_64_register_nr2name): Add prototypes.
5632 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5633
5634 2002-06-06 Michael Snyder <msnyder@redhat.com>
5635
5636 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5637 Delete extra braces and re-indent.
5638 (d10v_store_return_value): Char return values
5639 must be shifted over by one byte in R0.
5640 (d10v_extract_return_value): Delete extra braces, re-indent.
5641
5642 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5643
5644 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5645 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5646 (d10v_integer_to_address): Rewrite.
5647 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5648 the d10v specific functions which take care of converting to the
5649 correct space.
5650
5651 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5652
5653 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5654 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5655
5656 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5657
5658 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5659 includes.
5660 * config/tm-linux.h: Ditto.
5661 * config/alpha/tm-alphalinux.h: Ditto.
5662 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5663 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5664 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5665 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5666 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5667 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5668 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5669 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5670 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5671 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5672 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5673 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5674 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5675 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5676 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5677 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5678 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5679 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5680 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5681 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5682 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5683 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5684 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5685 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5686 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5687 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5688 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5689 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5690 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5691 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5692 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5693 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5694 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5695 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5696 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5697 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5698 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5699
5700 2002-05-04 Aidan Skinner <aidan@velvet.net>
5701
5702 * ada-exp.tab.c: New file
5703 * ada-exp.y: New file
5704 * ada-lang.c: New file
5705 * ada-lang.h: New file
5706 * ada-lex.c: New file
5707 * ada-lex.l: New file
5708 * ada-tasks.c: New file
5709 * ada-typeprint.c: New file
5710 * ada-valprint.c: New file
5711
5712 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5713
5714 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5715 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5716
5717 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5718
5719 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5720 insetead of ppc-linux-tdep.o.
5721 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5722 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5723
5724 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5725
5726 2002-05-07 Christian Groessler <chris@groessler.org>
5727 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5728 bit register contents for little endian hosts.
5729
5730 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5731
5732 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5733 any maintainer.
5734
5735 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5736
5737 * gdbarch.h: Regenerate.
5738
5739 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5740
5741 * MAINTAINERS: Add everyone to write-after-approval list.
5742
5743 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5744
5745 * stack.c (frame_info): Use frame_register_unwind instead of
5746 saved_regs. Mention when the SP is on the stack or in a register.
5747
5748 * frame.h (frame_register_unwind_ftype): Define. Document.
5749 (struct frame_info): Add field register_unwind and
5750 register_unwind_cache.
5751 (frame_register_unwind): Declare.
5752 (generic_unwind_get_saved_register): Declare.
5753
5754 * frame.c (frame_register_unwind): New function.
5755 (generic_unwind_get_saved_register): New function.
5756
5757 * blockframe.c (generic_call_dummy_register_unwind): New function.
5758 (frame_saved_regs_register_unwind): New function.
5759 (set_unwind_by_pc): New function.
5760 (create_new_frame): New function.
5761 (get_prev_frame): New function.
5762
5763 2002-05-30 Andrew Cagney <ac131313@redhat.com>
5764
5765 * a29k-share/: Delete directory.
5766 * remote-vx29k.c: Delete file.
5767
5768 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5769
5770 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5771 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5772
5773 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5774
5775 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5776 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5777 (sparc64nbsd-nat.o)
5778 (sparcnbsd-nat.o)
5779 (sparcnbsd-tdep.o): New dependency lists.
5780 * NEWS: Note new UltraSPARC NetBSD native configuration.
5781 * configure.host (sparc64-*-netbsd*): New host.
5782 * configure.tgt (sparc-*-netbsdelf*)
5783 (sparc-*-netbsd*): Set gdb_target to nbsd.
5784 (sparc64-*-netbsd*): New target.
5785 * sparc64nbsd-nat.c: New file.
5786 * sparcnbsd-nat.c: New file.
5787 * sparcnbsd-tdep.c: New file.
5788 * sparcnbsd-tdep.h: New file.
5789 * config/sparc/nbsd.mt: New file.
5790 * config/sparc/nbsd64.mh: New file.
5791 * config/sparc/nbsd64.mt: New file.
5792 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5793 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5794 (HOST_IPC): Remove.
5795 * config/sparc/nbsdaout.mt: Remove.
5796 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5797 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5798 (HOST_IPC): Remove.
5799 * config/sparc/nbsdelf.mt: Remove.
5800 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5801 sparc-nat.c compatiblity defines.
5802 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5803 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5804 * config/sparc/tm-nbsd64.h: New file.
5805 * config/sparc/tm-nbsdaout.h: Remove.
5806 * config/sparc/xm-nbsd.h: Remove.
5807
5808 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5809
5810 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5811 * sparc-tdep.c: Include osabi.h.
5812 (gdbarch_tdep): Add osabi member.
5813 (_initialize_sparc_tdep): Use gdbarch_register.
5814 (sparc_gdbarch_init): Use generic OS ABI framework.
5815 (sparc_dump_tdep): New function.
5816
5817 2002-05-30 Kevin Buettner <kevinb@redhat.com>
5818
5819 * corefile.c (do_captured_read_memory_integer): Return non-zero
5820 result.
5821 (safe_read_memory_integer): Copy result of memory read when
5822 status is non-zero. Also, add comments.
5823
5824 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5825
5826 * Makefile.in (ppc_tdep_h): Define.
5827 (ppc-linux-nat.o)
5828 (ppc-linux-tdep.o)
5829 (rs6000-tdep.o): Use $(ppc_tdep_h).
5830 (ppc-sysv-tdep.o)
5831 (ppcnbsd-nat.o)
5832 (ppcnbsd-tdep.o): New dependency lists.
5833 * ppc-tdep.h: Use generic OS ABI framework.
5834 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5835 (ppc_linux_init_abi): New functions.
5836 (ppc_sysv_abi_broken_use_struct_convention)
5837 (ppc_sysv_abi_use_struct_convention)
5838 (ppc_sysv_abi_push_arguments): Move to...
5839 * ppc-sysv-tdep.c: ...here.
5840 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5841 * rs6000-tdep.c (process_note_abi_tag_sections)
5842 (get_elfosabi): Remove.
5843 (rs6000_gdbarch_init): Use generic OS ABI framework.
5844 (rs6000_dump_tdep): New function.
5845 (_initialize_rs6000_tdep): Use gdbarch_register.
5846 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5847 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5848 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5849 of ppc-linux-tdep.o.
5850 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5851 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5852 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5853 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5854 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5855 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5856
5857 2002-05-29 Jim Blandy <jimb@redhat.com>
5858
5859 * macroscope.c (default_macro_scope): Put `void' in empty argument
5860 list.
5861
5862 2002-05-29 Andrew Cagney <ac131313@redhat.com>
5863
5864 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5865 * arch-utils.c: Include "sim-regno.h".
5866 * gdbarch.sh: Don't include "sim-regno.h".
5867 * gdbarch.h, gdbarch.c: Regenerate.
5868 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5869 here.
5870 * arch-utils.h (legacy_register_sim_regno): To here.
5871 * remote-sim.c (legacy_register_sim_regno): Move function from
5872 here.
5873 * arch-utils.c (legacy_register_sim_regno): To here.
5874
5875 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5876
5877 * sim-regno.h: New file.
5878 * Makefile.in (sim_regno_h): Define.
5879 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5880 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5881 (legacy_register_sim_regno): New function.
5882 (one2one_register_sim_regno): New function.
5883 (gdbsim_fetch_register): Rewrite.
5884 (gdbsim_store_register): Only store a register when
5885 REGISTER_SIM_REGNO is valid.
5886 * d10v-tdep.c: Include "sim-regno.h".
5887 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5888 (d10v_ts3_register_sim_regno): Ditto.
5889 * gdbarch.sh: Include "sim-regno.h".
5890 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5891 * gdbarch.h, gdbarch.c: Regenerate.
5892 * arch-utils.h (default_register_sim_regno): Delete declaration.
5893 * arch-utils.c (default_register_sim_regno): Delete function.
5894
5895 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5896
5897 * ppcnbsd-nat.c: Rewrite.
5898 * ppcnbsd-tdep.c: New file.
5899 * ppcnbsd-tdep.h: New file.
5900 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5901 solib.o, and solib-svr4.o.
5902 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5903 nbsd-tdep.o, and corelow.o.
5904
5905 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5906
5907 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5908 `tr' and `sed'. Mention that `broken' targets are not expected to
5909 build.
5910
5911 2002-05-27 Michal Ludvig <mludvig@suse.cz>
5912
5913 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5914 Let PC point right after the prologue before looking up symbols.
5915
5916 2002-05-27 Martin M. Hunt <hunt@redhat.com>
5917
5918 * i386-tdep.c (i386_register_virtual_type): Return
5919 builtin_type_vec128i for SSE registers.
5920
5921 * gdbtypes.h (builtin_type_vec128i): Declare.
5922
5923 * gdbtypes.c (build_builtin_type_vec128i): New function.
5924 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5925 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5926 (build_gdbtypes): Initialize new builtin vector types.
5927 (_initialize_gdbtypes): Register new vector types with gdbarch.
5928
5929 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5930
5931 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5932 since it has been multi-arch'd.
5933 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5934 Move Alpha and VAX multi-arch news entries to same section
5935 as other multi-arch news.
5936
5937 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5938
5939 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5940 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5941 static. Rename some register numbers to put them in ns32k-tdep
5942 private namespace.
5943 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5944 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5945 functions.
5946 (_initialize_ns32k_tdep): Use gdbarch_register.
5947 * ns32k-tdep.h: New file.
5948 * ns32knbsd-tdep.c: New file.
5949 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5950 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5951 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5952 REGISTER_BYTES, REGISTER_BYTE): Remove.
5953 * config/ns32k/tm-ns32k.h: New file.
5954 * config/ns32k/tm-umax.h: Remove.
5955
5956 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5957
5958 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5959 ns32k_store_struct_return, ns32k_extract_return_value,
5960 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5961 functions.
5962 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5963 ns32k_saved_pc_after_call.
5964 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5965 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5966 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5967 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5968 ns32k_extract_struct_value_address.
5969
5970 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5971
5972 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5973 ns32k_fix_call_dummy): New.
5974 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5975 ns32k_call_dummy_words.
5976 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5977 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5978 CALL_DUMMY_NARGS): Remove.
5979 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5980
5981 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5982
5983 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5984 ns32k_frame_saved_pc, ns32k_frame_args_address,
5985 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5986 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5987 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5988 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5989 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5990 (BREAKPOINT): Remove..
5991 (FRAME_CHAIN): Define as ns32k_frame_chain.
5992 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5993 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5994 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5995 (FRAME_FIND_SAVED_REGS): Remove.
5996 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5997 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5998 (POP_FRAME): Define as ns32k_pop_frame.
5999
6000 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6001
6002 * ns32k-tdep.c (ns32k_register_byte_32082,
6003 ns32k_register_byte_32382, ns32k_register_raw_size,
6004 ns32k_register_virtual_size, ns32k_register_virtual_type): New
6005 functions.
6006 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
6007 ns32k_register_byte_32382.
6008 * config/ns32k/tm-umax.h: Update copyright years.
6009 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
6010 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
6011 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
6012 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
6013 (ns32k_get_enter_addr): Fix prototype.
6014
6015 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6016
6017 * ns32k-tdep.c: Update copyright years.
6018 (ns32k_register_name_32082): New function.
6019 (ns32k_register_name_32382): Ditto.
6020 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
6021 (REGISTER_NAME): Define as ns32k_register_name_32382.
6022 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
6023 (REGISTER_NAME): Define as ns32k_register_name_32082.
6024
6025 2002-05-24 Jim Blandy <jimb@redhat.com>
6026
6027 * dwarf2read.c (free_line_header): Use xfree, not free.
6028
6029 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
6030
6031 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
6032 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
6033
6034 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6035
6036 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
6037
6038 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6039
6040 From Ross Alexander at NEC Europe:
6041 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
6042
6043 2002-05-23 Michael Snyder <msnyder@redhat.com>
6044
6045 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
6046 for input, rather than parse_and_eval_address.
6047
6048 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6049
6050 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
6051 * Makefile.in (sim_d10v_h): Update definition.
6052
6053 2002-05-24 Andrew Cagney <cagney@redhat.com>
6054
6055 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
6056 change `2002-05-22 Michael Snyder' below.
6057 (d10v_push_arguments): Ditto.
6058 (d10v_extract_return_value): Ditto.
6059
6060 2002-05-23 Jim Blandy <jimb@redhat.com>
6061
6062 * macrotab.c (check_for_redefinition): Don't complain if the new
6063 definition is the same as the previous one. Take more arguments
6064 to allow the comparison.
6065 (macro_define_object, macro_define_function): Pass more arguments
6066 to check_for_redefinition.
6067
6068 2002-05-22 Michael Snyder <msnyder@redhat.com>
6069
6070 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
6071 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
6072 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
6073 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
6074 Don't bail if return_pc is PC_IN_CALL_DUMMY.
6075 Add a temp variable to save a call (and a memory read).
6076 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
6077 if possible (so that PC_IN_CALL_DUMMY will work).
6078
6079 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
6080
6081 * MAINTAINERS: Remove status `OBSOLETE' from v850.
6082
6083 2002-05-22 Michal Ludvig <mludvig@suse.cz>
6084
6085 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6086 fde->cie_ptr.
6087 (dwarf2_build_frame_info): Corrected handling of eh_frame.
6088 (dwarf2_build_frame_info): Add offset to fde->initial_location
6089 so that frames of shared libraries are mapped correctly.
6090 (execute_stack_op): Change type of 'result' from ULONGEST to
6091 CORE_ADDR.
6092
6093 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6094
6095 * config/alpha/tm-nbsd.h: Include solib.h.
6096
6097 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6098
6099 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6100 assumptions about the host's byte order.
6101
6102 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6103
6104 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6105 to dependency list.
6106 * alphanbsd-tdep.c: Include solib-svr4.h.
6107 * shnbsd-tdep.c: Ditto.
6108
6109 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6110
6111 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6112 nbsd-tdep.h to dependency list.
6113 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6114 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6115 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6116 nbsdaout.mh and nbsdelf.mh consistently.
6117 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6118 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6119 nbsdaout.mt and nbsdelf.mh consistently.
6120 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6121 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6122 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6123 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6124 a.out shared library stuff from here...
6125 * config/nm-nbsdaout.h: ...to here.
6126 * config/tm-nbsd.h: Remove.
6127 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6128 * config/arm/nbsd.mh: Remove.
6129 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6130 nbsd-tdep.o.
6131 * config/arm/nbsdaout.mh: New file.
6132 * config/arm/nbsdelf.mh: New file.
6133 * config/arm/nm-nbsdaout.h: New file.
6134 * config/i386/nbsd.mh: Remove.
6135 * config/i386/nbsd.mt: Remove.
6136 * config/i386/nbsdaout.mh: New file.
6137 * config/i386/nbsdaout.mt: New file.
6138 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6139 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6140 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6141 i386_register_u_addr): Remove.
6142 * config/i386/nm-nbsdaout.h: New file.
6143 * config/i386/nm-nbsdelf.h: Remove.
6144 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6145 (USE_STRUCT_CONVENTION): Remove.
6146 * config/i386/tm-nbsdaout.h: New file.
6147 * config/i386/tm-nbsdelf.h: Remove.
6148 * config/m68k/nbsd.mh: Remove.
6149 * config/m68k/nbsd.mt: Remove.
6150 * config/m68k/nbsdaout.mh: New file.
6151 * config/m68k/nbsdaout.mt: New file.
6152 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6153 * config/m68k/nm-nbsdaout.h: New file.
6154 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6155 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6156 * config/ns32k/nbsd.mh: Remove.
6157 * config/ns32k/nbsd.mt: Remove.
6158 * config/ns32k/nbsdaout.mh: New file.
6159 * config/ns32k/nbsdaout.mt: New file.
6160 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6161 * config/ns32k/nm-nbsdaout.h: New file.
6162 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6163 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6164 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6165 (SVR4_SHARED_LIBS): Remove.
6166 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6167 * config/sparc/nbsd.mh: Remove.
6168 * config/sparc/nbsd.mt: Remove.
6169 * config/sparc/nbsdaout.mh: New file.
6170 * config/sparc/nbsdaout.mt: New file.
6171 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6172 * config/sparc/nbsdelf.mt: New file.
6173 * config/sparc/nm-nbsdaout.h: New file.
6174 * config/sparc/nm-nbsdelf.h: Remove.
6175 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6176 * config/sparc/tm-nbsdaout.h: New file.
6177
6178 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6179
6180 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6181 mipsnbsd-tdep.c
6182 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6183
6184 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6185
6186 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6187 shnbsd-nat.c.
6188 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6189
6190 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6191
6192 * NEWS: Note new MIPS NetBSD native configuration.
6193 * configure.host (mips*-*-netbsd*): New host.
6194 * configure.tgt (mips*-*-netbsd*): New target.
6195 * mipsnbsd-nat.c: New file.
6196 * mipsnbsd-tdep.c: New file.
6197 * mipsnbsd-tdep.h: New file.
6198 * config/mips/nbsd.mh: New file.
6199 * config/mips/nbsd.mt: New file.
6200 * config/mips/nm-nbsd.h: New file.
6201 * config/mips/tm-nbsd.h: New file.
6202
6203 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6204
6205 * Makefile.in (SFILES): Add osabi.c.
6206 (COMMON_OBS): Add osabi.o.
6207 (osabi.o): New dependency list.
6208 * osabi.c: New file.
6209 * osabi.h: New file.
6210 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6211
6212 * Makefile.in (alpha_tdep_h): Define and use instead of
6213 alpha-tdep.h.
6214 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6215 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6216 Remove.
6217 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6218 * alpha-tdep.h: Include osabi.h.
6219 (alpha_abi): Remove.
6220 (gdbarch_tdep): Use generic OS ABI framework.
6221 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6222 gdbarch_register_osabi.
6223 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6224 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6225 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6226
6227 * Makefile.in (sh_tdep_h): Add osabi.h.
6228 * sh-tdep.h (sh_osabi): Remove.
6229 (gdbarch_tdep): Use generic OS ABI framework.
6230 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6231 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6232 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6233 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6234
6235 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6236 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6237 gdbarch_register_osabi.
6238 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6239 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6240 (get_elfosabi): Rename to...
6241 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6242 ABI framework support routines.
6243 (arm_gdbarch_init): Use generic OS ABI framework.
6244 (arm_dump_tdep): Likewise.
6245 (_initialize_arm_tdep): Likewise.
6246 * arm-tdep.h: Include osabi.h.
6247 (arm_abi): Remove.
6248 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6249 osabi member.
6250 (arm_gdbarch_register_os_abi): Remove prototype.
6251 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6252 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6253
6254 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6255 * mips-tdep.c: Include osabi.h.
6256 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6257 OS ABI framework.
6258
6259 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6260
6261 * h8300-tdep.c: Fix formatting.
6262
6263 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
6264
6265 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6266 printing vector registers.
6267
6268 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6269
6270 From Fernando Nasser:
6271 * remote.c (remote_async_open_1): Re-throw the exception when the
6272 connection fails.
6273 (remote_cisco_open): Ditto.
6274 (remote_open_1): Ditto.
6275
6276 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6277
6278 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6279 (remote_start_remote): Add uiout parameter. Pass through to
6280 remote_start_remote_dummy.
6281 (remote_open_1): Use catch_exception instead of catch_errors.
6282 (remote_async_open_1): Ditto.
6283 (remote_cisco_open): Ditto.
6284
6285 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6286
6287 * remote.c (remote_start_remote): Replace PTR with void pointer.
6288 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6289 static.
6290
6291 2002-05-18 Andrew Cagney <ac131313@redhat.com>
6292
6293 * gdb_indent.sh: Allow the script to be run in the sim directory.
6294
6295 2002-05-18 Mark Kettenis <kettenis@gnu.org>
6296
6297 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6298 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6299
6300 * corelow.c (core_open): Only call set_gdbarch_from_file if
6301 exec_bfd is NULL.
6302
6303 2002-05-17 Andrey Volkov <avolkov@transas.com>
6304
6305 * h8300-tdep.c: Add support of EXR register
6306 * config/h8300/tm-h8300.h: Ditto.
6307
6308 2002-05-17 Andrey Volkov <avolkov@transas.com>
6309
6310 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6311
6312 2002-05-17 Andrey Volkov <avolkov@transas.com>
6313
6314 * h8300-tdep.c: Change literal regnums to REGNO.
6315
6316 2002-05-17 Jim Blandy <jimb@redhat.com>
6317
6318 * NEWS: Note addition of macro support.
6319
6320 Expand preprocessor macros in C expressions.
6321 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6322 (scan_macro_expansion, scanning_macro_expansion,
6323 finished_macro_expansion): New function declarations.
6324 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6325 variable declarations.
6326 * parser-defs.h (expression_context_pc): New declaration.
6327 * parse.c (expression_context_pc): New variable.
6328 (parse_exp_1): Set expression_context_pc, as well as
6329 expression_context_block.
6330 * c-exp.y (yylex): If we're not already reading the result of a
6331 macro expansion, try to macro-expand the next token. When we're
6332 done scanning a macro expansion, switch back to the mainline text.
6333 Commas and `if's in a macro's expansion don't terminate the input.
6334 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6335 (macro_original_text, macro_expanded_text,
6336 expression_macro_lookup_func, expression_macro_lookup_baton): New
6337 variables.
6338 (scan_macro_expansion, scanning_macro_expansion,
6339 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6340 c_preprocess_and_parse): New functions.
6341 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6342 c_preprocess_and_parse, instead of c_parse.
6343 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6344 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6345
6346 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6347
6348 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6349 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6350 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6351
6352 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
6353
6354 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6355
6356 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6357
6358 * Makefile.in (sh_tdep_h): Define and use.
6359 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6360 register enum): Move to...
6361 * * sh-tdep.h: ...here.
6362 * sh-tdep.c: Include sh-tdep.h.
6363 * sh3-rom.c: Likewise.
6364 * shnbsd-tdep.c: Likewise.
6365
6366 2002-05-16 Michael Snyder <msnyder@redhat.com>
6367
6368 * arm-tdep.c: Spelling fix in comment.
6369
6370 2002-05-16 Jim Blandy <jimb@redhat.com>
6371
6372 Add commands for manually expanding macros and showing their
6373 definitions.
6374 * macrocmd.c, macroscope.c, macroscope.h: New files.
6375 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6376 (macroscope_h): New variable.
6377 (HFILES_NO_SRCDIR): Add macroscope.h.
6378 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6379 (macroscope.o, macrocmd.o): New rules.
6380
6381 Teach the Dwarf 2 reader to read macro information.
6382 * dwarf2read.c: #include "macrotab.h".
6383 (dwarf_macinfo_buffer): New variable.
6384 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6385 dwarf_macinfo_size.
6386 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6387 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6388 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6389 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6390 dwarf2_macro_spaces_in_definition): New complaints.
6391 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6392 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6393 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6394 the partial symbol table.
6395 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6396 from what's recorded in the partial symbol table.
6397 (read_file_scope): If the compilation unit has a
6398 `DW_AT_macro_info' attribute, read its macro information.
6399 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6400
6401 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6402
6403 Fix PR gdb/546
6404 * ser-tcp.c: Don't include <netinet/udp.h>.
6405
6406 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6407
6408 * MAINTAINERS: Update my email address.
6409
6410 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
6411
6412 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6413 include file of the same name.
6414
6415 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6416
6417 * configure.tgt: Mark v850 as multi-arched.
6418 * config/v850/tm-v850.h: Remove file.
6419 * config/v850/v850.mt: Eliminate TM_FILE.
6420
6421 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6422
6423 * v850-tdep.c: Full multi-arch.
6424 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6425 Define GDB_MULTI_ARCH to 2.
6426
6427 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6428
6429 * p-exp.y (current_type): New static variable.
6430 Carries the type of the expression at the position that is parsed.
6431 (push_current_type, pop_current_type): Two new functions. Used
6432 to store/restore current_type in expression on specific tokens.
6433 (search_field): New static variable. Set to one after parsing a point
6434 as at that point only a FIELDNAME token should be searched.
6435 (FIELDNAME): New token. After a point only a token belonging to
6436 current_type type definition is allowed.
6437 (all over token rules): reset and change current_type according
6438 to rules.
6439 (exp '[' rule): insert implicit array index field if
6440 exp is a pascal string type.
6441
6442 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6443
6444 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6445 frame info. Use frame_info's saved_regs instead of matching member
6446 in extra_frame_info throughout.
6447 (v850_frame_init_saved_regs): New function.
6448 (v850_init_extra_frame_info): Move most functionality into
6449 v850_frame_init_saved_regs().
6450 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6451 (v850_frame_find_saved_regs): Remove declaration.
6452 (FRAME_FIND_SAVED_REGS): Remove definition.
6453 (v850_frame_init_saved_regs): Add declaration.
6454 (FRAME_INIT_SAVED_REGS): Add definition.
6455
6456 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6457
6458 * v850-tdep.c: Begin multi-arch'ing v850.
6459 (v850_target_architecture_hook): Remove function.
6460 (v850_gdbarch_init): New function. Add code previously in
6461 v850_target_architecture_hook().
6462 (_initialize_v850_tdep): Don't set target_architecture_hook.
6463 Call register_gdbarch_init() instead.
6464
6465 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6466
6467 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6468 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6469 (fixup_class_method_type): Likewise.
6470
6471 2002-05-15 Jim Blandy <jimb@redhat.com>
6472
6473 Add macro structures to GDB's symbol tables. Nobody puts anything
6474 in them yet.
6475 * symtab.h (struct symtab): New member: `macro_table'.
6476 * buildsym.h (pending_macros): New global variable.
6477 * buildsym.c: #include "macrotab.h".
6478 (buildsym_init): Initialize `pending_macros'.
6479 (end_symtab): If we found macro information while reading a CU's
6480 debugging info, do build a symtab structure for it. Make the
6481 symtab point to the macro information, and clear the
6482 `pending_macros' pointer which held it while we were reading the
6483 debug info.
6484 (really_free_pendings): Free any pending macro table.
6485 * objfiles.h (struct objfile): New member: `macro_cache'.
6486 * objfiles.c (allocate_objfile): Set allocate and free functions
6487 for the macro cache's objstack.
6488 (free_objfile): Empty the macro cache's obstack.
6489 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6490 set new allocate and free functions for it.
6491 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6492 free functions for the macro cache's objstack. (Why is this
6493 function building its own objfile?)
6494 * symmisc.c (print_objfile_statistics): Print statistics on the
6495 macro bcache.
6496 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6497
6498 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6499
6500 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6501 (REGISTER_U_ADDR): Delete definition.
6502 (arm_register_u_addr): Delete declaration.
6503
6504 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6505
6506 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6507 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6508
6509 2002-05-14 Andrew Cagney <ac131313@redhat.com>
6510
6511 * regcache.c (register_valid): Revise comments refering to "Not
6512 available" and "unavailable".
6513 * frame.c (frame_register_read): Ditto.
6514 * findvar.c (value_of_register): Ditto.
6515
6516 2002-05-15 Andrew Cagney <cagney@redhat.com>
6517
6518 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6519 (remote-sim.o): Update dependencies.
6520 (d10v-tdep.o): Specify dependencies.
6521 (sim_d10v_h): Define.
6522
6523 2002-05-14 Jim Blandy <jimb@redhat.com>
6524
6525 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6526 * macrotab.c (macro_lookup_inclusion, find_definition,
6527 new_macro_table): Same.
6528
6529 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6530 not `! strcmp ()'. This is a dubious improvement.
6531 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6532
6533 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6534 although it's not necessary, to avoid a warning.
6535
6536 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6537
6538 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6539 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6540 TYPE_INSTANCE_FLAGS.
6541 (struct main_type): New.
6542 (struct type): Move most members to struct main_type. Change
6543 cv_type and as_type to new type_chain member. Add instance_flags.
6544 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6545 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6546 (finish_cv_type): Remove prototype.
6547 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6548 Set TYPE_CHAIN.
6549 (alloc_type_instance): New function.
6550 (smash_type): New function.
6551 (make_pointer_type, make_reference_type, make_function_type)
6552 (smash_to_member_type, smash_to_method_type): Call smash_type.
6553 (make_qualified_type): New function.
6554 (make_type_with_address_space): Call make_qualified_type.
6555 (make_cv_type): Likewise.
6556 (finish_cv_type): Remove unnecessary function.
6557 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6558 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6559 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6560 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6561 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6562 * hpread.c (hpread_read_struct_type): Likewise.
6563 * stabsread.c (read_struct_type): Likewise.
6564
6565 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
6566
6567 * configure.tgt: Add a catch all sh* target, for cases like
6568 sh[2,3,4]-elf and sh-hms.
6569
6570 2002-05-14 Keith Seitz <keiths@redhat.com>
6571
6572 * event-loop.c (create_file_handler): Don't do anything but
6573 update data when we are given a fd which we are already
6574 monitoring.
6575
6576 2002-05-14 Michal Ludvig <mludvig@suse.cz>
6577
6578 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6579 (update_context): Use __func__ in warnings.
6580
6581 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6582
6583 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6584 and tcp_close to net_open and net_close.
6585 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6586 using UDP if requested. Don't try to disable Nagle on UDP
6587 sockets.
6588 * remote.c (remote_serial_open): New function. Warn about UDP.
6589 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6590
6591 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6592
6593 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6594
6595 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6596
6597 * configure.tgt: Remove sh-hms target.
6598 * MAINTAINERS: Don't list sh-hms as a separate target.
6599
6600 2002-05-13 Jim Blandy <jimb@redhat.com>
6601
6602 Add first preprocessor macro-expansion files.
6603 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6604 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6605 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6606 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6607 (COMMON_OBS): Add macrotab.o, macroexp.o.
6608 (macroexp.o, macrotab.o): New rules.
6609
6610 2002-05-13 Andrew Cagney <ac131313@redhat.com>
6611
6612 * config/m88k/tm-m88k.h: Update copyright.
6613 (m88k_target_write_pc): Declare
6614 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6615 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6616 (SHIFT_INST_REGS): Update definition.
6617 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6618 using old definition of TARGET_WRITE_PC.
6619 * regcache.c (generic_target_write_pc): Delete code handling
6620 NNPC_REGNUM.
6621 * gdbarch.sh (NNPC_REGNUM): Delete.
6622 * gdbarch.h, gdbarch.c: Regenerate.
6623
6624 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
6625
6626 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6627 builtin reg number.
6628
6629 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
6630
6631 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6632 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6633 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6634 access macros.
6635 * c-typeprint.c (cp_type_print_method_args): Likewise.
6636 (c_type_print_args): Likewise.
6637 * d10v-tdep.c (d10v_push_arguments): Likewise.
6638 (d10v_extract_return_value): Likewise.
6639 * expprint.c (print_subexp): Likewise.
6640 * gdbtypes.c (lookup_primitive_typename): Likewise.
6641 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6642 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6643 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6644 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6645 (TYPE_VECTOR): Likewise.
6646 * hpread.c (hpread_read_struct_type)
6647 (fix_static_member_physnames, fixup_class_method_type)
6648 (hpread_type_lookup): Likewise.
6649 * mdebugread.c (parse_symbol, parse_type): Likewise.
6650 * p-lang.c (is_pascal_string_type): Likewise.
6651 * valops.c (hand_function_call): Likewise.
6652 * x86-64-tdep.c (classify_argument): Likewise.
6653
6654 * hpread.c (hpread_read_function_type)
6655 (hpread_read_doc_function_type): Call replace_type.
6656 * dstread.c (create_new_type): Delete.
6657 (decode_dst_structure, process_dst_function): Call alloc_type.
6658 Use type access macros.
6659
6660 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6661
6662 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6663 the're not supported by the current architecture.
6664 (i387_fill_fxsave): Likewise.
6665
6666 2002-05-12 Fred Fish <fnf@redhat.com>
6667
6668 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6669 sect_index_xxx members to index the first slot in section_offsets
6670 if all of the section_offsets are zero.
6671
6672 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6673
6674 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6675 checked in with last change.
6676
6677 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6678
6679 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6680 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6681 config.sub.
6682
6683 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
6684
6685 * Makefile.in: Update dependencies.
6686
6687 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6688
6689 * language.c (local_hex_string_custom): Simplify. Do not depend
6690 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6691
6692 * memattr.c (mem_info_command): Replace calls to
6693 longest_local_hex_string and longest_local_hex_string_custom.
6694 * buildsym.c (make_blockvector): Ditto.
6695 * solib.c (info_sharedlibrary_command): Ditto.
6696 * tracepoint.c (tracepoints_info): Ditto.
6697 * symtab.c (print_msymbol_info): Ditto.
6698
6699 * language.c (local_hex_string): Delete.
6700 (local_hex_string_custom): Delete.
6701 (longest_local_hex_string): Rename to local_hex_string.
6702 (longest_local_hex_string_custom): Rename to
6703 local_hex_string_custom.
6704 * language.h (local_hex_string): Change parameter type to LONGEST.
6705 (local_hex_string_custom): Ditto.
6706 (longest_local_hex_string): Delete declaration.
6707 (longest_local_hex_string_custom): Ditto.
6708
6709 * solib.c: Update copyright.
6710 * memattr.c: Update copyright.
6711
6712 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6713
6714 * arch-utils.h (legacy_register_to_value): Declare.
6715 (legacy_value_to_register): Declare.
6716 (legacy_convert_register_p): Declare.
6717 * arch-utils.c (legacy_register_to_value): New function.
6718 (legacy_value_to_register): New function.
6719 (legacy_convert_register_p): New function.
6720
6721 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6722 (VALUE_TO_REGISTER): Define.
6723 (CONVERT_REGISTER_P): Define.
6724 * gdbarch.h, gdbarch.c: Regenerate.
6725
6726 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6727 VALUE_TO_REGISTER.
6728 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6729 CONVERT_REGISTER_P.
6730
6731 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
6732 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6733
6734 * Makefile.in: Update dependencies for valops.c.
6735 * valops.c: Include "gdb_assert.h".
6736 (typecmp): Skip THIS parameter to methods.
6737 (find_method_list): Remove static_memfuncp argument,
6738 update callers. Check for stub methods.
6739 (find_value_oload_method_list): Don't set *static_memfuncp.
6740 (find_overload_match): Don't check for stub methods. Assert
6741 that methods are not stubbed. Handle static methods.
6742 (value_find_oload_method_list): Remove static_memfuncp argument.
6743 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6744 to the argument list for static stub methods.
6745 * value.h (value_find_oload_method_list): Update prototype.
6746
6747 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6748
6749 * arch-utils.h (generic_register_size): Declare.
6750 (generic_register_raw_size, generic_register_virtual_size): Delete
6751 declarations.
6752 * arch-utils.c (generic_register_raw_size): Delete.
6753 (generic_register_size): New function.
6754 (generic_register_virtual_size): Delete.
6755
6756 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6757 default generic_register_size.
6758 * gdbarch.h, gdbarch.c: Re-generate.
6759
6760 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6761 register_virtual_size.
6762 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6763 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6764
6765 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6766
6767 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6768 * gdbarch.h, gdbarch.c: Regenerate.
6769 * gnu-v3-abi.c: Update copyright.
6770 (vtable_address_point_offset): Update.
6771 (gnuv3_rtti_type): Update.
6772 (gnuv3_baseclass_offset): Update.
6773 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6774 (init_fetch_link_map_offsets): Update.
6775 * remote.c (get_remote_state): Update.
6776
6777 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6778
6779 * TODO: Remove value_headof/value_from_vtable_info comment.
6780 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6781 * values.c (value_headof, value_from_vtable_info): Delete.
6782 * value.h (value_from_vtable_info): Delete prototype.
6783
6784 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6785
6786 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6787 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6788 $(gdb_regex_h).
6789 (gdb_assert_h): Define.
6790 (gdb_wait_h): Define.
6791 (gdb_regex_h): Define.
6792
6793 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6794
6795 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6796 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6797
6798 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6799
6800 * nbsd-tdep.c: Fix comment.
6801
6802 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6803
6804 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6805 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6806 (nbsd-tdep.o): New dependency list.
6807 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6808 nbsd-tdep.h.
6809 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6810 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6811 * nbsd-tdep.c: New file.
6812 * nbsd-tdep.h: New file.
6813 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6814 nbsd-tdep.h.
6815 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6816 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6817 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6818 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6819
6820 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6821
6822 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6823 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6824 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6825 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6826 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6827 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6828
6829 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6830
6831 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6832 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6833 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6834 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6835 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6836 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6837 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6838
6839 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6840
6841 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6842 fetch_elfcore_registers to...
6843 * i386nbsd-tdep.c: ...here.
6844 (i386nbsd_use_struct_convention): Rename to...
6845 (i386nbsd_aout_use_struct_convention): ...this.
6846 (i386nbsd_supply_reg): New function.
6847 (i386nbsd_fill_reg): New function.
6848 (fetch_core_registers): Use i386nbsd_supply_reg.
6849 (fetch_elfcore_registers): Likewise.
6850 (_initialize_i386nbsd_tdep): New function.
6851 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6852 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6853 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6854 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6855 (i386nbsd_aout_use_struct_convention): ...this.
6856
6857 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6858
6859 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6860 (store_inferior_registers): Use shnbsd_fill_reg.
6861 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6862 sh_nbsd_supply_register): Collapse into...
6863 (shnbsd_supply_reg): ...this.
6864 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6865 (shnbsd_fill_reg): ...this.
6866 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6867 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6868 (fetch_core_registers): Use shnbsd_supply_reg.
6869 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6870 (sh_nbsd_core_fns): Rename to...
6871 (shnbsd_core_fns): ...this.
6872 (sh_nbsd_elfcore_fns): Rename to...
6873 (shnbsd_elfcore_fns): ...this.
6874 (sh_nbsd_init_abi): Rename to...
6875 (shnbsd_init_abi): ...this.
6876 (_initialize_sh_nbsd_tdep): Rename to...
6877 (_initialize_shnbsd_tdep): ...this.
6878 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6879 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6880 sh_nbsd_fill_register): Remove prototypes.
6881 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6882
6883 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6884
6885 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6886 (i387-nat.o): Delete dependency list.
6887 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6888 (x86-64-linux-nat.o): Likewise.
6889 * i387-nat.c: Delete file, moving contents to...
6890 * i387-tdep.c: ...here.
6891 * i387-nat.h: Rename...
6892 * i387-tdep.h: ...to this.
6893 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6894 * i386-linux-nat.c: Likewise.
6895 * i386bsd-nat.c: Likewise.
6896 * i386gnu-nat.c: Likewise.
6897 * i386nbsd-nat.c: Likewise.
6898 * i386v4-nat.c: Likewise.
6899 * x86-64-linux-nat.c: Likewise.
6900 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6901 * config/i386/go32.mh (NATDEPFILES): Likewise.
6902 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6903 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6904 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6905 * config/i386/linux.mh (NATDEPFILES): Likewise.
6906 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6907 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6908 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6909 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6910
6911 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6912
6913 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6914 (alphanbsd-nat.o): Remove dependency list.
6915 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6916 * alphanbsd-nat.c: Delete. Contents moved to...
6917 * alphanbsd-tdep.c: ...here.
6918 (_initialize_alphanbsd_tdep): Register core functions.
6919 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6920
6921 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6922
6923 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6924 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6925 (alphanbsd-nat.o): Likewise.
6926 (alphabsd-tdep.o): New dependency list.
6927 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6928 (fill_gregset): Use alphabsd_fill_reg.
6929 (supply_fpregset): Use alphabsd_supply_fpreg.
6930 (fill_fpregset): Use alphabsd_fill_fpreg.
6931 (fetch_inferior_registers): Use struct reg and struct fpreg
6932 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6933 and alphabsd_supply_fpreg.
6934 (store_inferior_registers): Use struct reg and struct fpreg
6935 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6936 and alphabsd_fill_fpreg.
6937 * alphabsd-tdep.c: New file.
6938 * alphabsd-tdep.h: New file.
6939 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6940 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6941 alphabsd_supply_fpreg.
6942 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6943 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6944
6945 2002-05-11 Eric Christopher <echristo@redhat.com>
6946
6947 * mips-tdep.c (mips_double_register_type): Fix thinko.
6948 (mips_single_register_type): Ditto.
6949 * MAINTAINERS: Add self.
6950
6951 2002-05-11 Mark Kettenis <kettenis@gnu.org>
6952
6953 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6954 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6955 right thing on architectures with different endianness and/or
6956 integer sizes.
6957
6958 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6959
6960 From Christian Limpach <chris@Pin.LU>
6961 * configure.in: Change sed expression which comments out
6962 NATDEPFILES to also comment out continuation lines.
6963 * configure: Regenerate.
6964
6965 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6966
6967 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6968 big patch.
6969
6970 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6971
6972 * sh-tdep.c: Include correct file.
6973
6974 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6975
6976 New support for sh64-elf (sh5) target.
6977
6978 * configure.tgt: For sh64-elf target, default to sh-elf.
6979
6980 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6981 (struct gdbarch_tdep): Add new fields for new registers and ABI
6982 info.
6983
6984 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6985 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6986 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6987 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6988 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6989 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6990 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6991 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6992 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6993 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6994 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6995 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6996 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6997 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6998 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6999 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
7000 sh64_get_gdb_regnum, sh64_media_reg_base_num,
7001 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
7002 sign_extend, sh64_nofp_frame_init_saved_regs,
7003 sh64_init_extra_frame_info, sh64_get_saved_register,
7004 sh64_extract_struct_value_address, sh64_pop_frame,
7005 sh64_push_arguments, sh64_extract_return_value,
7006 sh64_store_return_value, sh64_show_media_regs,
7007 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
7008 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
7009 sh_sh64_register_virtual_type,
7010 sh_sh64_register_convert_to_virtual,
7011 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
7012 sh64_register_read, sh64_pseudo_register_write,
7013 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
7014 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
7015 sh64_do_pseudo_register, sh_compact_do_registers_info,
7016 sh64_do_registers_info, sh_gdbarch_init): New functions.
7017
7018 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7019
7020 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
7021
7022 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
7023
7024 * linespec.c (decode_line_1): Check for a double quote after
7025 a filename correctly.
7026
7027 2002-05-10 Jim Blandy <jimb@redhat.com>
7028
7029 Properly track the size of the current objfile's .debug_line section.
7030 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
7031 (DWARF_LINE_SIZE): New macro.
7032 (dwarf2_build_psymtabs_hard): Record the line section's size in
7033 the partial symbol table.
7034 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
7035 symbol table.
7036
7037 2002-05-10 Petr Sorfa <petrs@caldera.com>
7038
7039 * ia64-tdep.c: Handle breakpoints on L instruction type
7040 in MLX instruction bundle by moving the breakpoint to
7041 the third slot (X instruction type) as L holds only data.
7042
7043 2002-05-10 Kevin Buettner <kevinb@redhat.com>
7044
7045 * dbxread.c (discarding_local_symbols_complaint): New complaint.
7046 (process_one_symbol): Complain about discarding local symbols
7047 due to a misplaced N_LBRAC entry.
7048
7049 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
7050
7051 From Daniel Berlin <dan@cgsoftware.com>
7052 * linespec.c (find_toplevel_char): '<' and '>' also increase and
7053 decrease the depth we are at, in the case of templates.
7054
7055 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7056
7057 * mips-tdep.c (mips_float_register_type): New function.
7058 (mips_double_register_type): New function.
7059 (mips_print_register): Use them.
7060 (do_fp_register_row): Likewise.
7061
7062 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7063
7064 * signals/signals.c (signals): Remove conditional compilation around
7065 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
7066 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
7067
7068 2002-05-09 Michael Snyder <msnyder@redhat.com>
7069
7070 * remote-rdp.c (remote_rdp_can_run): Remove.
7071
7072 2002-05-09 Tom Tromey <tromey@redhat.com>
7073
7074 * jv-valprint.c (java_val_print): Handle `char' as a special case
7075 of TYPE_CODE_INT.
7076
7077 2002-05-09 Michael Snyder <msnyder@redhat.com>
7078
7079 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
7080 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
7081 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
7082 str r(0123),[sp,#nn].
7083 (arm_skip_prologue): Ditto. Also make disassembly
7084 order-independent by placing it in a loop.
7085
7086 2002-05-06 Michael Snyder <msnyder@redhat.com>
7087
7088 * stabsread.c (read_type): Add recognition for new attribute:
7089 "@V;" means that an array type is actually a vector.
7090 This is analogous to the vector flag that's been added to dwarf2.
7091
7092 2002-05-09 Mark Kettenis <kettenis@gnu.org>
7093
7094 * i386-tdep.h (i386_abi): New enum.
7095 (struct gdbarch_tdep): Replace os_ident member with abi.
7096 (i386_gdbarch_register_os_abi): New prototype.
7097 * i386-tdep.c (i386_abi_names): New array.
7098 (process_note_abi_tag_sections): Removed.
7099 (process_note_sections): New function.
7100 (i386_elf_abi_from_note, i386_elf_abi): New functions.
7101 (struct i386_abi_handler): New struct.
7102 (i386_abi_handler_list): New variable.
7103 (i386_gdbarch_register_os_abi): New function.
7104 (i386_gdbarch_init): Adapt for the changes given above.
7105
7106 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
7107
7108 * gregset.h: Say "GNU/Linux".
7109
7110 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
7111
7112 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7113 (build_gdbtypes): Build builtin_type_v2_float.
7114 (_initialize_gdbtypes): Register new builtin type.
7115
7116 2002-05-08 Andrew Cagney <ac131313@redhat.com>
7117
7118 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7119 (clear_gdbarch_swap): New function.
7120 (initialize_non_multiarch): Call.
7121 (gdbarch_update_p): Before calling init(), swap out and clear the
7122 existing architecture.
7123 * gdbarch.c: Regenerate.
7124
7125 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7126
7127 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7128 alphanbsd-tdep.c.
7129
7130 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7131
7132 * sh-nbsd-nat.c: Rename to...
7133 * shnbsd-nat.c: ...this.
7134 * sh-nbsd-tdep.c: Rename to...
7135 * shnbsd-tdep.c: ...this.
7136 * sh-nbsd-tdep.h: Rename to...
7137 * shnbsd-tdep.h: ...this.
7138 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7139 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7140
7141 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
7142
7143 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7144 concatenation for command help messages.
7145
7146 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7147
7148 * NEWS: Note new sh*-*-netbsdelf* configuration.
7149 * configure.host: Set gdb_host_cpu to sh for all sh*.
7150 (sh*-*-netbsdelf*): New host.
7151 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7152 (sh*-*-netbsdelf*): New target.
7153 * sh-nbsd-nat.c: New file.
7154 * sh-nbsd-tdep.c: New file.
7155 * sh-nbsd-tdep.h: New file.
7156 * config/sh/nbsd.mh: New file.
7157 * config/sh/nbsd.mt: New file.
7158 * config/sh/nm-nbsd.h: New file.
7159 * config/sh/tm-nbsd.h: New file.
7160
7161 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7162
7163 * sh-tdep.c (sh_osabi_names): Declare.
7164 (process_note_abi_tag_sections): New function.
7165 (get_elfosabi): Ditto.
7166 (sh_gdbarch_register_os_abi): Ditto.
7167 (sh_dump_tdep): Ditto.
7168 _initialize_sh_tdep): Use gdbarch_register to register
7169 sh_gdbarch_init and sh_dump_tdep.
7170 * config/sh/tm-sh.h (sh_osabi): Declare.
7171 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7172
7173 2002-05-07 Andrew Cagney <ac131313@redhat.com>
7174
7175 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7176 (thumb_scan_prologue): Ditto.
7177 (arm_find_callers_reg): Ditto.
7178 (arm_frame_chain): Ditto.
7179 (arm_init_extra_frame_info): Ditto.
7180 (arm_frame_saved_pc): Ditto.
7181 (arm_pop_frame): Ditto.
7182 (arm_push_return_address): New function.
7183 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7184 call_dummy_location, call_dummy_breakpoint_offset_p,
7185 call_dummy_breakpoint_offset, call_dummy_p,
7186 call_dummy_stack_adjust_p, call_dummy_words,
7187 sizeof_call_dummy_words, call_dummy_start_offset,
7188 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7189 call_dummy_address, push_return_address and push_dummy_frame for
7190 generic dummy frames.
7191
7192 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7193
7194 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7195 size computation for alloca.
7196 (sh_fp_frame_init_saved_regs): Likewise.
7197
7198 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
7199
7200 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7201 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
7202 * arm-tdep.c (arm_store_return_value): Use them.
7203 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7204 * remote-rdp.c (remote_rdp_fetch_register): Use
7205 ARM_MAX_REGISTER_RAW_SIZE.
7206 (remote_rdp_store_register): Likewise.
7207
7208 2002-05-07 Michal Ludvig <mludvig@suse.cz>
7209
7210 * dwarf2cfi.c: Code cleanup, removed unused variables,
7211 added default labels to switch {} statements.
7212 * x86-64-tdep.c: Ditto.
7213 * x86-64-linux-nat.c: Ditto.
7214
7215 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7216
7217 * solib.h: Protect against multiple inclusion.
7218
7219 2002-05-06 Jim Blandy <jimb@redhat.com>
7220
7221 Add first preprocessor macro-expansion files.
7222 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7223 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7224 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7225 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7226 (COMMON_OBS): Add macrotab.o, macroexp.o.
7227 (macroexp.o, macrotab.o): New rules.
7228
7229 Separate the job of reading the line number info statement program
7230 header (...expialidocious) out into its own function.
7231 * dwarf2read.c (struct line_head, struct filenames, struct
7232 directories): Replace with...
7233 (struct line_header): New structure, containing the full
7234 contents of the statement program header, including the
7235 include directory and file name tables.
7236 (read_file_scope): If we have line number info, instead of just
7237 calling dwarf_decode_lines to do all the work, call
7238 dwarf_decode_line_header first to get a `struct line_header'
7239 containing the data in the statement program header, and then
7240 pass that to dwarf_decode_lines, which will pick up where that
7241 left off. Be sure to clean up the `struct line_header' object.
7242 (dwarf_decode_line_header, free_line_header, add_include_dir,
7243 add_file_name): New functions.
7244 (dwarf_decode_lines): Move all the code to read the statement
7245 program header into dwarf_decode_line_header. Take the line
7246 header it built as the first argument, instead of the offset to
7247 the compilation unit's line number info. Use the new `struct
7248 line_header' type instead of the old structures. No need to do
7249 cleanups here now, since we don't allocate anything.
7250 (dwarf2_statement_list_fits_in_line_number_section,
7251 dwarf2_line_header_too_long): New complaints.
7252
7253 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
7254
7255 * gdbtypes.c (init_vector_type): New function.
7256 (build_builtin_type_vec128): Simplify the representation of SIMD
7257 registers.
7258 (build_gdbtypes): Initialize new builtin vector types.
7259 (_initialize_gdbtypes): Register new vector types with gdbarch.
7260 (builtin_type_v4_float, builtin_type_v4_int32,
7261 builtin_type_v8_int16, builtin_type_v16_int8,
7262 builtin_type_v2_int32, builtin_type_v4_int16,
7263 builtin_type_v8_int8): New (renamed) SIMD types.
7264
7265 2002-05-06 Mark Kettenis <kettenis@gnu.org>
7266
7267 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7268 (i387_fill_fxsave): Likewise.
7269
7270 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
7271
7272 * alpha-tdep.c (alpha_extract_return_value): Don't use
7273 non-constant array size in prototype.
7274
7275 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7276
7277 From Brian Taylor <briant at model dot com>:
7278 * ui-out.c (ui_out_field_core_addr): Use the function
7279 longest_local_hex_string_custom'to format addresses > 32 bits
7280 wide.
7281
7282 * ui-out.c (ui_out_field_core_addr): Update comment.
7283
7284 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7285
7286 * stack.c (select_and_print_frame): Make static. Delete the
7287 parameter `level'.
7288 (func_command): Update call.
7289 (select_frame_command): Delete code computing the frame level.
7290 * frame.h (select_and_print_frame): Delete declaration.
7291
7292 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7293
7294 * sparc-tdep.c (sparc_get_saved_register): Comment why
7295 get_prev_frame call is safe.
7296
7297 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7298
7299 * frame.h (select_frame): Delete level parameter.
7300 * stack.c (select_frame): Update. Use frame_relative_level to
7301 obtain the frame's level.
7302 (select_and_print_frame): Update call.
7303 (select_frame_command): Ditto.
7304 (up_silently_base): Ditto.
7305 (down_silently_base): Ditto.
7306 * ocd.c (ocd_start_remote): Ditto.
7307 * remote-rdp.c (remote_rdp_open): Ditto.
7308 * remote-mips.c (mips_initialize): Ditto.
7309 (common_open): Ditto.
7310 * remote-e7000.c (e7000_start_remote): Ditto.
7311 * m3-nat.c (select_thread): Ditto.
7312 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7313 (child_get_current_exception_event): Ditto.
7314 * varobj.c (varobj_create): Ditto.
7315 (varobj_update): Ditto.
7316 (c_value_of_root): Ditto.
7317 * tracepoint.c (finish_tfind_command): Ditto.
7318 * corelow.c (core_open): Ditto.
7319 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7320 * thread.c (info_threads_command): Ditto.
7321 (switch_to_thread): Ditto.
7322 * infrun.c (normal_stop): Ditto.
7323 (restore_selected_frame): Ditto.
7324 (restore_inferior_status): Ditto.
7325 * breakpoint.c (insert_breakpoints): Ditto.
7326 (watchpoint_check): Ditto.
7327 (bpstat_stop_status): Ditto.
7328 (do_enable_breakpoint): Ditto.
7329 * blockframe.c (flush_cached_frames): Ditto.
7330 (reinit_frame_cache): Ditto.
7331
7332 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7333
7334 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7335 maintainer.
7336
7337 2002-05-04 Jim Blandy <jimb@redhat.com>
7338
7339 * gdbtypes.c (replace_type): Doc fix.
7340
7341 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7342
7343 * valprint.c (strcat_longest): Delete commented out function.
7344 Update copyright.
7345
7346 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7347
7348 * MAINTAINERS: Mark a29k as deleted.
7349 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7350 Move new configurations to the top.
7351 * configure.tgt: Remove a29k.
7352 * config/a29k/tm-vx29k.h: Delete.
7353 * config/a29k/vx29k.mt: Delete.
7354 * config/a29k/tm-a29k.h: Delete.
7355 * config/a29k/a29k-udi.mt: Delete.
7356 * config/a29k/a29k.mt: Delete.
7357 * a29k-tdep.c: Delete.
7358 * remote-udi.c: Delete.
7359 * remote-mm.c: Delete.
7360 * remote-eb.c: Delete.
7361 * remote-adapt.c: Delete.
7362 * Makefile.in: Remove obsolete code.
7363 * config/s390/s390x.mt: Ditto.
7364 * config/s390/s390.mt: Ditto.
7365 * config/sparc/sparclynx.mh: Ditto.
7366 * config/sparc/linux.mh: Ditto.
7367 * config/pa/hppaosf.mh: Ditto.
7368 * config/pa/hppabsd.mh: Ditto.
7369 * config/ns32k/nbsd.mt: Ditto.
7370 * config/mips/vr5000.mt: Ditto.
7371 * config/m68k/sun3os4.mh: Ditto.
7372 * config/m68k/nbsd.mt: Ditto.
7373 * config/m68k/m68klynx.mh: Ditto.
7374 * config/m32r/m32r.mt: Ditto.
7375 * config/i386/x86-64linux.mt: Ditto.
7376 * config/i386/nbsdelf.mt: Ditto.
7377 * config/i386/nbsd.mt: Ditto.
7378 * config/i386/i386lynx.mh: Ditto.
7379
7380 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7381
7382 * target.c (debug_print_register): New function. Handle oversize
7383 registers.
7384 (debug_to_fetch_registers): Call.
7385 (debug_to_store_registers): Call.
7386
7387 2002-05-03 Jim Blandy <jimb@redhat.com>
7388
7389 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7390 (read_type): Doc fix.
7391 * gdbtypes.c (replace_type): Doc fix.
7392
7393 * stabsread.c (multiply_defined_struct): New complaint.
7394 (read_struct_type): If the type we were passed isn't empty, or
7395 incomplete, don't read the new struct type into it; complain,
7396 and return the original type unchanged. Take a new `type_code'
7397 argument, which is the type code for the new type.
7398 (read_type): Rather than storing the type's type code here, pass
7399 it as an argument to read_struct_type, and let that take care of
7400 storing it. That way, we don't overwrite the original type code,
7401 so read_struct_type can use it to decide whether we're overwriting
7402 something we shouldn't.
7403 (complain_about_struct_wipeout): New function.
7404
7405 2002-05-03 Andrew Cagney <ac131313@redhat.com>
7406
7407 * gdbarch.sh: Assert that gdbarch is non-NULL.
7408 * gdbarch.c: Regenerate.
7409
7410 2002-05-03 Jason Merrill <jason@redhat.com>
7411
7412 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7413 and return NULL.
7414
7415 2002-05-03 Michal Ludvig <mludvig@suse.cz>
7416
7417 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7418 (x86_64_dwarf2gdb_regno_map_length),
7419 (x86_64_dwarf2_reg_to_regnum): Added.
7420 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7421 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7422 (_initialize_x86_64_tdep): Synced with the change above.
7423 (x86_64_skip_prologue): Reformulated message.
7424
7425 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7426
7427 * f-exp.y: Also use new prev_lexptr variable
7428 to improve error reporting. Based on Michael Snyder
7429 2002-04-24 dated patch to c-exp.y.
7430 * jv-exp.y: Likewise.
7431 * m2-exp.y: Likewise.
7432
7433 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
7434
7435 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7436 we are dealing with vectors.
7437
7438 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7439
7440 * config/m68k/tm-nbsd.h: Obvious fix,
7441 correct machine name.
7442
7443 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7444
7445 * p-typeprint.c (pascal_type_print_base): Add support
7446 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7447
7448 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7449
7450 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7451 for fondamental pascal 'char' type.
7452
7453 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7454
7455 * p-lang.h (is_pascal_string_type): Declaration changed,
7456 new sixth argument of type char ** added.
7457 * p-lang.c (is_pascal_string_type): Implementation
7458 changed. Args length_pos, length_size, string_pos, char_size
7459 can now be NULL. New argument arrayname set to the field
7460 name of the char array. Return value set to char array
7461 field index plus one.
7462 * p-valprint.c (pascal_val_print): Adapt to new declaration of
7463 is_pascal_string_type function.
7464
7465 2002-05-02 Andrew Cagney <cagney@redhat.com>
7466
7467 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7468 <cagney@redhat.com> change.
7469 * gdbarch.c: Regenerate.
7470
7471 2002-05-02 Andrew Cagney <cagney@redhat.com>
7472
7473 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7474 before probing for a new one. Detect errorenous gdbarch_init
7475 functions.
7476 * gdbarch.c: Regenerate.
7477
7478 2002-05-01 Andrew Cagney <cagney@redhat.com>
7479
7480 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7481 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7482 * config/v850/tm-v850.h: Ditto. Update copyright.
7483
7484 2002-04-30 Andrew Cagney <ac131313@redhat.com>
7485
7486 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7487 current_gdbarch.
7488
7489 2002-04-30 Michael Snyder <msnyder@redhat.com>
7490
7491 * arm-tdep.c: Whitespace clean-ups.
7492 (arm_skip_prologue): Fix thinko; two lines
7493 should have been removed as part of 4/24 change.
7494
7495 2002-04-30 Kevin Buettner <kevinb@redhat.com>
7496
7497 * rs6000-tdep.c: Added comment describing how fpscr register
7498 numbers were chosen.
7499
7500 2002-04-30 Michael Snyder <msnyder@redhat.com>
7501
7502 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7503
7504 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7505
7506 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7507 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7508 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7509
7510 2002-04-29 Kevin Buettner <kevinb@redhat.com>
7511
7512 From Louis Hamilton <hamilton@redhat.com>:
7513 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7514 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7515 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7516 not bfd-private xcoff data, to determine wordsize.
7517 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7518
7519 2002-04-29 Andrew Cagney <ac131313@redhat.com>
7520
7521 GDB 5.2 released from 5.2 branch.
7522
7523 2002-04-29 Michal Ludvig <mludvig@suse.cz>
7524
7525 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7526 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7527 (x86_64_register_info_table): Added comments with register numbers.
7528
7529 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7530
7531 * rs6000-tdep.c (rs6000_extract_return_value,
7532 rs6000_store_return_value): Handle returning vectors.
7533 (rs6000_gdbarch_init): Use
7534 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7535 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7536 New function.
7537 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7538 vectors.
7539 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7540 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7541
7542 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7543
7544 * hpread.c (hpread_psymtab_to_symtab_1,
7545 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7546 with fprintf_unfiltered (gdb_stderr,...).
7547
7548 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7549
7550 * remote-array.c (printf_monitor, write_monitor,
7551 array_insert_breakpoint, array_remove_breakpoint ):
7552 Replace fprintf (stderr,...
7553 with fprintf_unfiltered (gdb_stderr,....
7554 * remote-es.c: Likewise.
7555 * remote-os9k.c: Likewise.
7556 * remote-st.c: Likewise.
7557
7558 2002-04-28 Andreas Schwab <schwab@suse.de>
7559
7560 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7561 linux-proc.o and gcore.o.
7562
7563 2002-04-26 Michal Ludvig <mludvig@suse.cz>
7564
7565 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7566 code without frame pointers.
7567
7568 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7569
7570 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7571 ON_STACK is needed.
7572
7573 2002-04-26 Ben Elliston <bje@redhat.com>
7574
7575 * target.c (do_xfer_memory): Correct reference to the new option
7576 "trust-readonly-sections".
7577
7578 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
7579
7580 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7581 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7582 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7583 vectors.
7584 (read_array_type): Record the fact that this array type is really a
7585 vector (i.e. are passed in by value).
7586
7587 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7588
7589 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7590 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7591 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7592 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7593 * alpha-linux-tdep.c: Include frame.h.
7594 (alpha_linux_sigcontext_addr): New function.
7595 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7596 alpha_linux_sigcontext_addr.
7597 * alpha-osf1-tdep.c: Include gdbcore.h.
7598 (alpha_osf1_sigcontext_addr): New function.
7599 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7600 alpha_osf1_sigcontext_addr.
7601 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7602 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7603
7604 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7605
7606 * stack.c (selected_frame_level):
7607 (select_frame): Do not set selected_frame_level.
7608 * frame.h (selected_frame_level): Delete declaration.
7609
7610 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7611
7612 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7613 convert_from_func_ptr-addr when AIX / PowerOpen.
7614
7615 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7616
7617 * valops.c (hand_function_call): Call
7618 generic_save_call_dummy_addr.
7619 * frame.h (generic_save_call_dummy_addr): Declare.
7620 * blockframe.c (struct dummy_frame): Add fields call_lo and
7621 call_hi.
7622 (generic_find_dummy_frame): Check for PC in range call_lo to
7623 call_hi instead of entry_point_address.
7624 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7625 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7626 (generic_save_call_dummy_addr): New function.
7627
7628 2002-04-24 David S. Miller <davem@redhat.com>
7629
7630 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7631 sparc_skip_prologue.
7632 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7633 information to find prologue when possible.
7634 (sparc_prologue_frameless_p): Call examine_prologue directly.
7635 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7636 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7637 second argument.
7638 (SKIP_PROLOGUE): Likewise.
7639
7640 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7641
7642 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7643 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7644 indicate that the condition it was testing is always true.
7645 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7646 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7647 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7648
7649 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7650
7651 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7652 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7653 tdep->jb_pc and tdep->jb_elt_size.
7654 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7655 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7656 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7657 * alpha-nat.c (get_longjmp_target): Remove.
7658 (JB_ELEMENT_SIZE): Ditto.
7659 (JB_PC): Ditto.
7660 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7661 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7662 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7663 to alpha_get_longjmp_target.
7664 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7665 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7666 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7667
7668 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7669
7670 * README: Update to GDB 5.2.
7671
7672 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7673
7674 * gdbarch.sh (LC_ALL): Set to `c'.
7675
7676 2002-04-25 Theodore A. Roth <troth@verinet.com>
7677
7678 * avr-tdep.c: Ran through gdb_indent.sh.
7679
7680 2002-04-25 Theodore A. Roth <troth@verinet.com>
7681
7682 * MAINTAINERS: Add myself as AVR maintainer.
7683 * NEWS: Note new target avr.
7684
7685 2002-04-25 Theodore A. Roth <troth@verinet.com>
7686
7687 * Makefile.in: Add support for AVR target.
7688 * configure.tgt: Add support for AVR target.
7689 * avr-tdep.c: New file
7690 * config/avr/avr.mt: New file.
7691
7692 2002-04-25 Theodore A. Roth <troth@verinet.com>
7693
7694 * MAINTAINERS: Add myself to write-after-approval.
7695
7696 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7697
7698 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7699 with fprintf_unfiltered (gdb_stderr,....
7700
7701 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7702
7703 Fix PR gdb/508.
7704 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7705
7706 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7707
7708 * p-exp.y: Also use new prev_lexptr variable
7709 to improve error reporting. Based on Michael Snyder
7710 2002-04-24 dated patch to c-exp.y.
7711
7712 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7713
7714 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7715 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7716 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7717 to 0.
7718 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7719 and struct value.
7720 (FUNCTION_START_OFFSET): Remove.
7721 (BREAKPOINT): Ditto.
7722
7723 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7724
7725 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7726 * NEWS: Ditto.
7727
7728 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7729
7730 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7731 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7732 alpha_linux_pc_in_sigtramp.
7733 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7734 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7735 alpha_osf1_pc_in_sigtramp.
7736 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7737 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7738 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7739 alphafbsd_pc_in_sigtramp.
7740 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7741 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7742 alphanbsd_pc_in_sigtramp.
7743 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7744 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7745
7746 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7747
7748 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7749
7750 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7751
7752 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7753 alphanbsd-tdep.c.
7754 (alphanbsd-nat.o): New dependency list.
7755 (alphanbsd-tdep.o): Ditto.
7756 * NEWS: Note new native NetBSD/alpha configuration.
7757 * alphanbsd-nat.c: New file.
7758 * alphanbsd-tdep.c: Ditto.
7759 * configure.host (alpha*-*-netbsd*): New host.
7760 * configure.tgt (alpha*-*-netbsd*): New target.
7761 * config/alpha/nbsd.mh: New file.
7762 * config/alpha/nbsd.mt: Ditto.
7763 * config/alpha/nm-nbsd.h: Ditto.
7764 * config/alpha/tm-nbsd.h: Ditto.
7765
7766 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7767
7768 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7769 (alpha-osf1-tdep.o): New dependency list.
7770 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7771 and skip_sigtramp_frame members.
7772 * alpha-linux-tdep.c: Include gdbcore.h.
7773 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7774 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7775 * alpha-osf1-tdep.c: New file.
7776 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7777 alpha-osf1-dep.c.
7778 (alpha_frame_past_sigtramp_frame): New function.
7779 (alpha_dynamic_sigtramp_offset): Ditto.
7780 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7781 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7782 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7783 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7784 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7785 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7786 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7787 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7788 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7789 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7790 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7791 to find_solib_trampoline_target.
7792 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7793 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7794 (SKIP_TRAMPOLINE_CODE): Remove.
7795 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7796 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7797 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7798 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7799 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7800 (PROC_SIGTRAMP_MAGIC): Ditto.
7801 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7802 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7803 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7804 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7805 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7806
7807 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7808
7809 * NEWS: Note that Alpha targets are now multi-arch.
7810
7811 2002-04-24 Michael Snyder <msnyder@redhat.com>
7812
7813 * parser-defs.h (prev_lexptr): New external variable.
7814 * parse.c (parse_exp_1): Set prev_lexptr to null before
7815 calling the language-specific parser.
7816 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7817 (yyerror): Use prev_lexptr in error reporting.
7818
7819 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
7820
7821 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7822 * gregset.h: If FILL_FPXREGSET is defined, provide
7823 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7824 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7825 is defined, call fill_fpxregset.
7826
7827 2002-04-24 Roland McGrath <roland@frob.com>
7828
7829 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7830 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7831 (supply_gregset, supply_fpregset): New functions.
7832
7833 * gnu-nat.c (gnu_find_memory_regions): New function.
7834 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7835 (gnu_xfer_memory): Add a cast.
7836
7837 2002-04-24 Michael Snyder <msnyder@redhat.com>
7838
7839 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
7840 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7841 of argument regs ("str r(0123), [r11, #-nn"]).
7842 (arm_skip_prologue): Better handling for frameless functions.
7843 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7844 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7845
7846 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7847
7848 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7849 NUM_PSEUDO_REGS can be used.
7850
7851 2002-04-24 Andrew Cagney <ac131313@redhat.com>
7852
7853 * arch-utils.h: Update copyright.
7854
7855 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7856 * gdbarch.h, gdbarch.c: Re-generate.
7857
7858 * inferior.h (IN_SIGTRAMP): Delete definition.
7859 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7860 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7861
7862 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7863 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7864 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7865 (find_proc_framesize): Ditto.
7866 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7867 (alpha_init_extra_frame_info): Ditto.
7868 * infrun.c (handle_inferior_event): Ditto.
7869 (handle_inferior_event): Ditto.
7870 (check_sigtramp2): Ditto.
7871 * blockframe.c (create_new_frame): Ditto.
7872 (get_prev_frame): Ditto.
7873 * ppc-linux-tdep.c: Update comments.
7874 * i386-linux-tdep.c: Update comments.
7875 * breakpoint.c (bpstat_what): Update comment.
7876
7877 2002-04-24 David S. Miller <davem@redhat.com>
7878
7879 * i960-tdep.c (register_in_window_p): New function.
7880 (i960_find_saved_register): Use it instead of
7881 REGISTER_IN_WINDOW_P.
7882 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7883
7884 * symtab.h (find_stab_function_addr): Kill extern.
7885 * minsyms.c (find_stab_function_addr): Remove from here...
7886 * dbxread.c: ... to here, and mark it static.
7887
7888 2002-04-20 David S. Miller <davem@redhat.com>
7889
7890 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7891 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7892
7893 2002-04-21 David S. Miller <davem@redhat.com>
7894
7895 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7896 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7897 (vx_write_register): Likewise.
7898
7899 2002-04-23 J. Brobecker <brobecker@gnat.com>
7900
7901 * source.c (is_regular_file): New function.
7902 (openp): Check wether file to open is a regular file
7903 to avoid opening directories.
7904
7905 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7906
7907 * findvar.c (extract_signed_integer): Cast printf argument
7908 to suppress format warning.
7909 (extract_unsigned_integer): Likewise.
7910 * infcmd.c (registers_info): Likewise.
7911 * top.c (get_prompt_1): Likewise.
7912 * valops.c (value_assign): Likewise.
7913 * valprint.c (print_decimal): Likewise.
7914
7915 2002-04-22 H.J. Lu (hjl@gnu.org)
7916
7917 * c-exp.y (typebase): Support
7918
7919 [long|long long|short] [signed|unsigned] [int|]
7920
7921 and
7922
7923 signed [long|long long|short] int
7924
7925 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7926
7927 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7928 and vax-tdep.h.
7929 * vax-tdep.h: New file.
7930 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7931 Make several routines static.
7932 (vax_get_saved_register): New function.
7933 (vax_gdbarch_init): New function.
7934 (_initialize_vax_tdep): Register vax_gdbarch_init.
7935 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7936 Remove macros now under the control of gdbarch.
7937
7938 2002-04-22 Michael Snyder <msnyder@redhat.com>
7939
7940 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7941 Some whitespace and coding standards tweaks.
7942
7943 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7944
7945 * vax-tdep.c: Include regcache.h.
7946 (vax_call_dummy_words): New.
7947 (sizeof_vax_call_dummy_words): New.
7948 (vax_fix_call_dummy): New function.
7949 (vax_saved_pc_after_call): Ditto.
7950 * config/vax/tm-vax.h: Don't include regcache.h.
7951 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7952 (CALL_DUMMY): Remove.
7953 (CALL_DUMMY_WORDS): Define.
7954 (SIZEOF_CALL_DUMMY_WORDS): Define.
7955 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7956
7957 2002-04-18 Michael Snyder <msnyder@redhat.com>
7958
7959 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7960
7961 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7962
7963 * vax-tdep.c (vax_frame_chain): New function.
7964 (vax_push_dummy_frame): Ditto.
7965 (vax_pop_frame): Ditto.
7966 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7967 (FRAMELESS_FUNCTION_INVOCATION): Use
7968 generic_frameless_function_invocation_not.
7969 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7970 (POP_FRAME): Use vax_pop_frame.
7971
7972 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7973
7974 * vax-tdep.c (vax_store_struct_return): New function.
7975 (vax_extract_return_value): Ditto.
7976 (vax_store_return_value): Ditto.
7977 (vax_extract_struct_value_address): Ditto.
7978 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7979 vax_store_struct_return.
7980 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7981 (STORE_RETURN_VALUE): Use vax_store_return_value.
7982 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7983
7984 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7985
7986 * vax-tdep.c (vax_frame_saved_pc): New function.
7987 (vax_frame_args_address_correct): Ditto.
7988 (vax_frame_args_address): Ditto.
7989 (vax_frame_locals_address): Ditto.
7990 (vax_frame_num_args): Move code to be in proximity to
7991 other frame-related functions.
7992 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7993 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7994 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7995 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7996 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7997
7998 2002-04-22 H.J. Lu (hjl@gnu.org)
7999
8000 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
8001 includedir.
8002
8003 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8004
8005 * vax-tdep.c (vax_frame_init_saved_regs): New function.
8006 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
8007 (FRAME_INIT_SAVED_REGS): New macro.
8008
8009 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8010
8011 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
8012
8013 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8014
8015 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
8016 where needed.
8017 (fetch_osf_core_registers): Likewise.
8018 (supply_gregset): Likewise.
8019
8020 2002-04-22 J. Brobecker <brobecker@gnat.com>
8021
8022 * symfile.h (get_section_index): Define.
8023 * symfile.c (get_section_index): New function.
8024 * mdebugread.c (SC_IS_SBSS): New macro.
8025 (SC_IS_BSS): Return true for the scBss storage class only, as
8026 the scSBss storage class refers to the .sbss section.
8027 (parse_partial_symbols): Discard the symbols which associated
8028 section does not exist.
8029 Make sure to use the .sbss section index for symbols which
8030 storage class is scBss, rather than using the .bss section index.
8031
8032 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8033
8034 * vax-tdep.c: Update copyright years.
8035 (vax_register_name): New function.
8036 (vax_register_byte): Ditto.
8037 (vax_register_raw_size): Ditto.
8038 (vax_register_virtual_size): Ditto.
8039 (vax_register_virtual_type): Ditto.
8040 * config/vax/tm-vax.h: Update copyright years.
8041 (REGISTER_NAMES): Remove.
8042 (REGISTER_NAME): Define.
8043 (REGISTER_BYTE): Use vax_register_byte.
8044 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
8045 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
8046 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
8047
8048 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8049
8050 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
8051 declaration
8052 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
8053
8054 2002-04-21 David S. Miller <davem@redhat.com>
8055
8056 * arch-utils.c (generic_prologue_frameless_p): Kill
8057 SKIP_PROLOGUE_FRAMELESS_P code.
8058 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8059 references.
8060 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
8061 * arc-tdep.c (arc_prologue_frameless_p): Implement.
8062 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8063 references.
8064 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
8065 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
8066 (sparc_gdbarch_init): Pass it to
8067 set_gdbarch_prologue_frameless_p.
8068
8069 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8070
8071 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
8072 (alphabsd-nat.o): New dependency list.
8073
8074 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8075
8076 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8077 alphafbsd-tdep.c.
8078 (alpha-linux-tdep.o): New dependency list.
8079 (alphafbsd-tdep.o): Likewise.
8080
8081 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8082
8083 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
8084 to here...
8085 * alpha-tdep.c: ...from here.
8086 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8087
8088 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8089
8090 * config/alpha/tm-alpha.h: Move alpha_software_single_step
8091 prototype from here...
8092 * alpha-tdep.h: ...to here.
8093
8094 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8095
8096 * frame.h (selected_frame_level): Document as deprecated.
8097 (frame_relative_level): Declare.
8098 * stack.c (frame_relative_level): New function.
8099 (selected_frame_level): Document as deprecated.
8100 (select_frame): Do not set the selected_frame_level.
8101
8102 * stack.c (frame_info, record_selected_frame): Update.
8103 (frame_command, current_frame_command): Update.
8104 (up_silently_base, up_command, down_silently_base): Update.
8105 (down_command): Update.
8106 * inflow.c (kill_command): Update.
8107 * tracepoint.c (finish_tfind_command): Update.
8108 * corelow.c (core_open): Update.
8109 * thread.c (info_threads_command): Update.
8110 (do_captured_thread_select): Update.
8111 * infcmd.c (finish_command): Update.
8112 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8113
8114 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8115
8116 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8117
8118 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8119
8120 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8121 type const.
8122
8123 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8124
8125 * alphafbsd-tdep.c: Update copyright years. Include
8126 alpha-tdep.h.
8127 (alphafbsd_use_struct_convention): Make static.
8128 (alphafbsd_init_abi): New function.
8129 (_initialize_alphafbsd_tdep): New function.
8130 * config/alpha/tm-fbsd.h: Update copyright years.
8131 (USE_STRUCT_CONVENTION): Remove.
8132
8133 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8134
8135 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8136 an Alpha ABI variant.
8137 (alpha_abi_handler_list): Declare.
8138 (alpha_gdbarch_register_os_abi): New function.
8139 (alpha_gdbarch_init): Give registered ABI variant handlers a
8140 chance to tweak the gdbarch once we have set up defaults.
8141 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8142
8143 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8144
8145 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8146 to standard_coerce_float_to_double.
8147 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8148
8149 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8150
8151 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8152 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8153 from gdbarch_tdep rather than a constant.
8154 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8155 the default text address for all Alpha Unix ABIs.
8156 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8157 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8158
8159 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8160
8161 * alpha-tdep.h: New file. Includes several Alpha target constants
8162 taken from...
8163 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8164 let gdbarch deal with.
8165 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8166 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8167 to dependency list.
8168 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8169 Alpha target register names.
8170 * alphabsd-nat.c: Likewise.
8171 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8172 Alpha target register names. Make serveral routines static.
8173 (alpha_get_saved_register): New function.
8174 (alpha_abi_names): New.
8175 (process_note_abi_tag_sections): New function.
8176 (get_elfosabi): New function.
8177 (alpha_gdbarch_init): New function.
8178 (alpha_dump_tdep): New function.
8179 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8180
8181 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8182
8183 * frame.c (find_saved_register): Delete #ifdef
8184 HAVE_REGISTER_WINDOWS code.
8185 * config/sparc/tm-sparc.h: Update comments.
8186 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8187
8188 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8189
8190 * i960-tdep.c (i960_find_saved_register): New function.
8191 (i960_get_saved_register): New function.
8192 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8193 (i960_get_saved_register): Declare.
8194 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8195
8196 2002-04-20 David S. Miller <davem@redhat.com>
8197
8198 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8199
8200 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8201
8202 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8203 instead of NUM_PSEUDO_REGS.
8204
8205 2002-04-20 David S. Miller <davem@redhat.com>
8206
8207 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8208 GDB_MULTI_ARCH_PARTIAL
8209 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8210 define, let tm-sp64.h do it.
8211
8212 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8213
8214 * frame.c (find_saved_register): Avoid a NULL pointer
8215 dereference and actually walk the frame list.
8216
8217 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8218
8219 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8220 sorted in most most-recent-used order. Document.
8221 * gdbarch.h, gdbarch.c: Regenerate.
8222
8223 2002-04-19 Andrew Cagney <ac131313@redhat.com>
8224
8225 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8226 instead of ->prev.
8227 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8228 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8229 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8230 instead of ->prev.
8231
8232 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
8233
8234 Fix PR gdb/471.
8235 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8236 (build_builtin_type_vec128): Ditto.
8237 (append_composite_type_field): Fix calculation of type length in
8238 union case.
8239
8240 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8241
8242 * config/djgpp/README: Update.
8243
8244 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8245 compiler warnings.
8246
8247 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8248
8249 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8250 (alpha_setup_arbitrary_frame): ...to this.
8251 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8252 for alpha_setup_arbitrary_frame.
8253
8254 2002-04-18 Andrew Cagney <cagney@redhat.com>
8255
8256 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8257 * gdbarch.h, gdbarch.c: Regenerate.
8258
8259 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8260 * target.h (memory_breakpoint_from_pc): Update declaration.
8261 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8262
8263 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8264 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8265 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8266 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8267 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8268 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8269 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8270 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8271 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8272 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8273 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8274 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8275
8276 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8277 const pointer.
8278 * monitor.c (monitor_insert_breakpoint): Ditto.
8279 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8280
8281 * config/mcore/tm-mcore.h: Update copyright.
8282 * mem-break.c: Ditto.
8283 * xstormy16-tdep.c: Ditto.
8284
8285 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8286
8287 * p-exp.y: Add precedence rule for '^' token.
8288 This removes the shift/reduce conflicts.
8289 Remove the comment concerning these shift/reduce conflicts.
8290
8291 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
8292
8293 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8294 (registers_powerpc_nofp): New register set for processors
8295 without floating point unit.
8296
8297 2002-04-18 David S. Miller <davem@redhat.com>
8298
8299 * MAINTAINERS: Add myself to write-after-approval.
8300
8301 2002-04-17 Michael Snyder <msnyder@redhat.com>
8302
8303 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8304
8305 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8306
8307 * rs6000-tdep.c (frame_initial_stack_address): Use
8308 frame_register_read to read the alloca_reg.
8309
8310 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8311
8312 * frame.c (find_saved_register): Find saved registers in the next
8313 not prev frame.
8314 Fix PR gdb/365.
8315
8316 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8317
8318 * gdbarch.sh (LANG): Set to ``c''.
8319
8320 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8321
8322 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8323
8324 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8325
8326 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8327 Update copyright.
8328
8329 * hpread.c (hpread_get_lntt): Add declaration.
8330 Also fix PR gdb/391.
8331
8332 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8333
8334 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8335 * aclocal.m4, configure: Re-generate.
8336 Fix PR gdb/391.
8337
8338 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8339
8340 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8341 instead of tm_print_insn.
8342
8343 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8344
8345 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8346
8347 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8348
8349 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8350 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8351 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8352
8353 2002-04-12 Don Howard <dhoward@redhat.com>
8354
8355 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8356 max_user_call_depth.
8357 (init_cmd_lists): Initialize the new value;
8358 * cli/cli-script.c (execute_user_command): Limit the call depth of
8359 user defined commands. This avoids a core-dump when user commands
8360 are infinitly recursive.
8361
8362 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8363
8364 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8365 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8366 from tdep struct instead of DEFAULT_LR_SAVE.
8367 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8368 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8369 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8370
8371 2002-04-12 Michael Snyder <msnyder@redhat.com>
8372
8373 * Remote.c: Spelling fix.
8374 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8375 If no symbol found for "sbrk", try "_sbrk".
8376 (make_output_phdrs): Use bfd_section_name.
8377 (gcore_copy_callback): Use bfd_section_name.
8378 * eval.c: Indentation fix-ups.
8379 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8380 in case it gets applied to an address that is already
8381 in the instruction space.
8382 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8383 * symfile.c: Fix indentation, long lines.
8384 * source.c: White space fix-up.
8385
8386 2002-04-12 Andrew Cagney <cagney@redhat.com>
8387
8388 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8389 * frame.c (frame_register_read): New function. Return non-zero on
8390 success.
8391 (read_relative_register_raw_bytes_for_frame): Delete.
8392 (read_relative_register_raw_bytes): Delete.
8393 * frame.h (frame_register_read): Declare.
8394 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8395 * sh-tdep.c: Ditto.
8396 * infcmd.c (do_registers_info): Ditto.
8397 * hppa-tdep.c: Ditto.
8398 * rs6000-tdep.c: Ditto.
8399 * h8500-tdep.c: Ditto.
8400 * mips-tdep.c: Ditto.
8401 * h8300-tdep.c: Ditto.
8402 * z8k-tdep.c: Ditto.
8403
8404 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8405
8406 From Jimi X <jimix@watson.ibm.com>:
8407 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8408 64-bit SysV ABI.
8409
8410 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8411
8412 From Jimi X <jimix@watson.ibm.com>:
8413 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8414 bfd info.
8415
8416 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8417
8418 From Jimi X <jimix@watson.ibm.com>:
8419 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8420 register sets for these processor variants.
8421
8422 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
8423
8424 * regformats/reg-ppc.dat: Support FPSCR.
8425
8426 2002-04-11 Kevin Buettner <kevinb@redhat.com>
8427
8428 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8429 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8430 Add fpscr as an invalid/unfetchable register.
8431 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8432 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8433 (fill_fpregset): Add support for register fpscr.
8434 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8435 (fill_gregset): Account for the fact that register ``mq'' might
8436 not exist.
8437 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8438 (registers_power): Add fpscr to register set at slot 71.
8439 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8440 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8441
8442 2002-04-11 Michael Snyder <msnyder@redhat.com>
8443
8444 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8445 * configure: Regenerate.
8446 * config.in: Regenerate.
8447 * acconfig.h: Add define for _SYSCALL32.
8448 * core-sol2.c: Remove #define _SYSCALL32.
8449 * solib-legacy.c: Remove #define _SYSCALL32.
8450
8451 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8452
8453 * stack.c (select_frame): Cleanup internal error message, do not
8454 use %p.
8455
8456 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8457
8458 * stack.c (select_frame): Check that selected_frame and the
8459 specified level are as expected.
8460 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8461 Update copyright.
8462 * frame.h (struct frame_info): Add field `level'. Update
8463 copyright.
8464 Work-in-progress PR gdb/464.
8465
8466 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8467
8468 * maint.c (maint_print_section_info): Rename print_section_info.
8469 (print_bfd_section_info, print_objfile_section_info): Update.
8470 * inferior.h (struct gdbarch): Add opaque declaration.
8471 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8472 * gdbarch.h: Regenerate.
8473
8474 2002-04-10 Michal Ludvig <mludvig@suse.cz>
8475
8476 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8477 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8478 (kernel_u_size): Added.
8479 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8480 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8481
8482 2002-04-04 Jim Ingham <jingham@apple.com>
8483
8484 * valarith.c (find_size_for_pointer_math): New function, either returns
8485 the size for a pointer's target, returns 1 for void *, or errors for
8486 incomplete types.
8487 (value_add, value_sub): use find_size_for_pointer_math.
8488
8489 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8490
8491 * linux-low.c (linux_look_up_symbols): New hook.
8492 (linux_target_ops): Add linux_look_up_symbols.
8493 * remote-utils.c (decode_address): New function.
8494 (look_up_one_symbol): New function.
8495 * server.c (handle_query): Call target look_up_symbols hook.
8496 * server.h (look_up_one_symbol): Add prototype.
8497 * target.h (struct target_ops): Add look_up_symbols hook.
8498
8499 2002-04-09 Andrew Cagney <ac131313@redhat.com>
8500
8501 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8502 override FP_REGNUM with frame->fp. Update copyright.
8503 * parse.c (num_std_regs, std_regs): Delete.
8504 (target_map_name_to_register): Do not search std_regs. Update
8505 function description.
8506 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8507 declarations. Update copyright.
8508 Fix PR gdb/251.
8509
8510 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8511
8512 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8513 after the last symbol in a block.
8514
8515 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8516
8517 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8518 is non zero as a found symbol.
8519
8520 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8521
8522 * findvar.c: Include "builtin-regs.h".
8523 (value_of_register): Call value_of_builtin_reg when applicable.
8524 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8525 (target_map_name_to_register): Call
8526 builtin_reg_map_name_to_regnum.
8527 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8528 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8529 (builtin_regs_h): Define.
8530 (builtin-regs.o): New target.
8531 (findvar.o): Add $(builtin_regs_h).
8532 * builtin-regs.c, builtin-regs.h: New files.
8533 * std-regs.c: New file.
8534 Partial fix for PR gdb/251.
8535
8536 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8537
8538 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8539 it's no longer required.
8540
8541 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8542
8543 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8544
8545 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8546
8547 From Jimi X <jimix@watson.ibm.com>:
8548 * rs6000-tdep.c (rs6000_software_single_step): Use
8549 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8550 and size. Use target_insert_breakpoint() and
8551 target_remove_breakpoint() to insert and remove breakpoints
8552 instead of explicit memory reads and writes.
8553
8554 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8555
8556 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8557 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8558 ELF_OBJECT_FORMAT ifdef.
8559
8560 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8561
8562 From Jimi X <jimix@watson.ibm.com>:
8563 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8564
8565 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8566
8567 From Jimi X <jimix@watson.ibm.com>:
8568 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8569 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8570
8571 2002-04-07 Mark Kettenis <kettenis@gnu.org>
8572
8573 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8574 s/asprintf/xasprintf/.
8575 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8576
8577 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8578
8579 I believe Jeff Law denies responsability for this one:
8580 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8581 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8582 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8583 Work-around for PR gdb/366.
8584
8585 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8586
8587 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8588 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8589 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8590
8591 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8592
8593 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8594 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8595 information.
8596
8597 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8598
8599 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8600 maintainer.
8601
8602 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8603
8604 * README (Reporting Bugs in GDB): Document the bug web page as the
8605 prefered way of submitting bugs.
8606 Fix PR gdb/402.
8607
8608 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8609
8610 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8611 -1. Update comment.
8612 * gdbarch.h, gdbarch.c: Re-generate.
8613
8614 2002-04-07 Andreas Schwab <schwab@suse.de>
8615
8616 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8617 buffer to regcache_collect.
8618
8619 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8620
8621 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8622 * gdbarch.c, gdbarch.h: Re-generate.
8623
8624 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8625
8626 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8627 declaration. Fix -Werror.
8628
8629 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
8630
8631 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8632 * gdbarch.c: Regenerate.
8633
8634 2002-04-05 Michael Snyder <msnyder@redhat.com>
8635
8636 * breakpoint.c (clear_command): Rewrite middle section to
8637 combine two loops with identical control conditions.
8638 Add a cleanup to eliminate a memory leak.
8639 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8640
8641 2002-04-05 H.J. Lu (hjl@gnu.org)
8642
8643 * solib-svr4.c (bkpt_names): Add "__start".
8644
8645 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8646
8647 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8648 as test for 64 bit target.
8649
8650 2002-04-05 Andrew Cagney <ac131313@redhat.com>
8651
8652 * h8500-tdep.c (h8500_write_fp): Delete function.
8653 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8654 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8655 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8656 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8657 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8658 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8659 (s390_write_fp):
8660 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8661 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8662 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8663 (d10v_write_fp): Delete function.
8664 * inferior.h (write_fp, generic_target_write_fp): Delete
8665 declarations.
8666 * regcache.c (generic_target_write_fp): Delete function.
8667 (write_fp): Delete function.
8668 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8669 * gdbarch.h, gdbarch.c: Regenerate.
8670 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8671 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8672 (sparc64_write_fp): Delete declaration.
8673 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8674 (h8500_write_fp): Delete declaration.
8675
8676 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8677
8678 * sparc-tdep.c (sparc64_write_fp): Delete.
8679 (sparc_push_dummy_frame): Replace write_fp call with code to store
8680 the FP directly.
8681 (sparc_gdbarch_init): Do not initialize write_fp.
8682
8683 2002-04-05 Kevin Buettner <kevinb@redhat.com>
8684
8685 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8686 clause.
8687
8688 2002-03-29 Jim Blandy <jimb@redhat.com>
8689
8690 * stack.c (get_selected_block): Add new argument `addr_in_block',
8691 used to return the exact code address we used to select the block,
8692 not just the block.
8693 * blockframe.c (get_frame_block, get_current_block): Same.
8694 * frame.h (get_frame_block, get_current_block,
8695 get_selected_block): Update declarations.
8696 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8697 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8698
8699 2002-04-05 Michael Snyder <msnyder@redhat.com>
8700
8701 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8702 warning message.
8703
8704 2002-04-05 J. Brobecker <brobecker@gnat.com>
8705
8706 * utils.c (xfullpath): New function.
8707 * defs.h (xfullpath): Add declaration.
8708 * source.c (openp): Use xfullpath in place of gdb_realpath to
8709 avoid resolving the basename part of filenames when the
8710 associated file is a symbolic link. This fixes a potential
8711 inconsistency between the filenames known to GDB and the
8712 filenames it prints in the annotations.
8713 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8714 to be able to match a filename with either the real filename, or
8715 the name of any symbolic link to this file.
8716 (lookup_partial_symtab): Ditto.
8717
8718 2002-04-04 Michael Snyder <msnyder@redhat.com>
8719
8720 * breakpoint.c: Add support for hardware breakpoints in overlays.
8721 (overlay_events_enabled): New state variable.
8722 (insert_breakpoints): Use overlay_events_enabled to decide
8723 whether to attempt to set a breakpoint at the overlay load addr.
8724 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8725 (remove_breakpoint): Use overlay_events_enabled to decide
8726 whether breakpoints need to be removed from overlay load addr.
8727 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8728 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8729 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8730 disable_overlay_breakpoints): Update overlay_events_enabled.
8731
8732 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
8733
8734 * dwarf2read.c (struct function_range): New.
8735 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8736 (check_cu_functions): New.
8737 (read_file_scope): Initialize global function lists.
8738 Call dwarf_decode_line after processing children.
8739 (read_func_scope): Add to global function list.
8740 (dwarf_decode_lines): Call check_cu_functions everywhere
8741 record_line is called. Call record_line with a linenumber
8742 of 0 to mark sequence ends.
8743
8744 2002-04-04 Michal Ludvig <mludvig@suse.cz>
8745
8746 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8747 change sync with glibc.
8748
8749 2002-04-03 Jim Blandy <jimb@redhat.com>
8750
8751 * configure.in: Call AC_C_INLINE.
8752 * configure: Regenerated.
8753
8754 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
8755
8756 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8757 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8758
8759 2002-03-31 Mark Kettenis <kettenis@gnu.org>
8760
8761 * NEWS: Mention gcore support on FreeBSD/i386.
8762
8763 * fbsd-proc.c: New file.
8764 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8765 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8766
8767 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8768 while statement.
8769
8770 2002-03-29 Jim Blandy <jimb@redhat.com>
8771
8772 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8773 unescaped newlines in string literals, but newer ones don't. So
8774 escape them.
8775
8776 2002-03-26 Michael Snyder <msnyder@redhat.com>
8777 Andrew Cagney <cagney@redhat.com>
8778
8779 * cli/cli-dump.c: New file. Dump memory to file,
8780 restore file to memory.
8781 * cli/cli-dump.h: New file.
8782 * Makefile.in: Add rules, dependencies for cli-dump.o.
8783 * NEWS: Mention new commands.
8784
8785 2002-03-28 Michael Snyder <msnyder@redhat.com>
8786
8787 * symfile.c (symbol_file_add): Move test for null symbols to later.
8788
8789 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8790
8791 From veksler at il.ibm.com:
8792 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8793 the xstrduped original path.
8794 Fix PR gdb/417.
8795
8796 2002-03-27 Michael Snyder <msnyder@redhat.com>
8797
8798 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8799 * infcmd.c (_initialize_infcmd): Ditto.
8800 * language.c (_initialize_language): Ditto.
8801 * symfile.c (_initialize_symfile): Ditto.
8802 * top.c (_init_main): Ditto.
8803 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8804
8805 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
8806
8807 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8808 vector registers handling.
8809 (skip_prologue): Handle new AltiVec instructions. Fill in new
8810 fields of frame data.
8811 (frame_get_saved_regs): Fill in information for AltiVec registers.
8812
8813 2002-03-27 Jim Blandy <jimb@redhat.com>
8814
8815 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8816 a function; leave this macro here to invoke that function.
8817 (symbol_init_mangled_name): Declaration for that function.
8818 * symtab.c (symbol_init_mangled_name): New function.
8819
8820 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8821
8822 * valarith.c: Replace strerror with safe_strerror.
8823 * tracepoint.c: Ditto.
8824 * lin-lwp.c: Ditto.
8825 * go32-nat.c: Ditto.
8826 * inflow.c: Ditto.
8827 * gnu-nat.c: Ditto.
8828
8829 2002-03-27 Andreas Schwab <schwab@suse.de>
8830
8831 * event-top.c (command_line_handler): Remove useless if.
8832
8833 2002-03-27 Andreas Jaeger <aj@suse.de>
8834
8835 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8836 comment.
8837
8838 2002-03-27 Michal Ludvig <mludvig@suse.cz>
8839
8840 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8841 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8842 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8843 (x86_64_linux_dr_get_status, supply_gregset),
8844 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8845 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8846 (x86_64_register_info_table): Add.
8847 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8848 (x86_64_register_raw_size, x86_64_register_virtual_type),
8849 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8850 general x86_64_register_info_table.
8851 (i386_gdbarch_init): gdbarch_register_bytes is now set
8852 dynamicaly during initialization.
8853 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8854 * gdbserver/linux-x86-64-low.c: Ditto.
8855
8856 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8857
8858 * gdbserver/server.c (main): Call target_signal_to_host_p
8859 and target_signal_to_host on signals received from the remote.
8860 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8861 target_signal_from_host on signals sent to the remote.
8862 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8863 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8864
8865 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8866
8867 * signals/signals.c: Include "server.h" in gdbserver build.
8868 (target_signal_from_name): Don't use STREQ.
8869 (_initialize_signals): Likewise. Don't include function in
8870 gdbserver build.
8871
8872 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8873
8874 * signals.c: Moved to...
8875 * signals/signals.c: Here.
8876 * Makefile (signals.o): Update.
8877
8878 2002-03-26 Jeff Law (law@redhat.com)
8879
8880 * somread.c (som_symtab_read): Remove some commented out code and
8881 updated related comments. Do not set the minimal symbol table to
8882 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8883 in a dynamic executable.
8884 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8885 where we are unable to find the minimal symbol for the given
8886 PC value.
8887
8888 2002-03-25 Jeff Law (law@redhat.com)
8889
8890 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8891
8892 2002-03-25 Michal Ludvig <mludvig@suse.cz>
8893
8894 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8895
8896 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8897
8898 * command.h: Update copyright.
8899 (struct cmd_list_element): Replace definition with opaque
8900 declaration.
8901 (enum cmd_types): Document that it will eventually be moved to
8902 cli/cli-decode.h
8903 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8904 (MALLOCED_REPLACEMENT): Delete macro.
8905 * Makefile.in (cli_decode_h): Add $(command_h).
8906 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8907 * top.c: Include "cli/cli-decode.h".
8908 * completer.c: Include "cli/cli-decode.h".
8909 * maint.c: Include "cli/cli-decode.h".
8910 * cli/cli-decode.h: Include "command.h".
8911 (enum command_class): Delete.
8912 (enum cmd_types): Comment out.
8913 (enum cmd_auto_boolean): Delete.
8914 (enum var_types): Delete.
8915
8916 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8917
8918 * cli/cli-decode.c: Include "gdb_assert.h".
8919 (add_set_or_show_cmd): New static function.
8920 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8921 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8922 all fields, such as func, from the set command.
8923
8924 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8925
8926 * MAINTAINERS (sh-elf): Change warning flag to -w.
8927
8928 2002-03-23 Andrew Cagney <cagney@redhat.com>
8929
8930 * defs.h (error): Add printf format attribute.
8931 * thread-db.c (thread_from_lwp): Fix error format string.
8932 * stack.c (parse_frame_specification): Ditto.
8933 * cli/cli-decode.c (undef_cmd_error): Ditto.
8934 * scm-lang.c (scm_lookup_name): Ditto.
8935 * tracepoint.c (trace_error): Ditto.
8936 * remote-utils.c (usage): Ditto.
8937 * remote.c (compare_sections_command): Ditto.
8938 Fix PR gdb/328.
8939
8940 2002-03-22 Andrew Cagney <ac131313@redhat.com>
8941
8942 * gdbtypes.c (append_composite_type_field): New function.
8943 (init_composite_type): New function.
8944 * gdbtypes.h (append_composite_type_field): Declare.
8945 (init_composite_type): Ditto.
8946
8947 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
8948
8949 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
8950 function.
8951 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8952 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8953 structure returning convention for SYSV ABI case, but not
8954 for GNU/Linux, FreeBSD, or NetBSD.
8955
8956 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
8957
8958 * symtab.h (lookup_block_symbol): Add mangled_name argument
8959 to prototype.
8960
8961 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8962 with new mangled_name argument.
8963 * linespec.c (decode_line_1): Likewise.
8964 * valops (value_of_this): Likewise.
8965 * symtab.c (lookup_transparent_type): Likewise.
8966 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8967 (lookup_symbol): If we are given a mangled name, pass it down
8968 to lookup_symbol_aux.
8969 (lookup_block_symbol): If we are given a mangled name to check
8970 against, only return symbols which match it.
8971
8972 2002-03-22 Christopher Faylor <cgf@redhat.com>
8973
8974 * win32-nat.c (child_create_inferior): Check for proper shell to use
8975 here, in case the user changes it on the fly.
8976 (_initialize_inftarg): Remove shell path considerations.
8977
8978 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
8979
8980 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8981 for gdbarch_max_register_raw_size and max_register_virtual_size.
8982 Adjust copyright year.
8983
8984 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
8985
8986 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8987 in a function to cover the entire beginning of the function
8988 as well if it does not already.
8989
8990 2002-03-21 Tom Rix <trix@redhat.com>
8991
8992 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8993 (rs6000_ptrace64): Renamed from ptrace64.
8994
8995 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8996
8997 * gdbserver/remote-utils.c (remote_open): Don't call
8998 getprotobyname, we're all using TCP here so just use
8999 IPPROTO_TCP.
9000 * gdbserver/gdbreplay.c (remote_open): Ditto.
9001
9002 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9003
9004 * regcache.c (_initialize_regcache): No need to call
9005 build_regcache() at this time; it gets called whenever
9006 the gdbarch changes.
9007
9008 2002-03-20 David O'Brien <obrien@FreeBSD.org>
9009
9010 * sparc-nat.c: Include sys/param.h where possible.
9011
9012 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
9013
9014 Fix PR gdb/422.
9015 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
9016 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
9017 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
9018 complex types.
9019 * stabsread.c (rs6000_builtin_type): Likewise.
9020 (read_sun_floating_type): Likewise.
9021
9022 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9023
9024 * stabsread.c (read_member_functions): Remove skip code for duplicate
9025 constructor/destructor methods. Use standard parsing for these
9026 methods and just do not chain them to the list of methods after
9027 parsing.
9028
9029 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
9030
9031 * coffread.c: Remove redundant static declarations. Replace
9032 occurrences of `PTR' with `void *'.
9033 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
9034 * top.h (quit_cover): Likewise.
9035 * defs.h (catch_errors): Likewise.
9036
9037 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9038
9039 * defs.h (XMALLOC): Define.
9040 * gdb-events.sh (XMALLOC): Delete macro.
9041 * gdb-events.c, gdb-events.h: Regenerate.
9042 * gdbarch.sh (XMALLOC): Delete macro.
9043 * gdbarch.c: Regenerate.
9044 * serial.c (XMALLOC): Delete macro.
9045 * ui-file.c (XMALLOC): Ditto.
9046 * ser-unix.h (XMALLOC): Ditto.
9047 * sh-tdep.c (XMALLOC): Ditto.
9048 * ui-out.c (XMALLOC): Ditto.
9049 * utils.c (XMALLOC): Ditto.
9050 * i386-tdep.c (XMALLOC): Ditto.
9051 * gdb-events.c (XMALLOC): Ditto.
9052 * d10v-tdep.c (XMALLOC): Ditto.
9053 * cli-out.c (XMALLOC): Ditto.
9054
9055 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
9056 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
9057 * ui-file.c, ui-out.c: Ditto.
9058
9059 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9060
9061 * command.h (struct cmd_list_element): Add field context.
9062 (set_cmd_context, get_cmd_context): Declare.
9063 * cli/cli-decode.h: Ditto.
9064 * cli/cli-decode.c (get_cmd_context): New function.
9065 (set_cmd_context): New function.
9066 (add_cmd): Initialize context.
9067 Part of fixing PR gdb/145 and PR gdb/146.
9068
9069 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9070
9071 * cli/cli-decode.c (cmd_type): New function.
9072 * command.h (cmd_type): Declare.
9073 * infrun.c (set_schedlock_func): Call function cmd_type.
9074 * kod.c (kod_set_os): Call cmd_type.
9075 * cris-tdep.c (cris_version_update): Use function cmd_type.
9076 (cris_mode_update, cris_abi_update): Ditto.
9077
9078 * command.h: (execute_cmd_post_hook): Declare.
9079 (execute_cmd_pre_hook): Declare.
9080 * cli/cli-script.c (clear_hook_in_cleanup): New function.
9081 (execute_cmd_post_hook, execute_cmd_pre_hook): New
9082 functions. Execute pre/post hook while ensuring that afterwords
9083 hook_in is cleared.
9084 * top.c (execute_command): Use execute_cmd_post_hook, and
9085 execute_cmd_pre_hook to execute pre/post commands.
9086 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
9087 hook_stop_stub.
9088 (hook_stop_stub): Call execute_cmd_pre_hook.
9089
9090 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9091
9092 * kod.c (kod_set_os): Revert previous change. Is called by ``info
9093 set'' and this leads to a core dump. Move xstrdup of
9094 operating_system to after check that it is not NULL.
9095
9096 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9097
9098 * kod.c (kod_set_os): Remove unnecessary check that
9099 ``command->type'' is set_cmd.
9100
9101 * valprint.c (set_input_radix): Use input_radix.
9102 (set_output_radix): Use output_radix.
9103 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9104 isn't reverted.
9105
9106 2002-03-16 Andrew Cagney <ac131313@redhat.com>
9107
9108 * value.h (struct value): Delete field ``substring_addr''. Change
9109 aligner fields to force_doublest_align, force_longest_align,
9110 force_core_addr_align and force_pointer_aligh.
9111
9112 * value.h (struct value): Fix typo in above change.
9113
9114 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9115
9116 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9117 to fix internal_error from ``maintenance print architecture''.
9118
9119 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9120
9121 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9122 for gcc versions after gcc-2.8.1.
9123
9124 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9125
9126 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9127 for method resolution. Restore adjustment of ``this'' pointer after
9128 calling value_struct_elt, which was accidentally removed during the
9129 HP merge.
9130
9131 2002-03-15 Andrew Cagney <ac131313@redhat.com>
9132
9133 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9134 value_of_register.
9135 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9136 get_saved_register.
9137 * value.h (value_of_register): Update.
9138
9139 2002-03-14 Richard Henderson <rth@redhat.com>
9140
9141 * configure.in: Detect declaration for canonicalize_file_name.
9142 * utils.c (canonicalize_file_name): Declare, if needed.
9143 (gdb_realpath): Prefer realpath if available and usable.
9144 * config.in, configure: Rebuild.
9145
9146 2002-03-14 Richard Henderson <rth@redhat.com>
9147
9148 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9149 a constant array bound.
9150
9151 * MAINTAINERS: Add myself to write-after-approval.
9152
9153 2002-03-14 Michael Snyder <msnyder@redhat.com>
9154
9155 * symfile.c (syms_from_objfile): Return immediately if no syms.
9156 (symbol_file_add): Return immediately if no syms.
9157 (find_sym_fns): Return immediately if no syms.
9158
9159 2002-03-13 Michal Ludvig <mludvig@suse.cz>
9160
9161 * gdbserver/remote-util.c (remote_open): Print remote-side's
9162 IP address when remote debugging over the network.
9163
9164 2002-03-12 David O'Brien <obrien@FreeBSD.org>
9165
9166 * config/sparc/fbsd.mh: Fix copyright.
9167 * config/sparc/fbsd.mt: Likewise.
9168
9169 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
9170
9171 * MAINTAINERS: Fix typo in name of gdb warnings option.
9172 (x86-64): Fix formating so that this can be parsed by awk.
9173
9174 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9175
9176 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9177 * defs.h: Include "gdb/signals.h".
9178 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9179
9180 2002-03-10 Michal Ludvig <mludvig@suse.cz>
9181
9182 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
9183 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
9184 from x86-64-tdep.h
9185
9186 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9187 Don Howard <dhoward@redhat.com>
9188
9189 * mips-tdep.c (ST0_FR): Define.
9190 (mips2_fp_compat): New function, temporarily disabled.
9191 (mips_read_fp_register_single): New function.
9192 (mips_read_fp_register_double): New function.
9193 (mips_print_register): Use them.
9194 (do_fp_register_row): Likewise.
9195
9196 2002-03-09 Andrew Cagney <ac131313@redhat.com>
9197
9198 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9199 approval''.
9200
9201 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9202
9203 * stabsread.c (read_member_functions): Fix is_stub test for
9204 static member functions, improve comment.
9205
9206 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
9207
9208 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9209 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9210 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9211 commands that set boolean values.
9212 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9213 (arm_rdi_resume): Always initialize PC.
9214 (arm_rdi_open): Don't use rslt as a boolean.
9215 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9216 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9217 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9218 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9219
9220 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
9221
9222 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9223 * configure: Rebuilt.
9224
9225 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9226
9227 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9228 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9229
9230 2002-03-06 Andrew Cagney <ac131313@redhat.com>
9231
9232 * cli/cli-decode.c (set_cmd_completer): New function.
9233 * command.h (set_cmd_completer): Declare.
9234 * cli/cli-decode.h (set_cmd_completer): Ditto.
9235
9236 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9237 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9238 * win32-nat.c (_initialize_inftarg): Ditto.
9239 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9240 * proc-api.c (_initialize_proc_api): Ditto.
9241 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9242 * source.c (_initialize_source): Ditto.
9243 * exec.c (_initialize_exec): Ditto.
9244 * solib.c (_initialize_solib): Ditto.
9245 * top.c (init_main): Ditto.
9246 * tracepoint.c (_initialize_tracepoint): Ditto.
9247 * symfile.c (_initialize_symfile): Ditto.
9248 * printcmd.c (_initialize_printcmd): Ditto.
9249 * infcmd.c (_initialize_infcmd): Ditto.
9250 * corefile.c (_initialize_core): Ditto.
9251
9252 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9253
9254 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9255
9256 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9257
9258 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9259
9260 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9261
9262 * NEWS: Update headings, 5.2 has branched.
9263
9264 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
9265
9266 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9267 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9268 (register_addr, REGISTER_RAW_SIZE): Likewise.
9269 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9270 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9271
9272 2002-03-03 Michal Ludvig <mludvig@suse.cz>
9273
9274 * MAINTAINERS (x86-64): Add myself.
9275 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9276 changed value_ptr -> struct value *
9277
9278 2002-03-01 David O'Brien <obrien@FreeBSD.org>
9279
9280 * configure.host (sparc64-*-freebsd): Add.
9281 * configure.tgt: Likewise.
9282 * config/sparc/fbsd.mh: New file.
9283 * config/sparc/fbsd.mt: Likewise.
9284 * config/sparc/nm-fbsd.h: Likewise.
9285 * config/sparc/tm-fbsd.h: Likewise.
9286
9287 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
9288
9289 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9290 regformats/reg-s390x.dat.
9291
9292 2002-03-01 Andrew Cagney <ac131313@redhat.com>
9293
9294 * utils.c: Add FIXME explaining true/false problem.
9295
9296 2002-02-28 Andrew Cagney <ac131313@redhat.com>
9297
9298 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9299
9300 2002-02-28 Michael Chastain <mec@shout.net>
9301
9302 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9303
9304 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
9305
9306 * gdbserver/linux-s390-low.c: New file.
9307 * regformats/reg-s390.dat: New file.
9308 * regformats/reg-s390x.dat: New file.
9309 * gdbserver/configure.srv: Add S/390.
9310 * gdbserver/Makefile.in: Add S/390.
9311 * configure.tgt: Enable gdbserver for S/390.
9312
9313 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9314
9315 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9316 first line of the doc string for "info dos", except at the end of
9317 the sentence, since the short help stops at the first period.
9318
9319 2002-02-28 Jason Merrill <jason@redhat.com>
9320
9321 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9322
9323 2002-02-27 Fred Fish <fnf@redhat.com>
9324
9325 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9326 comment (dumy -> dummy).
9327
9328 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9329
9330 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9331
9332 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
9333
9334 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9335
9336 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9337
9338 * gdbserver/acconfig.h: New file.
9339 * gdbserver/i387-fp.c: New file.
9340 * gdbserver/i387-fp.h: New file.
9341 * gdbserver/linux-x86-64.c: New file.
9342 * regformats/reg-x86-64.dat: New file.
9343 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9344 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9345 * gdbserver/configure.in: Add support for regsets.
9346 * gdbserver/config.in: Regenerate.
9347 * gdbserver/configure: Regenerate.
9348 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9349 * gdbserver/linux-low.h: New file.
9350 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9351 for regsets.
9352 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9353 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9354 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9355 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9356 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9357 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9358 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9359 "i387-fp.h". Add PTRACE_GETREGS and friends.
9360 * gdbserver/regcache.c (supply_register): New function.
9361 (supply_register_by_name): New function.
9362 (collect_register): New function.
9363 (collect_register_by_name): New function.
9364
9365 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9366
9367 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9368 (config.status): Add configure.srv dependency.
9369 (server_h): Add config.h dependency.
9370
9371 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9372
9373 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9374 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9375 * gdbserver/configure.srv: Change i386-*-linux* to use
9376 reg-i386-linux.o.
9377
9378 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9379
9380 * x86-64-tdep.c: Re-indent. Update copyright date.
9381
9382 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9383
9384 From Michal Ludvig <mludvig@suse.cz>:
9385 * x86-64-tdep.c (value.h): Delete.
9386 (gdb_assert.h): Include.
9387 (x86_64_register_convert_to_virtual,
9388 x86_64_register_convert_to_raw ): Add check which lets only
9389 floating-point values to be converted.
9390 (value_push): Delete.
9391 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9392 (i386_gdbarch_init): Number of register_bytes fixed.
9393
9394 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9395
9396 * MAINTAINERS: Add x86-64 target.
9397
9398 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9399
9400 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9401 * osfsolib.c (solib_map_sections): Ditto.
9402 * irix5-nat.c (solib_map_sections): Ditto.
9403 * corelow.c (gdb_check_format): Ditto.
9404 * symfile.c (symfile_bfd_open): Ditto.
9405 * solib.c (solib_map_sections): Ditto.
9406 Fix PR gdb/354.
9407
9408 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9409
9410 * remote.c (_initialize_remote): By default, disable ``e'' and
9411 ``E'' step out-of-range packets.
9412
9413 2002-02-26 Andreas Schwab <schwab@suse.de>
9414
9415 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9416 m68k_linux_frame_saved_pc.
9417 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9418 in_sigtramp.
9419 (SIGCONTEXT_PC_OFFSET): Remove.
9420 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9421 m68k_linux_sigtramp_saved_pc): New functions.
9422 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9423 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9424 (UCONTEXT_PC_OFFSET): Define.
9425 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9426 non-RT and RT signal trampolines.
9427
9428 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
9429
9430 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9431 (TARGET_NBPG, STACK_END_ADDR): Delete
9432 (VARIABLES_INSIDE_BLOCK): Delete.
9433
9434 2002-02-25 Andrew Cagney <ac131313@redhat.com>
9435
9436 * utils.c (perror_with_name): Make string parameter constant.
9437 (print_sys_errmsg): Ditto.
9438 (query): Ditto.
9439 * defs.h (perror_with_name): Update.
9440 (print_sys_errmsg): Update.
9441 (query): Update.
9442
9443 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
9444
9445 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9446 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9447
9448 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9449
9450 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9451 if it already matches the current architecture from the exec file.
9452 Include arch-utils.h for gdbarch_info_init prototype.
9453 * Makefile.in (rs6000-nat.o): Update dependencies.
9454
9455 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9456
9457 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9458 list of exported variables.
9459
9460 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
9461
9462 * gdbserver/configure.srv: New file.
9463 * gdbserver/configure.in: Use configure.srv instead
9464 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9465 from it.
9466 * gdbserver/configure: Regenerated.
9467 * gdbserver/terminal.h: New file.
9468 * gdbserver/Makefile.in: Update for configure changes. Remove
9469 more unneeded include paths.
9470
9471 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9472
9473 From wiz at danbala:
9474 * config/sparc/tm-sp64.h: Fix grammar and typos.
9475 Fix PR gdb/287.
9476
9477 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9478
9479 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9480 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9481 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9482 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9483 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9484 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9485 * s390-tdep.c: Ditto.
9486 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9487 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9488 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9489 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9490 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9491 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9492 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9493 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9494 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9495 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9496 Fix PR gdb/378.
9497
9498 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9499
9500 * lin-thread.c: Delete file.
9501 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9502 to gdb_proc_service.h.
9503 * configure: Re-generate.
9504
9505 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9506 * serial.c (serial_open): Delete check for "ocd".
9507 Fix PR gdb/349.
9508
9509 * Makefile.in (linux-thread.o): Delete target.
9510 * linux-thread.c: Delete file.
9511
9512 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9513 renamed SH files to be consistent.
9514
9515 * symtab.c (sort_search_symbols): Use xfree.
9516
9517 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9518
9519 * arm-linux-tdep.c (arm_linux_init_abi): Register
9520 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9521 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9522 definition with undef, since we don't want the sysvr4 definition.
9523 (SKIP_TRAMPOLINE_CODE): Likewise.
9524
9525 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9526
9527 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9528
9529 * configure.in: (AC_CHECK_FUNCS) Added test for
9530 canonicalize_file_name Regenerated.
9531 * config.in, configure: Regenerated.
9532 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9533 defined use canonicalize_file_name.
9534
9535 2002-02-23 Michael Chastain <mec@shout.net>
9536
9537 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9538
9539 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9540
9541 * README: Remove references to cygnus.com.
9542 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9543 dot com'' form. Remove references to cygnus.com and sourceware.
9544
9545 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9546
9547 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9548 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9549 1003.1-2001 no longer allows "head -1".
9550 * gdb/Makefile.in (version.c): Likewise.
9551 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9552 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9553 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9554
9555 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9556
9557 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9558 * command.h (cmd_cfunc_eq): Declare.
9559 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9560
9561 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9562 ``struct cmd_list_element *''.
9563 * cli/cli-cmds.c (is_complete_command): Update. Use
9564 cmd_cfunc_eq.
9565 * top.c (execute_command): Pass the command to
9566 is_complete_command.
9567 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9568
9569 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9570
9571 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9572 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9573 architecture defines.
9574 * s390-tdep.c (s390_gdbarch_init): Likewise.
9575
9576 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9577
9578 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9579 (arm_linux_push_arguments): Likewise.
9580 (arm_linux_init_abi): Register them. Also register linux-specific
9581 call_dummy_words.
9582 (find_minsym_and_objfile): Use strcmp, not STREQ.
9583 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9584 (arm_linux_call_dummy_words): Delete declaration.
9585 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9586 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9587 declarations.
9588 (LOWEST_PC): Delete.
9589
9590 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9591
9592 * maint.c (print_section_info): Do not prepend `0x' to filepos
9593 output, it will be handled by local_hex_string_custom.
9594
9595 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9596
9597 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9598 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9599 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9600
9601 2002-02-22 Jim Blandy <jimb@redhat.com>
9602
9603 Indicate that the bcache functions don't change the strings
9604 they're passed.
9605 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9606 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9607
9608 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9609
9610 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9611
9612 2002-02-21 Christopher Faylor <cgf@redhat.com>
9613
9614 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9615 find the complete path to a loaded DLL.
9616
9617 2002-02-21 Fred Fish <fnf@redhat.com>
9618
9619 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9620 that marks the end of the range of a function, enter a line number
9621 entry that has a line number of zero and a PC offset that matches
9622 the end of the function. This starts a range of PC's for which no
9623 line number information is known.
9624 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9625 PC's for which no line number info is found (line number is zero)
9626 then we didn't find any valid line information.
9627 * symtab.h: Document use of zero line number entry.
9628
9629 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
9630
9631 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9632 (have_ptrace_getvrregs): Define for run time checks.
9633 (gdb_vrregset_t): New type for Altivec register handling.
9634 (fetch_register, store_register): Fetch/store altivec register
9635 when needed.
9636 (fetch_altivec_register, store_altivec_register): New functions.
9637 (supply_vrregset, fill_vrregset): New functions.
9638 (fetch_altivec_registers, store_altivec_registers): New functions.
9639 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9640 registers as well.
9641
9642 2002-02-21 Jiri Smid <smid@suse.cz>
9643
9644 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9645
9646 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9647
9648 * Makefile.in (armnbsd-nat.o): Update dependencies.
9649 * armnbsd-nat.c (supply_gregset): New function. Common code to
9650 supply the integer register set.
9651 (supply_fparegset): New function. Similar for FPA registers.
9652 (fetch_regs, fetch_fp_regs): Use them.
9653 (fetch_core_registers): Likewise.
9654 (fetch_elfcore_registers): New function.
9655 (arm_netbsd_elfcore_fns): New core-file type specification.
9656 (_initialize_arm_netbsd_nat): Register it.
9657
9658 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9659
9660 * armnbsd-nat.c: Include gdbcore.h.
9661 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9662 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9663 'void' to declaration, to shut up ARI.
9664 (fetch_core_registers): Make static. Rewrite using supply_register.
9665 (arm_netbsd_core_fns): New core-file type specification.
9666 (_initialize_arm_netbsd_nat): New function.
9667
9668 2002-02-21 Christopher Faylor <cgf@redhat.com>
9669
9670 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9671 value.
9672
9673 2002-02-20 Christopher Faylor <cgf@redhat.com>
9674
9675 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9676 fails.
9677
9678 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9679
9680 * jv-exp.y (parse_number): Change type of implicit longs
9681 to builtin_type_uint64.
9682
9683 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9684
9685 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9686 to be an integer instead of a `union wait'.
9687
9688 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9689
9690 * mips-linux-nat.c: Call the operating system GNU/Linux.
9691 * mips-linux-tdep.c: Likewise.
9692 * mips-tdep.c: Likewise.
9693
9694 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9695
9696 Fix PR gdb/265.
9697 * jv-exp.y (parse_number): Handle 64-bit integers.
9698
9699 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9700
9701 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9702 AC_STDC_HEADERS to AC_HEADER_STDC.
9703 * gdbserver/configure: Regenerated.
9704
9705 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9706
9707 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9708 is defined.
9709 * sparc-tdep.c (get_longjmp_target): Likewise.
9710
9711 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9712
9713 * News: Add news about ARM and Multi-arch. Mention the new target
9714 arm*-*-netbsd*.
9715
9716 2002-02-19 Jim Blandy <jimb@redhat.com>
9717
9718 * stabsread.c (error_type_complaint): Improve error message.
9719
9720 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
9721
9722 * gdbserver/README: Update documentation.
9723 * gdbserver/configure.in: Update configury to match documentation.
9724 * gdbserver/Makefile.in: Likewise.
9725 * gdbserver/configure: Regenerated.
9726 * gdbserver/aclocal.m4: New file, generated by aclocal.
9727 * gdbserver/config.in: New file, generated by autoheader.
9728
9729 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9730
9731 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9732 armnbsd-nat.c.
9733
9734 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9735
9736 * arm-tdep.h (enum arm_float_model): New enum.
9737 (struct gdbarch_tdep): Add fp_model.
9738 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9739 up floating-point conversions until we know the floating-point model
9740 in use by the inferior. Don't complain about being unable to
9741 determine the ABI of the inferior when we don't have one.
9742 (arm_extract_return_value): Support different floating-point models.
9743 (arm_store_return_value): Likewise.
9744 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9745 ARM_FLOAT_SOFT.
9746 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9747
9748 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9749
9750 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9751 of ``current_gdbarch''.
9752
9753 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9754
9755 * armnbsd-nat.c : ANSIfy all function declarations.
9756 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9757 (fetch_inferior_registers): Re-implement in terms of above.
9758 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9759 (store_inferior_registers): Re-implement in terms of above.
9760
9761 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9762
9763 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9764 kernel.
9765 * arm-linux-tdep.c: Likewise.
9766 * config/arm/tm-linux.h: Likewise.
9767
9768 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9769
9770 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9771 * config/arm/nbsd.mt (TM_FILE): Delete.
9772 * config/arm/tm-nbsd.h: Delete.
9773
9774 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9775
9776 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9777 Initialize CALL_DUMMY_LENGTH.
9778
9779 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9780
9781 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9782 function.
9783 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
9784 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
9785 defines one thing and that is incorrect for this port.
9786 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9787
9788 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9789
9790 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9791
9792 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9793
9794 * win32-nat.c (display_selector): New function. Displays information
9795 about the information returned by GetThreadSelectorEntry API function.
9796 (display_selectors): New function. Displays the infomation of
9797 the selector given as argument, or of CS, DS ans FS selectors
9798 if no argument is given.
9799 ( _initialize_inftarg): Add "w32" as info prefix command.
9800 Add "info w32 selector" as command calling display_selectors.
9801
9802 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9803
9804 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9805 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9806 if not defined.
9807
9808 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9809
9810 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9811
9812 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9813
9814 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9815 (arm_fix_call_dummy): Call it.
9816 (arm_call_dummy_breakpoint_offset): Delete.
9817 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9818 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9819
9820 2002-02-18 Andrew Cagney <ac131313@redhat.com>
9821
9822 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9823 Default to func_frame_chain_valid.
9824 * gdbarch.h, gdbarch.c: Re-generate.
9825 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9826
9827 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
9828
9829 * ppc-linux-nat.c: Update copyright.
9830 (fetch_register, store_register): Add tid parameter, don't compute
9831 tid here.
9832 (fetch_ppc_registers, store_ppc_registers): Add tid
9833 parameter. Pass it along to callees.
9834 (fetch_inferior_registers, store_inferior_registers): Compute tid
9835 here, and pass it to calleed functions.
9836 (fill_gregset, supply_fpregset): Clean up formatting.
9837
9838 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9839
9840 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9841 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9842
9843 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9844
9845 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9846 * gdbarch.c gdbarch.h: Regenerate.
9847 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9848 function.
9849 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9850 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9851 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9852
9853 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9854 * arm-tdep.c (arm_get_longjmp_target): New function.
9855 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9856 this to a positive value register arm_get_longjmp_target as the
9857 longjmp handler.
9858 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9859 (arm_linux_init_abi): Set up longjmp description in tdep.
9860 * armnbsd-nat.c (get_longjmp_target): Delete.
9861 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9862 description in tdep.
9863 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9864 (get_longjmp_target): Delete declaration.
9865 (GET_LONGJMP_TARGET): Delete.
9866 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9867 (GET_LONGJMP_TARGET): Delete.
9868
9869 2002-02-17 Kevin Buettner <kevinb@redhat.com>
9870
9871 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9872 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9873 of ``current_gdbarch''.
9874
9875 2002-02-17 Tom Tromey <tromey@redhat.com>
9876
9877 * cli/cli-cmds.c (compare_strings): New function.
9878 (complete_command): Only print each unique item once.
9879 * completer.h (complete_line): Declare.
9880 * completer.c (complete_line): New function.
9881 (line_completion_function): Use it.
9882
9883 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9884
9885 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9886 * gdbarch.h, gdbarch.c: Re-generate.
9887
9888 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9889
9890 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9891
9892 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9893
9894 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9895 * valops.c (value_arg_coerce): Don't take the address of a reference
9896 to convert an argument to a reference.
9897
9898 2002-02-15 Christopher Faylor <cgf@redhat.com>
9899
9900 * win32-nat.c (get_image_name): New function.
9901 (handle_load_dll): Use get_image_name function.
9902 (get_child_debug_event): Avoid registering debug events until possibly
9903 execed process is started.
9904 (child_create_inferior): Allow invocation via shell so that command
9905 line redirection, etc. works ok.
9906 (_initialize_inftarg): Add new command: "set shell" to control whether
9907 a shell is used to start a process.
9908
9909 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9910
9911 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9912 instead of find_register_by_number.
9913 (cannot_store_register): Likewise.
9914
9915 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9916
9917 * dwarf2read.c: Replace fprintf (stderr, ...) by
9918 fprintf_unfiltered (gdb_stderr, ...).
9919
9920 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9921
9922 * gdbserver/gdbserver.1: Document --attach.
9923
9924 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9925
9926 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9927 descriptions.
9928 * arm-tdep.c (arm_default_arm_le_breakpoint)
9929 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9930 (arm_default_thumb_be_breakpoint): New. Initialize them from
9931 traditional breakpoint defines.
9932 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9933 (arm_gdbarch_init): Initialize new breakpoint variables.
9934 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9935 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9936 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9937 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9938 code out to ...
9939 (arm_netbsd_init_abi_common): ... here; new function.
9940 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9941 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9942 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9943 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9944
9945 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9946
9947 * arm-tdep.h (enum arm_abi): New enum.
9948 (struct gdbarch_tdep): New structure.
9949 (LOWEST_PC): Provide a default.
9950 (arm_gdbarch_register_os_abi): Declare new function.
9951 * arm-tdep.c (arm_abi_names): New array.
9952 (process_note_abi_tag_sections): New function.
9953 (get_elfosabi): New function.
9954 (arm_gdbarch_register_os_abi): New function.
9955 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9956 support for that ABI has been built in, then call the appropriate
9957 configuration routine. Use gdbarch_num_regs() to get the number
9958 of registers.
9959 (arm_dump_tdep): New function.
9960 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9961 place-holder functions.
9962 (_initialize_arm_tdep): Register them.
9963 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9964
9965 * armnbsd-tdep.c: New file.
9966 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9967 * config/arm/nbsd.mt (TDEPFILES): Add it.
9968 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9969
9970 * armnbsd-nat.c: Include regcache.h.
9971 * Makefile.in (armnbsd-nat.o): Update dependency list.
9972
9973 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9974
9975 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9976
9977 * gdbserver/Makefile.in: Fix typos in target rules.
9978
9979 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9980
9981 Fix part of PR gdb/267.
9982 * linespec.c (find_methods): Handle constructors specially for now.
9983
9984 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
9985
9986 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9987 handling.
9988 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9989 standard_coerce_float_to_double().
9990
9991 2002-02-14 Christopher Faylor <cgf@redhat.com>
9992
9993 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9994 GDBINIT_FILENAME.
9995
9996 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
9997
9998 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9999 find_variant_by_name, because it confuses the multiarch
10000 framework. Return NULL if there isn't an architecture with the
10001 user supplied name, instead of forcing a different one without
10002 recording the change with the multiarch machinery.
10003 (find_variant_by_name): Delete.
10004
10005 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10006
10007 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
10008 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
10009
10010 2002-02-13 Martin M. Hunt <hunt@redhat.com>
10011
10012 * stack.c (print_frame_info_base): When calling
10013 print_frame_info_listing_hook, set current_source_symtab.
10014
10015 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10016
10017 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
10018 and remove unused $(INCLUDE_DIR).
10019 Add regcache.c to OBS.
10020 Add generated register protocol files to clean target.
10021 Update dependencies for new objects, obsolete old target code.
10022
10023 * gdbserver/linux-low.c: Remove all platform-specific code to
10024 new files. Remove various dead code. Update to use regcache
10025 functionality.
10026 * gdbserver/remote-utils.c (fromhex): Add return statement
10027 to quiet warning.
10028 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
10029 constant.
10030 (input_interrupt): Add integer parameter to match prototype
10031 of a signal handler.
10032 (outreg): Use register_data ().
10033 (prepare_resume_reply): Use gdbserver_expedite_regs.
10034 * gdbserver/server.c (main): Dynamically allocate own_buf because
10035 PBUFSIZ is no longer constant. Use registers_to_string () and
10036 registers_from_string ().
10037 * gdbserver/server.h: No longer include "defs.h". Add prototypes
10038 for error (), fatal (), and warning (). Update definition of
10039 PBUFSIZ to use regcache functionality. Add include guard.
10040 * gdbserver/utils.c (fatal): Add missing ``const''.
10041 (warning): New function.
10042
10043 * regformats/regdat.sh: Include "regcache.h" in generated files.
10044 Provide init_registers () function.
10045 * regformats/regdef.h: Add prototype for set_register_cache ().
10046 Add include guard.
10047
10048 * gdbserver/linux-arm-low.c: New file.
10049 * gdbserver/linux-i386-low.c: New file.
10050 * gdbserver/linux-ia64-low.c: New file.
10051 * gdbserver/linux-m68k-low.c: New file.
10052 * gdbserver/linux-mips-low.c: New file.
10053 * gdbserver/linux-ppc-low.c: New file.
10054 * gdbserver/linux-sh-low.c: New file.
10055
10056 * gdbserver/regcache.c: New file.
10057 * gdbserver/regcache.h: New file.
10058
10059 * gdbserver/low-linux.c: Removed obsolete file.
10060
10061 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10062
10063 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
10064 * config/i386/linux.mt: Likewise.
10065 * config/ia64/linux.mt: Likewise.
10066 * config/m68k/linux.mh: Likewise.
10067 * config/powerpc/linux.mh: Likewise.
10068 * config/mips/linux.mt: Likewise.
10069
10070 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
10071
10072 * config/i386/i386lynx.mh: Mark gdbserver variables
10073 as (currently) obsolete for this target.
10074 * config/i386/nbsd.mt: Likewise.
10075 * config/i386/nbsdelf.mt: Likewise.
10076 * config/m32r/m32r.mt: Likewise.
10077 * config/m68k/m68klynx.mh: Likewise.
10078 * config/m68k/nbsd.mt: Likewise.
10079 * config/m68k/sun3os4.mh: Likewise.
10080 * config/mips/vr5000.mt: Likewise.
10081 * config/ns32k/nbsd.mt: Likewise.
10082 * config/pa/hppabsd.mh: Likewise.
10083 * config/pa/hppaosf.mh: Likewise.
10084 * config/powerpc/nbsd.mt: Likewise.
10085 * config/rs6000/rs6000lynx.mh: Likewise.
10086 * config/s390/s390.mt: Likewise.
10087 * config/s390/s390x.mt: Likewise.
10088 * config/sparc/sparclynx.mh: Likewise.
10089 * config/sparc/sun4os4.mh: Likewise.
10090 * config/i386/x86-64linux.mt: Likewise.
10091 * config/sparc/linux.mh: Likewise.
10092
10093 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10094
10095 * configure.tgt: Configure gdbserver only for known working
10096 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
10097 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
10098 SUBDIRS if it is configured. Update comment for ${nativefile}.
10099 * configure: Regenerated.
10100
10101 2002-02-13 Michael Snyder <msnyder@redhat.com>
10102
10103 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10104
10105 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10106 (default_gcore_mach): Just return 0, work around a problem in bfd.
10107 (default_gcore_target): OK to return NULL if exec_bfd is null.
10108 (make_mem_sec): Use a cast, avoid a warning.
10109
10110 * procfs.c (find_memory_regions_callback): Use a cast instead of
10111 calling host_pointer_to_address (which complains if
10112 sizeof (host pointer) != sizeof (target pointer)).
10113 (procfs_make_note_section): Avoid overflow in psargs string.
10114
10115 * procfs.c (procfs_make_note_section): Make the default
10116 implementation return an error.
10117
10118 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
10119
10120 * procfs.c (procfs_make_note_section): Provide a default definition
10121 (for alpha-dec-osf4.0f). Fix typos.
10122
10123 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
10124
10125 * linux-proc.c: Add include of regcache.h.
10126 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10127
10128 2002-02-13 Andrew Cagney <ac131313@redhat.com>
10129
10130 From 2002-01-18 Greg McGary <greg@mcgary.org>:
10131 * memattr.c (create_mem_region): Disallow useless empty region.
10132 Regions are half-open intervals, so allow [A..B) [B..C) as
10133 non-overlapping.
10134
10135 2002-02-13 Michael Chastain <mec@shout.net>
10136
10137 * defs.h: Kill CONST_PTR.
10138 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10139 * c-lang.c (c_builtin_types): Likewise.
10140 * ch-lang.c (ch_builtin_types): Likewise.
10141 * f-lang.c (f_builtin_types): Likewise.
10142 * language.c (unknown_builtin_types): Likewise.
10143 * m2-lang.c (m2_builtin_types): Likewise.
10144 * p-lang.c (pascal_builtin_types): Likewise.
10145 * scm-lang.c (c_builtin_types): Likewise.
10146
10147 2002-02-13 Keith Seitz <keiths@redhat.com>
10148
10149 * arm-tdep.h (arm_get_next_pc): Add declaration.
10150
10151 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
10152
10153 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10154 with other related struct-returning functions.
10155 (arm_extract_struct_value_address): New function.
10156 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10157 initialize float_format, double_format and long_double_format as
10158 appropriate to the endianness of the target.
10159 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10160 (arm_use_struct_convention): Delete declaration.
10161 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10162
10163 2002-02-13 Keith Seitz <keiths@redhat.com>
10164
10165 * defs.h (core_addr_to_string_nz): New function.
10166
10167 2002-02-13 Mark Kettenis <kettenis@gnu.org>
10168
10169 Apply missing bits of 2002-01-15 patch.
10170 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10171 (fill_fpregset): Use i387_fill_fsave.
10172
10173 2002-02-12 Keith Seitz <keiths@redhat.com>
10174
10175 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10176 (core_addr_to_string_nz): New function.
10177
10178 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10179
10180 * arm-linux-nat.c: Really include arm-tdep.h.
10181 * config/arm/tm-linux.h (struct type, struct value): Declare.
10182
10183 2002-02-11 Michael Snyder <msnyder@redhat.com>
10184
10185 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10186 (gcore section): Ifdef for Solaris and Unixware only.
10187 (procfs_do_thread_registers): Unixware needs one lwpstatus
10188 per thread (not one prstatus or pstatus).
10189 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10190 not over all gdb threads. For unixware, call elfcore_write_pstatus
10191 once before iterating over threads.
10192
10193 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10194
10195 * arm-tdep.h: New file.
10196 * arm-tdep.c: Include arm-tdep.h.
10197 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10198 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10199 (arm_print_float_info, arm_register_type, convert_to_extended)
10200 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10201 (arm_extract_return_value, arm_register_name): Make static.
10202 (arm_software_single_step): Similarly. Fix types in declaration.
10203 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10204 (arm_store_return_value, arm_store_struct_return): New functions.
10205 (arm_gdbarch_init): Register the above functions. Also register
10206 call_dummy_start_offset, sizeof_call_dummy_words,
10207 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10208 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
10209 max_register_virtual_size, register_size. Set up
10210 prologue_cache.saved_regs here, rather than ...
10211 (_initialize_arm_tdep): ... here.
10212 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10213 declarations.
10214 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10215 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10216 (arm_print_float_info, arm_register_type, convert_to_extended)
10217 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10218 (arm_extract_return_value, arm_register_name): Delete declarations.
10219 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10220 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10221 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10222 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10223 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10224 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10225 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10226 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10227 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10228 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10229 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10230 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10231 interface.
10232 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10233 * remote-rdi.c remote-rdp.c: Likewise.
10234 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10235 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10236 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10237 definition.
10238
10239 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10240 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10241 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10242 from non-ARM_ prefixed definitions.
10243 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10244 all uses of above.
10245 * remote-rdi.c remote-rdp.c: Likewise.
10246 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10247
10248 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10249
10250 * arm-tdep.c (arm_frameless_function_invocation)
10251 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10252 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10253 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10254 (arm_pop_frame, arm_get_next_pc): Make static.
10255 (arm_gdbarch_init): Register above in gdbarch structure.
10256 (arm_read_fp): Renamed from arm_target_read_fp.
10257 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10258 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10259 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10260 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10261 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10262 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10263 (arm_pc_is_thumb_dummy): Delete declarations.
10264 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10265 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10266 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10267 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
10268
10269 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
10270
10271 * symtab.c (compare_search_syms): New function.
10272 (sort_search_symbols): New function.
10273 (search_symbols): Sort symbols after searching rather than
10274 before.
10275
10276 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10277
10278 * NEWS: Linux -> GNU/Linux.
10279
10280 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10281
10282 * gdbarch.sh: For for level one methods, disallow a definition
10283 when partially multi-arched. Add comments explaining rationale.
10284 * gdbarch.h: Re-generate.
10285
10286 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10287
10288 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10289 multi-arch partial.
10290
10291 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10292
10293 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10294 field. Use diff -u.
10295 * gdbarch.c: Re-generate.
10296
10297 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10298
10299 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
10300 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10301 partial.
10302
10303 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10304
10305 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10306 multi-arch partial.
10307 (PUSH_ARGUMENTS): Switch to using predefault.
10308 * gdbarch.c: Regenerate.
10309
10310 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10311
10312 * valops.c (PUSH_ARGUMENTS): Delete definition.
10313 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10314 partial. Default to default_push_arguments.
10315 * gdbarch.h, gdbarch.c: Regenerate.
10316
10317 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10318
10319 * defs.h (throw_exception): Rename return_to_top_level. Update
10320 comments.
10321 * utils.c (error_stream, internal_verror, quit): Ditto.
10322 * top.c (throw_exception, catcher): Ditto.
10323 * sparclet-rom.c (sparclet_load): Ditto.
10324 * remote.c (interrupt_query, minitelnet): Ditto.
10325 * remote-sds.c (interrupt_query): Ditto.
10326 * remote-mips.c (mips_error, mips_kill): Ditto.
10327 * ocd.c (interrupt_query): Ditto.
10328 * monitor.c (monitor_interrupt_query): Ditto.
10329 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10330 * target.h: Update comment.
10331
10332 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10333
10334 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10335
10336 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10337 default_double_format.
10338 * gdbarch.h, gdbarch.c: Re-generate.
10339 * findvar.c (floatformat_unknown): Delete variable definition.
10340 * doublest.h (floatformat_unknown): Delete variable declaration.
10341
10342 2002-02-09 Jim Blandy <jimb@redhat.com>
10343
10344 * stabsread.c (read_type): Add code to parse Sun's syntax for
10345 prototyped function types.
10346
10347 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10348
10349 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10350 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10351
10352 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10353
10354 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10355 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10356 now _initialize_xcoffsolib gets called again and overrides the
10357 commands from solib.c in a native configuration.
10358
10359 2002-02-09 Mark Kettenis <kettenis@gnu.org>
10360
10361 * doublest.c (store_typed_floating): Don't try to return a value.
10362 Fixes PR gdb/290.
10363
10364 2002-02-08 Jim Blandy <jimb@redhat.com>
10365
10366 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10367 is prototyped and has no arguments, print its argument list as
10368 `(void)'.
10369
10370 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10371
10372 * MAINTAINERS (write-after-approval): Add myself.
10373 (paper-trail): I've escaped!
10374
10375 2002-02-08 Christopher Faylor <cgf@redhat.com>
10376
10377 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10378 changes.
10379 (_initialize_check_for_gdb_ini): Ditto.
10380
10381 2002-02-08 Martin M. Hunt <hunt@redhat.com>
10382
10383 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10384 xaprintf -> xasprintf.
10385
10386 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10387
10388 * win32-nat.c: Remove use of printf and sprintf functions.
10389
10390 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
10391
10392 * arm-tdep.c (arm_frame_chain_valid): Make static.
10393 (arm_push_arguments): Likewise.
10394 (arm_gdbarch_init): New function.
10395 (_initialize_arm_tdep): Call it.
10396 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10397 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10398 (FRAME_CHAIN_VALID): Delete.
10399 (arm_frame_chain_valid): Delete declaration.
10400 (PUSH_ARGUMENTS): Delete.
10401 (arm_push_arguments): Delete declaration.
10402 (CALL_DUMMY_P): Delete.
10403
10404 2002-02-08 Andrew Cagney <ac131313@redhat.com>
10405 Corinna Vinschen <vinschen@redhat.com>
10406
10407 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10408 on builtin float types.
10409
10410 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
10411
10412 * utils.c: Include <curses.h> before "bfd.h".
10413 * tui/tui-hooks.c: Likewise.
10414 * tui/tui.c: Likewise.
10415 * tui/tuiCommand.c: Likewise.
10416 * tui/tuiData.c: Likewise.
10417 * tui/tuiDataWin.c: Likewise.
10418 * tui/tuiDisassem.c: Likewise.
10419 * tui/tuiGeneralWin.c: Likewise.
10420 * tui/tuiIO.c: Likewise.
10421 * tui/tuiLayout.c: Likewise.
10422 * tui/tuiRegs.c: Likewise.
10423 * tui/tuiSource.c: Likewise.
10424 * tui/tuiSourceWin.c: Likewise.
10425 * tui/tuiStack.c: Likewise.
10426 * tui/tuiWin.c: Likewise.
10427
10428 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
10429
10430 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10431 to include space for pseudoregs as well. Update loops accordingly.
10432 (sh_fp_frame_init_saved_regs): Ditto.
10433 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10434
10435 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10436
10437 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10438 Add Richard Earnshaw to Arm maintainers.
10439
10440 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10441
10442 * defs.h (warning_begin): Delete declaration.
10443
10444 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10445 Delete macro.
10446
10447 2002-02-07 Michael Snyder <msnyder@redhat.com>
10448
10449 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10450 Logic bug, remove misplaced else.
10451
10452 2002-02-07 Klee Dienes <klee@apple.com>
10453
10454 * fork-inferior.c (fork_inferior): Add '!' to the list of
10455 characters that need to be quoted when building a string for the
10456 shell. Quote '!' specifically with a backslash, since CSH chokes
10457 when trying to evaluate "str!str".
10458
10459 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10460
10461 * rdi-share/host.h: Only provide a typedef for bool if it is not
10462 defined.
10463
10464 2002-02-04 Michael Snyder <msnyder@redhat.com>
10465
10466 * breakpoint.h (enum bptype): Add new overlay event bp type.
10467 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10468
10469 * breakpoint.c (create_internal_breakpoint): New function.
10470 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10471 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10472 (create_thread_event_breakpoint): Ditto.
10473 (create_solib_event_breakpoint): Ditto.
10474 (create_overlay_event_breakpoint): New function.
10475 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10476 (update_breakpoints_after_exec): Delete and re-initialize
10477 overlay event breakpoints after an exec. Add FIXME comment
10478 about longjmp breakpoint.
10479 (print_it_typical): Ignore overlay event breakpoints.
10480 (print_one_breakpoint): Ditto.
10481 (mention): Ditto.
10482 (bpstat_what): Do not stop for overlay event breakpoints.
10483 (delete_breakpoint): Don't delete overlay event breakpoints.
10484 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10485 (breakpoint_re_set): Re-create overlay event breakpoint.
10486
10487 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10488 (overlay_manual_command): Disable overlay breakpoints.
10489 (overlay_off_command): Disable overlay breakpoints.
10490
10491 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10492
10493 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10494 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10495 to here from config/tm-arm.h.
10496 (coff_sym_is_thumb): Make static.
10497 (arm_elf_make_msymbol_special): New function.
10498 (arm_coff_make_msymbol_special): New function.
10499 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10500 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10501 (coff_sym_is_thumb): Delete declaration.
10502 (arm_elf_make_msymbol_special): Declare.
10503 (arm_coff_make_msymbol_special): Declare.
10504 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10505 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10506
10507 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10508
10509 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10510
10511 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10512
10513 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10514 * gdbarch.c gdbarch.h: Regenerate.
10515 * arch-utils.c (default_print_float_info): New function.
10516 * arch-utils.h (default_print_float_info): Prototype it.
10517 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10518 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10519 (PRINT_FLOAT_INFO): Document it.
10520
10521 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10522 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10523 (PRINT_FLOAT_INFO): Define.
10524
10525 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10526
10527 * win32-nat.c (_initialize_check_for_gdb_ini):
10528 Add typecast to sprintf argument to suppress a warning.
10529
10530 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10531
10532 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10533 to allow easier handling of pass state.
10534 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10535 that gives exception name and address.
10536 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10537 and set last_sig value to ourstatus->value.sig. Some missing
10538 exceptions added.
10539 (child_continue): Correctly report continue_status.
10540 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10541 TARGET_SIGNAL_0 (new default value).
10542 (child_resume): consider sig argument passed to decide if
10543 the exception should be passed to debuggee or not.
10544
10545 2002-02-05 Michael Snyder <msnyder@redhat.com>
10546
10547 * regcache.c (fetch_register): Call target_fetch_register
10548 only if we don't call FETCH_PSEUDO_REGISTER.
10549 (store_register): Call target_store_register only if we
10550 don't call STORE_PSEUDO_REGISTER.
10551
10552 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
10553
10554 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10555 ELF_MAKE_MSYMBOL_SPECIAL.
10556 * gdbarch.c, gdbarch.h: Regenerate.
10557 * arch-utils.c (default_make_msymbol_special): New function.
10558 * arch-utils.h (default_make_msymbol_special): Export.
10559 * elfread.c (elf_symtab_read): Compile use of
10560 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10561 multiarched.
10562 * coffread.c (coff_symtab_read): Ditto, for
10563 COFF_MAKE_MSYMBOL_SPECIAL.
10564
10565 2002-02-05 Jim Blandy <jimb@redhat.com>
10566
10567 * solib-svr4.c (svr4_truncate_ptr): New function.
10568 (svr4_relocate_section_addresses): Do the address arithmetic with
10569 the appropriate truncation for target addresses, even when
10570 CORE_ADDR is larger than a target address.
10571
10572 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10573
10574 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10575 to (int *).
10576
10577 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10578
10579 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10580 code.
10581
10582 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10583
10584 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10585
10586 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10587
10588 * gdbserver/linux-low.c: Remove unused include files.
10589
10590 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10591
10592 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10593 (read_inferior_memory): Use it.
10594 (write_inferior_memory): Likewise.
10595
10596 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10597
10598 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10599 grubbing through sys_errlist.
10600
10601 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10602
10603 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10604
10605 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10606 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10607
10608 2002-02-04 Andrew Cagney <ac131313@redhat.com>
10609
10610 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10611 (do_sfunc, set_cmd_sfunc): New functions.
10612
10613 * command.h (struct cmd_list_element): Add field func.
10614 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10615 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10616 * cli/cli-decode.h: Ditto.
10617
10618 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10619 (help_all, help_cmd_list): Ditto.
10620 (find_cmd, complete_on_cmdlist): Ditto.
10621 * top.c (execute_command): Ditto.
10622
10623 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10624 function.sfunc.
10625
10626 * infcmd.c (notice_args_read): Fix function signature.
10627
10628 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10629 * cli/cli-decode.c (add_set_cmd): Ditto.
10630 * utils.c (initialize_utils): Ditto.
10631 * maint.c (_initialize_maint_cmds): Ditto.
10632 * infrun.c (_initialize_infrun): Ditto.
10633 * demangle.c (_initialize_demangler): Ditto.
10634 * remote.c (add_packet_config_cmd): Ditto.
10635 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10636 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10637 * proc-api.c (_initialize_proc_api): Ditto.
10638 * kod.c (_initialize_kod): Ditto.
10639 * valprint.c (_initialize_valprint): Ditto.
10640 * top.c (init_main): Ditto.
10641 * infcmd.c (_initialize_infcmd): Ditto.
10642 * corefile.c (_initialize_core): Ditto.
10643 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10644 * arch-utils.c (initialize_current_architecture): Ditto.
10645 (_initialize_gdbarch_utils): Ditto.
10646 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10647
10648 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10649 * wince.c (_initialize_inftarg): Ditto.
10650 * symfile.c (_initialize_symfile): Ditto.
10651 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10652 * language.c (_initialize_language): Ditto.
10653 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10654
10655 2002-02-04 Michael Snyder <msnyder@redhat.com>
10656
10657 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10658
10659 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10660
10661 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10662 Add rules for building the register data files.
10663
10664 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10665
10666 * regformats/regdat.sh: Add braces to the definition of
10667 expedite_regs_${arch}.
10668
10669 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10670
10671 * regformats/regdef.h (struct reg): Add comment describing the
10672 requirements for offset and size fields.
10673
10674 2002-02-04 Andreas Schwab <schwab@suse.de>
10675
10676 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10677 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10678
10679 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
10680
10681 * gdbarch.sh (copyright): Update years in generated header.
10682 (SMASH_TEXT_ADDRESS): Add rule.
10683 * gdbarch.h, gdbarch.c: Re-generate.
10684 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10685 * dbxread.c: Likewise.
10686 * dwarfread.c: Likewise.
10687 * elfread.c: Likewise.
10688 * somread.c: Likewise.
10689
10690 * arm-tdep.c (arm_smash_text_address): New function.
10691 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10692
10693 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10694
10695 Add support for hardware watchpoints on win32 native.
10696 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10697 CONTEXT_DEBUG_REGISTERS.
10698 (dr variable): New variable. Static array containing a local copy
10699 of debug registers.
10700 (debug_registers_changed): New variable. Reflects when debug registers
10701 are changed and need to be written to inferior.
10702 (debug_registers_used): New variable. Reflects when any debug register
10703 was set, used when new threads are created.
10704 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10705 i386-nat code.
10706 (thread_rec): Set dr array if id is the thread of current_event .
10707 (child_continue, child_resume): Change the debug registers for all
10708 threads if debug_registers_changed.
10709 (child_add_thread): Change the debug registers if debug_registers_used.
10710 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10711 Link nm.h to new nm-cygwin.h file.
10712 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10713 of hardware registers.
10714
10715 2002-02-03 Andrew Cagney <ac131313@redhat.com>
10716
10717 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10718 Restore behavour broken by 2002-01-20 Andrew Cagney
10719 <ac131313@redhat.com> IEEE_FLOAT removal.
10720
10721 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10722
10723 * c-valprint.c (c_val_print): Pass a proper valaddr to
10724 cp_print_class_method.
10725 * valops.c (search_struct_method): If there is only one method
10726 and args is NULL, return that method.
10727
10728 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10729
10730 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10731 accessing tag_name directly.
10732
10733 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10734
10735 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10736 of accessing tag_name directly.
10737
10738 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10739
10740 PR gdb/280
10741 * gdbtypes.c (replace_type): New function.
10742 * gdbtypes.h (replace_type): Add prototype.
10743 * stabsread.c (read_type): Use replace_type.
10744
10745 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
10746
10747 * Makefile.in (memattr.o): Add missing dependencies rule.
10748
10749 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10750
10751 * breakpoint.c (break_at_finish_command): Really export.
10752 (break_at_finish_at_depth_command): Ditto.
10753 (tbreak_at_finish_command): Ditto.
10754 * hppa-tdep.c: Include completer.h.
10755 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10756 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10757
10758 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10759
10760 * utils.c (do_write): New function.
10761 (error_stream): Rewrite combining the code from error_begin and
10762 verror.
10763 (verror): Rewrite using error_stream.
10764 (error_begin): Delete function.
10765
10766 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10767
10768 * utils.c (error_begin): Make static.
10769 * defs.h (error_begin): Delete declaration.
10770
10771 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10772 (decode_line_1): Use cplusplus_error instead of error_begin,
10773 cplusplus_hint and return_to_top_level.
10774 * coffread.c (coff_symfile_read): Use error instead of error_begin
10775 and return_to_top_level.
10776 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10777
10778 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10779
10780 * language.h (type_error, range_error): Make string parameter
10781 constant.
10782 * language.c (warning_pre_print): Delete extern declaration.
10783 * dwarfread.c (warning_pre_print): Ditto.
10784 * language.c (type_error, range_error): Rewrite to use verror and
10785 vwarning instead of warning_begin.
10786
10787 2002-02-01 Michael Snyder <msnyder@redhat.com>
10788
10789 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10790 (set_ignore_count): Move misplaced comment back where it belongs.
10791
10792 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10793
10794 * command.h (NO_FUNCTION): Delete macro.
10795 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10796 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10797 * tracepoint.c (_initialize_tracepoint): Ditto.
10798 * cli/cli-decode.c (add_set_cmd): Ditto.
10799 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10800
10801 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10802
10803 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10804 Update ``this'' pointer when calling virtual functions.
10805
10806 2002-02-01 Michael Snyder <msnyder@redhat.com>
10807
10808 * breakpoint.c (create_temp_exception_breakpoint): Delete.
10809 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10810
10811 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10812
10813 * regformats/reg-arm.dat: New file.
10814 * regformats/reg-i386.dat: New file.
10815 * regformats/reg-ia64.dat: New file.
10816 * regformats/reg-m68k.dat: New file.
10817 * regformats/reg-mips.dat: New file.
10818 * regformats/reg-ppc.dat: New file.
10819 * regformats/reg-sh.dat: New file.
10820 * regformats/regdef.h: New file.
10821 * regformats/regdat.sh: New file.
10822
10823 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
10824
10825 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10826 (arm_frame_args_address, arm_frame_locals_address): New functions.
10827 (arm_frame_num_args): New function.
10828 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10829 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10830 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10831
10832 2002-01-31 Michael Snyder <msnyder@redhat.com>
10833
10834 * breakpoint.c (break_at_finish_command): Export.
10835 (break_at_finish_at_depth_command): Export.
10836 (tbreak_at_finish_command): Export.
10837 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
10838 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10839 "txbreak" commands, which are HPPA specific.
10840
10841 * printcmd.c (disassemble_command): Remove an ancient
10842 artifact of an old merge.
10843
10844 * symfile.h (enum overlay_debugging_state):
10845 Define enum constant values for overlay mode.
10846 * symfile.c (overlay_debugging): Use enums instead of literals.
10847 (overlay_is_mapped, overlay_auto_command,
10848 overlay_manual_command): Ditto.
10849
10850 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10851 breakpoint_here_p, breakpoint_inserted_here_p,
10852 breakpoint_thread_match, bpstat_stop_status,
10853 describe_other_breakpoints, check_duplicates, clear_command):
10854 Coding standard fixes.
10855
10856 * target.c (target_xfer_memory): Add spaces, coding standard.
10857 (do_xfer_memory): Add missing line to trust-readonly
10858 code: check bfd SEC_READONLY flag for section.
10859
10860 2002-01-31 Andrew Cagney <ac131313@redhat.com>
10861
10862 * PROBLEMS: Fix typo, 5.1->5.1.1.
10863
10864 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
10865
10866 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10867 data symbols, since we search based on textlow and texthigh.
10868 (find_pc_sect_symtab): Likewise.
10869
10870 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10871
10872 * defs.h (vwarning): Declare.
10873 * utils.c (vwarning): New function.
10874 (warning): Call vwarning.
10875 (warning_begin): Delete function.
10876
10877 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10878 the warning message.
10879 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10880 warning_begin.
10881
10882 2002-01-30 Michael Snyder <msnyder@redhat.com>
10883
10884 * NEWS: Mention "set trust-readonly-sections" command.
10885 Mention generate-core-file command.
10886
10887 2002-01-15 Michael Snyder <msnyder@redhat.com>
10888
10889 * target.c: New command, "set trust-readonly-sections on".
10890 (do_xfer_memory): Honor the suggestion to trust readonly sections
10891 by reading them from the object file instead of from the target.
10892 (initialize_targets): Register command "set trust-readonly-sections".
10893
10894 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10895
10896 * parse.c (target_map_name_to_register): Simplify, search regs and
10897 pseudo-regs using a single loop.
10898
10899 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10900
10901 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10902
10903 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
10904
10905 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10906 * config/i386/i386v42mp.mh: Add i387-nat.o .
10907 * i386v4-nat.c: Include i387-nat.h.
10908 (supply_fpregset): Use i387_supply_fsave.
10909 (fill_fpregset): Use i387_fill_fsave.
10910
10911 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
10912
10913 * arm-tdep.c (arm_call_dummy_words): Define.
10914 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10915 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10916 (CALL_DUMMY_WORDS): Define.
10917 (arm_call_dummy_words): Declare.
10918 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10919 (arm_linux_call_dummy_words): Declare.
10920
10921 2002-01-30 Andreas Schwab <schwab@suse.de>
10922
10923 * m68klinux-nat.c: Fix last change to use regcache_collect
10924 instead of referencing registers[] directly.
10925
10926 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10927
10928 * parse.c (target_map_name_to_register): Delete code wrapped in
10929 #ifdef REGISTER_NAME_ALIAS_HOOK.
10930
10931 2002-01-28 Michael Snyder <msnyder@redhat.com>
10932
10933 * regcache.c (legacy_read_register_gen): Need to be able to
10934 read pseudo-register as well as real register.
10935 (legacy_write_register_gen): Ditto.
10936
10937 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10938
10939 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10940 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10941 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10942 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10943 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10944 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10945 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10946 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10947 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10948 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10949 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10950 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10951 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10952 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10953 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10954 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10955 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10956 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10957 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10958 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10959
10960 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10961
10962 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10963 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10964 (initialize_current_architecture): Update target_byte_order using
10965 information from BFD.
10966 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
10967 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10968
10969 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10970
10971 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10972 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10973
10974 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10975 #ifdef INVALID_FLOAT.
10976 * infcmd.c (do_registers_info): Ditto.
10977 * values.c (unpack_double): Ditto. Add comment.
10978
10979 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10980 already commented out.
10981
10982 2002-01-26 Andreas Schwab <schwab@suse.de>
10983
10984 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10985 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10986 registers and add support for PTRACE_GETREGS.
10987
10988 2002-01-24 Andrew Cagney <ac131313@redhat.com>
10989
10990 GDB 5.1.1 released from 5.1 branch.
10991 * NEWS: Add 5.1.1 news.
10992 * README: Sync with 5.1 branch.
10993
10994 2002-01-23 Fred Fish <fnf@redhat.com>
10995
10996 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10997 stabstring on initial malloc. Reallocing will copy it for us,
10998 if necessary.
10999
11000 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11001
11002 * Makefile.in (hpread_h): Delete.
11003 (HFILES_NO_SRCDIR): Remove hpread.h.
11004 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
11005 (hpread.o): Update dependencies.
11006 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
11007
11008 * hp-psymtab-read.c: Remove file.
11009 * hp-symtab-read.c: Remove file.
11010 * hpread.h: Remove file.
11011
11012 * hpread.c: Merge all contents of hp-psymtab-read.c,
11013 hp-symtab-read.c and hpread.h into this file, as it was prior to
11014 January 1999.
11015
11016 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
11017 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
11018 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
11019 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
11020
11021 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11022
11023 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
11024 fill_gregset): Call gdbarch_tdep() just once, assign result to
11025 variable and use that, instead of calling the function several
11026 times.
11027
11028 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11029
11030 * configure.host: Accept sparcv9 as alias for sparc64.
11031 * configure.tgt: Likewise.
11032
11033 2002-01-22 Kevin Buettner <kevinb@redhat.com>
11034
11035 * solib-aix5.c (build_so_list_from_mapfile)
11036 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
11037 arguments is not reversed.
11038 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
11039 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
11040
11041 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
11042
11043 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
11044 modified version of obsolete sh_fetch_pseudo_register.
11045 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
11046 (sh4_register_read): New function.
11047 (sh_pseudo_register_write): New function. Renamed and modified
11048 version of obsolete sh_store_pseudo_register.
11049 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
11050 (sh4_register_write): New function.
11051 (sh_gdbarch_init): Remove setting of gdbarch function
11052 fetch_pseudo_register and store_pseudo_register. Remove setting of
11053 register_convert_to_raw, register_convert_to_virtual,
11054 register_convertible.
11055 (sh_sh4_register_convertible): Delete. No longer needed. All is
11056 taken care by architecture specific functions
11057 register_read/register_write.
11058 (sh_sh4_register_convert_to_virtual): Make static.
11059 (sh_sh4_register_convert_to_raw): Ditto.
11060
11061 2002-01-22 Andrew Cagney <ac131313@redhat.com>
11062
11063 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
11064 (floatformat_is_nan, floatformat_mantissa): Ditto.
11065
11066 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
11067 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
11068 builtin_type_ieee_double_little,
11069 builtin_type_ieee_double_littlebyte_bigword,
11070 builtin_type_m68881_ext, builtin_type_i960_ext,
11071 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
11072 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
11073 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
11074 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
11075
11076 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
11077
11078 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
11079 parameter. Set frameless flag if it exists and depended of
11080 whether the scanned function is frameless or not.
11081 (xstormy16_skip_prologue): If function is frameless, return
11082 result of xstormy16_scan_prologue().
11083 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
11084 call.
11085
11086 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
11087
11088 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11089 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11090 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11091 sh_sh4_register_byte, sh_sh4_register_raw_size,
11092 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11093 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11094 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11095 sh_store_pseudo_register, sh_do_pseudo_register): Call
11096 gdbarch_tdep() just once, assign result to variable and use that,
11097 instead of calling the function several times.
11098
11099 2002-01-20 Mark Kettenis <kettenis@gnu.org>
11100
11101 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11102 macros instead of LAST_FPU_CTRL_REGNUM.
11103 (store_register): Likewise.
11104
11105 2002-01-21 Jim Blandy <jimb@redhat.com>
11106
11107 * infcmd.c (run_command): Check that the `exec' target layer's BFD
11108 is up-to-date before running the program, not just when a program
11109 exits.
11110
11111 2002-01-21 Fred Fish <fnf@redhat.com>
11112
11113 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11114 when we have found all instructions we are looking for.
11115
11116 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11117
11118 * arm-tdep.c (arm_register_name): New function.
11119 (arm_registers_names): Make static.
11120 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11121 (arm_register_name): Declare.
11122 (REGISTER_NAME): Use it.
11123
11124 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11125 Kevin Buettner <kevinb@redhat.com>
11126
11127 Convert arm targets to new FRAME interface.
11128 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11129 (arm_frame_find_save_regs): Delete.
11130 (arm_frame_init_saved_regs): New.
11131 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11132 Allocate extra_info as required. Convert all uses of fsr.regs
11133 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11134 to use extra_info.
11135 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11136 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11137 (check_prologue_cache, save_prologue_cache): Likewise.
11138 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11139 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11140 (FRAME_FIND_SAVED_REGS): Delete.
11141 (arm_frame_find_saved_regs): Delete prototype.
11142 (arm_frame_init_saved_regs): New prototype.
11143 (FRAME_INIT_SAVED_REGS): Define.
11144
11145 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11146
11147 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11148
11149 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11150
11151 From Jeff Law <law@redhat.com>:
11152 * infttrace.c: Include <sys/pstat.h>.
11153 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11154 exec file if the ttrace equivalent fails.
11155
11156 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11157
11158 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11159 (closeLogFile): Ditto.
11160
11161 2002-01-20 Michael Chastain <mec@shout.net>
11162
11163 * top.c (print_gdb_version): Bump copyright year to 2002.
11164
11165 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11166
11167 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11168 Zannoni and Eli Zaretskii.
11169
11170 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11171
11172 * buildsym.c: Update copyright years.
11173 * c-typeprint.c: Likewise.
11174 * dwarf2read.c: Likewise.
11175 * f-typeprint.c: Likewise.
11176 * gdbtypes.c: Likewise.
11177 * gdbtypes.h: Likewise.
11178 * hp-symtab-read.c: Likewise.
11179 * hpread.c: Likewise.
11180 * mdebugread.c: Likewise.
11181 * p-typeprint.c: Likewise.
11182
11183 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11184
11185 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11186 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11187 byte-order selectable.
11188 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11189 * arch-utils.c: Ditto.
11190 (set_endian): Ditto.
11191 (set_endian_from_file): Ditto.
11192 * gdbserver/low-sim.c (create_inferior): Ditto.
11193 * gdbarch.sh: Ditto.
11194 * gdbarch.h: Re-generate.
11195 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11196 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11197 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11198 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11199 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11200 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11201 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
11202 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11203 macro definition.
11204 * config/mips/tm-wince.h: Remove #undef of macro
11205 TARGET_BYTE_ORDER_SELECTABLE.
11206 * config/sh/tm-wince.h: Ditto.
11207
11208 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11209
11210 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11211 member function fields. Add accessor macro
11212 TYPE_FN_FIELD_ARTIFICIAL.
11213 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11214 * c-typeprint.c (c_type_print_base): Skip artificial member
11215 functions.
11216
11217 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11218
11219 * f-typeprint.c: Delete unused function f_type_print_args.
11220 * p-typeprint.c: Delete unused function pascal_type_print_args.
11221
11222 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11223
11224 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11225 comment. Add ``artificial'' to ``union field_location''.
11226
11227 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11228
11229 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11230 * mdebugread.c (parse_symbol): Likewise.
11231 * stabsread.c (define_symbol): Likewise.
11232 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11233 initializing TYPE_FIELD_BITPOS to n (obsolete).
11234 (hpread_doc_function_type): Likewise.
11235 * hpread.c (hpread_function_type): Likewise.
11236
11237 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11238
11239 * configure.in (host_makefile_frag): Only require a host makefile
11240 fragment when a native build.
11241 * configure: Re-generate.
11242
11243 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11244
11245 * doublest.h (floatformat_from_type): Declare.
11246 * doublest.c (floatformat_from_type): New function.
11247 (convert_typed_floating): Use.
11248
11249 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11250 call to function floatformat_from_type.
11251
11252 * gdbarch.sh (IEEE_FLOAT): Delete.
11253 * gdbarch.h, gdbarch.c: Re-generate.
11254 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11255 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11256 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11257 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11258 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11259 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11260 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11261 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11262 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11263 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11264 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
11265 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11266
11267 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11268 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11269 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11270 * sh-tdep.c (sh_gdbarch_init): Ditto.
11271 * mips-tdep.c (mips_gdbarch_init): Ditto.
11272 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11273 * cris-tdep.c (cris_gdbarch_init): Ditto.
11274
11275 2002-01-20 Jiri Smid <smid@suse.cz>
11276
11277 * configure.host, configure.tgt: Support x86-64.
11278 * NEWS: Note new target x86-64.
11279
11280 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11281 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11282 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11283 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11284 x86-64-linux-nat.o): Fix dependencies.
11285
11286 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11287
11288 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11289 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11290 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11291 * config/sparc/xm-sun4os4.h: Delete file.
11292 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
11293
11294 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11295
11296 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11297 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11298 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11299 * config/i386/i386lynx.mh (XM_FILE): Delete.
11300 * config/rs6000/xm-rs6000ly.h: Delete file.
11301 * config/sparc/xm-sparclynx.h: Delete file.
11302 * config/m68k/xm-m68klynx.h: Delete file.
11303 * config/i386/xm-i386lynx.h: Delete file.
11304 * config/xm-lynx.h: Delete file.
11305 * config/djgpp/fnchange.lst: Update.
11306
11307 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11308
11309 * alpha-tdep.c (alpha_register_byte): New function.
11310 (alpha_register_raw_size): Ditto.
11311 (alpha_register_virtual_size): Ditto.
11312 (alpha_skip_prologue_internal): Renamed from
11313 alpha_skip_prologue.
11314 (alpha_skip_prologue): New version that calls
11315 alpha_skip_prologue_internal.
11316 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11317 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11318 second argument from alpha_skip_prologue.
11319 (REGISTER_BYTE): Use alpha_register_byte.
11320 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11321 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11322 (FRAMELESS_FUNCTION_INVOCATION): Use
11323 generic_frameless_function_invocation_not.
11324 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11325 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11326
11327 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11328
11329 * config/mips/xm-news-mips.h: Delete file.
11330 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11331
11332 * config/m88k/xm-m88k.h: Delete file.
11333 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11334 * config/m88k/xm-delta88v4.h: Ditto.
11335 * config/m88k/xm-delta88.h: Ditto.
11336
11337 * config/alpha/xm-fbsd.h: Delete file.
11338 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11339
11340 * config/sparc/xm-sparc.h: Delete file.
11341 * Makefile.in (xm-sun4os4.h): Delete dependency.
11342 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11343 * config/sparc/xm-sun4os4.h: Ditto.
11344 * config/sparc/xm-linux.h: Ditto.
11345
11346 * config/i386/xm-windows.h: Delete file.
11347
11348 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11349
11350 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11351 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11352
11353 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11354
11355 * alpha-tdep.c (alpha_call_dummy_words): New.
11356 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11357 (CALL_DUMMY_P): Define.
11358 (CALL_DUMMY_WORDS): Define.
11359 (SIZEOF_CALL_DUMMY_WORDS): Define.
11360
11361 2002-01-19 Per Bothner <per@bothner.com>
11362
11363 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11364 isn't NULL, which can happen with some gcj-3.x-produced code.
11365
11366 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11367
11368 * alpha-tdep.c (alpha_register_virtual_type): New function.
11369 (alpha_init_frame_pc_first): Ditto.
11370 (alpha_fix_call_dummy): Ditto.
11371 (alpha_store_struct_return): Ditto.
11372 (alpha_extract_struct_value_address): Ditto.
11373 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11374 alpha_register_virtual_type.
11375 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11376 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11377 alpha_extract_struct_value_address.
11378 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11379 (INIT_FRAME_PC): Use init_frame_pc_noop.
11380 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11381
11382 2002-01-19 Mark Kettenis <kettenis@gnu.org>
11383
11384 * i386gnu-nat.c: Include "i386-tdep.h".
11385 (fetch_fpregs): Simplify code dealing with uninitialized floating
11386 point states such that it doesn't require FP7_REGNUM.
11387
11388 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11389
11390 * alpha-tdep.c (frame_extra_info): New.
11391 (alpha_find_saved_regs): Make static. Use
11392 frame->extra_info.
11393 (alpha_frame_init_saved_regs): New function.
11394 (alpha_frame_saved_pc): Use frame->extra_info.
11395 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11396 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11397 (init_extra_frame_info): Rename to...
11398 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
11399 (alpha_print_extra_frame_info): New function.
11400 (alpha_frame_locals_address): Ditto.
11401 (alpha_frame_args_address): Ditto.
11402 (alpha_pop_frame): Use frame->extra_info.
11403 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11404 alpha_frame_args_address.
11405 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11406 (alpha_find_saved_regs): Remove prototype.
11407 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11408 (EXTRA_FRAME_INFO): Remove.
11409 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11410 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11411
11412 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11413
11414 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11415 (alpha_cannot_fetch_register): Ditto.
11416 (alpha_cannot_store_register): Ditto.
11417 (alpha_register_convertible): Ditto.
11418 (alpha_use_struct_convention): Ditto.
11419 * config/alpha/tm-alpha.h: Update copyright years.
11420 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11421 (INNER_THAN): Use core_addr_lessthan.
11422 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11423 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11424 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11425 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11426 (FRAME_CHAIN): Remove unnecessary cast.
11427
11428 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11429
11430 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11431 obsolete.
11432
11433 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11434
11435 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11436 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11437 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11438 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11439 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11440 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11441 * x86-64-linux-nat.c: Ditto.
11442
11443 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11444
11445 * alpha-tdep.c (alpha_register_name): New function.
11446 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11447 (REGISTER_NAME): Define.
11448
11449 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11450
11451 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11452
11453 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11454
11455 * alpha-tdep.c: Update copyright years.
11456 (alpha_next_pc): New function.
11457 (alpha_software_single_step): Ditto.
11458 * config/alpha/tm-alpha.h: Add prototype for
11459 alpha_software_single_step.
11460
11461 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11462
11463 * alphabsd-nat.c: Update copyright years.
11464 (fill_gregset): Use regcache_collect.
11465 (fill_fpregset): Likewise.
11466 (fetch_inferior_registers): Only fetch integer registers
11467 if requested to do so.
11468 (store_inferior_registers): Only store integer registers
11469 if requested to do so.
11470
11471 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11472
11473 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11474 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11475 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11476 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11477 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11478 * config/arm/linux.mh (XDEPFILES): Delete.
11479 * config/arm/nbsd.mh (XDEPFILES): Delete.
11480 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11481 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11482 * config/i386/i386m3.mh (XDEPFILES): Delete.
11483 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11484 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11485 * config/i386/fbsd.mh (XDEPFILES): Delete.
11486 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11487 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11488 * config/i386/i386v4.mh (XDEPFILES): Delete.
11489 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11490 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11491 * config/i386/i386aix.mh (XDEPFILES): Delete.
11492 * config/i386/go32.mh (XDEPFILES): Delete.
11493 * config/i386/cygwin.mh (XDEPFILES): Delete.
11494 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11495 * config/i386/i386mach.mh (XDEPFILES): Delete.
11496 * config/i386/i386v32.mh (XDEPFILES): Delete.
11497 * config/i386/linux.mh (XDEPFILES): Delete.
11498 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11499 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11500 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11501 * config/i386/i386sco.mh (XDEPFILES): Delete.
11502 * config/i386/i386v.mh (XDEPFILES): Delete.
11503 * config/i386/nbsd.mh (XDEPFILES): Delete.
11504 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11505 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11506 * config/i386/symmetry.mh (XDEPFILES): Delete.
11507 * config/i386/obsd.mh (XDEPFILES): Delete.
11508 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11509 * config/ia64/linux.mh (XDEPFILES): Delete.
11510 * config/ia64/aix.mh (XDEPFILES): Delete.
11511 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11512 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11513 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11514 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11515 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11516 * config/m68k/linux.mh (XDEPFILES): Delete.
11517 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11518 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11519 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11520 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11521 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11522 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11523 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11524 * config/m88k/delta88.mh (XDEPFILES): Delete.
11525 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11526 * config/m88k/m88k.mh (XDEPFILES): Delete.
11527 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11528 * config/mips/linux.mh (XDEPFILES): Delete.
11529 * config/mips/irix6.mh (XDEPFILES): Delete.
11530 * config/mips/irix5.mh (XDEPFILES): Delete.
11531 * config/mips/irix4.mh (XDEPFILES): Delete.
11532 * config/mips/irix3.mh (XDEPFILES): Delete.
11533 * config/mips/decstation.mh (XDEPFILES): Delete.
11534 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11535 (NATDEPFILES): Move core-aout.o to here.
11536 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11537 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11538 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11539 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11540 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11541 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11542 * config/pa/hpux11.mh (XDEPFILES): Delete.
11543 * config/powerpc/aix.mh (XDEPFILES): Delete.
11544 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11545 * config/powerpc/linux.mh (XDEPFILES): Delete.
11546 * config/romp/rtbsd.mh: Rename XDEPFILES.
11547 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11548 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11549 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11550 * config/s390/s390.mh (XDEPFILES): Delete.
11551 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11552 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11553 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11554 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11555 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11556 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11557 * config/sparc/linux.mh (XDEPFILES): Delete.
11558 * config/vax/vaxult.mh (XDEPFILES): Delete.
11559 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11560 * Makefile.in (DEPFILES): Remove XDEPFILES.
11561
11562 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11563
11564 * utils.c (internal_verror): Fix comments, default is yes not no.
11565 Update queries to match. Default to quit and dump core.
11566
11567 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11568
11569 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11570 copyright.
11571 * defs.h, event-top.c, gdbcmd.h: Ditto.
11572 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11573 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11574 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11575 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11576 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11577 * mi/mi-main.c:Ditto.
11578
11579 * stack.c, symfile.c: Update copyright.
11580
11581 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11582
11583 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11584 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11585 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11586 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11587
11588 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11589
11590 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11591 * gdbserver/low-lynx.c (myattach): Likewise.
11592 * gdbserver/low-nbsd.c (myattach): Likewise.
11593 * gdbserver/low-sim.c (myattach): Likewise.
11594 * gdbserver/low-sparc.c (myattach): Likewise.
11595 * gdbserver/low-sun3.c (myattach): Likewise.
11596
11597 * gdbserver/low-linux.c (myattach): New function.
11598
11599 * gdbserver/server.c (attach_inferior): New function.
11600 (main): Handle "--attach".
11601
11602 2002-01-16 Andrew Cagney <ac131313@redhat.com>
11603
11604 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11605 maintainer.
11606
11607 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
11608
11609 * c-typeprint.c (is_type_conversion_operator): Add additional
11610 check for non-conversion operators.
11611
11612 2002-01-15 Michael Snyder <msnyder@redhat.com>
11613
11614 * linux-proc.c: Add "info proc" command, a la procfs.c.
11615 (read_mapping): New function, abstract and re-use code.
11616 (linux_find_memory_regions): Use new func read_mapping.
11617 (linux_info_proc_cmd): New function, implement "info proc".
11618 (_initialize_linux_proc): Add new command "info proc".
11619
11620 2002-01-15 Michael Snyder <msnyder@redhat.com>
11621
11622 * symfile.c (generic_load): Use bfd_map_over_sections method
11623 instead of manipulating bfd structure members directly.
11624 (add_section_size_callback): New function, bfd sections callback
11625 used by generic_load.
11626 (load_sections_callback): New function, bfd sections callback
11627 used by generic_load.
11628
11629 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
11630
11631 [Based on work by Jim Blandy]
11632 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11633 (builtin_type_vec128): Export.
11634 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11635 types.
11636 (builtin_type_vec128): New builtin type for 128 bit vector
11637 registers.
11638 (build_gdbtypes): Initialize builtin_type_v16qi and
11639 builtin_type_v8hi. Create the vec128 register builtin type
11640 structure.
11641 (build_builtin_type_vec128): New function.
11642 (_initialize_gdbtypes): Register builtin_type_v16qi and
11643 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11644 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11645 AltiVec register to new builtin type.
11646
11647 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
11648
11649 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11650 to make_cv_type.
11651
11652 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11653
11654 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11655 CLEAN_UP_REGISTER_VALUE.
11656 * regcache.c (supply_register): Update only call.
11657
11658 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11659
11660 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11661 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11662 a29k-*-vxworks* targets as obsolete.
11663
11664 2002-01-14 Michael Snyder <msnyder@redhat.com>
11665
11666 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11667 until we can resolve portability issues.
11668 * gregset.h: Remove references to fpxregs.
11669 * gcore.c (gcore_command): Initialize note_sec to NULL.
11670
11671 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11672
11673 * signals.c (target_signal_to_name): Rewrite. Only use
11674 signals[].name when in bounds and non-NULL.
11675
11676 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11677
11678 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11679 * signals.c (target_signal_to_name): Verify that SIG is within the
11680 bounds of the signals array.
11681
11682 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11683
11684 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11685
11686 2002-01-13 Keith Seitz <keiths@redhat.com>
11687
11688 * stack.c (print_frame_info_base): Print the frame's pc
11689 only if when print_frame_info_listing_hook is not defined.
11690
11691 2002-01-13 Keith Seitz <keiths@redhat.com>
11692
11693 * varobj.c (varobj_set_value): Make sure that there were no
11694 errors evaluating the object before attempting to set its
11695 value.
11696 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11697 so this offset adjustment is no longer necessary.
11698 (create_child): Don't set the error flag if the child is
11699 a CPLUS_FAKE_CHILD.
11700 (value_of_child): If value_fetch_lazy fails, return NULL
11701 so that callers will be notified that an error occurred.
11702 (c_value_of_variable): Delay check of variable's validity
11703 until later. We actually want all structs and unions to have
11704 the value "{...}".
11705 Do not return "???" for variables which could not be evaluated.
11706 This error condition must be returned to the caller so that it
11707 can get the error condition from gdb.
11708 (cplus_name_of_child): Adjust index for vptr before figuring
11709 out the name of the child.
11710 (cplus_value_of_child): If a child's (real) parent is not valid,
11711 don't even bother trying to give a value for it. Just return
11712 an error. Change all instances in this function.
11713 (cplus_type_of_child): If our parent is one of the "fake"
11714 parents, we need to get at the type of the real parent, and
11715 derive the child's true type using this information.
11716
11717 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11718
11719 From 2002-01-09 John Marshall <johnm@falch.net>:
11720 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11721 sources.redhat.com, and tweak some related URLs which had
11722 suffered from linkrot.
11723
11724 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11725
11726 From Jeff law:
11727 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11728 structures passed in registers.
11729
11730 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11731
11732 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11733 white space which prevented compilation. Reported by DSK
11734 <dsk@student.unsw.edu.au>.
11735
11736 2002-01-11 Michael Snyder <msnyder@redhat.com>
11737
11738 * symfile.c (build_section_addr_info_from_section_tab):
11739 Use bfd access method instead of manipulating bfd directly.
11740 (syms_from_objfile): Ditto.
11741 (simple_overlay_update_1): Ditto.
11742 (simple_overlay_update): Ditto.
11743 (generic_load): Ditto.
11744 (overlay_unmapped_address): FIXME comment, bfd access methods.
11745 (sections_overlap): FIXME comment, bfd access methods.
11746 (pc_in_mapped_range): FIXME comment, bfd access methods.
11747 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11748 (section_is_mapped): FIXME comment, bfd access methods.
11749 (section_is_overlay): FIXME comment, bfd access methods.
11750
11751 * symfile.c (generic_load): Whitespace and long line cleanups.
11752 Remove duplicate variable, change several local variables to
11753 more appropriate data types.
11754 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11755
11756 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11757
11758 From Peter Schauer:
11759 * language.c (longest_local_hex_string_custom): Use phex_nz to
11760 convert NUM to a hex string.
11761
11762 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
11763
11764 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11765 the function.
11766 Update Copyright year.
11767
11768 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11769
11770 * language.c (longest_raw_hex_string): Delete unused function.
11771
11772 2002-01-11 Petr Sorfa <petrs@caldera.com>
11773
11774 * MAINTAINERS (write-after-approval): Add myself.
11775 * dwarf2read.c (read_tag_string_type): Handling of
11776 DW_AT_byte_size.
11777 (read_tag_string_type): FORTRAN fix to prevent propagation of
11778 first string size.
11779 (set_cu_language): Handling of DW_LANG_Fortran95
11780
11781 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
11782
11783 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11784 GETPID(inferior_ptid).
11785 (store_inferior_registers): Likewise.
11786
11787 2002-01-10 Jason Merrill <jason@redhat.com>
11788
11789 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11790 Fix DW_OP_minus.
11791
11792 2002-01-10 Andrew Cagney <ac131313@redhat.com>
11793
11794 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11795 and bfd/elf32-sh-nbsd.c.
11796
11797 2002-01-10 Michael Snyder <msnyder@redhat.com>
11798
11799 * NEWS: Mention --pid and corefile/proc-id behavior change.
11800
11801 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11802 * gcore.c: Include cli/cli-decode.h instead of command.h.
11803
11804 * main.c (captured_main): Add new command line option "--pid".
11805 If the second command line argument (following the symbol-file)
11806 begins with a digit, try to attach to it before trying to open
11807 it as a corefile.
11808 (print_gdb_help): Document the "--pid" argument.
11809
11810 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11811
11812 * completer.c (command_completer): New function.
11813
11814 * completer.h <command_completer>: Add prototype.
11815
11816 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11817 completer for the "help" command.
11818
11819 2002-01-09 Jason Merrill <jason@redhat.com>
11820
11821 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11822
11823 2002-01-09 Michael Snyder <msnyder@redhat.com>
11824
11825 * i386-linux-nat.c (fill_fpxregset): Make global.
11826 (store_fpxregset): Ditto.
11827
11828 * gregset.h (gdb_fpxregset_t): Define.
11829 (supply_fpxregset): Prototype.
11830 (fill_fpxregset): Prototype.
11831
11832 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11833
11834 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11835
11836 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11837 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11838 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11839
11840 2002-01-09 Andrew Cagney <ac131313@redhat.com>
11841
11842 * MAINTAINERS: Update target maintainer rules so that any
11843 Maintainer can approve a tested patch for a maintenance-only
11844 target.
11845
11846 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11847
11848 * MAINTAINERS (write-after-approval): Add myself.
11849
11850 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
11851 IN_SIGTRAMP.
11852
11853 2002-01-08 Michael Snyder <msnyder@redhat.com>
11854
11855 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11856 real name of the executable, rather than the /proc name.
11857
11858 2002-01-03 Michael Snyder <msnyder@redhat.com>
11859
11860 Implement a "generate-core-file" command in gdb, save target state.
11861 * gcore.c: New file. Implement new command 'generate-core-file'.
11862 Save a corefile image of the current state of the inferior.
11863 * linux-proc.c: Add linux-specific code for saving corefiles.
11864 * target.h (struct target_ops): Add new target vectors for saving
11865 corefiles; to_find_memory_regions and to_make_corefile_notes.
11866 (target_find_memory_regions): New macro.
11867 (target_make_corefile_notes): New macro.
11868 * target.c (update_current_target): Inherit new target methods.
11869 (dummy_find_memory_regions): New place-holder method.
11870 (dummy_make_corefile_notes): New place-holder method.
11871 (init_dummy_target): Initialize new dummy target vectors.
11872 * exec.c (exec_set_find_memory_regions): New function.
11873 Allow the exec_ops vector for memory regions to be taken over.
11874 (exec_make_note_section): New function, target vector method.
11875 * defs.h (exec_set_find_memory_regions): Export prototype.
11876 * procfs.c (proc_find_memory_regions): New function, corefile method.
11877 (procfs_make_note_section): New function, corefile method.
11878 (init_procfs_ops): Set new target vector pointers.
11879 (find_memory_regions_callback): New function.
11880 (procfs_do_thread_registers): New function.
11881 (procfs_corefile_thread_callback): New function.
11882 * sol-thread.c (sol_find_memory_regions): New function.
11883 (sol_make_note_section): New function.
11884 (init_sol_thread_ops): Initialize new target vectors.
11885 * inftarg.c (inftarg_set_find_memory_regions): New function.
11886 Allow to_find_memory_regions vector to be taken over.
11887 (inftarg_set_make_corefile_notes): New function.
11888 Allow to_make_corefile_notes vector to be taken over.
11889 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11890 interface layer if not target_has_execution (may be a corefile).
11891 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11892 * config/sparc/sun4sol2.mh: Ditto.
11893 * config/alpha/alpha-linux.mh: Ditto.
11894 * config/arm/linux.mh: Ditto.
11895 * config/i386/x86-64linux.mh: Ditto.
11896 * config/ia64/linux.mh: Ditto.
11897 * config/m68k/linux.mh: Ditto.
11898 * config/mips/linux.mh: Ditto.
11899 * config/powerpc/linux.mh: Ditto.
11900 * config/sparc/linux.mh: Ditto.
11901
11902 2002-01-07 Michael Snyder <msnyder@redhat.com>
11903
11904 * arm-linux-nat.c: Remove references to regcache.c internal data
11905 (registers[] and register_valid[]).
11906
11907 2002-01-07 Michael Snyder <msnyder@redhat.com>
11908
11909 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11910 so that attaching to a pid will automatically read the process's
11911 symbol file and shlibs.
11912 * Makefile.in: Add rule for linux-proc.o.
11913 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11914 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11915 * config/arm/linux.mh: Ditto.
11916 * config/i386/linux.mh: Ditto.
11917 * config/i386/x86-64linux.mh: Ditto.
11918 * config/ia64/linux.mh: Ditto.
11919 * config/m68k/linux.mh: Ditto.
11920 * config/mips/linux.mh: Ditto.
11921 * config/powerpc/linux.mh: Ditto.
11922 * config/sparc/linux.mh: Ditto.
11923
11924 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11925
11926 * win32-nat.c: Add i386-tdep.h dependency.
11927
11928 2002-01-07 Michael Snyder <msnyder@redhat.com>
11929
11930 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11931 instead of bfd_get_arch_size. Don't bail out just because
11932 there's no exec_bfd.
11933
11934 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11935 * p-valprint.c (pascal_object_print_value): Ditto.
11936 * somread.c (som_symtab_read): Ditto.
11937 * symfile.c (simple_free_overlay_region_table): Ditto.
11938 * valops.c (value_assign): Ditto.
11939
11940 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11941 use tilde_expand and strerror for opening save-tracepoints file.
11942
11943 * thread-db.c (thread_db_new_objfile): Indendation fix.
11944
11945 * infptrace.c (GDB_MAX_ALLOCA): New define.
11946 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
11947 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
11948 can be overridden with whatever value is appropriate to the host).
11949 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11950 alloca to allocate potentially large buffer.
11951 * rs6000-nat.c (child_xfer_memory): Ditto.
11952 * symm-nat.c (child_xfer_memory): Ditto.
11953 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11954
11955 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11956
11957 From Nick Clifton <nickc@redhat.com>
11958 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11959
11960 2002-01-07 Michael Snyder <msnyder@redhat.com>
11961
11962 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11963 Don't use exec_bfd if it's NULL.
11964
11965 2002-01-06 Mark Kettenis <kettenis@gnu.org>
11966
11967 * valops.c (value_arg_coerce): Fix formatting.
11968
11969 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11970
11971 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11972 * gnu-nat.c: Ditto.
11973
11974 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11975
11976 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11977 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11978 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11979 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11980 z8k-coff have not been multi-arched. Update z8k-coff build
11981 status.
11982
11983 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11984
11985 * MAINTAINERS: Mark a29k target as obsolete.
11986 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11987 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11988 comments.
11989 * NEWS: Note that a29k targets are obsolete.
11990 * a29k-tdep.c: Mark as obsolete.
11991 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11992 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11993 a29k-*-vxworks* targets as obsolete.
11994 * remote-adapt.c: Obsolete.
11995 * remote-eb.c: Obsolete.
11996 * remote-mm.c: Obsolete.
11997 * remote-udi.c: Obsolete.
11998 * config/a29k/a29k-udi.mt: Obsolete.
11999 * config/a29k/a29k.mt: Obsolete.
12000 * config/a29k/tm-a29k.h: Obsolete.
12001 * config/a29k/tm-vx29k.h: Obsolete.
12002 * config/a29k/vx29k.mt: Obsolete.
12003
12004 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12005
12006 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
12007 with BFD_ENDIAN_BIG.
12008
12009 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12010
12011 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
12012 * configure, config.in: Re-generate.
12013 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
12014 * defs.h: Do not include <endian.h>.
12015
12016 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
12017
12018 * acconfig.h (HAVE_PT_GETXMMREGS): New.
12019 * config.in: Regenerate.
12020 * configure.in: Update copyright years.
12021 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
12022 * configure: Regenerate.
12023 * i386bsd-nat.c: Update copyright years.
12024 (fill_gregset): Use regcache_collect.
12025 (fetch_inferior_registers): Only fetch integer registers
12026 if requested to do so. Add support for XMM registers
12027 using PT_GETXMMREGS.
12028 (store_inferior_registers): Only store integer registers
12029 if requested to do so. Add support for XMM registers
12030 using PT_SETXMMREGS.
12031 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
12032 (store_inferior_registers): Remove.
12033 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
12034 (fetch_elfcore_registers): New function.
12035 (i386nbsd_elfcore_fns): New.
12036 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
12037 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
12038 i386bsd-nat.o.
12039 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
12040 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
12041 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
12042 * config/i386/tm-nbsd.h: Update copyright years.
12043 (HAVE_SSE_REGS): Define.
12044 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
12045 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
12046 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
12047 (SIGCONTEXT_PC_OFFSET): Remove.
12048 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
12049
12050 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12051
12052 * configure.tgt: Remove powerpc-*-macos* target.
12053 * config/m68k/xm-mpw.h: Delete file.
12054 * config/xm-mpw.h: Delete file.
12055 * ser-mac.c: Delete file.
12056 * mpw-make.sed: Delete file.
12057 * mpw-config.in: Delete file.
12058 * mac-xdep.c: Delete file.
12059 * mac-gdb.r: Delete file.
12060 * mac-defs.h: Delete file.
12061 * mac-nat.c: Delete file.
12062 * config/powerpc/macos.mh: Delete file.
12063 * config/powerpc/macos.mt: Delete file.
12064 * config/powerpc/nm-macos.h: Delete file.
12065 * config/powerpc/tm-macos.h: Delete file.
12066 * source.c (openp, open_source_file): Remove obsolete code.
12067 * top.c (gdb_readline): Ditto.
12068 * utils.c (query): Ditto.
12069 * event-top.c (display_gdb_prompt): Ditto.
12070 * Makefile.in (ser-mac.o): Delete obsolete target.
12071 * NEWS: Update.
12072
12073 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12074
12075 * defs.h (BIG_ENDIAN): Delete macro definition.
12076 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
12077 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
12078 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
12079 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
12080 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
12081 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
12082 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
12083 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
12084 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
12085 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
12086 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
12087 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12088 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12089 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12090 * gdbarch.c: Re-generate.
12091
12092 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12093
12094 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12095 for core files.
12096
12097 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12098
12099 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12100
12101 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12102
12103 * value.h (value_ptr): Delete typedef.
12104
12105 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12106
12107 * i386nbsd-nat.c: Update copyright years.
12108 Include i386-tdep.h.
12109
12110 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
12111
12112 * stabsread.c: Update copyright years.
12113
12114 From Debashis Mahata <debashis.mahata@wipro.com>:
12115 (read_struct_fields): Deal with Sun C compiler erroneous stab
12116 output for structs and unions.
12117 Fix PR gdb/269.
12118
12119 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12120
12121 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12122 prototype.
12123
12124 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12125
12126 * cp-abi.c: Fix whitespace.
12127 (baseclass_offset): New wrapper function.
12128 * cp-abi.h (baseclass_offset): Add prototype.
12129 (struct cp_abi_ops): Add baseclass_offset pointer.
12130
12131 * valops.c (vb_match): Move to...
12132 * gnu-v2-abi.c (vb_match): here.
12133 * valops.c (baseclass_offset): Move to...
12134 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12135
12136 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12137
12138 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12139 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12140 * hpacc-abi.c (init_hpacc_ops): Likewise.
12141
12142 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12143
12144 * valops.c (find_overload_match): Accept obj as a
12145 reference parameter. Update it before returning.
12146 * value.h (find_overload_match): Update prototype.
12147 * eval.c (evaluate_subexp_standard): Pass object to
12148 find_overload_match by reference.
12149
12150 2002-01-03 Andrew Cagney <ac131313@redhat.com>
12151
12152 * valarith.c: Replace value_ptr with struct value pointer. Remove
12153 register attribute from value declarations.
12154 * valops.c: Ditto.
12155 * value.h: Ditto.
12156 * scm-lang.c (scm_lookup_name): Ditto.
12157
12158 2002-01-03 Michael Snyder <msnyder@redhat.com>
12159
12160 Abstract the functionality of iterating over mapped memory
12161 regions into a general purpose iterator function.
12162 * procfs.c (iterate_over_mappings): New function, general purpose
12163 iterator for memory sections.
12164 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12165 (solib_mappings_callback): New function, callback for above.
12166 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12167 (info_mappings_callback): New function, callback for above.
12168
12169 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12170
12171 2002-01-01 Mark Kettenis <kettenis@gnu.org>
12172
12173 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12174 * i386-tdep.c: Include "elf-bfd.h".
12175 (process_note_abi_tag_sections): New function.
12176 (i386_gdbarch_init): Add code to recognize various OS/ABI
12177 combinations.
12178
12179 * maint.c (_initialize_maint_cmds): Add missing \ in
12180 string-literal.
12181
12182 For older changes see ChangeLog-2001
12183 \f
12184 Local Variables:
12185 mode: change-log
12186 left-margin: 8
12187 fill-column: 74
12188 version-control: never
12189 End: