* i386-tdep.c (i386_frame_saved_pc): Replace call to
[binutils-gdb.git] / gdb / ChangeLog
1 2002-10-26 Mark Kettenis <kettenis@gnu.org>
2
3 * i386-tdep.c (i386_frame_saved_pc): Replace call to
4 deprecated_read_register_dummy with
5 frame_unwind_unsigned_register.
6
7 * i386-tdep.c (i386_extract_struct_value_address): Use
8 regcache_raw_read_unsigned instead of
9 regcache_cooked_read_unsigned since we know that the register
10 we're reading isn't a pseudo register. Rename variable 'val' into
11 the more descriptive 'addr'.
12
13 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
14 (x86_64_push_return_address): Add comment.
15 (x86_64_pop_frame): Make static.
16 (examine_argument): Clarify comment.
17 (x86_64_skip_prologue): Make prolog_expact variable static.
18
19 * dwarf2cfi.c: Fix some formatting problems.
20 (context_cpy, read_encoded_pointer): Clarify comments.
21
22 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
23 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
24 i386 target back into x86_64_gdbarch_init. Add some comments and
25 remove meaningless ones.
26
27 2002-10-25 Andrew Cagney <cagney@redhat.com>
28
29 * complaints.h (struct deprecated_complaint): Rename `struct
30 complaint'.
31 * complaints.c (complain): Update.
32 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
33 incorrect comment indicating that "symfile.h" was being included
34 for the `struct complaint' definition.
35 * remote-vx.c: Update.
36 * objc-lang.c: Update.
37 * xcoffread.c: Update.
38 * hpread.c: Update.
39 * mdebugread.c: Update.
40 * stabsread.c: Update.
41 * dwarf2read.c: Update.
42 * dwarfread.c: Update.
43 * elfread.c: Update.
44 * coffread.c: Update.
45 * stabsread.h: Update.
46 * dbxread.c: Update.
47 * buildsym.c: Update.
48 * gdbtypes.c: Update.
49 * macrotab.c: Update.
50
51 2002-10-25 Mark Kettenis <kettenis@gnu.org>
52
53 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
54 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
55 (x86_64_init_abi): ...new function.
56
57 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
58 * i386v-nat.c: Include "i386-tdep.h".
59
60 2002-10-25 Andrew Cagney <cagney@redhat.com>
61
62 * gdbtypes.c (address_space_name_to_int): Update.
63 (address_space_int_to_name): Update.
64 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
65 multi-arch predicate.
66 (address_class_name_to_type_flags): Ditto.
67 * gdbarch.h, gdbarch.c: Re-generate.
68
69 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
70
71 2002-10-24 Martin M. Hunt <hunt@redhat.com>
72
73 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
74
75 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
76
77 * symtab.h (INIT_SAL): Delete macro.
78 (init_sal): Export.
79 * symtab.c (init_sal): New function.
80
81 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
82 to init_sal function call.
83 (find_sal_from_funcs_and_line): Ditto.
84 (all_sals_for_line): Ditto.
85 * breakpoint.c (create_internal_breakpoint): Ditto.
86 (create_fork_vfork_event_catchpoint): Ditto.
87 (create_exec_event_catchpoint): Ditto.
88 (parse_breakpoint_sals): Ditto.
89 (watch_command_1): Ditto.
90 (handle_gnu_4_16_catch_command): Ditto.
91 (clear_command): Ditto.
92 * hppa-tdep.c (child_enable_exception_callback): Ditto.
93 * infcmd.c (run_stack_dummy): Ditto.
94 * infrun.c (process_event_stop_test): Ditto.
95 (check_sigtramp2): Ditto.
96 (step_over_function): Ditto.
97 * linespec.c (decode_line_2): Ditto.
98 (decode_line_1): Ditto.
99 * source.c (line_info): Ditto.
100 * symtab.c (find_pc_sect_line): Ditto.
101
102 2002-10-24 Michal Ludvig <mludvig@suse.cz>
103
104 * dwarf2cfi.c (struct context)
105 (struct context_reg): Moved to dwarf2cfi.h
106 (context_alloc, frame_state_alloc, context_cpy):
107 Made extern instead of static, removed prototypes.
108 * dwarf2cfi.h (struct context)
109 (struct context_reg): New, moved from dwarf2cfi.c
110 (context_alloc, frame_state_alloc, context_cpy):
111 New prototypes.
112 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
113 Changed from static to extern.
114 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
115 (LINUX_SIGCONTEXT_FP_OFFSET)
116 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
117 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
118 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
119 * x86-64-tdep.c (x86_64_gdbarch_init): Several
120 set_gdbarch_*() calls now use x86-64 specific functions
121 instead of DWARF2 CFI ones.
122 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
123 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
124 (x86_64_init_extra_frame_info): New prototypes.
125
126 2002-10-23 David Carlton <carlton@math.stanford.edu>
127
128 * linespec.c: #include "parser-defs.h".
129 Delete prototype for find_template_name_end.
130 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
131
132 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
133
134 * NEWS: add recent mi fixes.
135 * varobj.c (struct varobj): Add new "updated" flag.
136 (new_variable): Default "updated" flag to 0.
137 (varobj_set_value): Set "updated" flag to 1 if value
138 changes.
139 (varobj_update): Check varobj "updated" flag before
140 comparing old and refreshed values. Fix for
141 PR gdb/702.
142
143 2002-10-23 David Carlton <carlton@math.stanford.edu>
144
145 * parse.c (parse_exp_1): Use BLOCK_START.
146 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
147 SYMBOL_BLOCK_VALUE.
148 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
149
150 2002-10-23 David Carlton <carlton@math.stanford.edu>
151
152 * symtab.c: Delete cplusplus_hint.
153 Delete prototype for find_template_name_end.
154
155 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
156
157 * symtab.h: Update comment.
158
159 2002-10-23 Michael Snyder <msnyder@redhat.com>
160
161 * printcmd.c (address_info): Restore quotes in output.
162 * valops.c (value_of_local): Restore quotes in error message.
163
164 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
165
166 * symtab.c (symbol_demangled_name): New function.
167 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
168 turning most of it into a function.
169 (symbol_demangled_name): Export.
170
171 2002-10-23 Michael Snyder <msnyder@redhat.com>
172
173 * valops.c (value_of_local): Restore quotes in error message.
174
175 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
176
177 * symtab.c (symbol_init_language_specific): New function.
178 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
179 turning most of it into a function.
180 (symbol_init_language_specific): Export.
181
182 2002-10-23 David Carlton <carlton@math.stanford.edu>
183
184 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
185 (dwarf_attr_name): Ditto.
186 (dwarf_type_encoding_name): Ditto.
187 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
188 (process_die): Handle DW_TAG_namespace,
189 DW_TAG_imported_declaration, DW_TAG_imported_module.
190 (read_namespace): New function.
191
192 2002-10-22 Joel Brobecker <brobecker@gnat.com>
193
194 * configure.in: Define NEW_PROC_API on Interix too.
195 * configure: Regenerate.
196
197 2002-10-21 Joel Brobecker <brobecker@gnat.com>
198
199 * configure: Regenerate using the proper version of autoconf.
200
201 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
202
203 * findvar.c (read_var_value): Temporarily disable TLS code, until
204 complete TLS support is added.
205
206 2002-10-21 Jim Blandy <jimb@redhat.com>
207 Elena Zannoni <ezannoni@redhat.com>
208
209 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
210 for thread local storage locations.
211 (struct symbol): Add objfile field.
212 (SYMBOL_OBJFILE): Define.
213 * dwarf2read.c (is_thread_local): New static variable.
214 (new_symbol): If variable is in thread local fill in address class
215 and objfile appropriately.
216 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
217 stack operation.
218 * printcmd.c (address_info): Print the information for thread
219 local storage variable.
220 * findvar.c (read_var_value): In case of thread local variable,
221 defer to the target vector code to compute address.
222
223 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
224
225 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
226 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
227
228 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
229
230 * symtab.h (address_class): Rename
231 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
232 * hpread.c (hpread_process_one_debug_symbol): Ditto.
233 * printcmd.c (address_info): Ditto.
234 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
235
236 2002-10-20 Mark Kettenis <kettenis@gnu.org>
237
238 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
239 DBREG_DRX macro to acces debug registers.
240
241 * Makefile.in (i386obsd-tdep.o): New target.
242
243 * solib-sunos.c: Include "bcache.h" and "regcache.h".
244 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
245
246 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
247 * config/i386/obsd.mt: New file.
248 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
249 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
250 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
251 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
252 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
253 * i386obsd-tdep.c: New file.
254
255 2002-10-19 Adam Fedor <fedor@gnu.org>
256
257 * objc-exp.y (name_not_typename): Fix invalid comment.
258
259 2002-10-20 Mark Kettenis <kettenis@gnu.org>
260
261 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
262 to allocate partial syms and macro byte caches.
263
264 2002-10-18 David Carlton <carlton@math.stanford.edu>
265
266 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
267
268 2002-10-18 Adam Fedor <fedor@gnu.org>
269
270 * stabsread.c (find_name_end): New function.
271 (define_symbol): Use it.
272
273 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
274
275 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
276 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
277 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
278 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
279
280 2002-10-17 David Carlton <carlton@math.stanford.edu>
281
282 * symfile.h: Add opaque declaration for struct obstack.
283 Declare obsavestring to take a const char *.
284 * symfile.c (obsavestring): Make first argument a const char *.
285
286 2002-10-16 Adam Fedor <fedor@gnu.org>
287
288 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
289 names when matching breakpoints in current file.
290
291 2002-10-16 Kevin Buettner <kevinb@redhat.com>
292
293 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
294 (read_tag_pointer_type): Add address class support.
295 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
296 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
297 New methods.
298 * gdbarch.h, gdbarch.c: Regenerate.
299 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
300 (make_type_with_address_space, recursive_type_dump): Add address
301 class support.
302 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
303 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
304 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
305
306 2002-10-16 Klee Dienes <kdienes@apple.com>
307
308 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
309 to get the last character of a char[] buffer, not
310 name[sizeof(vptr_name)-1].
311
312 2002-10-14 Adam Fedor <fedor@gnu.org>
313
314 * symtab.h: New objc_specific struct.
315 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
316 (SYMBOL_DEMANGLED_NAME): Likewise.
317
318 2002-10-14 Adam Fedor <fedor@gnu.org>
319
320 * symfile.c (init_filename_language_table): Add ObjC file extension.
321
322 2002-10-14 Adam Fedor <fedor@gnu.org>
323
324 * utils.c (puts_filtered_tabular): New function.
325 (fprintf_symbol_filtered): Get ObjC demangled name.
326 * defs.h (puts_filtered_tabular): Declared.
327
328 2002-10-14 Kevin Buettner <kevinb@redhat.com>
329
330 * c-lang.h (c_type_print_varspec_prefix): Delete.
331 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
332 ``need_post_space'' parameter. Adjust all callers.
333
334 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
335
336 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
337 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
338 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
339 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
340
341 2002-10-13 Adam Fedor <fedor@gnu.org>
342
343 * source.c (print_source_lines): Update comments.
344
345 2002-10-13 Adam Fedor <fedor@gnu.org>
346
347 * valops.c (value_of_local): New function.
348 (value_of_this): Use it.
349 * value.h (value_of_local): Declared.
350
351 2002-10-13 Adam Fedor <fedor@gnu.org>
352
353 * parse.c: (length_of_subexp, prefixify_subexp): Handle
354 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
355
356 2002-10-12 Adam Fedor <fedor@gnu.org>
357
358 * language.c (binop_result_type): Add language_objc to case.
359 (integral_type): Likewise.
360 (character_type): Likewise.
361 (string_type): Likewise.
362 (boolean_type): Likewise.
363 (structured_type): Likewise.
364 (binop_type_check): Likewise.
365
366 2002-10-11 Adam Fedor <fedor@gnu.org>
367
368 * printcmd.c (address_info): Print 'self' for ObjC.
369
370 2002-10-11 Adam Fedor <fedor@gnu.org>
371
372 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
373 OP_SELF.
374
375 2002-10-11 Adam Fedor <fedor@gnu.org>
376
377 * language.h (CAST_IS_CONVERSION): Add language_objc.
378
379 2002-10-11 Adam Fedor <fedor@gnu.org>
380
381 * defs.h (enum language): Add language_objc.
382
383 2002-10-11 Klee Dienes <kdienes@apple.com>
384
385 * findvar.c (read_memory_typed_address): New function.
386 * gdbcore.h (read_memory_typed_address): Add prototype.
387 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
388 to read a value destined for a CORE_ADDR, not read_memory_integer.
389 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
390 (f77_get_dynamic_lowerbound): Ditto.
391
392 2002-10-11 Martin M. Hunt <hunt@redhat.com>
393
394 * utils.c (string_to_core_addr): After turning string into
395 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
396 which will do necessary sign-extension, etc.
397
398 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
399
400 * c-exp.y (THIS): Delete token and grammar rule.
401 (yylex): Don't return THIS.
402 * cp-valprint.c (vtbl_ptr_name_old): Delete.
403 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
404 * demangle.c (cplus_markers): Update comment. Put '$'
405 first. Remove CPLUS_MARKER.
406 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
407 * jv-exp.y (THIS): Delete token and grammar rule.
408 (yylex): Don't return THIS.
409 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
410 * objc-exp.y (THIS): Delete token and grammar rule.
411 (yylex): Don't return THIS.
412 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
413 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
414 (read_member_functions): Likewise for opname.
415 (read_tilde_fields): Use is_cplus_marker.
416
417 * defs.h (CPLUS_MARKER): Don't define.
418 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
419 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
420 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
421 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
422 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
423
424 * config/i386/tm-i386v4.h: Delete file.
425 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
426 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
427 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
428 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
429 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
430 * config/i386/i386sco5.mt (TM_FILE): Likewise.
431 * config/i386/i386v4.mt (TM_FILE): Likewise.
432 * config/i386/ncr3000.mt (TM_FILE): Likewise.
433
434 2002-10-10 Marko Mlinar <markom@opencores.org>
435
436 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
437 accidentially not commited 2002-10-09
438 * gdbarch.h, gdbarch.c: Re-generate.
439
440 2002-10-09 Marko Mlinar <markom@opencores.org>
441
442 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
443 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
444 * gdbarch.h, gdbarch.c: Re-generate.
445
446 2002-10-08 Petr Sorfa <petrs@caldera.com>
447
448 Revised and re-submitted by John Wolfe <jlw@caldera.com>
449
450 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
451 so we can work on more than one compilation unit at a time. This
452 helps prepare GDB to handle inter-CU die references.
453 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
454 the code to be defined before struct comp_unit_head.
455 (comp_unit_head): Added new members - offset, cu_head,
456 begin_die, next and dwarf2_abbrevs.
457 (dwarf2_abbrevs): Removed single static var; now member of
458 struct comp_unit_head.
459 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
460 members.
461 (psymtab_to_symtab_1): Changed to work with the new
462 struct comp_unit_head.
463 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
464 constructs the dwarf2_abbrevs[] inside the cu_header.
465 (dwarf2_empty_abbrev_table): Now expects a ptr to a
466 dwarf2_abbrev table to clean up.
467 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
468 handling of dwarf2_abbrevs inside the cu_header.
469 (read_partial_die): Now supports the call to the new
470 dwarf2_lookup_abbrev.
471 (read_full_die): Now supports the call to the new
472 dwarf2_lookup_abbrev.
473
474 2002-10-06 Christopher Faylor <cgf@redhat.com>
475
476 * Makefile.in (install-gdbtk): Add missing continuation backslash to
477 insure that shell variables, such as "transformed_name" are propagated
478 to later shell statements in rule.
479
480 2002-10-06 Mark Kettenis <kettenis@gnu.org>
481
482 * config/i386/nm-i386sco.h: Add protection against
483 multiple-inclusion. Include "i386/nm-i386v.h".
484 (REGISTER_U_ADDR): Remove define.
485 (i386_register_u_addr): Remove prototype.
486
487 2002-10-04 Michael Snyder <msnyder@redhat.com>
488
489 * m32r-stub.c (handle_exception): Make sure exception is "trap"
490 before treating it as a single-step event.
491
492 2002-10-03 Adam Fedor <fedor@gnu.org>
493
494 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
495 (objc_demangle): Remove assignment in if statements, Replace
496 free with xfree.
497 (add_msglist): Likewise.
498 (end_msglist): Likewise.
499 (complare_selectors): Likewise.
500 (selectors_info): Likewise.
501 (compare_classes): Likewise.
502 (classes_info): Likewise.
503 (print_object_command): Likewise.
504 (find_objc_msgcall_submethod): Replace PTR with void *.
505 * objc-lang.h: Remove check for __STDC__.
506
507 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
508
509 * ui-out.h (ui_out_field_fmt_int): New prototype.
510 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
511 of field width and alignment.
512 * stack.c (print_frame_info_base): When printing frame level, use
513 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
514 PR gdb/192
515
516 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
517
518 * MAINTAINERS: Add self to Write After Approval list.
519
520 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
521
522 * infcmd.c (interrupt_target_command_wrapper): Delete.
523 (interrupt_target_command): Make non static.
524 (nofp_registers_info): Make static.
525 * stack.c (return_command_wrapper): Delete.
526 (return_command): Make non static.
527
528 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
529
530 * event-top.c (gdb_setup_readline): New function. Code moved from
531 _initialize_event_loop().
532 (_initialize_event_loop): Call gdb_setup_readline().
533
534 2002-10-02 Andrew Cagney <ac131313@redhat.com>
535
536 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
537 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
538 * gdbarch.h, gdbarch.c: Re-generate.
539
540 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
541
542 Fix PR gdb/778
543 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
544 before recursing.
545 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
546 of fill_in_vptr_fieldno.
547
548 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
549
550 * inferior.h (registers_info, stepi_command, nexti_command,
551 continue_command, interrupt_target_command): Export from infcmd.c.
552 * frame.h (args_info, selected_frame_level_changed_hook,
553 return_command): Export from stack.c.
554 * v850ice.c (stepi_command, nexti_command, continue_command): use
555 prototypes from inferior.h.
556 * tracepoint.c (registers_info, args_info, locals_info): Use
557 prototypes from frame.h and inferior.h.
558 * Makefile.in (mi-main.o): Add dependency on frame.h.
559
560 2002-10-02 Andrew Cagney <ac131313@redhat.com>
561
562 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
563 value in register 3 adjusted by ppc_gp0_regnum.
564
565 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
566
567 2002-10-02 Marko Mlinar <markom@opencores.org>
568
569 * MAINTAINERS: Add myself to the Write After Approval list.
570
571 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
572
573 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
574 of the section for the N64 ABI, fixed.
575
576 * config/mips/tm-irix6.h: Include solib.h.
577
578 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
579
580 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
581 GNU operators.
582
583 2002-10-01 Andrew Cagney <ac131313@redhat.com>
584
585 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
586 and that "mi0" syntax has been removed.
587
588 2002-09-30 David Carlton <carlton@math.stanford.edu>
589
590 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
591 * ppc-sysv-tdep.c: #include "gdb_string.h".
592 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
593 pacify GCC.
594
595 2002-10-01 Andrew Cagney <ac131313@redhat.com>
596
597 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
598 "vrsave"'s register number.
599
600 2002-09-30 Andrew Cagney <ac131313@redhat.com>
601
602 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
603 use frame_unwind_signed_register to obtain the PC.
604 (mips_frame_chain): Handle a generic dummy frame.
605 (mips_init_extra_frame_info): When a generic dummy frame, don't
606 re-compute the frame base.
607 (mips_pop_frame): Handle generic dummy frames.
608 (mips_gdbarch_init): When generic dummy frames, set
609 use_generic_dummy_frames, push_dummy_frame to
610 generic_push_dummy_frame, pc_in_call_dummy to
611 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
612 generic_save_dummy_frame_tos.
613
614 2002-09-30 Andrew Cagney <ac131313@redhat.com>
615
616 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
617 against TOP when TOP was explictly set.
618 (generic_push_dummy_frame): Set TOP to zero.
619
620 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
621
622 * event-loop.c (start_event_loop): Rename variable 'result' to
623 'gdb_result', to avoid conflicts with upcoming intepreters changes.
624
625 2002-09-30 Keith Seitz <keiths@redhat.com>
626
627 * gdb-events.sh (selected_thread_changed): New event.
628 * gdb-events.c: Regenerated.
629 * gdb-events.h: Regenerated.
630
631 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
632
633 * MAINTAINERS: Add self to Write After Approval list.
634
635 2002-09-30 Fernando Nasser <fnasser@redhat.com>
636
637 * disasm.c: New file.
638 * disasm.h: New file.
639 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
640 (compare_lines): Ditto.
641 (dump_insns): Ditto.
642 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
643 argument.
644 (do_assembly_only): Ditto.
645 (do_disassembly): Renamed to gdb_disassembly and moved to
646 disasm.c. Sdded uiout argument.
647 * Makefile.in: Add new files. Reorder SFILES list. Update
648 dependencies. Include libgdb.a later in the insight executable.
649
650 2002-09-29 Andrew Cagney <ac131313@redhat.com>
651
652 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
653 bfd/elf64-alpha-fbsd.c.
654
655 2002-09-29 Andrew Cagney <ac131313@redhat.com>
656
657 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
658 i386gnu-tdep.c.
659
660 2002-09-29 Andrew Cagney <ac131313@redhat.com>
661
662 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
663 __FUNCTION__.
664 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
665 function name.
666 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
667 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
668 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
669 (S_msg_sig_post_reply): Ditto.
670
671 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
672
673 * sh-tdep.c (sh_use_struct_convention): Use definition according
674 to ABI.
675 (sh_push_arguments): Store in register with correct endianess.
676 (sh_default_store_return_value): Ditto.
677 (sh_gdbarch_init): Set sizeof long double to 8.
678
679 2002-09-27 Mark Kettenis <kettenis@gnu.org>
680
681 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
682 Fix some whitespace problems.
683
684 2002-09-27 David Carlton <carlton@math.stanford.edu>
685
686 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
687 (mcore-tdep.o): Ditto.
688 (ns32k-tdep.o): Ditto.
689 (ns32knbsd-tdep.o): Ditto.
690 (sh3-rom.o): Ditto.
691 (vax-tdep.o): Ditto.
692 * cris-tdep.c: #include "gdb_string.h"
693 * mcore-tdep.c: Ditto.
694 * ns32k-tdep.c: Ditto.
695 * ns32knbsd-tdep.c: Ditto.
696 * sh3-rom.c: Ditto.
697 * vax-tdep.c: Ditto.
698
699 2002-09-27 David Carlton <carlton@math.stanford.edu>
700
701 * config/djgpp/fnchange.lst: Add entries for
702 gdb/testsuite/gdb.c++/m-static files.
703
704 2002-09-27 Jim Wilson <wilson@redhat.com>
705
706 * MAINTAINERS: Add myself to the Write After Approval list.
707
708 2002-09-26 Martin M. Hunt <hunt@redhat.com>
709
710 * mips-tdep.c (find_proc_desc): Initialize startaddr.
711
712
713 2002-09-26 Andrew Cagney <ac131313@redhat.com>
714
715 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
716 frame.
717
718 2002-09-26 Andrew Cagney <ac131313@redhat.com>
719
720 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
721 (rs6000_struct_return_address): Delete variable.
722 (rs6000_store_struct_return): Update.
723 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
724 deprecated_extract_struct_value_address.
725 (rs6000_frame_align): New function.
726 (rs6000_gdbarch_init): Set frame_align.
727
728 2002-09-26 Andrew Cagney <ac131313@redhat.com>
729
730 From Grace Sainsbury <graces@redhat.com>:
731 * Makefile.in (gdbtk-main.o): New target.
732 (gdb.o): New target.
733 (main_h): Define.
734 (main.o): Update dependencies.
735 (gdb$(EXEEXT)): Add gdb.o.
736 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
737 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
738 (SUBDIR_GDBTK_CLEAN): Set.
739 (install-gdbtk): Install the insight binary.
740 (uninstall-gdbtk): New target.
741 (all-gdbtk, clean-gdbtk): New rule.
742 * top.c (use_windows): Default to zero.
743 * main.c: Include "main.h".
744 (main): Delete.
745 (struct captured_main_args): Delete.
746 (gdb_main): New function.
747 * main.h: New file.
748 * gdb.c: New File.
749
750 2002-09-25 Andrew Cagney <cagney@redhat.com>
751
752 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
753 (frame_map_regnum_to_name): New function.
754 (frame_map_name_to_regnum): New function.
755 * frame.h (frame_map_name_to_regnum): Declare.
756 (frame_map_regnum_to_name): Declare.
757 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
758 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
759 * parse.c: Do not include "builtin-regs.h".
760 (target_map_name_to_register): Delete function.
761 (write_dollar_variable): Use frame_map_name_to_regnum.
762 * parser-defs.h (target_map_name_to_register): Delete declaration.
763 * expprint.c: Include "frame.h".
764 (print_subexp): Use frame_map_regnum_to_name.
765 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
766 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
767
768 2002-09-25 Andrew Cagney <ac131313@redhat.com>
769
770 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
771 wasn't saved, and the next innermost frame is a dummy, return the
772 dummy frame's link register.
773
774 2002-09-24 Jim Blandy <jimb@redhat.com>
775
776 Fix from Paul Breed:
777 * main.c (captured_main): Add a `break' after the case for 'b'.
778
779 2002-09-24 Keith Seitz <keiths@redhat.com>
780
781 * varobj.c (c_type_of_child): Use get_target_type instead
782 of TYPE_TARGET_TYPE.
783
784 2002-09-22 Fernando Nasser <fnasser@redhat.com>
785
786 * source.c (get_current_or_default_source_symtab_and_line): Remove
787 function.
788 (set_default_source_symtab_and_line): New function. Attempts to
789 determine a source file to list lines from if one is not currently
790 defined.
791 (get_current_source_symtab_and_line): Initialize sal.pc and
792 sal.end fields.
793 (set_current_source_symtab_and_line): Mark argument as const.
794 * source.h: Update declarations and comments.
795 * linespec.c (decode_line_1): Replace call to removed routine above.
796 * stack.c (print_frame_info_base): Ditto.
797 * cli/cli-cmds.c (edit_command): Ditto.
798 (list_command): Ditto.
799
800 2002-09-22 Fernando Nasser <fnasser@redhat.com>
801
802 * source.c (get_current_or_default_source_symtab_and_line): Initialize
803 sal.pc and sal.end fields.
804 (get_current_or_default_source_symtab_and_line): Ditto.
805 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
806 so we do not cause a new source symtab to be searched for (reverting an
807 unintentional change from the 2002-09-20 patch).
808 * scm-lang.c (scm_unpac): Ditto.
809
810 2002-09-21 Andrew Cagney <cagney@redhat.com>
811
812 * complaints.c (symfile_explanations): Remove new-line from
813 ``isolated_message''.
814 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
815 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
816
817 2002-09-20 Nick Clifton <nickc@redhat.com>
818
819 * NEWS: Announce that V850EA ISA is no longer supported.
820 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
821
822 2002-09-20 David Carlton <carlton@math.stanford.edu>
823
824 * Makefile.in (c-lang.o): Correct dependencies.
825 (utils.o): Gather dependencies.
826 (charset.o): Move.
827 * c-lang.c: #include "gdb_string.h"
828
829 2002-09-20 Fernando Nasser <fnasser@redhat.com>
830
831 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
832 * cli/cli-cmds.c (list_command): New function. Implements the new
833 cli edit command.
834 (_init_cli_cmds): Add new command definition.
835 * gdb.1: Document edit command.
836 * doc/gdb.texinfo: Document edit command.
837
838 2002-09-20 Fernando Nasser <fnasser@redhat.com>
839
840 * source.c: Make global variables current_source_symtab and
841 current_source_line static.
842 (list_command): Moved to cli/cli-cmds.c.
843 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
844 (get_first_line_listed): New accessor function.
845 (get_lines_to_list): New accessor function.
846 (get_current_source_symtab_and_line): New function. Retrieves the
847 position in the source code that we consider current.
848 (get_current_or_default_source_symtab_and_line): New function.
849 Like the above but attempts to determine a default position if one
850 is not currently defined.
851 (set_current_source_symtab_and_line): New function. Sets the source
852 code position considered current and returns the previously set one.
853 (clear_current_source_symtab_and_line): Reset stored information about
854 a current source line.
855 (_initialize_source): Remove registration for the "list" command and
856 its alias.
857 * source.h: Add declarations for the new functions above.
858 * symtab.h: Remove declarations for the global variables mentioned
859 above.
860 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
861 obtain current source line.
862 * linespec.c (decode_line_1): Ditto.
863 * macroscope.c (default_macro_scope): Ditto.
864 * scm-lang.c (scm_unpac): Ditto.
865 * stack.c (print_frame_info_base): Ditto.
866 * symfile.c (clear_symtab_users): Ditto.
867 * symtab.c (decode_line_spec): Ditto.
868 * cli/cli-cmds.c (list_command): Moved here from source.c.
869 (ambiguous_line_spec): Moved here from source.c.
870 (_init_cli_cmds): Add definition for "list" and its alias.
871 * Makefile.in: Update dependencies.
872
873 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
874
875 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
876 with what gcc thinks is correct.
877
878 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
879
880 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
881 multiple register push instruction.
882
883 2002-09-19 Jim Blandy <jimb@redhat.com>
884
885 Add support for distinct host and target character sets.
886 * charset.c, charset.h: New files.
887 * c-exp.y: #include "charset.h".
888 (yylex): Convert character and string literals to the target
889 character set, before returning them as the semantic value of the
890 token.
891 * c-lang.c: #include "charset.h".
892 (c_emit_char): Use charset-specific methods to recognize
893 characters with backslash escape forms, to decide which characters
894 to print literally and which to print using numeric escape
895 sequences, and to convert target characters to host characters
896 before printing.
897 * utils.c: #include "charset.h".
898 (no_control_char_error): New function.
899 (parse_escape): Use charset-specific methods to recognize
900 backslash escapes, parse `control character' notation, and convert
901 characters from the host character set to the target character set.
902 * configure.in: Set the default host character set.
903 Check where to find iconv, and what its argument types might be.
904 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
905 * Makefile.in (SFILES): List charset.c.
906 (COMMON_OBS): List charset.o.
907 (charset.o): New rule.
908 (charset_h): New header dependency variable.
909 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
910 (LIBICONV): New variable, set by configure.
911 (CLIBS): Include $(LIBICONV) here.
912 * aclocal.m4, config.in, configure: Regenerated.
913
914 2002-09-19 Joel Brobecker <brobecker@gnat.com>
915
916 * ada-exp.y: Add missing semicolons to end rules. Fixes a
917 bison 1.35 warning.
918
919 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
920
921 * gdb_mbuild.sh: New file.
922
923 2002-09-19 Andrew Cagney <ac131313@redhat.com>
924
925 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
926
927 2002-09-18 Andrew Cagney <ac131313@redhat.com>
928
929 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
930 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
931 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
932 valops.c, value.h: Revert previous change.
933
934 2002-09-18 Michael Snyder <msnyder@redhat.com>
935
936 Preliminary support for Objective-C:
937 * defs.h (language_objc): New enum value.
938 (puts_filtered_tabular): Declaration only, exported from utils.c.
939 (skip_quoted): Delete, declared in completer.h.
940 * c-exp.y: Include completer.h.
941 * p-exp.y: Ditto.
942 * jv-exp.y: Ditto.
943 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
944 New operator enum values.
945 * language.h (CAST_IS_CONVERSION): Test for language_objc.
946 * language.c (binop_result_type): Handle language_objc case.
947 (integral_type, character_type, string_type, boolean_type,
948 structured_type, binop_type_check): Ditto.
949 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
950 (struct objc_specific): Add to general_symbol_info.
951 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
952 (SYMBOL_DEMANGLED_NAME): Handle objc case.
953 * parser-defs.h (struct objc_class_str): New struct type.
954 (start_msglist, end_msglist, add_msglist): Declaration only,
955 exported from objc-lang.c.
956 * value.h (value_of_local, value_nsstring,
957 call_function_by_hand_expecting_type): Exported from valops.c.
958 * valops.c (find_function_addr): Export.
959 (call_function_by_hand_expecting_type): New function.
960 (value_of_local): New function.
961 * symfile.c (init_filename_language_table): Add ".m" extension
962 for Objective-C.
963 * utils.c (puts_filtered_tabular): New function.
964 (fprintf_symbol_filtered): Add objc demangling support (disabled).
965 (set/show demangle): Extend help-string to refer to ObjC.
966 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
967 * stabsread.c (symbol_reference_defined): Objective-C symbols
968 may contain colons: make allowances when scanning stabs strings
969 for colons.
970 (objc_find_colon): New function.
971 * printcmd.c (address_info): If language == objc then print
972 "self" instead of "this".
973 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
974 OP_NSSTRING, and OP_SELF.
975 (prefixify_subexp): Ditto.
976 * source.c (print_source_lines): Mention objc in comment.
977 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
978 method names.
979
980 2002-09-18 Andrew Cagney <ac131313@redhat.com>
981
982 * complaints.h: Update copyright.
983 (struct complaints): Declare.
984 (struct complaint): Make `message' constant.
985 (internal_complaint): Declare.
986 (complaint): Declare.
987 (complaint_root): Delete declaration.
988 (symfile_complaints): Delete declaration.
989 (struct complaints): Add opaque declaration.
990 (clear_complaints): Add a complaints parameter.
991 * complaints.c: Update copyright.
992 (enum complaint_series): Define.
993 (complaint_root): Delete.
994 (struct complaints): Define.
995 (complaint_sentinel, symfile_complaint_book): New variables.
996 (symfile_explanations, symfile_complaints): New variables.
997 New variables.
998 (get_complaints): New function.
999 (vcomplaint): New function.
1000 (complaint): New function.
1001 (internal_complaint): New function.
1002 (complain): Call vcomplain with symfile_complaint.
1003 (clear_complaints): Rewrite.
1004 (_initialize_complaints): Use add_setshow_command.
1005 * Makefile.in (complaints.o): Update dependencies.
1006 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
1007 to call to clear_complaints.
1008 (new_symfile_objfile, reread_symbols): Ditto.
1009 (oldsyms_complaint): Delete.
1010 (empty_symtab_complaint, unknown_option_complaint): Delete.
1011 (free_named_symtabs): Use complaint instead of complain.
1012
1013 2002-09-18 Michael Snyder <msnyder@redhat.com>
1014
1015 Contributed by Apple Computer, Inc. Merged with current sources
1016 by Adam Fedor <fedor@doc.com> [cagney].
1017
1018 * objc-lang.c: First clean-up round: comments, indentation.
1019 * objc-lang.h: Ditto.
1020 * objc-lang.y: Ditto.
1021
1022 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1023
1024 * maint.c (maintenance_internal_error): Print the parameter as the
1025 error message.
1026 (maintenance_internal_warning): New function.
1027 (_initialize_maint_cmds): Add command `maint internal-warning'.
1028
1029 * defs.h (internal_warning, internal_vwarning): Declare.
1030 * utils.c (struct internal_problem): Define.
1031 (internal_vproblem): New function.
1032 (internal_warning): New function.
1033 (internal_vwarning): New function.
1034 (internal_warning_problem, internal_error_problem): New variables.
1035 (internal_verror): Just call internal_vproblem.
1036
1037 2002-09-18 Michael Snyder <msnyder@redhat.com>
1038
1039 * objc-lang.c: New file, support for Objective-C.
1040 Preliminary check-in, not yet integrated into gdb.
1041 * objc-lang.h: New file.
1042 * objc-exp.y: New file.
1043
1044 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1045
1046 * infrun.c (signal_stop_update): Convert definition to ISO C.
1047 (signal_print_update): Ditto.
1048 (signal_pass_update): Ditto.
1049 * inflow.c (terminal_save_ours): Ditto.
1050
1051 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
1052 comments.
1053
1054 * config/djgpp/fnchange.lst: Handle name clashes between
1055 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
1056 bfd/coff-tic80.c.
1057
1058 * i386-linux-tdep.h: Fix tipo.
1059
1060 2002-09-18 Adam Fedor <fedor@gnu.org>
1061
1062 * MAINTAINERS: Add myself to the Write After Approval list.
1063
1064 2002-09-18 Jim Blandy <jimb@redhat.com>
1065
1066 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
1067 texthigh and textlow to reader-specific structs caused
1068 objfile_relocate to miss them. This is fixable, but the work that
1069 the change was supposed to prepare GDB for never got done anyway.
1070
1071 2002-09-18 David Carlton <carlton@math.stanford.edu>
1072
1073 * MAINTAINERS: Alphabetize Write After Approval list.
1074
1075 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
1076
1077 Fix PR gdb/709
1078 * values.c (value_static_field): Call read_var_value.
1079
1080 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1081
1082 * valops.c (hand_function_call): Align the initial stack pointer
1083 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
1084 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
1085 return value.
1086 * mips-tdep.c (mips_frame_align): New function.
1087 (mips_gdbarch_init): Set frame_align.
1088 * gdbarch.sh (FRAME_ALIGN): New method.
1089 * gdbarch.h, gdbarch.c: Re-generate.
1090
1091 2002-09-18 Michal Ludvig <mludvig@suse.cz>
1092
1093 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
1094 registers.
1095
1096 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1097
1098 * NEWS: Mention that MIPS $fp behavior changed.
1099 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
1100 reference to FP_REGNUM.
1101 (mipsnbsd_cannot_store_register): Ditto.
1102 * mips-linux-nat.c: Update copyright.
1103 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
1104 (mips_linux_cannot_store_register): Ditto.
1105 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
1106 * config/mips/tm-mips.h: Update copyright.
1107 (FP_REGNUM): Delete macro.
1108 (MIPS_REGISTER_NAMES): Replace "fp" with "".
1109 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
1110 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
1111 (mips_r3041_reg_names, mips_r3051_reg_names)
1112 (mips_r3081_reg_names): Replace "fp" with "".
1113 Fix PR gdb/480.
1114
1115 2002-09-17 Theodore A. Roth <troth@verinet.com>
1116
1117 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
1118 generic_read_register_dummy() (PR gdb/703).
1119 (avr_push_return_address): #if 0 out unused vars.
1120 (avr_gdbarch_init): Enable use of avr_push_return_address().
1121
1122 2002-09-17 Michael Snyder <msnyder@redhat.com>
1123
1124 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
1125 RTE will take care of it.
1126
1127 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1128
1129 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
1130 invalid, return SP_REGNUM.
1131
1132 2002-09-17 Michael Snyder <msnyder@redhat.com>
1133
1134 * mips-tdep.c (mips_pop_frame): Read saved values of floating
1135 point registers without sign extension.
1136
1137 2002-09-17 Andrew Cagney <cagney@redhat.com>
1138
1139 * blockframe.c (deprecated_read_register_dummy): Rename
1140 generic_read_register_dummy.
1141 * frame.c (frame_unwind_signed_register): New function.
1142 (frame_unwind_unsigned_register): New function.
1143 * frame.h (frame_unwind_signed_register): Declare.
1144 (frame_unwind_unsigned_register): Declare.
1145 (deprecated_read_register_dummy): Rename
1146 generic_read_register_dummy.
1147
1148 * h8300-tdep.c (h8300_frame_chain): Update.
1149 (h8300_frame_saved_pc): Update.
1150 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1151 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1152 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1153 (s390_frame_chain): Update.
1154 * v850-tdep.c (v850_find_callers_reg): Update.
1155 (v850_frame_saved_pc): Update.
1156 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1157 (m32r_find_callers_reg): Update.
1158 (m32r_frame_saved_pc): Update.
1159 * sh-tdep.c (sh_find_callers_reg): Update.
1160 (sh64_get_saved_pr): Update.
1161 (sh_init_extra_frame_info): Update.
1162 (sh_init_extra_frame_info): Update.
1163 (sh64_init_extra_frame_info): Update.
1164 (sh64_init_extra_frame_info): Update.
1165 * mcore-tdep.c (mcore_find_callers_reg): Update.
1166 (mcore_frame_saved_pc): Update.
1167 (mcore_init_extra_frame_info): Update.
1168 * i386-tdep.c (i386_frame_saved_pc): Update.
1169 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1170 (ia64_init_extra_frame_info): Update.
1171 (ia64_init_extra_frame_info): Update.
1172 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1173 * cris-tdep.c (cris_init_extra_frame_info): Update.
1174 * avr-tdep.c (avr_frame_chain): Update.
1175 (avr_init_extra_frame_info): Update.
1176 (avr_frame_saved_pc): Update.
1177 * arm-tdep.c (arm_find_callers_reg): Update.
1178 (arm_init_extra_frame_info): Update.
1179 (arm_frame_saved_pc): Update.
1180
1181 2002-09-17 Tom Tromey <tromey@redhat.com>
1182
1183 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1184 is "'".
1185
1186 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
1187
1188 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1189 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1190 NEXT_PROLOGUE_INSN.
1191 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1192 NEXT_PROLOGUE_INSN.
1193
1194 2002-09-16 Joel Brobecker <brobecker@gnat.com>
1195
1196 * osfsolib.c: Remove file, replaced by solib-osf.c.
1197 * Makefile.in: Remove compilation rules for osfsolib.c.
1198
1199 2002-09-16 David Carlton <carlton@math.stanford.edu>
1200
1201 * cp-valprint.c (cp_print_class_method): Correct args to
1202 check_stub_method_group.
1203
1204 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
1205
1206 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1207 `set architecture'. Unify naming convention of functions.
1208 (h8300_skip_prologue): Improve prologue analysis.
1209 (h8300_push_arguments): Rewritten to more closely match GCC's
1210 bizarre argument-passing behavior, along with the comment describing
1211 said behavior.
1212 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1213 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1214 sim, remote-e7000.c, remote-hms.c and remote.c
1215
1216 2002-09-15 Mark Kettenis <kettenis@gnu.org>
1217
1218 * i386-tdep.c (gdb_print_insn_i386): Removed.
1219 (i386_print_insn): New function.
1220 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1221 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1222 tm_print_insn_info.
1223
1224 2002-09-14 Mark Kettenis <kettenis@gnu.org>
1225
1226 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1227 zero.
1228
1229 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
1230
1231 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1232 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1233 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1234
1235 2002-09-13 Christopher Faylor <cgf@redhat.com>
1236
1237 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1238
1239 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
1240
1241 * gdbtypes.c (check_stub_method): Make static.
1242 (check_stub_method_group): New function.
1243 * gdbtypes.h: Update prototypes.
1244 * cp-support.c: New file.
1245 * cp-support.h: New file.
1246
1247 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1248 (update_method_name_from_physname): New function.
1249 (read_member_functions): Correct method names for operators
1250 and v3 constructors/destructors. Separate v2 constructors and
1251 destructors.
1252 * Makefile.in (stabsread.o): Update dependencies.
1253 (SFILES): Add cp-support.c.
1254 (COMMON_OBS): Add cp-support.o.
1255 (cp_support_h, cp-support.o): Add.
1256
1257 * cp-valprint.c (cp_print_class_method): Call
1258 check_stub_method_group instead of check_stub_method. Remove
1259 extraneous QUITs.
1260 * p-valprint.c (pascal_object_print_class_method): Likewise.
1261 * valops.c (search_struct_method): Likewise.
1262 (find_method_list, value_struct_elt_for_reference): Likewise.
1263
1264 2002-09-13 Andrew Cagney <cagney@redhat.com>
1265
1266 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1267 * gdbarch.h, gdbarch.c: Regenerate.
1268
1269 2002-09-13 Andrew Cagney <ac131313@redhat.com>
1270
1271 * frame.c (find_saved_register): Delete function.
1272 * frame.h (find_saved_register): Delete declaration.
1273 Fix PR gdb/631.
1274
1275 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1276
1277 * mips-tdep.c (read_next_frame_reg): Re-hack using
1278 frame_register_unwind.
1279
1280 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1281
1282 * mips-tdep.c (mips_get_saved_register): Re-hack using
1283 frame_register_unwind.
1284
1285 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1286
1287 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1288 vector. Will be useful for Interix.
1289 * gdbarch.h, gdbarch.c: Regenerate.
1290
1291 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1292 name of the malloc function by NAME_OF_MALLOC.
1293
1294 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1295
1296 * value.h (find_function_in_inferior): Add const keyword to
1297 one of the parameters. Allows us to invoke this function with
1298 a const char *.
1299 * valops.c (find_function_in_inferior): Likewise.
1300
1301 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1302
1303 * exec.c (xfer_memory): Fix compilation warning with old versions
1304 of GCC.
1305 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1306
1307 2002-09-12 David Carlton <carlton@math.stanford.edu>
1308
1309 * symtab.h: Run through gdb_indent.h.
1310 Add 2002 to Copyright year list.
1311
1312 2002-09-12 Alan Modra <amodra@bigpond.net.au>
1313
1314 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1315 mach constants.
1316 * MAINTAINERS: Add myself to write after approval list.
1317
1318 2002-09-11 J. Brobecker <brobecker@gnat.com>
1319
1320 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1321
1322 2002-09-11 J. Brobecker <brobecker@gnat.com>
1323
1324 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1325 Interix.
1326
1327 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1328
1329 * procfs.c (do_detach): Clear current signal, not just fault.
1330 Corrects problem with breakpoint trap signal leaking to detached
1331 process on Tru64.
1332
1333 2002-09-10 Michael Snyder <msnyder@redhat.com>
1334
1335 * buildsym.c (finish_block): Protect against null pointer.
1336
1337 2002-09-10 Andrew Cagney <cagney@redhat.com>
1338
1339 * infcmd.c (default_print_registers_info): Send all output to
1340 ``file'' instead of ``gdb_stdout''.
1341
1342 2002-09-10 Michael Snyder <msnyder@redhat.com>
1343
1344 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1345 LONGEST, and use signed register read (addresses are sign-
1346 extended for mips).
1347
1348 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1349
1350 * event-loop.c (gdb_do_one_event): Make public.
1351 * event-loop.h (gdb_do_one_event): Declare.
1352
1353 2002-09-10 Jeff Law <law@redhat.com>
1354
1355 * infttrace.c (child_resume): Simplify and rework to avoid
1356 TT_PROC_CONTINUE.
1357
1358 2002-09-09 Fred Fish <fnf@intrinsity.com>
1359
1360 * printcmd.c (print_scalar_formatted): "len" is the number of
1361 target bytes, NOT the number of target bits.
1362
1363 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
1364
1365 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1366 * top.c (init_main): Set rl_terminal_name.
1367
1368 2002-09-08 Aidan Skinner <aidan@velvet.net>
1369
1370 * ada-lang.c (ada_array_bound, ada_type_match,
1371 _initialize_ada_language): Fix K&R definitions.
1372 * ada-tasks.c (get_current_task): Fix K&R definitions.
1373 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1374
1375 2002-09-07 Christopher Faylor <cgf@redhat.com>
1376
1377 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1378 Add XP.
1379
1380 2002-09-06 Mark Kettenis <kettenis@gnu.org>
1381
1382 * i386-tdep.c (i386_register_virtual_type,
1383 i386_register_convertible, i386_register_convert_to_virtual,
1384 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1385 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1386 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1387 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1388 Don't set push_arguments twice.
1389
1390 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1391 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1392 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1393 sigtramp_end to NULL.
1394 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1395 defines.
1396 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1397
1398 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1399 whitespace.
1400
1401 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1402 * gdbarch.h, gdbarch.c: Re-generate.
1403 * blockframe.c (find_pc_sect_partial_function): Convert to use
1404 SIGTRAMP_START_P predicate.
1405
1406 2002-09-05 Michael Snyder <msnyder@redhat.com>
1407
1408 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1409 generic_dummy_frame method and old method. Also distinguish
1410 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1411 (arm_extract_return_value): Use new regcache method.
1412
1413 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1414 adjustment that doesn't conform to the ABI.
1415 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1416 saved regcache, not from current regcache.
1417
1418 2002-09-05 Andrew Cagney <ac131313@redhat.com>
1419
1420 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1421 * README: Update.
1422
1423 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1424
1425 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1426 if arm_apcs_32 is false.
1427
1428 2002-09-04 Andrew Cagney <ac131313@redhat.com>
1429
1430 GDB 5.3 branch created.
1431
1432 2002-09-03 Theodore A. Roth <troth@verinet.com>
1433
1434 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1435 generic_unwind_get_saved_register.
1436
1437 2002-09-03 David Carlton <carlton@math.stanford.edu>
1438
1439 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1440 argument (PR gdb/653). Update call to smash_to_method_type.
1441 (read_structure_scope): Update call to dwarf2_add_member_fn.
1442
1443 2002-09-03 Michal Ludvig <mludvig@suse.cz>
1444
1445 * x86-64-linux-tdep.c: Include gdb_string.h
1446 * x86-64-linux-nat.c: Ditto.
1447
1448 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1449
1450 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1451 when YYDEBUG is set to 1.
1452 * c-exp.y: Likewise.
1453 * f-exp.y: Likewise.
1454 * jv-exp.y: Likewise.
1455 * m2-exp.y: Likewise.
1456 * p-exp.y: Likewise.
1457
1458 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1459
1460 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1461 dependency list.
1462 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1463 solib_svr4_fetch_link_map_offsets to
1464 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1465 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1466 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1467 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1468 solib-svr4.o, and solib-legacy.o.
1469 * config/i386/tm-nbsd.h: Include solib.h.
1470
1471 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1472
1473 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1474 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1475 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1476 comment noting that this needs its own target configuration.
1477 * config/i386/nbsd.mt: New file.
1478 * config/i386/nbsdaout.mt: Remove.
1479 * config/i386/nbsdelf.mt: Ditto.
1480 * config/i386/tm-nbsdaout.h: Ditto.
1481
1482 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1483
1484 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1485 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1486 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1487 tdep->sigtramp_end.
1488 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1489 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1490 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1491
1492 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1493
1494 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1495 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1496 * i386-tdep.h (i386bsd_init_abi): New prototype.
1497 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1498 function declaration.
1499 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1500 for NetBSD-a.out or NetBSD-ELF.
1501 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1502 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1503 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1504 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1505 and nbsd-tdep.h.
1506 (i386nbsd_pc_in_sigtramp): New function.
1507 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1508 i386nbsd_pc_in_sigtramp.
1509 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1510 and i386nbsdelf_init_abi OS ABI handlers.
1511 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1512 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1513
1514 2002-09-02 Mark Kettenis <kettenis@gnu.org>
1515
1516 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1517 registers if the target really has them.
1518
1519 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1520
1521 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1522 than nbsd-tdep.h.
1523
1524 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1525
1526 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1527 list.
1528 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1529 (alphanbsd_skip_sigtramp_frame): New functions.
1530 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1531 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1532 to alphanbsd_sigcontext_addr.
1533
1534 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1535
1536 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1537 list.
1538 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1539 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1540 nbsd_pc_in_sigtramp.
1541 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1542 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1543 * nbsd-tdep.c: Include gdb_string.h.
1544 (nbsd_pc_in_sigtramp): New function.
1545 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1546 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1547 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1548 ppcnbsd_pc_in_sigtramp.
1549 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1550 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1551 shnbsd_pc_in_sigtramp.
1552 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1553 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1554 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1555
1556 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1557
1558 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1559 watchpoints to NULL.
1560 (insert_breakpoints): set val field of watchpoints if NULL.
1561
1562
1563 2002-08-29 Jim Blandy <jimb@redhat.com>
1564
1565 * symtab.c (lookup_symbol_aux): In the cases where we find a
1566 minimal symbol of an appropriate name and use its address to
1567 select a symtab to read and search, use `name' (as passed to us)
1568 as the demangled name when searching the symtab's global and
1569 static blocks, not the minsym's name.
1570
1571 2002-08-29 Keith Seitz <keiths@redhat.com>
1572
1573 * stack.c (print_frame_info_base): Always set current_source_symtab
1574 and current_source_line.
1575
1576 2002-08-29 Donn Terry <donnte@microsoft.com>
1577
1578 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1579
1580 2002-08-28 Keith Seitz <keiths@redhat.com>
1581
1582 * stack.c (select_frame): Add FIXME concerning selected-frame
1583 events.
1584 (select_frame_command): Send selected-frame-level-changed
1585 event notification, but only if the level actually changed.
1586 (up_silently_base): Add selected-frame-level-changed event
1587 notification.
1588 (down_silently_base): Likewise.
1589
1590 2002-08-28 Andrew Cagney <ac131313@redhat.com>
1591
1592 * Makefile.in: Update dependencies for all gdb/*.c files.
1593
1594 2002-08-27 Tom Tromey <tromey@redhat.com>
1595
1596 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1597 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1598 Update dependencies.
1599 * i387-tdep.c: Include gdb_string.h.
1600 * osabi.c: Likewise.
1601 * i386-linux-nat.c: Likewise.
1602 * lin-lwp.c: Likewise.
1603 * ax-gdb.c: Likewise.
1604 * signals/signals.c: Likewise.
1605 * jv-valprint.c: Likewise.
1606 * p-lang.c: Likewise.
1607 * c-valprint.c: Likewise.
1608 * cp-abi.c: Likewise.
1609
1610 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
1611
1612 * cli/cli-script.h (copy_command_lines): Export.
1613 * breakpoint.c: Include cli/cli-script.h.
1614 * Makefile.in (breakpoint.o): Update dependencies.
1615
1616 2002-08-26 Michael Snyder <msnyder@redhat.com>
1617
1618 * breakpoint.c (insert_breakpoints): Protect all references
1619 to 'process_warning'. Shorten long lines.
1620
1621 2002-08-26 Joel Brobecker <brobecker@gnat.com>
1622
1623 * cli/cli-script.c (copy_command_lines): New function.
1624 * defs.h (copy_command_lines): Export.
1625 * testsuite/gdb.base/commands.exp: New tests for commands
1626 attached to a temporary breakpoint, and for commands that
1627 delete the breakpoint they are attached to.
1628
1629 2002-08-26 Michael Snyder <msnyder@redhat.com>
1630
1631 * breakpoint.c (bpstat_stop_status): Instead of copying the
1632 pointer to the breakpoint commands struct, make a new copy
1633 of the struct and point to that.
1634 (bpstat_clear): Free the commands struct.
1635 (bpstat_clear_actions): Free the commands struct.
1636 (bpstat_do_actions): Free the command actions. Also execute
1637 the local cleanups, instead of deleting them.
1638 (delete_breakpoint): Leave the commands field of the bpstat
1639 chain alone -- it will be freed later.
1640
1641 2002-08-26 Kevin Buettner <kevinb@redhat.com>
1642
1643 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1644 deleted in 2002-08-20 commit. This function is still used by
1645 ppc-linux-nat.c.
1646
1647 2002-08-26 Keith Seitz <keiths@redhat.com>
1648
1649 * gdb-events.sh: Add selected-frame-level-changed event.
1650 * gdb-events.c: Regenerated.
1651 * gdb-events.h: Regenerated.
1652
1653 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1654
1655 Fix PR gdb/393:
1656 * inflow.c (terminal_save_ours): New function to save terminal
1657 settings.
1658 * inferior.h (terminal_save_ours): Declare.
1659 * target.c (debug_to_terminal_save_ours): New function.
1660 (cleanup_target): Defaults to_terminal_save_ours.
1661 (update_current_target): Inherit to_terminal_save_ours.
1662 (setup_target_debug): Set to_terminal_save_ours.
1663 * target.h (target_terminal_save_ours): New to save terminal settings.
1664 (target_ops): New member to_terminal_save_ours.
1665 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1666 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1667 * inftarg.c (init_child_ops): Likewise.
1668 * m3-nat.c (init_m3_ops): Likewise.
1669 * procfs.c (init_procfs_ops): Likewise.
1670 * wince.c (init_child_ops): Likewise.
1671 * win32-nat.c (init_child_ops): Likewise.
1672 * sol-thread.c (init_sol_thread_ops): Likewise.
1673
1674 2002-08-26 Mark Kettenis <kettenis@gnu.org>
1675
1676 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1677 use regcache_* functions.
1678 (i386_gdbarch_init): Set store_return_value instead of
1679 deprecated_store_return_value.
1680
1681 * regcache.c (regcache_raw_write_signed,
1682 regcache_raw_write_unsigned): New functions.
1683 * regcache.h (regcache_raw_write_signed,
1684 regcache_raw_write_unsigned): New prototypes.
1685
1686 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1687
1688 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1689 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1690 source file dependencies. Cleanup corresponding generator rules.
1691
1692 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1693
1694 * regcache.h (register_offset_hack): Declare.
1695 (regcache_cooked_read_using_offset_hack): Declare.
1696 (regcache_cooked_write_using_offset_hack): Declare.
1697
1698 * regcache.c (register_offset_hack): New function.
1699 (regcache_cooked_read_using_offset_hack): New function.
1700 (regcache_cooked_write_using_offset_hack): New function.
1701 (regcache_dump): Check that the registers, according to their
1702 offset, are packed hard against each other.
1703 (cooked_xfer_using_offset_hack): New function.
1704
1705 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1706
1707 * regcache.c (struct regcache_descr): Add field register_type.
1708 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1709 in as a parameter
1710 (init_regcache_descr): Initialize register_type. Pass the descr
1711 to init_legacy_regcache_descr. Use register_type instead of
1712 REGISTER_VIRTUAL_TYPE.
1713 (register_type): New function.
1714 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1715 * regcache.h (register_type): Declare.
1716
1717 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1718
1719 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1720 instead of deprecated_store_return_value. Fix fallout from
1721 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1722
1723 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1724
1725 * regcache.c (max_register_size): New function.
1726 (init_legacy_regcache_descr): Ensure that max_register_size is
1727 large enough for REGISTER_VIRTUAL_SIZE.
1728 * regcache.h (max_register_size): Declare.
1729
1730 2002-08-24 Andrew Cagney <ac131313@redhat.com>
1731
1732 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1733 store_return_value.
1734 (e500_extract_return_value): Change type of valbuf pointer to
1735 void.
1736
1737 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1738
1739 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1740 workaround.
1741
1742 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1743 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1744 long long) to prevent compiler warning on 64-bit systems.
1745
1746 2002-08-23 Andrew Cagney <cagney@redhat.com>
1747
1748 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1749 (DEPRECATED_STORE_RETURN_VALUE): New method.
1750 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1751 * gdbarch.h, gdbarch.c: Re-generate.
1752
1753 * values.c (set_return_value): Pass current_regcache to
1754 STORE_RETURN_VALUE.
1755 * arch-utils.h (legacy_store_return_value): Declare.
1756 * arch-utils.c (legacy_store_return_value): New function.
1757 (legacy_extract_return_value): Update parameters.
1758
1759 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1760 STORE_RETURN_VALUE.
1761 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1762 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1763 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1764 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1765 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1766 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1767 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1768 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1769 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1770 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1771
1772 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1773 * i386-tdep.c (i386_extract_return_value): Update.
1774 * arch-utils.c (legacy_extract_return_value): Update.
1775 * frv-tdep.c (frv_gdbarch_init): Update.
1776 * cris-tdep.c (cris_gdbarch_init): Update.
1777 * d10v-tdep.c (d10v_gdbarch_init): Update.
1778 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1779 * m68k-tdep.c (m68k_gdbarch_init): Update.
1780 * mcore-tdep.c (mcore_gdbarch_init): Update.
1781 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1782 * s390-tdep.c (s390_gdbarch_init): Update.
1783 * sparc-tdep.c (sparc_gdbarch_init): Update.
1784 * sh-tdep.c (sh_gdbarch_init): Update.
1785 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1786 * v850-tdep.c (v850_gdbarch_init): Update.
1787 * avr-tdep.c (avr_gdbarch_init): Update.
1788 * ia64-tdep.c (ia64_gdbarch_init): Update.
1789 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1790 * vax-tdep.c (vax_gdbarch_init): Update.
1791 * alpha-tdep.c (alpha_gdbarch_init): Update.
1792 * arm-tdep.c (arm_gdbarch_init): Update.
1793 * mips-tdep.c (mips_gdbarch_init): Update.
1794 * i386-tdep.c (i386_gdbarch_init): Update.
1795
1796 2002-08-23 Andrew Cagney <ac131313@redhat.com>
1797
1798 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1799 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1800
1801 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1802
1803 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1804 problems.
1805
1806 2002-08-23 Joel Brobecker <brobecker@gnat.com>
1807
1808 * infrun.c (handle_inferior_event): Move a comment outside of a
1809 function call, in order to avoid indent reformatting this part
1810 of the code in an unreadable way.
1811
1812 2002-08-23 Grace Sainsbury <graces@redhat.com>
1813
1814 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1815 when breakpoints fail. Move general breakpoint error messages to
1816 insert_breakpoints.
1817 * breakpoint.c (insert_breakpoints): Change warnings when
1818 breakpoints are nto inserted to specify the type. Remove call to
1819 memory_error when hardware breakpoints can't be inserted. Remove
1820 multiple calls to warning so all messages are sent to the user at
1821 once.
1822 (delete_breakpoints): Make insert error messsages more explicit.
1823
1824 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
1825
1826 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1827 gdbserver/ChangeLog.
1828
1829 2002-08-23 Mark Kettenis <kettenis@gnu.org>
1830
1831 * i386-tdep.c: Include "objfiles.h".
1832 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1833 skip_trampoline_code.
1834 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1835 (CPLUS_MARKER): Define to '.'.
1836
1837 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1838 member.
1839 (linux_corefile_thread_callback): Increase args->num_notes.
1840 (linux_make_note_section): Initialize thread_args.num_notes, and
1841 use it to determine whether notes for any threads were created.
1842
1843 2002-08-23 Donn Terry <donnte@microsoft.com>
1844
1845 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1846 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1847 and PCUNKILL.
1848 (write_with_trace): Conditionalize out the switch branch handling
1849 PCSHOLD if the corresponding macro is not defined. Likewise for
1850 PRSABORT and PRSTOP.
1851 This change will be needed by the Interix port.
1852
1853 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1854
1855 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1856 write_register wherever possible instead of manipulating the
1857 register bytes directly.
1858 Assign VALUE_CONTENTS to a variable and use that.
1859 The GPR numbers are now dependent on the architecture.
1860
1861 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1862
1863 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1864 ev_offset fields.
1865 (skip_prologue): Add support for BookE/e500 instructions.
1866 (e500_extract_return_value): New function.
1867 (frame_get_saved_regs): Add support for saving ev registers and
1868 pseudo gpr's.
1869 (e500_store_return_value): New function.
1870 (rs6000_gdbarch_init): Move up default intializations of
1871 deprecated_extract_return_value and store_return_value. Overwrite
1872 init of store_return_value with e500 specific version.
1873 Set extract_return_value for e500.
1874
1875 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1876
1877 * blockframe.c (generic_call_dummy_register_unwind): Use
1878 regcache_cooked_read to catch cases in which the variable is
1879 stored in a pseudo register.
1880
1881 2002-08-22 Andrew Cagney <cagney@redhat.com>
1882
1883 * NEWS: Mention that the i960 has been made obsolete.
1884 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1885 i960-tdep.c
1886 (remote-nrom.o): Obsolete target.
1887 (remote-nindy.o, i960-tdep.o): Ditto.
1888 * remote-nrom.c: Make file obsolete.
1889 * remote-nindy.c, remote-vx960.c: Ditto.
1890 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1891 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1892 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1893 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1894 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1895 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1896 i960-*-vxworks* obsolete.
1897 * MAINTAINERS: Note that the i960 is obsolete.
1898
1899 2002-08-21 Corinna Vinschen <vinschen@redhat.com
1900
1901 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1902 detach to allow reinitialization.
1903
1904 2002-08-22 Andrew Cagney <ac131313@redhat.com>
1905
1906 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1907 attempt).
1908
1909 2002-08-22 Jim Blandy <jimb@redhat.com>
1910
1911 * coffread.c (coff_symfile_read): Don't try to read the line
1912 number table from disk if the image file doesn't have a symbol
1913 table; we'll never actually look at the info anyway, and Windows
1914 ships DLL's with bogus file offsets for the line number data.
1915
1916 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1917
1918 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1919 an e500 executable.
1920
1921 2002-08-21 Michael Snyder <msnyder@redhat.com>
1922
1923 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1924 (MSYMBOL_SIZE): Replace macro with function.
1925 (DEFAULT_MIPS_TYPE): Delete unused macro.
1926 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1927 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1928
1929 2002-08-21 Jim Blandy <jimb@redhat.com>
1930
1931 * valops.c (value_cast): Simplify and correct logic for doing a
1932 static cast from a pointer to a base class to a pointer to a
1933 derived class.
1934
1935 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1936
1937 * infcmd.c (default_print_registers_info): Replace
1938 do_registers_info.
1939 (registers_info): Use gdbarch_print_registers_info instead of
1940 DO_REGISTERS_INFO.
1941 * inferior.h (default_print_registers_info): Replace
1942 do_registers_info.
1943 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1944 (DO_REGISTERS_INFO): Change to a predicate function.
1945 * gdbarch.h, gdbarch.c: Regenerate.
1946
1947 2002-08-21 Keith Seitz <keiths@redhat.com>
1948
1949 * gdb-events.sh: Add target-changed event.
1950 * gdb-events.c: Regenerated.
1951 * gdb-events.c: Regenerated.
1952 * valops.c (value_assign): Add target-changed event notification
1953 to inlval_register, lval_memory, and lval_reg_frame_relative.
1954
1955 2002-08-21 Joel Brobecker <brobecker@gnat.com>
1956
1957 * NEWS: Add an entry regarding the improvement of the next/step
1958 operation on Alpha Tru64 multi-processor machines.
1959
1960 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1961
1962 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1963 directores.
1964 * Makefile.in: Update all _h macro definitions.
1965 * Makefile.in (install-gdbtk): Move to install section.
1966 (rdi-share/libangsd.a): Move to end of file.
1967
1968 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1969
1970 * frame.c (frame_register_unwind): When a register, set addrp to
1971 the register's byte.
1972
1973 2002-08-20 Michael Snyder <msnyder@redhat.com>
1974
1975 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1976 used locally, so move them from the target machine header to here.
1977 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1978 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1979 Make static.
1980 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1981
1982 2002-08-20 Andrew Cagney <cagney@redhat.com>
1983
1984 * NEWS: Mention that the Apollo line was made obsolete.
1985 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1986 m68*-hp-hpux* obsolete.
1987 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1988 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1989 * buildsym.c (make_blockvector): Make static.
1990 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1991 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1992 (ALLDEPFILES): Remove dstread.c.
1993 (dstread.o): Obsolete make rule.
1994 * dstread.c: Makefile obsolete.
1995 * dst.h: Ditto.
1996 * config/m68k/hp300hpux.mt: Ditto.
1997 * config/m68k/hp300hpux.mh: Ditto.
1998 * config/m68k/hp300bsd.mt: Ditto.
1999 * config/m68k/hp300bsd.mh: Ditto.
2000 * config/m68k/apollo68b.mt: Ditto.
2001 * config/m68k/apollo68v.mh: Ditto.
2002 * config/m68k/apollo68b.mh: Ditto.
2003
2004 2002-08-20 Michael Snyder <msnyder@redhat.com>
2005
2006 * mips-tdep.c (mips_in_return_stub): Make static.
2007 (mips_gdbarch_init): Set in_solib_return_trampoline.
2008 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
2009
2010 2002-08-20 Michael Snyder <msnyder@redhat.com>
2011
2012 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
2013 * gdbarch.c, gdbarch.h: Regenerate.
2014 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
2015 Add.
2016 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
2017
2018 2002-08-20 Michael Snyder <msnyder@redhat.com>
2019
2020 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
2021 (mips_gdbarch_init): Set skip_trampoline_code,
2022 in_solib_call_trampoline.
2023 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
2024 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
2025
2026 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2027
2028 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
2029
2030 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
2031 vector type for ev registers.
2032 (e500_pseudo_register_read): New function.
2033 (e500_pseudo_register_write): New function.
2034 (e500_dwarf2_reg_to_regnum): New function.
2035 (PPC_UISA_NOFP_SPRS): New macro.
2036 (PPC_EV_REGS): New macro.
2037 (PPC_GPRS_PSEUDO_REGS): New macro.
2038 (registers_e500): New register set for e500.
2039 (variants): Add e500 variant.
2040 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
2041 before setting architectural dependent variations. Initialize ev
2042 registers numbers. Add case for e500 architecture. Set the
2043 number of pseudo registers.
2044
2045 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2046
2047 * rs6000-tdep.c: Clean up comments.
2048
2049 2002-08-20 Andrew Cagney <cagney@redhat.com>
2050
2051 * h8300-tdep.c: Re-indent file.
2052
2053 2002-08-20 Jim Blandy <jimb@redhat.com>
2054
2055 * Makefile.in (LDFLAGS): Allow the configure script to establish a
2056 default for this.
2057
2058 2002-08-20 Keith Seitz <keiths@redhat.com>
2059
2060 * breakpoints.c (watch_command_1): Use internal breakpoint
2061 when setting a watchpoint_scope breakpoint.
2062
2063 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2064
2065 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
2066 (build_builtin_type_vec64i): Ditto.
2067 (build_builtin_type_vec128): Ditto.
2068 (build_builtin_type_vec128i): Ditto.
2069
2070 2002-08-19 Michael Snyder <msnyder@redhat.com>
2071
2072 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
2073 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
2074 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
2075 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
2076 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
2077 CALL_DUMMY_ADDRESS): Delete.
2078 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
2079 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
2080 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
2081 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
2082 push_return_address.
2083 (mips_register_raw_size, mips_eabi_use_struct_convention,
2084 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
2085 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
2086 mips_init_extra_frame_info, mips_eabi_push_arguments,
2087 mips_n32n64_push_arguments, mips_push_return_address,
2088 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
2089 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
2090
2091 2002-08-19 Michael Snyder <msnyder@redhat.com>
2092
2093 * mips-tdep.c (mips_frame_num_args): New function.
2094 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
2095 frame_saved_pc, frame_args_address, frame_locals_address,
2096 frame_num_args, and frame_args_skip.
2097 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
2098 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
2099 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
2100 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
2101
2102 2002-08-20 Michael Snyder <msnyder@redhat.com>
2103
2104 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
2105 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2106 * mips-tdep.c (mips_store_struct_return): New function.
2107 (mips_extract_struct_value_address): New function.
2108 (mips_gdbarch_init): Set store_struct_return and
2109 extract_struct_value_address.
2110
2111 2002-08-20 David Carlton <carlton@math.stanford.edu>
2112
2113 * dwarf2read.c (dwarf2_build_psymtabs): Check that
2114 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
2115 (read_file_scope): Check that line_header is nonzero before
2116 decoding macro information.
2117
2118 2002-08-20 Mark Kettenis <kettenis@gnu.org>
2119
2120 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
2121 flag the general-purpose registers as floating-point on targets
2122 that don't support the floating-point registers.
2123
2124 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2125
2126 * rs6000-tdep.c (altivec_register_p): Delete.
2127 (rs6000_do_altivec_registers): Delete.
2128 (rs6000_altivec_registers_info): Delete.
2129 (rs6000_do_registers_info): Delete.
2130 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
2131 (rs6000_gdbarch_init): Remove setting of do_registers_info.
2132
2133 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2134
2135 * infcmd.c (do_registers_info): Print vector registers in hex
2136 format only.
2137 (print_vector_info): Check that printing registers
2138 makes sense.
2139 (print_float_info): Ditto.
2140
2141 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2142
2143 * mips-tdep.c (mips_gdbarch_init): Update.
2144 (mips_o32_extract_return_value): Rewrite.
2145 (mips_o32_store_return_value): Rewrite.
2146 (mips_o32_xfer_return_value): New function.
2147 (mips_xfer_register): Tweak debug print message. Allow for
2148 buf_offset when dumping the value transfered.
2149
2150 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2151
2152 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2153 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2154 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2155 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2156 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2157
2158 2002-08-14 Michael Snyder <msnyder@redhat.com>
2159
2160 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2161
2162 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2163
2164 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2165 register.
2166 (P): New macro to define a register as a pseudo register.
2167 (R, R4, R8, R16, FR32, R64, R0): Updated.
2168 (struct variant): Add new fields for number of pseudo registers
2169 and number of total registers.
2170 (tot_num_registers): New macro replacing....
2171 (num_registers): ...deleted macro.
2172 (num_registers): New function.
2173 (num_pseudo_registers): New function.
2174 (variants): Update all variants to intialize new fields correctly.
2175 Postpone initialization of number of pseudo regs and real regs.
2176 (init_variants): New function.
2177 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2178 registers offsets.
2179
2180 2002-08-19 David Carlton <carlton@math.stanford.edu>
2181
2182 * valops.c (search_struct_field): Change error message to treat
2183 return value of 0 from value_static_field as meaning that field is
2184 optimized out.
2185 (value_struct_elt_for_reference): Ditto.
2186 * values.c (value_static_field): Treat an unresolved location the
2187 same as a nonexistent symbol. Fix PR gdb/635.
2188 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2189 enclosed. Fix PR gdb/574.
2190 * MAINTAINERS: Add self to Write After Approval list.
2191
2192 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2193
2194 * mips-tdep.c (mips_xfer_register): New function.
2195 (mips_n32n64_extract_return_value): Rewrite.
2196 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2197 instead of deprecated_extract_return_value.
2198
2199 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2200
2201 * rs6000-tdep.c (TDEP): Delete macro.
2202 (branch_dest): Replace use of TDEP macro with its body.
2203 (rs6000_pop_frame): Ditto.
2204 (rs6000_push_arguments): Ditto.
2205 (rs6000_skip_trampoline_code): Ditto.
2206 (rs6000_frame_saved_pc): Ditto.
2207 (rs6000_frame_chain): Ditto.
2208 (rs6000_register_name): Ditto.
2209 (rs6000_register_byte): Ditto.
2210 (rs6000_register_raw_size): Ditto.
2211 (rs6000_register_virtual_type): Ditto.
2212 (rs6000_register_convertible): Ditto.
2213 (rs6000_convert_from_func_ptr_addr): Ditto.
2214
2215 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
2216
2217 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2218 conditionally.
2219 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2220 MIPS_LINUX_JB_ELEMENT_SIZE.
2221 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2222 for MAX_REGISTER_RAW_SIZE arrays.
2223 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2224 MIPS_LINUX_JB_ELEMENT_SIZE.
2225
2226 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2227
2228 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2229
2230 2002-08-19 Aidan Skinner <aidan@velvet.net>
2231
2232 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2233 ada-valprint.c ada-tasks.c.
2234 (YYFILES): Add ada-exp.y.
2235 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2236 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2237 (ada-exp.tab.o): New target.
2238
2239 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2240
2241 * regcache.c (regcache_xfer_part): New function.
2242 (regcache_raw_read_part): New function.
2243 (regcache_raw_write_part): New function.
2244 (regcache_cooked_read_part): New function.
2245 (regcache_cooked_write_part): New function.
2246 * regcache.h (regcache_raw_read_part): Declare.
2247 (regcache_raw_write_part): Declare.
2248 (regcache_cooked_read_part): Declare.
2249 (regcache_cooked_write_part): Declare.
2250
2251 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
2252
2253 * remote.c (remote_open_1): Add async_p.
2254 (remote_async_open_1): Delete.
2255 (open_remote_target): Delete.
2256 (remote_open, extended_remote_open): Update calls to remote_open_1.
2257 (remote_async_open, extended_remote_async_open): Call
2258 remote_open_1 instead of remote_async_open_1.
2259
2260 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2261
2262 * blockframe.c: Fix a few coding standard violations.
2263
2264 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2265
2266 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2267 here from ...
2268 * config/i386/tm-i386sco5.h: ... here. File removed.
2269 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2270
2271 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
2272 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2273 (TM_FILE): Set to tm-i386.h.
2274 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2275 * config/i386/tm-i386v.h: Remove file.
2276 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2277 instead of "i386/tm-i386v.h".
2278 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2279 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2280 "i386/tm-i386v.h".
2281 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2282 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2283 "i386/tm-i386.h".
2284
2285 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2286
2287 * config/i386/nm-i386v.h: Add protection against
2288 multiple-inclusion.
2289 (i386_register_u_addr): Remove prototype.
2290 (register_u_addr): New prototype.
2291 (REGISTER_U_ADDR): Redefine accordingly.
2292 * i386v-nat.c: Improve several comments.
2293 (i386_register_u_addr): Change signature and rename to
2294 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2295 ubase variable.
2296
2297 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2298
2299 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2300 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2301 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2302 deprecated_extract_return_value.
2303 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2304 rename mips_o32o64_push_arguments.
2305 (mips_gdbarch_init): Update.
2306 (mips_extract_return_value): Delete.
2307 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2308 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2309 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2310 (mips_n32n64_extract_return_value): Clone
2311 mips_extract_return_value.
2312 (mips_store_return_value): Delete.
2313 (mips_o32_store_return_value): Clone mips_store_return_value.
2314 (mips_o64_store_return_value): Clone mips_store_return_value.
2315 (mips_eabi_store_return_value): Clone mips_store_return_value.
2316 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2317
2318 2002-08-18 Aidan Skinner <aidan@velvet.net>
2319
2320 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2321 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2322
2323 2002-08-18 Aidan Skinner <aidan@velvet.net>
2324
2325 * ada-lang.c: Run through gdb_indent.sh.
2326 * ada-lang.h: Run through gdb_indent.sh.
2327 * ada-tasks.c: Run through gdb_indent.sh.
2328 * ada-typeprint.c: Run through gdb_indent.sh.
2329 * ada-valprint.c: Run through gdb_indent.sh.
2330
2331 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2332
2333 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2334 ABI.
2335
2336 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2337
2338 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2339
2340 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2341 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2342
2343 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2344 write_register_gen instead of write_register_bytes.
2345
2346 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2347 i[3456]-*-osf1mk* configurations have been made obsolete.
2348 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2349 i[3456]86-*-osf1mk* hosts obsolete.
2350 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2351 targets obsolete.
2352 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2353 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2354 config/i386/i386m3.mt, config/i386/nm-m3.h,
2355 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2356 config/i386/i386mk.mh, config/i386/i386mk.mt,
2357 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2358 obsolete.
2359 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2360 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2361 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2362
2363 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2364
2365 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2366 (hppa_value_returned_from_stack): Declare.
2367 (hppa_extract_return_value): Declare.
2368 * config/pa/hppa.mt: New file.
2369 * configure.tgt: Recognize hppa*-*-*.
2370 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2371
2372 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2373
2374 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2375 comment.
2376
2377 2002-08-17 Mark Kettenis <kettenis@gnu.org>
2378
2379 * top.c (gdb_rl_operate_and_get_next): Make sure
2380 operate-and-get-next functions correctly even when the history
2381 list is completely filled.
2382
2383 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2384
2385 * MAINTAINERS (Target Instruction Set Architectures): Rename
2386 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2387 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2388 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2389 already listed under Host/Native.
2390
2391 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2392 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2393 mips*-*-*.
2394
2395 2002-08-17 Andrew Cagney <ac131313@redhat.com>
2396
2397 * config/ia64/ia64.mt: New file.
2398 * config/alpha/alpha.mt: New file.
2399 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2400 ia64-linux-gnu. Mention that ia64-elf is broken.
2401 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2402
2403 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2404
2405 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2406 generic_func_frame_valid instead of func_frame_valid.
2407
2408 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2409
2410 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2411 procfs appears to be broken when debugging on multi-processor
2412 machines. So enable software single stepping in order to avoid
2413 using the procfs interface to do next/step operations, using
2414 internal breakpoints instead.
2415
2416 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2417 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2418 make this pc address equal to the value it would have if the
2419 system stepping capability was used. Also set a new flag used
2420 to ensure that we don't readjust the PC one more time later.
2421
2422 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2423 address by DECR_PC_AFTER_BREAK when software single step is
2424 in use for this architecture, as this has already been taken
2425 care of in handle_inferior_event().
2426
2427 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2428
2429 * infrun.c (handle_inferior_event): Minor reformatting, to make
2430 a rather long condition expression easier to read.
2431
2432 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2433
2434 * Makefile.in (gdbtk.o): Move to end of file.
2435 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2436 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2437 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2438 (gdbtk-wrapper.o, gdbres.o): Ditto.
2439
2440 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2441
2442 * Makefile.in (copying.o): Separate out compile rule.
2443 (hpux-thread.o, procfs.o, signals.o): Ditto.
2444 (v850ice.o, z8k-tdep.o): Ditto.
2445 (tui-file.o): Move to TUI section.
2446 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2447 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2448
2449 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2450
2451 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2452 skip_trampoline_code, for better namespace-proofing.
2453
2454 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2455
2456 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2457
2458 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2459
2460 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2461
2462 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2463 signal, check whether we hit a breakpoint before checking for a
2464 single step breakpoint. Otherwise, GDB fails to notice that a
2465 breakpoint has been hit when stepping onto a breakpoint.
2466
2467 2002-08-16 Keith Seitz <keiths@redhat.com>
2468
2469 * gdb-events.sh (clear_gdb_event_hooks): New function.
2470 * gdb-events.c: Regenerate.
2471 * gdb-events.h: Regenerate.
2472
2473 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2474
2475 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2476 not_a_sw_breakpoint.
2477 * breakpoint.h (bpstat_stop_status): Add parameter names.
2478
2479 2002-08-16 Grace Sainsbury <graces@redhat.com>
2480
2481 * remote.c (remote_insert_hw_breakpoint)
2482 (remote_remove_hw_breakpoint): Fix calculation of length field
2483 for Z-packet.
2484
2485 2002-08-15 Michael Snyder <msnyder@redhat.com>
2486
2487 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2488 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2489 (supply_fpregset): Ditto.
2490
2491 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2492 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2493 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2494 (TARGET_READ_SP): Delete.
2495 (DO_REGISTERS_INFO): Delete.
2496 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2497 Delete.
2498 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2499 from macros to functions.
2500
2501 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2502 (mips_register_convertible, mips_register_convert_to_virtual,
2503 mips_register_convert_to_raw): Make static.
2504 (mips_read_sp): New function.
2505 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2506 (mips_do_registers_info): Make static.
2507 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2508 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2509 (mips_register_convert_from_type, mips_register_convert_to_type):
2510 New functions.
2511 (mips_gdbarch_init): Set up function_start_offset,
2512 register_virtual_size, pc_in_sigtramp.
2513
2514 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2515
2516 * infcmd.c (vector_info): New function.
2517 (_initialize_infcmd): Add command "info vector".
2518 (print_vector_info): New function.
2519
2520 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2521 * gdbarch.h, gdbarch.c: Regenerate.
2522
2523 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2524
2525 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2526 ``print_all''. Only print vector registers when ``print_all''.
2527
2528 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2529
2530 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2531 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2532
2533 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2534 Add `args' parameter.
2535 * gdbarch.h, gdbarch.c: Regenerate.
2536
2537 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2538
2539 * infcmd.c (float_info): Call print_float_info.
2540 (print_float_info): New function. By default, print the
2541 floating-point registers.
2542
2543 * arch-utils.h (default_print_float_info): Delete declaration.
2544 * arch-utils.c (default_print_float_info): Delete function.
2545
2546 2002-08-16 Mark Kettenis <kettenis@gnu.org>
2547
2548 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2549 out define.
2550
2551 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2552 FRAME.
2553
2554 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2555 * configure.host: Make i[3456]86-*-aix host obsolete.
2556 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2557 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2558 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2559 config/i386/xm-i386aix.h: Make files obsolete.
2560 * i386aix-nat.c: Make file obsolete.
2561 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2562 (i386aix-nat.o): Make target obsolete.
2563
2564 * config/i386/nm-gnu.h: Removed.
2565 * config/i386/nm-i386gnu.h: New file.
2566 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2567 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2568 Moved here from ...
2569 * config/i386/tm-i386gnu.h: ... here. Removed.
2570 * config/i386/xm-i386gnu.h: Removed.
2571 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2572 (NAT_FILE): Set to nm-i386gnu.h.
2573 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2574 * i386-tdep.c: New file.
2575 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2576 (i386gnu-tdep.o): Specify dependencies.
2577
2578 2002-08-15 Mark Kettenis <kettenis@gnu.org>
2579
2580 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2581 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2582 Adjust a few comments to reflect reality a bit closer.
2583 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2584 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2585 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2586 target_insert_watchpoint, target_remove_watchpoint):
2587 Move defines to ...
2588 * config/i386/nm-i386sco5.h: ... here.
2589 (kernel_u_size): Add prototype. Improve a few comments and add
2590 protection against multiple inclusion.
2591
2592 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2593 out define.
2594
2595 * uw-thread.c (SP_ARG0): Define if not already defined.
2596 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2597
2598 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2599
2600 * config/i386/tm-i386.h: Don't include "regcache.h".
2601
2602 * i387-tdep.h (i387_print_float_info): New prototype.
2603 * i387-tdep.c (print_i387_value, print_i387_ext,
2604 print_i387_status_word, print_i387_control_word): Add `struct
2605 ui_file *' argument and use it for output.
2606 (i387_print_float_info): Renamed from i387_float_info. Add
2607 `struct gdbarch *' and `struct ui_file *' arguments and use the
2608 latter for output.
2609 * i386-tdep.c: Include "i387-tdep.h".
2610 (i386_gdbarch_init): Set print_float_info.
2611 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2612 (FLOAT_INFO): Remove define.
2613
2614 2002-08-13 Michael Snyder <msnyder@redhat.com>
2615
2616 * mips-tdep.c (mips_push_arguments): Rename to
2617 mips_eabi_push_arguments, and tune for EABI.
2618 (MIPS_REGS_HAVE_HOME_P): Delete.
2619 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2620 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2621 Delete references to mips_regs_have_home_p.
2622
2623 2002-08-14 Keith Seitz <keiths@redhat.com>
2624
2625 * Makefile.in (install-gdbtk): Create insight plugin directory.
2626 Install plugins.tcl file.
2627
2628 2002-08-14 Keith Seitz <keiths@redhat.com>
2629
2630 * configure.in: Move SUBDIRS to near top of the file so that
2631 --enable options may add things to it.
2632 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2633 * configure: Regenerate.
2634
2635 2002-08-13 Michael Snyder <msnyder@redhat.com>
2636
2637 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2638 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2639 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2640
2641 2002-08-13 Andrew Cagney <ac131313@redhat.com>
2642
2643 * vax-tdep.c (vax_get_saved_register): Delete function.
2644 (vax_gdbarch_init): Update.
2645 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2646 (ns32k_gdbarch_init): Update.
2647 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2648 (alpha_gdbarch_init): Update.
2649
2650 2002-08-13 Andrew Cagney <cagney@redhat.com>
2651
2652 * regcache.c (init_regcache_descr): Overallocate the
2653 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2654 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2655 nr_raw_registers.
2656 (set_register_cached): Add range checking assertions. Use
2657 current_regcache.
2658
2659 2002-08-13 Mark Kettenis <kettenis@gnu.org>
2660
2661 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2662 numbers for MMX registers.
2663
2664 2002-08-13 Andrew Cagney <cagney@redhat.com>
2665
2666 * i386-tdep.c (i386_gdbarch_init): Use
2667 generic_unwind_get_saved_register.
2668
2669 2002-08-13 Kevin Buettner <kevinb@redhat.com>
2670
2671 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2672 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2673 target vector.
2674 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2675 Delete. Add comment regarding this now-deleted target method.
2676
2677 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2678
2679 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2680 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2681 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2682 real PC and the page number (if it's within the memory bank window).
2683 (m68hc11_pseudo_register_write): Likewise when saving.
2684 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2685 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2686 (m68hc11_register_raw_size): And use 32-bit for it.
2687 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2688 16K memory bank is used by the prog; also use the virtual pc.
2689
2690 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2691
2692 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2693 (m68hc11_gdbarch_init): Install it in gdbarch.
2694 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2695 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2696 (MSYMBOL_SIZE): New for documentation.
2697 (insn_return_kind): Enum to specify how a function returns.
2698 (frame_extra_info): Cleanup and record the return mode.
2699 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2700 register in address computation.
2701 (m68hc11_get_return_insn): New to obtain the return instruction used
2702 by the function.
2703 (m68hc11_frame_init_saved_regs): Take into account the return
2704 instruction used by the function for far and interrupt functions.
2705 (m68hc11_init_extra_frame_info): Take into account page register.
2706 (m68hc11_frame_args_address): Adjust according to the return mode.
2707 (show_regs): Print page register only when it's used.
2708
2709 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2710
2711 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2712 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2713 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2714 registers.
2715 (m68hc11_register_raw_size): Likewise.
2716
2717 2002-08-13 Andrew Cagney <cagney@redhat.com>
2718
2719 * i386-tdep.c (i386_register_name): Handle mmx registers.
2720 (mmx_regnum_p): New function.
2721 (i386_mmx_names): New array.
2722 (mmx_num_regs): New variable.
2723 (i386_pseudo_register_read): New function.
2724 (i386_pseudo_register_write): New function.
2725 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2726
2727 * regcache.c (regcache_raw_read_unsigned): New function.
2728 (regcache_raw_read_signed): New function.
2729 * regcache.h (regcache_raw_read_unsigned): Declare.
2730 (regcache_raw_read_signed): Declare.
2731
2732 2002-08-13 Andrew Cagney <cagney@redhat.com>
2733
2734 * regcache.c (regcache_raw_read_as_address): Delete function.
2735 (regcache_cooked_read_signed): New function.
2736 (regcache_cooked_read_unsigned): New function.
2737 * regcache.h (regcache_cooked_read_signed): Declare.
2738 (regcache_cooked_read_unsigned): Declare.
2739 (regcache_raw_read_as_address): Delete declaration.
2740
2741 * blockframe.c (generic_read_register_dummy): Use
2742 regcache_cooked_read_unsigned.
2743 * i386-tdep.c (i386_extract_struct_value_address): Use
2744 regcache_cooked_read_unsigned.
2745
2746 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2747
2748 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2749 double sizes according to ELF ABI flags.
2750 (gdbarch_tdep): Record elf_flags.
2751
2752 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2753
2754 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2755 (m6812_prolog): They can appear in 68HC12 function prologue.
2756 (m68hc11_frame_chain): Cleanup.
2757
2758 2002-08-12 Andrew Cagney <cagney@redhat.com>
2759
2760 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2761 declarations.
2762 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2763 (i386_linux_register_raw_size): Delete function.
2764 (i386_linux_init_abi): Update.
2765 * i386-tdep.c (i386_register_raw_size): Delete function.
2766 (i386_register_byte): Delete function.
2767 (i386_gdbarch_init): Update.
2768 (i386_register_size): Delete array.
2769 (i386_register_offset): Delete array.
2770
2771 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2772 (REGISTER_RAW_SIZE): Delete macro.
2773 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2774 (REGISTER_BYTE): Delete macro.
2775
2776 2002-08-11 Aidan Skinner <aidan@velvet.net>
2777
2778 * ada-lang.c (ada_lookup_partial_symbol)
2779 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2780 prototype names so that grep ^func works properly.
2781
2782 * ada-lang.c (ada_array_element_type)
2783 (ada_lookup_partial_symbol): Fix typos in parameter list.
2784
2785 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2786 Fix prototype names so that grep ^func works properly.
2787
2788 2002-08-10 Andrew Cagney <cagney@redhat.com>
2789 Elena Zannoni <ezannoni@redhat.com>
2790 Martin M. Hunt <hunt@redhat.com>
2791
2792 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2793 (build_builtin_type_vec128i): Set the vector bit.
2794 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2795 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2796 (build_builtin_type_vec64): New function.
2797 (build_builtin_type_vec64i): New function.
2798 (build_gdbtypes): Initialize builtin_type_vec64 and
2799 builtin_type_vec64i.
2800
2801 2002-08-09 Andrew Cagney <cagney@redhat.com>
2802
2803 * regcache.c (regcache_dump): Compare the register offset
2804 with REGISTER_BYTE.
2805 * arch-utils.c (generic_register_byte): New function.
2806 * arch-utils.h (generic_register_byte): Declare.
2807 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2808 * gdbarch.h, gdbarch.c: Regenerate.
2809
2810 2002-08-09 Andrew Cagney <cagney@redhat.com>
2811
2812 * regcache.c: Include "gdbcmd.h"
2813 (_initialize_regcache): Add commands "maintenance print
2814 registers", "maintenance print raw-registers" and "maintenance
2815 print cooked-registers".
2816 (enum regcache_dump_what): Define.
2817 (dump_endian_bytes): New function.
2818 (regcache_dump): New function.
2819 (regcache_print): New function.
2820 (maintenance_print_registers): New function.
2821 (maintenance_print_raw_registers): New function.
2822 (maintenance_print_cooked_registers): New function.
2823 * Makefile.in (regcache.o): Update dependencies.
2824
2825 2002-08-09 Michael Snyder <msnyder@redhat.com>
2826
2827 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2828 (mips_push_arguments): Correct some comments. Use paddr_nz
2829 for printing addresses in debug output. Replace static
2830 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2831 (mips_n32n64_push_arguments): New function, cloned from
2832 mips_push_arguments and tuned for the n32/n64 ABI.
2833 (mips_push_register): Buffer needs dynamic allocation.
2834 (mips_print_register): Ditto.
2835 (do_gp_register_row): Ditto.
2836 (mips_store_return_value): Ditto.
2837 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2838
2839 2002-08-09 Don Howard <dhoward@redhat.com>
2840
2841 * memattr.c (mem_info_command): Print special case of upper bound
2842 as max CORE_ADDR + 1.
2843
2844 2002-08-08 Michael Snyder <msnyder@redhat.com>
2845
2846 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2847 returns structs by ref if they're too big to fit in two registers.
2848
2849 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2850
2851 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2852 saved regs value.
2853 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2854 mips_find_saved_regs().
2855 (mips_pop_frame): Likewise.
2856
2857 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2858
2859 * blockframe.c (frame_saved_regs_register_unwind): Revise
2860 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2861 frames are in use.
2862
2863 2002-08-09 Grace Sainsbury <graces@redhat.com>
2864
2865 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2866 T-packets; the 'a' is not taken as a register number.
2867 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2868 (remote_stopped_data_address): New functions; add to target
2869 vector.
2870 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2871 prototypes to match other implementations of this
2872 function. replace integer argument with pointer -- the length
2873 field in the Z-packet is the length of what is pointed to or 1 if
2874 pointer is null. Add to target vector.
2875 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2876 target vector.
2877
2878 From Mark Salter:
2879 * remote.c (remote_wait): Add support to extract optional
2880 watchpoint information from T-packet. Ignore unrecognized
2881 optional info in T-packet.
2882 (remote_async_wait): Ditto.
2883
2884 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
2885
2886 * cli/cli-dump.c: Change fopen modes to use binary open modes
2887 as defined in include/fopen-bin.h throughout.
2888
2889 2002-08-08 Michael Snyder <msnyder@redhat.com>
2890
2891 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2892
2893 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2894
2895 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2896 assertion failure by returning early after a warning.
2897
2898 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2899
2900 * mips-tdep.c (mips_find_saved_regs): Make static.
2901 (mips_frame_init_saved_regs): New function.
2902 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2903 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2904 (mips_find_saved_regs): Delete declaration.
2905
2906 2002-08-08 Grace Sainsbury <graces@redhat.com>
2907
2908 * remote.c (remote_wait, remote_async_wait): Change
2909 thread_num from int to ULONGEST.
2910 (unpack_varlen_hex): Change result parameter from
2911 int * to ULONGEST *.
2912
2913 2002-08-08 Andrew Cagney <ac131313@redhat.com>
2914
2915 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2916 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2917 powerpc*-*-*.
2918 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2919
2920 2002-08-08 Andrew Cagney <cagney@redhat.com>
2921
2922 * gcore.c (override_derive_stack_segment): Delete variable.
2923 (preempt_derive_stack_segment): Delete function.
2924 (derive_stack_segment): Delete function.
2925 (default_derive_stack_segment): Renamed to derive_stack_segment.
2926 (override_derive_heap_segment): Delete variable.
2927 (preempt_derive_heap_segment): Delete function.
2928 (derive_heap_segment): Delete function.
2929 (default_derive_heap_segment): Rename to derive_heap_segment.
2930
2931 2002-08-06 Michael Snyder <msnyder@redhat.com>
2932
2933 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2934 * mips-tdep.c (mips_EABI_use_struct_convention,
2935 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2936 New functions. (mips_use_struct_convention): Delete.
2937 (mips_gdbarch_init): set use_gdbarch_convention.
2938
2939 2002-08-06 Michael Snyder <msnyder@redhat.com>
2940
2941 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2942 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2943 mips_o32_reg_struct_has_addr): New functions.
2944 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2945
2946 2002-08-07 Andrew Cagney <ac131313@redhat.com>
2947
2948 * regcache.c (pseudo_register): Delete function.
2949 (fetch_register): Delete function.
2950 (store_register): Delete function.
2951 (regcache_raw_read, legacy_read_register_gen): Use
2952 target_fetch_registers instead of fetch_register.
2953 (legacy_write_register_gen, regcache_raw_write): Use
2954 target_store_register instead of store_register.
2955 (write_register_bytes): Ditto.
2956
2957 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2958 (STORE_PSEUDO_REGISTER): Delete.
2959 * gdbarch.h, gdbarch.c: Regenerate.
2960
2961 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
2962
2963 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2964 write dump file binary.
2965
2966 2002-08-05 Michael Snyder <msnyder@redhat.com>
2967
2968 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2969 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2970 (mips_gdbarch_init): Set N32 target to be mips64.
2971
2972 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2973
2974 * frame.c (find_saved_register): Break out of loop once saved
2975 register address is found. Don't mention sparc in loop comment
2976 anymore.
2977
2978 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2979
2980 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2981 mips_default_saved_regsize to 8.
2982
2983 2002-08-06 Andrew Cagney <ac131313@redhat.com>
2984
2985 * gcore.c: Do not include <sys/procfs.h>.
2986 * Makefile.in (gcore.o): Update dependencies.
2987
2988 2002-08-06 Andrew Cagney <cagney@redhat.com>
2989
2990 * configure.tgt: Make arc-*-* obsolete.
2991 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2992 * MAINTAINERS: Make arc-elf obsolete.
2993 * arc-tdep.c: Make file obsolete.
2994 * config/arc/arc.mt: Ditto.
2995 * config/arc/tm-arc.h: Ditto.
2996
2997 2002-08-05 Theodore A. Roth <troth@verinet.com>
2998
2999 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
3000
3001 2002-08-05 Andrew Cagney <ac131313@redhat.com>
3002
3003 * mcore-tdep.c (mcore_gdbarch_init): Use
3004 generic_unwind_get_saved_register instead of
3005 generic_get_saved_register.
3006 * v850-tdep.c (v850_gdbarch_init): Ditto.
3007 * frv-tdep.c (frv_gdbarch_init): Ditto.
3008 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3009 * s390-tdep.c (s390_gdbarch_init): Ditto.
3010 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3011 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
3012 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
3013
3014 2002-08-05 Joel Brobecker <brobecker@gnat.com>
3015
3016 * objfiles.h: Add missing #include "symfile.h"
3017
3018 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
3019
3020 2002-08-04 Andrew Cagney <ac131313@redhat.com>
3021
3022 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
3023 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
3024 of FIELD_BITSIZE.
3025
3026 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
3027
3028 * NEWS: Cleanup and nitpick.
3029
3030 2002-08-03 Andrew Cagney <ac131313@redhat.com>
3031
3032 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
3033
3034 2002-08-03 Andrew Cagney <ac131313@redhat.com>
3035
3036 * Makefile.in (gdbtk-bp.o): Update dependencies.
3037 (gdbtk-register.o): Ditto.
3038 (gdbtk-varobj.o): Ditto.
3039
3040 2002-08-03 Andrew Cagney <cagney@redhat.com>
3041
3042 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
3043 m68hc11_fetch_pseudo_register.
3044 (m68hc11_pseudo_register_write): Replace
3045 m68hc11_store_pseudo_register.
3046 (m68hc11_gdbarch_init): Update.
3047
3048 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
3049
3050 * gdbarch.sh: Include "gdb_string.h".
3051 * gdbarch.c: Regenerate.
3052
3053 * regcache.c: Include "gdb_string.h".
3054 * ax-general.c: Ditto.
3055 * varobj.c: Ditto.
3056 * std-regs.c: Ditto.
3057 * fbsd-proc.c: Ditto.
3058 * thread.c: Ditto.
3059
3060 * Makefile.in (regcache.o): Update dependencies.
3061 (thread.o, gdbarch.o): Ditto.
3062 (ax-general.o, gdbarch.o): Ditto.
3063 (varobj.o, std-regs.o): Ditto.
3064 (fbsd-proc.o): Specify dependencies.
3065
3066 2002-08-02 Andrew Cagney <cagney@redhat.com>
3067
3068 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
3069 regnum.
3070 (regcache_cooked_write): Ditto.
3071
3072 2002-08-02 Andrew Cagney <ac131313@redhat.com>
3073
3074 * regcache.c (regcache_cooked_read): New function.
3075 (regcache_cooked_write): New function.
3076 (read_register_gen): Rewrite using regcache_cooked_read.
3077 (write_register_gen): Rewrite using regcache_cooked_write.
3078
3079 * regcache.h (regcache_cooked_read, regcache_cooked_write):
3080 Declare.
3081
3082 2002-08-02 Andrew Cagney <cagney@redhat.com>
3083
3084 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
3085 Replace the architecture methods register_read and register_write.
3086 * gdbarch.h, gdbarch.c: Regenerate.
3087 * regcache.c (init_regcache_descr): Update.
3088 (read_register_gen): Update.
3089 (write_register_gen): Update.
3090 (supply_register): Update comment.
3091
3092 * sh-tdep.c (sh_gdbarch_init): Update.
3093 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
3094 `regcache' and `gdbarch' parameters. Make `buffer' a void
3095 pointer. Update code.
3096 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
3097 `regcache' and `gdbarch' parameters. Make `buffer' a constant
3098 void pointer. Update code.
3099 (sh64_register_write): Delete.
3100 (sh4_register_read): Delete.
3101 (sh64_register_read): Delete.
3102 (sh4_register_write): Delete.
3103 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
3104 void pointer, `to' parameter a void pointer.
3105 (sh_sh64_register_convert_to_raw): Ditto.
3106
3107 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3108
3109 * mips-tdep.c (mips_register_virtual_type): Use architecture
3110 invariant return values.
3111
3112 2002-08-01 Andrew Cagney <cagney@redhat.com>
3113
3114 * linux-proc.c: Include "gdb_string.h".
3115 * Makefile.in (linux-proc.o): Update dependency list.
3116
3117 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3118
3119 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
3120 comment.
3121
3122 2002-08-01 Grace Sainsbury <graces@redhat.com>
3123
3124 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3125 to_insert_watchpoint, to_remove_watchpoint,
3126 to_stopped_by_watchpoint, to_stopped_data_address,
3127 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
3128 target vecctor. Define their corresponding macros so they call
3129 them.
3130
3131 * target.c: Add default and debug versions of for
3132 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3133 to_insert_watchpoint, to_remove_watchpoint,
3134 to_stopped_by_watchpoint, to_stopped_data_address,
3135 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
3136
3137 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3138
3139 * mips-tdep.c (mips_register_virtual_type): New function.
3140 (mips_gdbarch_init): Register mips_register_virtual_type()
3141 with gdbarch machinery.
3142 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3143 this file instead of tm-bigmips.h.
3144 (MIPS_REGSIZE): Delete this macro.
3145 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
3146 multiarch version in mips-tdep.c will be found.
3147
3148 2002-08-01 Andrew Cagney <cagney@redhat.com>
3149
3150 * NEWS: Menion that CHILL has been made obsolete.
3151
3152 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
3153 * stabsread.c (read_range_type): Ditto.
3154 * gdbtypes.h: Ditto.
3155 * language.c (binop_type_check): Ditto.
3156 (binop_result_type): Ditto.
3157 (integral_type): Ditto.
3158 (character_type): Ditto.
3159 (string_type): Ditto.
3160 (boolean_type): Ditto.
3161 (structured_type): Ditto.
3162 (lang_bool_type): Ditto.
3163 (binop_type_check): Ditto.
3164 * language.h (_LANG_chill): Ditto.
3165 * dwarfread.c (set_cu_language): Ditto.
3166 * dwarfread.c (CHILL_PRODUCER): Ditto.
3167 * dwarfread.c (handle_producer): Ditto.
3168 * expression.h (enum exp_opcode): Ditto.
3169 * eval.c: Ditto for comments.
3170 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3171 * expprint.c (print_subexp): Ditto.
3172 (print_subexp): Ditto.
3173 * valops.c (value_cast): Ditto.
3174 (search_struct_field): Ditto.
3175 * value.h (COERCE_VARYING_ARRAY): Ditto.
3176 * symfile.c (init_filename_language_table): Ditto.
3177 (add_psymbol_with_dem_name_to_list): Ditto.
3178 * valarith.c (value_binop): Ditto.
3179 (value_neg): Ditto.
3180 * valops.c (value_slice): Ditto.
3181 * symtab.h (union language_specific): Ditto.
3182 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3183 (SYMBOL_DEMANGLED_NAME): Ditto.
3184 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3185 * defs.h (enum language): Ditto.
3186 * symtab.c (got_symtab): Ditto.
3187 * utils.c (fprintf_symbol_filtered): Ditto.
3188
3189 * ch-typeprint.c: Make file obsolete.
3190 * ch-valprint.c: Make file obsolete.
3191 * ch-lang.h: Make file obsolete.
3192 * ch-exp.c: Make file obsolete.
3193 * ch-lang.c: Make file obsolete.
3194
3195 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3196 CHILL_LIB.
3197 (TARGET_FLAGS_TO_PASS): Ditto.
3198 (CHILLFLAGS): Obsolete.
3199 (CHILL): Obsolete.
3200 (CHILL_FOR_TARGET): Obsolete.
3201 (CHILL_LIB): Obsolete.
3202 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3203 ch-valprint.c.
3204 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3205 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3206 ch-lang.o.
3207 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3208 targets.
3209
3210 2002-07-31 Joel Brobecker <brobecker@gnat.com>
3211
3212 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3213 This does not change anything at the moment, but will be helpful
3214 later when full Ada support is integrated.
3215
3216 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3217
3218 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3219 help message.
3220
3221 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3222
3223 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3224 and save it in a local variable. Use variable in later test.
3225
3226 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3227
3228 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3229 test. (Thanks to Daniel Jacobowitz.)
3230
3231 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3232
3233 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3234 (mips_abi_strings): Add "n64".
3235 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3236
3237 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3238
3239 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3240 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3241
3242 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3243
3244 * utils.c (host_pointer_to_address, address_to_host_pointer):
3245 Use gdb_assert() instead of explicit call to internal_error().
3246
3247 2002-07-30 Kevin Buettner <kevinb@redhat.com>
3248
3249 * Makefile.in (rs6000-nat.o): Update dependencies.
3250
3251 From Nicholas Duffek:
3252 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3253 (aix-thread.o): New rule.
3254 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3255 * config/powerpc/aix432.mh: New file.
3256
3257 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3258
3259 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3260 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3261 (fetch_core_registers, ppc_linux_supply_gregset)
3262 (ppc_linux_supply_fpregset): New functions.
3263 (ppc_linux_regset_core_fns): New.
3264 (_initialize_ppc_linux_tdep): Call add_core_fns.
3265 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3266 and ppc_linux_supply_gregset.
3267 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3268 (supply_fpregset): Call ppc_linux_supply_fpregset.
3269 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3270 corelow.o.
3271 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3272
3273 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3274
3275 * symtab.c (lookup_symbol): Demangle before lowercasing.
3276
3277 2002-07-30 Andrew Cagney <ac131313@redhat.com>
3278
3279 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3280 declaration.
3281 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3282 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3283 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3284 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3285 "gdb_string.h".
3286 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3287 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3288 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3289 (avr-tdep.o, mon960-rom.o): Ditto.
3290 (aout_stabs_gnu_h): Define.
3291 (symtab_h): Remove $(gdb_obstack_h).
3292
3293 2002-07-30 Jim Blandy <jimb@redhat.com>
3294
3295 Patch from David Carlton <carlton@math.stanford.edu>:
3296 * gdbinit.in: Move the `dir' commands that add GDB's own source
3297 directory to the search path to the end, so that the `gdb' source
3298 directory will be searched first.
3299
3300 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3301
3302 * gdb_obstack.h: New file.
3303 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3304 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3305 * objfiles.h: Include "gdb_obstack.h".
3306 * Makefile.in (gdb_obstack_h): Define.
3307 (symtab_h): Add $(gdb_obstack_h).
3308 (objfiles_h): Add $(gdb_obstack_h).
3309
3310 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3311 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3312 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3313 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3314 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3315 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3316 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3317 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3318
3319 * Makefile.in (bcache.o): Update dependencies.
3320 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3321 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3322 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3323 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3324 (stabsread.o, symfile.o, symmisc.o): Ditto.
3325 (symtab.o, typeprint.o, macroexp.o): Ditto.
3326 (macrotab.o, mdebugread.o): Ditto.
3327 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3328 (coff_ecoff_h, aout_aout64_h): Define.
3329 (aout_stabs_gnu_h, libaout_h): Define.
3330
3331 2002-07-29 Andrew Cagney <cagney@redhat.com>
3332
3333 * regcache.c (struct regcache_descr): Rename nr_registers to
3334 nr_cooked_registers. Revise comments describing the structure
3335 member fields.
3336 (init_regcache_descr): Update.
3337 (init_legacy_regcache_descr): Update.
3338 (read_register_gen, write_register_gen): When a cooked register in
3339 the raw register range, directly access the value from the raw
3340 register cache.
3341
3342 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3343
3344 * z8k-tdep.c: Do not include "obstack.h".
3345 * h8300-tdep.c, h8500-tdep.c: Ditto.
3346 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3347 * valprint.c, v850-tdep.c: Ditto.
3348 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3349 * mn10200-tdep.c: Ditto.
3350
3351 * Makefile.in (z8k-tdep.o): Update dependencies.
3352 (m68hc11-tdep.o, valprint.o): Ditto.
3353 (v850-tdep.o, d10v-tdep.o): Ditto.
3354 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3355 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3356 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3357 (sh_opc_h, gdb_sim_sh_h): Define.
3358 (elf_sh_h, elf_bfd_h): Define.
3359 (opcode_m68hc11_h): Define.
3360 (OPCODES_SRC, OPCODES_DIR): define.
3361 (OPCODES): Use $(OPCODES_DIR).
3362 (gdb_sim_d10v_h): Rename sim_d10v_h.
3363 (gdb_sim_arm_h): Rename sim_arm_h.
3364
3365 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3366
3367 * utils.c (host_pointer_to_address, address_to_host_pointer):
3368 Change internal_error() message to indicate function responsible
3369 for the error.
3370
3371 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3372
3373 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3374 calls to local_hex_string_custom().
3375
3376 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3377
3378 * irix5-nat.c: Move IRIX shared library support from here...
3379 * solib-irix.c: ...to here. Revised substantially to work with
3380 generic solib framework.
3381
3382 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3383 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3384 * mips-irix-tdep.c: New file.
3385
3386 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3387 (mips-irix-tdep.o, solib-irix.o): New rules.
3388 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3389 solib-irix.o.
3390 * config/mips/irix6.mt (TDEPFILES): Likewise.
3391 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3392
3393 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3394
3395 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3396 disabled (via ``#if 0'') includes.
3397
3398 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3399
3400 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3401 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3402 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3403 Add support for the fpscr register.
3404 * rs6000-nat.c (regmap, fetch_inferior_registers)
3405 (store_inferior_registers, fetch_core_registers): Likewise.
3406
3407 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3408
3409 * rs6000-nat.c (language.h): Include.
3410 (special_regs): Delete this array.
3411 (regmap): New function.
3412 (fetch_register, store_register): Use regmap() to map gdb
3413 register numbers to ptrace register numbers. Also, use
3414 outputs from regmap() to make decisions regarding type of
3415 ptrace() call to make. In particular, don't compare against
3416 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3417 (fetch_inferior_registers, store_inferior_registers): Where
3418 possible, obtain register numbers from tdep struct. Don't
3419 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3420 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3421 (LAST_UISA_SP_REGNUM): Delete.
3422
3423 2002-07-25 Kevin Buettner <kevinb@redhat.com>
3424
3425 * rs6000-nat.c (ppc-tdep.h): Include.
3426 (fetch_registers, store_register, fetch_core_registers): Don't
3427 access registers[] directly. Instead, use supply_register() or
3428 regcache_collect() as appropriate.
3429 (find_toc_address): Format hex address with local_hex_string().
3430
3431 2002-07-25 Andrew Cagney <ac131313@redhat.com>
3432
3433 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3434 bfd/elf32-frv.c.
3435
3436 2002-07-24 Tom Tromey <tromey@redhat.com>
3437
3438 * jv-exp.y: Marked all strings with _().
3439 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3440 internal_error.
3441 (MethodInvocation, CastExpression, parse_number, yyerror,
3442 java_type_from_name, push_expression_name, yylex): Typo fixes.
3443
3444 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
3445
3446 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3447 (tee_file_flush, tee_file_write, tee_file_fputs)
3448 (tee_file_isatty): New.
3449 * ui-file.h (tee_file_new): Add prototype.
3450
3451 2002-07-24 Aidan Skinner <aidan@velvet.net>
3452
3453 * ada-lang.c: Change k&r style function definitions to prototyped
3454 form.
3455 * ada-typeprint.c: Change k&r style function definitions to prototyped
3456 form.
3457 * ada-valprint.c: Change k&r style function definitions to prototyped
3458 form.
3459
3460 2002-07-24 Andrew Cagney <cagney@redhat.com>
3461
3462 * README: Remove reference to remote-bug.
3463 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3464 remote-bug.c.
3465 (m88k-nat.o): Delete rule.
3466 (m88k-tdep.o): Delete rule.
3467 (remote-bug.o): Delete rule.
3468 * MAINTAINERS: Mark as obsolete.
3469 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3470 * m88k-tdep.c: Make file obsolete.
3471 * config/m88k/m88k.mh: Ditto.
3472 * config/m88k/delta88v4.mh: Ditto.
3473 * config/m88k/delta88v4.mt: Ditto.
3474 * config/m88k/delta88.mt: Ditto.
3475 * config/m88k/delta88.mh: Ditto.
3476 * remote-bug.c: Ditto.
3477 * config/m88k/tm-delta88.h: Ditto.
3478 * config/m88k/nm-delta88v4.h: Ditto.
3479 * config/m88k/xm-delta88.h: Ditto.
3480 * config/m88k/xm-dgux.h: Ditto.
3481 * config/m88k/tm-m88k.h: Ditto.
3482 * config/m88k/nm-m88k.h: Ditto.
3483 * config/m88k/tm-delta88v4.h: Ditto.
3484 * m88k-nat.c: Ditto.
3485 * cxux-nat.c: Ditto.
3486 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3487 and m88*-*-* obsolete.
3488 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3489 m88*-*-* obsolete.
3490
3491 2002-07-24 Andrew Cagney <cagney@redhat.com>
3492
3493 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3494 constant. Same for local pointer variables.
3495 (extract_signed_integer): Ditto.
3496 * defs.h (extract_unsigned_integer): Update.
3497 (extract_signed_integer): Update.
3498
3499 2002-07-24 Andrew Cagney <cagney@redhat.com>
3500
3501 * regcache.c (regcache_raw_write): Change buf parameter to a
3502 constant void pointer.
3503 (regcache_raw_read): Change buf parameter to a void pointer.
3504 (legacy_write_register_gen): Change myaddr parameter a constant
3505 void pointer.
3506 (supply_register): Change val parameter to a const void pointer.
3507 * regcache.h (regcache_raw_write): Update declaration.
3508 (regcache_raw_read): Update declaration.
3509 (supply_register): Update declaration.
3510
3511 2002-07-24 Tom Tromey <tromey@redhat.com>
3512
3513 * defs.h (gdb_readline_wrapper): Declare.
3514 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3515 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3516 * top.c (gdb_readline_wrapper): New function.
3517 (command_line_input): Use it.
3518
3519 2002-07-24 Andrew Cagney <cagney@redhat.com>
3520
3521 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3522 regcache_read and regcache_write.
3523 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3524 * regcache.c: Update.
3525 * sh-tdep.c (sh64_push_arguments): Update comment.
3526 (sh_pseudo_register_read): Update.
3527 (sh_pseudo_register_write): Update.
3528 (sh4_register_read): Update.
3529 (sh4_register_write): Update.
3530 (sh64_pseudo_register_read): Update.
3531 (sh64_pseudo_register_write): Update.
3532 (sh64_register_read): Update.
3533 (sh64_register_write): Update.
3534 * i386-tdep.c (i386_extract_return_value): Update.
3535 (i386_extract_struct_value_address): Update.
3536 (i386_extract_return_value): Update.
3537 * blockframe.c (generic_read_register_dummy): Update.
3538 (generic_call_dummy_register_unwind): Update
3539 * infrun.c (write_inferior_status_register): Update.
3540
3541 2002-07-23 Jim Blandy <jimb@redhat.com>
3542
3543 * parser-defs.h (expression_context_pc): Make this extern.
3544 (Thanks to Michael Snyder.)
3545
3546 2002-07-23 Andrew Cagney <ac131313@redhat.com>
3547
3548 GDB 5.2.1 released from 5.2 branch.
3549 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3550 * README: Update to mention 5.2.1.
3551
3552 2002-07-23 Mark Salter <msalter@redhat.com>
3553
3554 * remote.c (remote_read_bytes): Fix check for error.
3555
3556 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3557
3558 * aix-thread.c (language.h): Include.
3559 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3560 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3561 Print newlines at end of debug messages.
3562 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3563 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3564
3565 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3566
3567 * aix-thread.c (ppc-tdep.h): Include.
3568 (special_register_p): New function.
3569 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3570 (store_regs_user_thread): Use register number information from
3571 gdbarch_tdep struct instead of hardcoded offsets relative to
3572 FIRST_UISA_SP_REGNUM.
3573 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3574 special_register_p() instead of using FPLAST_REGNUM and
3575 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3576 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3577 will be MQ's register number.
3578
3579 2002-07-22 Michael Snyder <msnyder@redhat.com>
3580
3581 * aix-thread.c (ops): Rename to aix_thread_ops.
3582 (base_ops): Rename to base_target.
3583 (ops_attach): Rename to aix_thread_attach.
3584 (ops_detach): Rename to aix_thread_detach.
3585 (ops_resume): Rename to aix_thread_detach.
3586 (ops_wait): Rename to aix_thread_wait.
3587 (ops_kill): Rename to aix_thread_kill.
3588 (init_ops): Rename to init_aix_thread_ops.
3589 (ops_fetch_register): Rename to aix_thread_fetch_register.
3590 (ops_store_register): Rename to aix_thread_store_register.
3591 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3592 (ops_thread_alive): Rename to aix_thread_thread_alive.
3593 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3594 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3595 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3596 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3597 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3598 (store_regs_lib): Rename to store_regs_user_thread.
3599 (store_regs_kern): Rename to store_regs_kernel_thread.
3600
3601 2002-07-22 Michael Snyder <msnyder@redhat.com>
3602
3603 * aix-thread.c (ops_prepare_to_store): Eliminate.
3604 (init_ops): Don't initialize ops.prepare_to_store.
3605 (store_regs_kern): Pre-fetch register buffers from child,
3606 because some registers may not be in the cache. Copy
3607 regs from register cache only if they are cached.
3608 (store_regs_lib): Copy regs from register cache only
3609 if they are cached.
3610 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3611 fill_gprs64): Ditto.
3612
3613 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3614
3615 * aix-thread.c (gdb_assert.h): Include.
3616 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3617 register sizes (from register cache) match size of buffer holding
3618 register data.
3619 (fill_sprs32): Change parameter types to match those in the ptrace()
3620 buffer.
3621 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3622 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3623
3624 2002-07-22 Michael Snyder <msnyder@redhat.com>
3625
3626 * aix-thread.c (supply_sprs64): Cosmetic change.
3627 (supply_sprs32): Cosmetic change.
3628 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3629 (fill_sprs64): Use regcache_collect instead of read_register.
3630 (store_regs_lib): Use regcache_collect instead of
3631 read_register. Use fill_sprs32 instead of fill_sprs64,
3632 if debugging a 32-bit architecture.
3633 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3634 out of the register cache, instead of passing a pointer into
3635 the register cache directly to ptrace. Use regcache_collect
3636 insteaad of read_register.
3637 (ops_prepare_to_store): Use target_read_registers instead
3638 of read_register_bytes.
3639
3640 2002-07-20 Aidan Skinner <aidan@velvet.net>
3641
3642 * MAINTAINERS: Add self under write after approval.
3643
3644 2002-07-20 Aidan Skinner <aidan@velvet.net>
3645
3646 * ada-tasks.c: Change k&r style function definitions to prototyped
3647 form.
3648
3649 2002-07-19 Andrew Cagney <ac131313@redhat.com>
3650
3651 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3652 * x86-64-tdep.c: Include "objfiles.h".
3653 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3654 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3655
3656 2002-07-17 Michal Ludvig <michal@suse.cz>
3657
3658 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3659 (update_context): Initialise cfa variable.
3660
3661 2002-07-17 Michael Snyder <msnyder@redhat.com>
3662
3663 * aix-thread.c: Shorten some long lines.
3664 Bring comments into line with code spec.
3665
3666 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3667
3668 * infrun.c: Re-indent using gdb_indent.sh.
3669
3670 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3671
3672 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3673 Leave the indentation temporarily untouched, to minimize the diffs.
3674
3675 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
3676
3677 * stabsread.c: Make os9k sections of the code obsolete,
3678 for real this time.
3679 * stabsread.h: Make os9k sections of the code obsolete.
3680
3681 2002-07-18 Michal Ludvig <mludvig@suse.cz>
3682
3683 * linux-low.c (regsets_store_inferior_registers): Add free()
3684 at the end of a loop to prevent memory leak.
3685 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3686 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3687 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3688 line a comment.
3689 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3690
3691 2002-07-17 Jim Blandy <jimb@redhat.com>
3692
3693 * macrocmd.c (info_macro_command): Remove newline from error
3694 message.
3695
3696 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
3697
3698 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3699 (sh_gdbarch_init): Use it for sh-dsp.
3700
3701 2002-07-16 Kevin Buettner <kevinb@redhat.com>
3702
3703 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3704 64-bit DWARF2 format.
3705
3706 2002-07-16 Joel Brobecker <brobecker@gnat.com>
3707
3708 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3709 <sys/proc.h> when not available.
3710
3711 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3712
3713 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3714 * stabsread.c: Make os9k sections of the code obsolete.
3715 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3716 * config/i386/i386os9k.mt: Make file obsolete.
3717 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3718 (COMMON_OBS): Remove os9kread.o
3719 (SFILES): Remove os9kread.c.
3720 (os9kread.o, remote-os9k.o): Make target obsolete.
3721 * remote-os9k.c: Make file obsolete.
3722 * os9kread.c: Make file obsolete.
3723 * Makefile.in
3724
3725 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3726
3727 * NEWS: Mention that the FR30 has been made obsolete.
3728 * fr30-tdep.c: Make file obsolete.
3729 * config/fr30/tm-fr30.h: Ditto.
3730 * config/fr30/fr30.mt: Ditto.
3731 * configure.tgt: Make fr30-*-elf obsolete.
3732 * MAINTAINERS: Make fr30-elf obsolete.
3733
3734 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3735
3736 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3737 found is not inside a section.
3738
3739 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3740
3741 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3742 strerror().
3743 (pdc_realloc): Use xrealloc() instead of realloc().
3744
3745 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3746
3747 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3748 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3749 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3750 macros.
3751
3752 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3753
3754 * aix-thread.c (ptrace_check): Eliminate goto.
3755 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3756 problem.
3757
3758 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3759
3760 * aix-thread.c (gdbcmd.h): Include.
3761 (DEBUG, DBG, DBG2, dbg): Eliminate.
3762 (debug_aix_thread): New static global.
3763 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3764 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3765 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3766 invocations to DBG and DBG2 macros to test against
3767 ``debug_aix_thread'' and call fprintf_unfiltered().
3768 (_initialize_aix_thread): Add new command "set debug aix-thread".
3769
3770 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3771
3772 From Gerhard Tonn <TON@de.ibm.com>:
3773 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3774 instead of supply_register.
3775
3776 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3777
3778 * dwarf2cfi.c: Include "gdb_assert.h".
3779 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3780 non-NULL.
3781 (update_context): Do not use __func__. Add missing ``break''.
3782 (update_context): Do not use __func__.
3783
3784 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
3785
3786 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3787 and its setting. Set gdbarch instruction printing functions
3788 directly. For non-rs6000 case use new function
3789 gdb_print_insn_powerpc.
3790 (gdb_print_insn_powerpc): New function.
3791
3792 2002-07-13 Andrew Cagney <ac131313@redhat.com>
3793
3794 * NEWS: Mention that the d30v has been marked obsolete.
3795 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3796 * configure.tgt: Mark d30v-*-* as obsolete.
3797 * d30v-tdep.c: Mark file as obsolete.
3798 * config/d30v/d30v.mt: Ditto.
3799 * config/d30v/tm-d30v.h: Ditto.
3800
3801 2002-07-13 Aidan Skinner <aidan@velvet.net>
3802
3803 * ada-tasks.c (add_task_entry): replace calls to
3804 malloc() with xmalloc
3805 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3806
3807 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3808 ada_finish_decode_line_1, all_sals_for_line
3809 ada_breakpoint_rewrite): replace calls to free() with xfree()
3810
3811 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3812
3813 From Nicholas Duffek (with minor changes by Martin Hunt,
3814 Louis Hamilton, and Kevin Buettner):
3815 * aix-thread.c: New file.
3816
3817 2002-07-12 Petr Sorfa <petrs@caldera.com>
3818
3819 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3820 complaint for invalid attribute class or form.
3821 (read_func_scope): DW_AT_frame_base
3822 better handling of DW_AT_block*.
3823 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3824 better handling of DW_AT_block*.
3825 (read_common_block): DW_AT_location
3826 better handling of DW_AT_block*.
3827 (read_partial_die): DW_AT_location better handling
3828 of DW_AT_block*.
3829 (new_symbol): DW_AT_external better handling of
3830 DW_AT_block*. Proper initialization of variable
3831 "addr".
3832 (attr_form_is_block): New function that returns true
3833 if the attribute's form is of DW_FORM_block*.
3834
3835 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3836
3837 * valops.c (find_method_list): Remove comment about
3838 removed STATIC_MEMFUNCP argument.
3839 (value_find_oload_method_list): Likewise.
3840
3841 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3842
3843 From Nicholas Duffek:
3844 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3845 target_new_objfile_hook.
3846
3847 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3848
3849 From Nicholas Duffek:
3850 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3851 csect.
3852
3853 2002-07-12 Andrew Cagney <cagney@redhat.com>
3854
3855 * MAINTAINERS: Mention --enable-sim-build-warnings.
3856 (m68hc11-elf): Disable sim build warnings.
3857 (m32r-elf): Mark as broken obsolete candidate.
3858 (x86_64-linux-gnu): Mark as buildable with -Werror.
3859 (arm-elf): Change -w to ``,'' which enables warnings but not
3860 -Werror.
3861
3862 2002-07-12 Andrew Cagney <ac131313@redhat.com>
3863
3864 * bcache.h: Update copyright.
3865 (struct bstring, struct bcache): Move definition to "bcache.c".
3866 Replaced by opaque declaration.
3867 (bcache_xfree): Replace free_bcache.
3868 (bcache_xmalloc, bcache_memory_used): Declare.
3869
3870 * bcache.c: Update copyright.
3871 (struct bstring, struct bcache): Moved to here from "bcache.h".
3872 Update comments.
3873 (bcache_xmalloc, bcache_memory_used): New functions.
3874 (bcache_xfree): Replace function free_bcache.
3875
3876 * Makefile.in (objfiles.o): Add $(bcache_h).
3877 (objfiles_h): Remove $(bcache_h).
3878 (symfile.o): Add $(bcache_h).
3879
3880 * symmisc.c: Update copyright.
3881 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3882 (print_objfile_statistics): Use bcache_memory_used.
3883
3884 * symfile.c: Include "bcache.h".
3885 (reread_symbols): Use bcache_xfree.
3886 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3887 (add_psymbol_to_list): Pass psymbol_cache by value.
3888 (add_psymbol_with_dem_name_to_list): Ditto.
3889
3890 * objfiles.h: Update copyright.
3891 (struct bcache): Declare opaque. Do not include "bcache.h".
3892 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3893 bcache'' pointers.
3894 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3895
3896 * objfiles.c: Include "bcache.h". Update copyright.
3897 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3898 macro_cache.
3899 (free_objfile): Use bcache_xfree.
3900
3901 2002-07-11 Grace Sainsbury <graces@redhat.com>
3902
3903 * monitor.c (monitor_fetch_register): Make name a constant.
3904 (monitor_store_register): Same.
3905
3906 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
3907
3908 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3909 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3910 (finish_block) For non-function blocks, hash the symbol table. For
3911 function blocks, mark the symbol table as unhashed.
3912 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3913 (msymbol_hash_iw): Likewise.
3914 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3915 value.
3916 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3917 (lookup_minimal_symbol): Likewise for both.
3918 * symtab.h (struct block): Add `hashtable' flag. Comment the
3919 hashtable.
3920 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3921 (ALL_BLOCK_SYMBOLS): Update.
3922 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3923 (struct symbol): Add `hash_next' pointer.
3924 * symtab.c (lookup_block_symbol): Search using the hash table when
3925 possible.
3926 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3927 (search_symbols, find_addr_symbol): Likewise.
3928
3929 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3930 (read_dst_symtab): Likewise.
3931 * jv-lang.c (get_java_class_symtab): Likewise.
3932 * mdebugread.c: Include "gdb_assert.h".
3933 (shrink_block): Assert that the block being modified is not hashed.
3934 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3935 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3936 symbols.
3937 (dump_symtab): Recognize hashed blocks.
3938 * printcmd.c (print_frame_args): Assert that function blocks do not
3939 have hashed symbol tables.
3940 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3941 (fill_in_ada_prototype, debug_print_block): Likewise.
3942 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3943
3944 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
3945
3946 * stack.c (print_frame): Use result of frame_address_in_block()
3947 instead of fi->pc when evaluating symbols.
3948 (backtrace_command_1): Ditto.
3949
3950 2002-07-11 Andrew Cagney <cagney@redhat.com>
3951
3952 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3953 Make static.
3954
3955 * arm-tdep.c (arm_register_name): Make return type constant.
3956
3957 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3958
3959 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3960 prototype.
3961 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3962 * s390-tdep.c (s390_fp_regnum): Ditto.
3963 (s390_read_fp): Ditto.
3964 (s390_pop_frame): Ditto.
3965 (_initialize_s390_tdep): Ditto.
3966 * remote.c (get_remote_state): Ditto.
3967 * procfs.c (mappingflags): Ditto.
3968 * memattr.c (_initialize_mem): Ditto.
3969 * mcore-tdep.c (mcore_pop_frame): Ditto.
3970 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3971 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3972 * language.c (set_case_str): Ditto.
3973 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3974 * frv-tdep.c (new_variant): Ditto.
3975 (frv_stopped_data_address): Ditto.
3976 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3977 (context_alloc): Ditto.
3978 (frame_state_alloc): Ditto.
3979 (unwind_tmp_obstack_init): Ditto.
3980 (unwind_tmp_obstack_free): Ditto.
3981 (cfi_read_fp): Ditto.
3982 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3983 (cris_pop_frame): Ditto.
3984 * c-lang.c (scanning_macro_expansion): Ditto.
3985 (finished_macro_expansion): Ditto.
3986 (c_preprocess_and_parse): Ditto.
3987 * gdbarch.sh: Ditto.
3988 * gdbarch.h, gdbarch.c: Regenerate.
3989 * config/mn10200/tm-mn10200.h: Adjust indentation.
3990 * target.c: Adjust indentation.
3991 * symtab.h: Adjust indentation.
3992 * stabsread.h: Adjust indentation.
3993 * remote-es.c: Adjust indentation.
3994 * os9kread.c: Adjust indentation.
3995
3996 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3997
3998 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3999 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
4000
4001 2002-07-10 Grace Sainsbury <graces@redhat.com>
4002
4003 * NEWS: Mention m68k, mcore multi-arching.
4004 * MAINTAINERS: Change status of m68k, mcore to reflect
4005 multi-arching.
4006
4007 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
4008
4009 * valops.c (find_overload_match): Free oload_syms.
4010
4011 2002-07-09 Joel Brobecker <brobecker@gnat.com>
4012
4013 Define HAVE_SYS_PROC_H if sys/proc.h exists
4014 * configure.in: Add check for sys/proc.h
4015 * config.in: Regenerate.
4016 * configure: Regenerate.
4017
4018 2002-07-09 Grace Sainsbury <graces@redhat.com>
4019
4020 * config/m68k/tm-m68k.h: Remove macros wrapped in
4021 #if !GDB_MULTI_ARCH.
4022
4023 2002-07-08 Andrew Cagney <ac131313@redhat.com>
4024
4025 * config.in, configure: Regenerate.
4026
4027 2002-07-08 Mark Kettenis <kettenis@gnu.org>
4028
4029 * dwarf2cfi.c: Include "gcore.h".
4030 (execute_stack_op): Fix implementation of the
4031 DW_OP_deref and DW_OP_deref_size operators by letting do their
4032 lookup in the target.
4033
4034 2002-07-07 Mark Kettenis <kettenis@gnu.org>
4035
4036 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
4037 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
4038 tdep->sc_sp_offset.
4039
4040 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
4041
4042 Fix PR gdb/595, gdb/602
4043 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
4044 Don't call value_cast, just read the vtable pointer; update comments
4045 to match.
4046
4047 2002-07-05 Grace Sainsbury <graces@redhat.com>
4048
4049 * config/mcore/tm-mcore.h: Remove file.
4050 * config/mcore/mcore.mt: Remove definition of TM_FILE
4051 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
4052
4053 2002-07-05 Mark Kettenis <kettenis@gnu.org>
4054
4055 * i386bsd-tdep.c: Include "gdb_string.h".
4056
4057 2002-07-04 Grace Sainsbury <graces@redhat.com>
4058
4059 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
4060 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
4061 mcore-tdep.
4062 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
4063 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
4064 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
4065 (RETVAL_REGNUM): Move macros from tm-mcore.h
4066 (mcore_reg_struct_has_addr): New function.
4067 (mcore_gdbarch_init): Added initializations for the macros removed
4068 from tm-mcore.h.
4069
4070 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4071
4072 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
4073 traditonal string branding within the ELF header.
4074
4075 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
4076
4077 * symtab.c (remove_params): New function.
4078 (make_symbol_overload_list): Use it instead of cplus_demangle.
4079 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
4080
4081 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4082
4083 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
4084
4085 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
4086 New variables.
4087 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
4088 and tdep->sigtramp_end.
4089 * i386obsd-nat.c: New file.
4090 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
4091
4092 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
4093 Don't call get_current_frame().
4094
4095 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
4096
4097 * i386-nat.c (child_post_startup_inferior): New function
4098 calling i386_cleanup_dregs if
4099 I386_USE_GENERIC_WATCHPOINTS is defined.
4100 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
4101 conditional to acknowledge that i386-nat.c has its
4102 own child_post_startup_inferior function.
4103
4104 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4105
4106 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
4107 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
4108 instead of MAX_REGISTER_RAW_SIZE.
4109 (i386_extract_return_value, i386_extract_struct_value_address):
4110 Convert to use regcache.
4111 (i386_gdbarch_init): Set max_register_raw_size and
4112 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
4113 Set extract_return_value and extract_struct_value_address instead
4114 of their deprecated variants.
4115
4116 Convert i386 target to generic dummy frames.
4117 * i386-tdep.c: Include "symfile.h".
4118 (i386_frameless_signal_p): Consider a function to be frameless if
4119 the pc points at the first instruction of the function.
4120 (i386_frame_chain): Handle (generic) call dummies.
4121 (i386_frame_saved_pc): Likewise.
4122 (i386_frame_init_saved_regs): Remove code dealing with call
4123 dummies on the stack.
4124 (i386_push_dummy_frame): Removed.
4125 (i386_call_dummy_words): Removed.
4126 (i386_fix_call_dummy): Removed.
4127 (i386_push_return_address): New function.
4128 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
4129 parameter, and don't call get_current_frame.
4130 (i386_pop_frame): New function.
4131 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
4132 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
4133 entry_point_address, set call_dummy_breakpoint_offset to 0, set
4134 call_dummy_length to 0, set call_dummy_words to NULL, set
4135 sizeof_call_dummy_words to 0, set fix_call_dummy to
4136 generic_fix_call_dummy, set pc_in_call_dummy to
4137 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
4138 generic_push_dummy_frame, set push_return_address to
4139 i386_push_return_address and set frame_chain_valid to
4140 generic_file_frame_chain_valid.
4141
4142 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4143
4144 * gdbarch.sh (struct regcache): Add opaque declaration.
4145 (EXTRACT_RETURN_VALUE): New architecture method.
4146 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4147 * gdbarch.h, gdbarch.c: Regenerate.
4148 * arch-utils.c (legacy_extract_return_value): New function.
4149 * arch-utils.h (legacy_extract_return_value): Declare.
4150 * values.c (value_being_returned): Re-enable code handling
4151 EXTRACT_STRUCT_VALUE_ADDRESS. Move
4152 deprecated_grub_regcache_for_registers call to block handling
4153 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4154 (EXTRACT_RETURN_VALUE): Do not define.
4155
4156 2002-07-03 Grace Sainsbury <graces@redhat.com>
4157
4158 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4159 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4160 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4161 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4162 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4163 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4164 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4165 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4166 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4167 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4168 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4169 argument so the function fits the prototype in the architecture
4170 vector.
4171 (mcore_pop_frame): Remove argument so the function fits the
4172 prototype. Use get_current_frame instead of the argument.
4173 (mcore_push_arguments): Change type of struct_return so the
4174 function can be used in the architecture vector.
4175 (mcore_store_struct_return): Add.
4176 (mcore_frame_init_saved_regs): Add.
4177 (mcore_gdbarch_init): Add function calls to replace the macros
4178 removed from tm-mcore.h
4179
4180 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4181
4182 * infcmd.c (print_return_value): Remove compatibility code calling
4183 deprecated_grub_regcache_for_registers.
4184
4185 * values.c: Include "regcache.h".
4186 (value_being_returned): Update. Use
4187 deprecated_grub_regcache_for_registers to extract the register
4188 buffer address.
4189 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4190 ``struct regcache''.
4191 * Makefile.in (values.o): Add dependency on $(regcache_h).
4192
4193 * inferior.h (run_stack_dummy): Change type of second parameter to
4194 a ``struct regcache''.
4195 * valops.c (hand_function_call): Change type of retbuf to ``struct
4196 regcache''. Allocate using regcache_xmalloc, clean using
4197 make_cleanup_regcache_xfree.
4198 * infcmd.c (run_stack_dummy): Update. Use
4199 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4200
4201 * regcache.c (do_regcache_xfree): New function.
4202 (make_cleanup_regcache_xfree): New function.
4203 * regcache.h (make_cleanup_regcache_xfree): Declare.
4204
4205 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4206
4207 * event-top.c (command_line_handler): Don't read past
4208 beginning of buffer.
4209
4210 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4211
4212 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4213 struct frame_id.
4214 (varobj_create): Store frame_id for root.
4215 (varobj_gen_name): Use xasprintf.
4216 (varobj_update): Save and restore frame using get_frame_id() and
4217 frame_find_by_id().
4218 (create_child): Use xasprintf.
4219 (new_root_variable): Initialize frame_id.
4220 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4221 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4222 to prevent memory leak.
4223
4224 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4225
4226 * valops.c (hand_function_call): Move declaration of retbuf to
4227 start of function, allocate using malloc, add a cleanup but before
4228 the inf_status cleanup, cleanup the buffer. Rename local variable
4229 old_chain to inf_status_cleanup.
4230
4231 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4232
4233 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4234
4235 * cli/cli-decode.c (cmd_func_p): New function.
4236 (cmd_func): New function.
4237
4238 * command.h: Add cmd_func() and cmd_func_p().
4239
4240 2002-07-03 Grace Sainsbury <graces@redhat.com>
4241
4242 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4243 (REGISTER_SIZE): Remove.
4244 (MAX_REGISTER_RAW_SIZE): Remove.
4245 (REGISTER_VIRTUAL_TYPE): Remove.
4246 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4247 (REGISTER_NAME): Remove.
4248 (USE_GENERIC_DUMMY_FRAMES): Remove.
4249 (CALL_DUMMY): Remove.
4250 (CALL_DUMMY_START_OFFSET): Remove.
4251 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4252 (CALL_DUMMY_LOCATION): Remove.
4253 (FIX_CALL_DUMMY): Remove.
4254 (CALL_DUMMY_ADDRESS): Remove.
4255 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4256 (SAVE_DUMMY_FRAME_TOS): Remove.
4257 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4258 (mcore_register_virtual_type): New function.
4259 (mcore_register_byte): New function.
4260 (mcore_register_size): New function.
4261 (mcore_register_name): New function.
4262 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4263 macros removed from tm-mcore.h.
4264 (mcore_dump_tdep): Add.
4265 (_initialize_mcore_tdep): Add gdbarch_register call.
4266
4267 2002-07-03 Mark Kettenis <kettenis@gnu.org>
4268
4269 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4270 frameless_look_for_prologue, such that we actually call this
4271 function.
4272
4273 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4274
4275 * frame.h (frame_address_in_block): New function.
4276
4277 * blockframe.c (frame_address_in_block): New function extracted
4278 from get_frame_block().
4279 (get_frame_block): Use frame_address_in_block().
4280 (block_innermost_frame): Use frame_address_in_block() to match
4281 the frame pc address against the block boundaries rather than
4282 the frame pc directly. This prevents a failure when a frame pc
4283 is actually a return-address pointing immediately after the end
4284 of the given block.
4285
4286 2002-07-02 Grace Sainsbury <graces@redhat.com>
4287
4288 * MAINTAINERS: Add self under write after approval.
4289
4290 2002-07-02 Grace Sainsbury <graces@redhat.com>
4291
4292 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4293 used in architecture vector. The default is
4294 m68k_local_breakpoint_from_pc.
4295 (m68k_local_breakpoint_from_pc): Add.
4296 (enum): Add register numbers from tm-m68k.h.
4297 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4298 vector.
4299 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4300 GDB_MULTI_ARCH_PARTIAL.
4301 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4302 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4303 m68k-tdep.c.
4304 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4305 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4306 to enum in m68k-tdep.c
4307
4308 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4309
4310 * solib-osf.c (open_map): Compute the list of shared libraries
4311 loaded by the inferior, rather than the list of libraries loaded
4312 by GDB itself. Otherwise, GDB ends up reading the symbols from
4313 the wrong shared libraries...
4314
4315 2002-07-02 Mark Kettenis <kettenis@gnu.org>
4316
4317 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4318 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4319 macros.
4320 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4321 Remove functions.
4322 (FRAMELESS_SIGNAL): Remove function.
4323 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4324 i386_linux_saved_pc_after_call): Removed.
4325 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4326 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4327 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4328
4329 * i386-tdep.c (i386_frameless_signal_p): New function.
4330 (i386_frame_chain): Deal with frameless signals.
4331 (i386_sigtramp_saved_sp): New function.
4332 (i386_frame_saved_pc): Deal with frameless signals.
4333 (i386_saved_pc_after_call): Make sure the correct value is
4334 returned just after entry into a sigtramp.
4335 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4336 i386fbsd4_sc_sp_offset): New variables.
4337 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4338 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4339 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4340 similiar to what we already did for sc_pc_offset.
4341 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4342 tdep->sc_sp_offset.
4343
4344 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4345
4346 2002-07-02 Michal Ludvig <mludvig@suse.cz>
4347
4348 * config/i386/tm-x86-64linux.h: New.
4349 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4350 definitions.
4351 * config/i386/nm-x86-64.h: Rename to ...
4352 * config/i386/nm-x86-64linux.h: ... this one.
4353 * config/i386/x86-64linux.mh: Reflect the above change.
4354
4355 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4356
4357 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4358 with sigcontext_addr. Add sc_sp_offset.
4359 (i386bsd_sigtramp_saved_pc): Remove prototype.
4360 (i386bsd_sicontext_addr): Add prototype.
4361 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4362 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4363 (i386_svr4_sigtramp_saved_pc): Removed.
4364 (i386_svr4_sigcontext_addr): New function.
4365 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4366 Initialize tdep->sigcontext_addr instead. Initialize
4367 tdep->sc_pc_offset and tdep->sc_sp_offset.
4368 (i386_gdbarch_init): Likewise.
4369 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4370 any more.
4371 (i386bsd_sigtramp_saved_pc): Remove function.
4372 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4373 Initialize tdep->sigcontext_addr instead. Initialize
4374 tdep->sc_pc_offset.
4375 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4376 of tdep->sigtramp_saved_pc.
4377 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4378 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4379 instead.
4380
4381 * i386-tdep.c (i386_frameless_function_invocation,
4382 i386_frame_num_args, i386_frame_init_saved_regs,
4383 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4384 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4385 i386_extract_return_value, i386_store_return_value,
4386 i386_extract_struct_value_address, i386_register_virtual_type,
4387 i386_register_convertible, i386_register_convert_to_virtual,
4388 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4389 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4390 static.
4391
4392 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4393
4394 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4395
4396 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4397 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4398 this macro. Include "value.h".
4399
4400 2002-06-30 Aidan Skinner <aidan@velvet.net>
4401
4402 * ada-exp.tab.c: remove as it's a generated file
4403 * ada-lex.c: remove as it's a generated file
4404
4405 2002-06-30 Mark Kettenis <kettenis@gnu.org>
4406
4407 * config/i386/tm-i386.h (struct frame_info, struct
4408 frame_saved_regs, struct value, struct type): Remove forward
4409 declarations.
4410
4411 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4412 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4413 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4414 (FILL_FPXREGSET): Define.
4415
4416 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4417
4418 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4419 i[3456]86-*-netbsd* case.
4420 * config/i386/tm-obsd.h: Removed.
4421 * config/i386/obsd.mt: Removed.
4422 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4423 core-aout.o.
4424 (MH_CFLAGS): Add -DYYDEBUG=0.
4425
4426 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4427 i386nbsd_sc_pc_offset on OpenBSD too.
4428
4429 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4430 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4431 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4432 define.
4433 * i386bsd-tdep.c: Include "arch-utils.h".
4434 (i386bsd_aout_in_solib_call_trampoline): New function.
4435 (i386bsd_init_abi): Set in_solib_call_trampoline to
4436 i386bsd_aout_in_solib_call_trampoline.
4437 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4438 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4439
4440 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4441
4442 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4443 (struct obstack, struct bcache): Add opaque declarations.
4444 * Makefile.in (macrotab_h): Update
4445
4446 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4447
4448 * blockframe.c (generic_find_dummy_frame): Change return type to
4449 ``struct regcache''.
4450 (struct dummy_frame): Replace field ``registers'' with regcache, a
4451 struct regcache object.
4452 (generic_find_dummy_frame): Update.
4453 (generic_push_dummy_frame): Update. Use regcache_xfree,
4454 regcache_xmalloc and regcache_cpy.
4455 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4456 regcache_xfree.
4457 (deprecated_generic_find_dummy_frame): Update.
4458 (generic_read_register_dummy): Update. Use
4459 regcache_read_as_address.
4460 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4461 (generic_get_saved_register): Update. Use regcache_read.
4462
4463 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4464
4465 * Makefile.in (objfiles_h): Add $(bcache_h).
4466 * objfiles.h: Include "bcache.h".
4467
4468 * Makefile.in (symtab_h): Remove $(bcache_h).
4469 * symtab.h: Do not include "bcache.h".
4470
4471 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4472
4473 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4474 generic_func_frame_chain_valid.
4475
4476 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4477
4478 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4479 * config/i386/tm-fbsd.h: Likewise.
4480
4481 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4482
4483 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4484 generic_unwind_get_saved_register.
4485
4486 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4487
4488 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4489 * regcache.c (supply_register): Add missing argument to
4490 register_buffer call.
4491
4492 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4493
4494 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4495 Solaris /bin/grep does not not like it. From Peter Schauer.
4496
4497 2002-06-26 Tom Tromey <tromey@redhat.com>
4498
4499 * command.h (add_setshow_cmd): Declare.
4500 (add_setshow_cmd_full): Declare.
4501 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4502 returns void. Use add_setshow_cmd_full.
4503 (add_setshow_cmd_full): New function.
4504 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4505 (add_setshow_boolean_cmd): Likewise.
4506
4507 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4508
4509 * config/vax/tm-vax.h: Protect from multiple inclusion.
4510 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4511 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4512 * config/vax/tm-vaxbsd.h: ...here. New file.
4513 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4514
4515 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4516
4517 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4518 (BELIEVE_PCC_PROMOTION): Remove.
4519 (AP_REGNUM): Move to...
4520 * config/vax/nm-vax.h: ...here.
4521 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4522 (vax_breakpoint_from_pc): New function.
4523 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4524 and gdbarch_believe_pcc_promotion.
4525
4526 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4527
4528 * Makefile.in (vax_tdep_h): Define.
4529 (vax-tdep.o): Use $(vax_tdep_h).
4530 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4531 (vax_dump_tdep): New function.
4532 (_initialize_vax_tdep): Register vax_dump_tdep.
4533 * vax-tdep.h: Include osabi.h.
4534 (struct gdbarch_tdep): New.
4535
4536 2002-06-26 Andrew Cagney <cagney@redhat.com>
4537
4538 * frame.h (deprecated_generic_find_dummy_frame): Rename
4539 generic_find_dummy_frame.
4540 * blockframe.c (generic_find_dummy_frame): Make static.
4541 (deprecated_generic_find_dummy_frame): New function.
4542 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4543 generic_find_dummy_frame with deprecated_find_dummy_frame.
4544 (sh64_nofp_frame_init_saved_regs): Ditto.
4545 (sh_fp_frame_init_saved_regs): Ditto.
4546 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4547 (s390_frame_chain): Ditto.
4548 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4549
4550 2002-06-26 Grace Sainsbury <graces@redhat.com>
4551
4552 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4553 gdbarch vector are at the top.
4554 (NUM_REGS): Remove.
4555 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4556 (FRAME_ARGS_ADDRESS): Remove.
4557 (FRAME_LOCALS_ADDRESS): Remove.
4558 (FRAME_NUM_ARGS): Remove.
4559 (FRAME_ARGS_SKIP): Remove.
4560 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4561 (m68k_gdbarch_init): Add gdbarch initializations for macros
4562 undefined in tm-m68k.h
4563
4564 2002-06-26 Grace Sainsbury <graces@redhat.com>
4565
4566 * monitor.h: Add the function regname to monitor_ops
4567 structure. This way NUM_REGS does not have to be a constant.
4568 * monitor.c (monitor_fetch_register): Added support for regname
4569 function. The function is called if the array regnames is NULL.
4570 (monitor_store_register): Same.
4571 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4572 regnames array.
4573 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4574 cpu32bug_cmds.regname to point to new function.
4575 * abug-rom.c (abug_regname): Same as above.
4576 (init_abug_cmds): Same.
4577 * dbug-rom.c (dbug_regname): Same as above.
4578 (init_dbug_cmds): Same.
4579 * remote-est.c (est_regname): Same.
4580 (init_est_cmds): Same.
4581 * rom68k-rom.c (rom68k_regname): Same.
4582 (init_rom68k_cmds): Same.
4583
4584 2002-06-25 Tom Tromey <tromey@redhat.com>
4585
4586 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4587
4588 2002-06-25 Andrew Cagney <cagney@redhat.com>
4589
4590 * infrun.c (stop_registers): Change variable's type to ``struct
4591 regcache'''.
4592 (xmalloc_inferior_status): Delete function.
4593 (free_inferior_status): Delete function.
4594 (normal_stop): Use regcache_cpy.
4595 (struct inferior_status): Change type of fields ``stop_registers''
4596 and ``registers'' to ``struct regcache''.
4597 (write_inferior_status_register): Use regcache_write.
4598 (save_inferior_status): Instead of calling
4599 xmalloc_inferior_status, allocate the inf_status buffer directly.
4600 Use regcache_dup_no_passthrough and regcache_dup to save the
4601 buffers.
4602 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4603 Replace the stop_registers regcache instead of overriding it. Use
4604 regcache_xfree. Instead of calling free_inferior_status, xfree
4605 the buffer directly.
4606 (discard_inferior_status): Use regcache_xfree. Instead of calling
4607 free_inferior_status, xfree the buffer directly.
4608 (build_infrun): Use regcache_xmalloc.
4609 (_initialize_infrun): Delete redundant call to build_infrun.
4610
4611 * Makefile.in (infcmd.o): Add $(regcache_h).
4612
4613 * infcmd.c: Include "regcache.h".
4614 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4615 obtain the address of `stop_registers' register buffer.
4616 (print_return_value): Ditto.
4617
4618 * inferior.h (struct regcache): Add opaque declaration.
4619 (stop_registers): Change variable's declared type to ``struct
4620 regcache''.
4621
4622 2002-06-24 Tom Tromey <tromey@redhat.com>
4623
4624 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4625 * target.c (initialize_targets): Fixed typo in
4626 trust-readonly-sections `show' documentation.
4627
4628 * main.c: Marked all strings with _().
4629
4630 2002-06-24 Don Howard <dhoward@redhat.com>
4631
4632 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4633 that means max CORE_ADDR+1.
4634 (lookup_mem_region): Ditto.
4635 (mem_info_command): Ditto.
4636
4637 2002-06-24 Grace Sainsbury <graces@redhat.com>
4638
4639 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4640 (REGISTER_BYTES_OK): Remove.
4641 (REGISTER_BYTES): Remove.
4642 (STORE_STRUCT_RETURN): Remove.
4643 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4644 (STORE_RETURN_VALUE): Remove.
4645 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4646 (FRAME_CHAIN): Remove.
4647 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4648 (FRAME_SAVED_PC): Remove.
4649 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4650 (m68k_store_struct_return): Add.
4651 (m68k_deprecated_extract_return_value): Add.
4652 (m68k_deprecated_extract_struct_value_address): Add.
4653 (m68k_store_return_value): Add.
4654 (m68k_frame_chain): Add.
4655 (m68k_frameless_function_invocation): Add.
4656 (m68k_frame_saved_pc): Add.
4657 (m68k_gdbarch_init): added set_gdbarch calls for new
4658 functions and deleted macros.
4659
4660 2002-06-23 Tom Tromey <tromey@redhat.com>
4661
4662 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4663 (ALLDEPFILES): Likewise.
4664 (udiheaders): Removed.
4665 (udip2soc.o): Likewise.
4666 (udi2go32.o): Likewise.
4667 (udr.o): Likewise.
4668 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4669
4670 2002-06-22 Andrew Cagney <ac131313@redhat.com>
4671
4672 * infrun.c (_initialize_infrun): Delete unnecessary call to
4673 build_infrun.
4674
4675 * regcache.h: Update comments describing the regcache_cpy family
4676 of functions.
4677 (regcache_save, regcache_restore): Delete declaration.
4678 (regcache_save_no_passthrough): Delete declaration.
4679 (regcache_restore_no_passthrough): Delete declaration.
4680 * regcache.c (regcache_save): Delete function.
4681 (regcache_save_no_passthrough): Delete function.
4682 (regcache_restore): Delete function.
4683 (regcache_restore_no_passthrough): Delete function.
4684
4685 2002-06-21 Andrew Cagney <ac131313@redhat.com>
4686
4687 * config/m68k/tm-m68k.h: Fix typo.
4688 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4689 (m68k_frame_init_saved_regs): Declare.
4690
4691 2002-06-21 Jim Blandy <jimb@redhat.com>
4692
4693 Remove some vestiges of Harris 88k support.
4694 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4695 register numbering quirk.
4696 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4697 odd symbols occurring in Harris 88k ELF targets.
4698
4699 2002-06-21 Tom Tromey <tromey@redhat.com>
4700
4701 * gdb_locale.h: New file.
4702 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4703 (defs_h): Added gdb_locale.h.
4704 * configure, config.in: Rebuilt.
4705 * configure.in (PACKAGE): Define.
4706 * defs.h: Include gdb_locale.h.
4707 * main.c (captured_main): Call setlocale, bindtextdomain,
4708 textdomain.
4709
4710 2002-06-21 Dave Brolley <brolley@redhat.com>
4711
4712 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4713 * config/frv/frv.mt: New file.
4714 * config/frv/tm-frv.h: New file.
4715 * configure.tgt: Support frv-*-*.
4716 * Makefile.in (frv-tdep.o): New target.
4717 * frv-tdep.c: New file.
4718 * NEWS: Mention frv.
4719
4720 2002-06-21 Dave Brolley <brolley@redhat.com>
4721
4722 * MAINTAINERS: Add self to "Write After Approval" list.
4723
4724 2002-06-21 Grace Sainsbury <graces@redhat.com>
4725
4726 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4727 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4728 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4729 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4730 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4731
4732 * m68k-tdep.c: Include arch-utils.h
4733 (m68k_register_raw_size): Add.
4734 (m68k_register_virtual_size): Add.
4735 (m68k_register_virtual_type): Add.
4736 (m68k_register_name): Add.
4737 (m68k_stack_align): Add.
4738 (m68k_register_byte): Add.
4739 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4740 tm-m68k.h.
4741
4742 2002-06-21 Grace Sainsbury <graces@redhat.com>
4743
4744 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4745 m68k_find_saved_regs.
4746 (m68k_pop_frame): Removed saved_regs structure, and replaced
4747 references to it with frame->saved_regs.
4748 (m68k_gdbarch_init): Added function calls to initialize the
4749 gdbarch structure.
4750 (m68k_fix_call_dummy): Add.
4751 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4752 (CALL_DUMMY): Remove.
4753 (CALL_DUMMY_LENGTH): Remove.
4754 (CALL_DUMMY_START_OFFSET): Remove.
4755 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4756 (FIX_CALL_DUMMY): Remove.
4757 (PUSH_DUMMY_FRAME): Remove.
4758 (POP_FRAME): Remove.
4759
4760 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4761
4762 * parse.c (parse_fprintf): New function used to avoid calls to
4763 fprintf in bison parser generated debug code.
4764 * parser-defs.h: Declaration of new parse_fprintf function.
4765 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4766 Set YYDEBUG to 1 by default.
4767 Set YYFPRINTF as parse_fprintf.
4768
4769 2002-06-21 Michal Ludvig <mludvig@suse.cz>
4770
4771 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4772 encoding anymore.
4773 (pointer_encoding, enum ptr_encoding): New.
4774 (execute_cfa_program): Take care about pointer encoding.
4775 (dwarf2_build_frame_info): Only call parse_frame_info for
4776 .debug_frame and .eh_frame.
4777 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4778 fixed augmentation handling, added relative addressing,
4779 ignore duplicate FDEs. Added comments.
4780 * dwarf2cfi.c: Reindented.
4781
4782 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
4783
4784 * event-top.c (command_handler): Don't use space_at_cmd_start
4785 unless there is sbrk() on the host. Assign time and space data
4786 to union fields of the appropriate length.
4787
4788 2002-06-20 Michal Ludvig <mludvig@suse.cz>
4789
4790 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4791 x86_64_register_name. Return type changed to 'const char *'.
4792 (x86_64_register_name2nr): Rename to x86_64_register_number.
4793 (x86_64_gdbarch_init): Update to reflect the change.
4794 * x86-64-tdep.h: Ditto.
4795 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4796 (supply_fpregset): Ditto.
4797
4798 2002-06-19 Andrew Cagney <cagney@redhat.com>
4799
4800 * regcache.h: Update copyright.
4801 (struct regcache, struct gdbarch): Add opaque declarations.
4802 (current_regcache): Declare global variable.
4803 (regcache_read, regcache_write): Add gdbarch parameter.
4804 (regcache_save, regcache_save_no_passthrough)
4805 (regcache_restore, regcache_restore_no_passthrough)
4806 (regcache_dup, regcache_dup_no_passthrough)
4807 (regcache_cpy, regcache_cpy_no_passthrough)
4808 (deprecated_grub_regcache_for_registers)
4809 (deprecated_grub_regcache_for_register_valid)
4810 (regcache_valid_p): Add function declarations.
4811
4812 * regcache.c: Update copyright.
4813 (regcache_descr_handle): New global variable.
4814 (struct regcache_descr): Define.
4815 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4816 (regcache_descr, xfree_regcache_descr): New functions.
4817 (struct regcache): Define.
4818 (regcache_xmalloc, regcache_xfree): New functions.
4819 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4820 (regcache_dup, regcache_dup_no_passthrough): New functions.
4821 (regcache_valid_p, regcache_read_as_address): New functions.
4822 (deprecated_grub_regcache_for_registers): New function.
4823 (deprecated_grub_regcache_for_register_valid): New function.
4824 (current_regcache): New global variable.
4825 (register_buffer): Add regcache parameter. Update calls.
4826 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4827 (read_register_gen, write_register_gen): Update register_buffer
4828 call. Test for legacy_p instead of gdbarch_register_read_p or
4829 gdbarch_register_write_p.
4830 (regcache_collect): Update register_buffer call.
4831 (build_regcache): Rewrite. Use deprecated grub functions.
4832 (regcache_save, regcache_save_no_passthrough): New functions.
4833 (regcache_restore, regcache_restore_no_passthrough): New
4834 functions.
4835 (_initialize_regcache): Create the regcache_data_handle. Swap
4836 current_regcache global variable.
4837
4838 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4839 parameter to regcache_read and regcache_write calls.
4840 (sh4_register_read): Ditto.
4841 (sh64_pseudo_register_read): Ditto.
4842 (sh64_register_read): Ditto.
4843 (sh_pseudo_register_write): Ditto.
4844 (sh4_register_write): Ditto.
4845 (sh64_pseudo_register_write): Ditto.
4846 (sh64_register_write): Ditto.
4847
4848 * defs.h (XCALLOC): Define.
4849
4850 2002-06-19 Grace Sainsbury <graces@redhat.com>
4851
4852 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4853 * m68k-tdep.c (m68k_gdbarch_init): Added.
4854 (m68k_dump_tdep): Added.
4855
4856 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4857
4858 * ada-lang.c (fill_in_ada_prototype): Update comment.
4859
4860 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4861
4862 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4863 MIPS_ABI_LAST.
4864 (mips_abi_string, mips_abi_strings): New.
4865 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4866 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4867 tdep->mips_abi_string. Honor mips_abi_string. Default to
4868 O32 if no ABI is found.
4869 (mips_dump_tdep): Use mips_abi_strings.
4870 (mips_abi_update): New function.
4871 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4872 ``set mips abi'' and ``show mips abi''. Check the size of
4873 mips_abi_strings.
4874
4875 2002-06-19 Andrew Cagney <cagney@redhat.com>
4876
4877 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4878 constant.
4879
4880 2002-06-18 Joel Brobecker <brobecker@gnat.com>
4881
4882 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4883 current frame using only the first stack size adjustment. All
4884 subsequent size adjustments are not considered to be part of
4885 the "static" part of the current frame.
4886 Compute the address of the saved registers relative to the
4887 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4888 in use in this frame.
4889
4890 2002-06-18 Don Howard <dhoward@redhat.com>
4891
4892 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4893 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4894 suggesting this solution.
4895
4896 2002-06-18 Andrew Cagney <ac131313@redhat.com>
4897
4898 * config/romp/xm-rtbsd.h: Delete file.
4899 * config/romp/rtbsd.mh: Delete file.
4900
4901 2002-06-18 Keith Seitz <keiths@redhat.com>
4902
4903 * breakpoint.c (condition_command): Post breakpoint_modify
4904 when a condition is added to an existing breakpoint.
4905 (commands_command): Likewise for commands.
4906 (set_ignore_count): Likewise for ignore counts.
4907 If no tty, do not simply return, still need to send event
4908 notification.
4909 (ignore_command): Only print a newline if the command came
4910 from a tty.
4911 Don't call breakpoints_changed, since this is now properly
4912 handled by set_ignore_count.
4913
4914 2002-06-18 Andrew Cagney <cagney@redhat.com>
4915
4916 * MAINTAINERS: Note that cris-elf target can be compiled with
4917 -Werror.
4918 * cris-tdep.c (cris_register_name): Make return type constant.
4919 (cris_breakpoint_from_pc): Ditto.
4920
4921 2002-06-18 Michal Ludvig <mludvig@suse.cz>
4922
4923 * frame.h (struct frame_info): Change type of context to
4924 'struct context'.
4925
4926 2002-06-17 Andrew Cagney <cagney@redhat.com>
4927
4928 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4929 pointer.
4930 * gdbarch.h, gdbarch.c: Regenerate.
4931 * config/mips/tm-mips.h (mips_register_name): Update.
4932 * i386-tdep.h (i386_register_name): Update.
4933 * mips-tdep.c (mips_register_name): Update
4934 * alpha-tdep.c (alpha_register_name): Update.
4935 * arch-utils.c (legacy_register_name): Update.
4936 * arch-utils.h (legacy_register_name): Update.
4937 * avr-tdep.c (avr_register_name): Update.
4938 * ia64-tdep.c (ia64_register_name): Update.
4939 * i386-tdep.c (i386_register_name): Update.
4940 * sparc-tdep.c (sparc32_register_name): Update.
4941 (sparc64_register_name): Update.
4942 (sparclite_register_name): Update.
4943 (sparclet_register_name): Update.
4944 * sh-tdep.c (sh_generic_register_name): Update.
4945 (sh_sh_register_name): Update.
4946 (sh_sh3_register_name): Update.
4947 (sh_sh3e_register_name): Update.
4948 (sh_sh_dsp_register_name): Update.
4949 (sh_sh3_dsp_register_name): Update.
4950 (sh_sh4_register_name): Update.
4951 (sh_sh64_register_name): Update.
4952 * s390-tdep.c (s390_register_name): Update.
4953 * rs6000-tdep.c (rs6000_register_name): Update.
4954 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4955 (ns32k_register_name_32382): Update.
4956 * d10v-tdep.c (d10v_ts2_register_name): Update.
4957 (d10v_ts3_register_name): Update.
4958 * xstormy16-tdep.c (xstormy16_register_name): Update.
4959 * vax-tdep.c (vax_register_name): Update.
4960 * v850-tdep.c (v850_register_name): Update.
4961 * m68hc11-tdep.c (m68hc11_register_name): Update.
4962 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4963 (am33_register_name): Update.
4964
4965 2002-06-17 Grace Sainsbury <graces@redhat.com>
4966
4967 * m68k-tdep.c: Reindented.
4968
4969 2002-06-17 Andrew Cagney <ac131313@redhat.com>
4970
4971 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4972 list of predefined types.
4973
4974 2002-06-16 Mark Kettenis <kettenis@gnu.org>
4975
4976 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4977 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4978 REGISTER_CONVERT_TO_RAW): Remove defines.
4979 (i386_register_virtual_type, i386_register_convertible,
4980 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4981 Remove prototypes.
4982 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4983 macros mentioned above.
4984
4985 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4986 (i386lynx_saved_pc_after_call): Remove prototype.
4987 * i386ly-tdep.c: Include "i386-tdep.h".
4988 (i386lynx_saved_pc_after_call): Make static. Use
4989 read_memory_nobpt instead of read_memory. Use
4990 read_memory_unsigned_integer instead of read_memory_integer.
4991 (i386lynx_init_abi): New function.
4992 (i386lynx_coff_osabi_sniffer): New function.
4993 (_initialize_i386bsd_tdep): New function.
4994
4995 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4996 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4997 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4998 (i386_fix_call_dummy): Remove prototype.
4999 * i386-tdep.c (i386_call_dummy_words): New variable.
5000 (i386_gdbarch_init): Adjust for removal of the
5001 macros mentioned above.
5002
5003 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5004
5005 * command.h (add_setshow_auto_boolean_cmd): Replace
5006 add_set_auto_boolean_cmd.
5007 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
5008 add_set_auto_boolean_cmd.
5009 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
5010 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
5011 mask-address'' command.
5012 (show_mask_address): Add cmd parameter.
5013 * remote.c (add_packet_config_cmd): Update. Change type of
5014 set_func and show_func to cmd_sfunc_ftype.
5015 (_initialize_remote): Update `set remote Z-packet'
5016 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
5017 (show_remote_protocol_e_packet_cmd): Ditto.
5018 (show_remote_protocol_E_packet_cmd): Ditto.
5019 (show_remote_protocol_P_packet_cmd): Ditto.
5020 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
5021 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
5022 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
5023 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
5024 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
5025 (show_remote_protocol_Z_packet_cmd): Ditto.
5026 (show_remote_protocol_binary_download_cmd): Ditto.
5027 (show_remote_cmd): Pass NULL to all of above.
5028
5029 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5030
5031 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
5032 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
5033 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
5034 POP_FRAME): Remove defines.
5035 (i386_push_arguments, i386_store_struct_return,
5036 i386_extract_return_value, i386_store_return_value,
5037 i386_extract_struct_value_address, i386_push_dummy_frame,
5038 i386_pop_frame): Renove prototypes.
5039 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5040 macros mentioned above.
5041
5042 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5043
5044 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
5045 add_set_boolean_cmd.
5046 (add_setshow_cmd): New function.
5047 * command.h (add_setshow_boolean_cmd): Replace
5048 add_set_boolean_cmd.
5049 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
5050 and ``set rdiromatzero''.
5051 * maint.c (_initialize_maint_cmds): Update commented out code.
5052 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
5053 * target.c (initialize_targets): Update `set
5054 trust-readonly-sections'.
5055 * remote.c (_initialize_remote): Update `set remotebreak'.
5056
5057 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5058
5059 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
5060 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
5061 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
5062 fit into multi-arch framework.
5063 (i386_breakpoint_from_pc): New function.
5064 (i386_gdbarch_init): Adjust for removal of the macros mentioned
5065 above.
5066
5067 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
5068 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
5069 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
5070 (i386_frameless_function_invocation, i386_frame_num_args,
5071 i386_frame_init_saved_regs): Remove prototypes.
5072 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5073 macros mentioned above.
5074
5075 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5076
5077 * cli/cli-decode.c (set_cmd_cfunc): Update.
5078 (set_cmd_sfunc): Update.
5079 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
5080 (set_cmd_sfunc, set_cmd_cfunc): Update.
5081 * cli/cli-decode.h: Update.
5082
5083 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5084
5085 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
5086 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
5087
5088 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5089
5090 * defs.h (auto_boolean): Declare enum.
5091 * command.h (cmd_auto_boolean): Delete enum.
5092 * mips-tdep.c (mask_address_var): Update.
5093 (mips_mask_address_p): Update.
5094 (show_mask_address): Update.
5095 * remote.c (struct packet_config): Update.
5096 (update_packet_config): Update.
5097 (show_packet_config_cmd): Update.
5098 (packet_ok): Update.
5099 (add_packet_config_cmd): Update.
5100 (_initialize_remote):
5101 * command.h: Update.
5102 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
5103 (do_setshow_command): Update.
5104 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
5105 * cli/cli-decode.h: Update.
5106
5107 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5108
5109 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
5110 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
5111 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
5112 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
5113 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
5114 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
5115
5116 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
5117 list of DJGPP COFF targets.
5118
5119 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
5120 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
5121 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
5122 (FP0_REGNUM): Remove define.
5123 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5124 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
5125 (i386_register_virtual_size): Remove protoype.
5126 * i386-tdep.c (i386_register_virtual_size): Removed.
5127 (i386_extract_return_value, i386_store_return_value): Use
5128 FP0_REGNUM instead of NUM_FREGS to determine whether the
5129 floating-point registers are available.
5130 (i386_gdbarch_init): Tweak FIXME about FPU registers.
5131 Adjust for removal of macros mentioned above.
5132
5133 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5134
5135 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
5136 comments.
5137 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5138 Remove prototypes.
5139 (supply_gregset, fill_gregset): Remove use of register keyword and
5140 remove declaration for regmap. Use I386_NUM_GREGS instead of
5141 NUM_REGS and NUM_FREGS.
5142 (FPREGSET_FSAVE_OFFSET): Remove.
5143 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5144 NUM_FREGS to determine whether the floating-point registers are
5145 available.
5146
5147 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5148 gnu_store_registers): Replace usage of NUM_GREGS with
5149 I386_NUM_GREGS.
5150
5151 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5152 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5153 usage of NUM_GREGS with I386_NUM_GREGS.
5154
5155 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5156
5157 * i386bsd-nat.c: Include "i386-tdep.h".
5158 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5159 I386_NUM_GREGS.
5160
5161 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5162 and associated comment. They no longer make any sense, since we
5163 don't use this file anymore on Linux.
5164
5165 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5166 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5167 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5168 elements in these arrays.
5169 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5170 MAX_NUM_REGS.
5171
5172 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5173
5174 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5175 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5176
5177 2002-06-14 Andrew Cagney <cagney@redhat.com>
5178
5179 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5180 EXTRACT_RETURN_VALUE.
5181 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5182 EXTRACT_STRUCT_VALUE_ADDRESS.
5183 * gdbarch.h, gdbarch.c: Regenerate.
5184
5185 * values.c (value_being_returned): Handle
5186 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5187 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5188
5189 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5190 * arm-tdep.c (arm_gdbarch_init): Update.
5191 * avr-tdep.c (avr_gdbarch_init): Update.
5192 * cris-tdep.c (cris_gdbarch_init): Update.
5193 * d10v-tdep.c (d10v_gdbarch_init): Update.
5194 * ia64-tdep.c (ia64_gdbarch_init): Update.
5195 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5196 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5197 * s390-tdep.c (s390_gdbarch_init): Update.
5198 * sh-tdep.c (sh_gdbarch_init): Update.
5199 * s390-tdep.c (s390_gdbarch_init): Update.
5200 * sparc-tdep.c (sparc_gdbarch_init): Update.
5201 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5202 * v850-tdep.c (v850_gdbarch_init): Update.
5203 * vax-tdep.c (vax_gdbarch_init): Update.
5204 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5205 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5206
5207 * config/arc/tm-arc.h: Update.
5208 * config/d30v/tm-d30v.h: Update.
5209 * config/fr30/tm-fr30.h: Update.
5210 * config/h8300/tm-h8300.h: Update.
5211 * config/h8500/tm-h8500.h: Update.
5212 * config/i386/tm-i386.h: Update.
5213 * config/i386/tm-ptx.h: Update.
5214 * config/i386/tm-symmetry.h: Update.
5215 * config/i960/tm-i960.h: Update.
5216 * config/m32r/tm-m32r.h: Update.
5217 * config/m68k/tm-delta68.h: Update.
5218 * config/m68k/tm-linux.h: Update.
5219 * config/m68k/tm-m68k.h: Update.
5220 * config/m88k/tm-m88k.h: Update.
5221 * config/mcore/tm-mcore.h: Update.
5222 * config/mips/tm-mips.h: Update.
5223 * config/mn10200/tm-mn10200.h: Update.
5224 * config/pa/tm-hppa.h: Update.
5225 * config/pa/tm-hppa64.h: Update.
5226 * config/sparc/tm-sp64.h: Update.
5227 * config/sparc/tm-sparc.h: Update.
5228 * config/sparc/tm-sparclet.h: Update.
5229 * config/z8k/tm-z8k.h: Update.
5230
5231 2002-06-14 Andrew Cagney <cagney@redhat.com>
5232
5233 * Makefile.in (i386_linux_tdep_h): Define.
5234 (i386_tdep_h, i387_tdep_h): Define.
5235 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5236 $(i386_tdep_h) and $(i387_tdep_h).
5237 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5238
5239 2002-06-14 Mark Kettenis <kettenis@gnu.org>
5240
5241 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5242 Already covered by the default.
5243
5244 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5245 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5246 (i386_gdbarch_init): Initialize long_double_format and long_double
5247 bit.
5248
5249 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5250 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5251 Move these to ...
5252 * config/i386/i386sol2.mh: ... here.
5253 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5254 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5255 (SIGCONTEXT_PC_OFFSET): Remove define.
5256 (IN_SIGTRAMP): Remove define.
5257 * i386-sol2-tdep.c: New file.
5258
5259 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5260 * config/i386/tm-i386nw.h: Removed.
5261
5262 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5263 USE_STRUCT_CONVENTION): Remove defines.
5264 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5265 (get_longjmp_target): Remove prototype.
5266 (IN_SIGTRAMP): Remove define.
5267 (i386bsd_in_sigtramp): Remove prototype.
5268 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5269 function. Update comment accordingly
5270 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5271 (FRAME_SAVED_PC): Remove define.
5272 (i386bsd_frame_saved_pc): Remove prototype.
5273 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5274 GET_LONGJMP_TARGET): Remove defines.
5275 (get_longjmp_target): Remove prototype.
5276 (IN_SIGTRAMP): Remove define.
5277 (i386bsd_in_sigtramp): Remove prototype.
5278 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5279 function. Update comment accordingly
5280 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5281 (FRAME_SAVED_PC): Remove define.
5282 (i386bsd_frame_saved_pc): Remove prototype.
5283 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5284 Remove prototype.
5285 (USE_STRUCT_CONVENTION): Remove prototype.
5286 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5287 declaration.
5288 (_initialize_i386bsd_nat): Revise logic to determine some
5289 constants at compile time when compiling a native GDB. Warn if
5290 things don't match up with what we expect.
5291 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5292 Remove variables.
5293 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5294 to use date stored in `struct gdbarch_tdep'.
5295 (i386bsd_sigcontext_offset): Remove varaible.
5296 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5297 stored in `struct gdbarch_tdep'.
5298 (i386bsd_frame_saved_pc): Make static.
5299 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5300 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5301 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5302 i386fbsd4_sc_pc_offset): New variables.
5303 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5304 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5305 functions.
5306 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5307 functions.
5308 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5309 Modify the value of i386fbsd_sigtramp_start and
5310 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5311 i386fbsd_sigtramp_end.
5312 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5313 function.
5314
5315 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5316 define to i386-linux-tdep.h.
5317 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5318 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5319 defines.
5320 (i386_linux_register_name, i386_linux_register_byte,
5321 i386_linux_register_raw_size): Remove prototypes.
5322 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5323 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5324 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5325 TARGET_WRITE_PC): Remove defines.
5326 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5327 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5328 i386_linux_write_pc): Remove prototypes.
5329 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5330 (get_longjmp_target): Remove prototype.
5331 * i386-linux-tdep.h: New file.
5332 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5333 * i386-linux-tdep.c: Include "i386-tdep.h" and
5334 "i386-linux-tdep.h".
5335 (i386_linux_register_name, i386_linux_register_byte,
5336 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5337 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5338 Make static.
5339 (i386_linux_init_abi): New function.
5340 (_initialize_i386_linux_tdep): New function.
5341
5342 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5343 (i386_saved_pc_after_call): Remove prototype.
5344 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5345 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5346 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5347 (i386_register_name, i386_stab_reg_to_regnum,
5348 i386_dwarf_reg_to_regnum): Remove prototypes.
5349 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5350 SIZEOF_SSE_REGS): Remove defines.
5351 (REGISTER_BYTES): Remove define.
5352 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5353 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5354 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5355 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5356 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5357 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5358 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5359 (get_longjmp_target): Remove prototype.
5360 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5361 (sigtramp_saved_pc): Remove define.
5362 (i386v4_sigtramp_saved_pc): Remove prototype.
5363 * config/i386/tm-go32.h (FRAME_CHAIN,
5364 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5365 (i386go32_frame_saved_pc): Remove prototype.
5366 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5367 (get_longjmp_target): Remove prototype.
5368 * i386-tdep.h: Include "osabi.h".
5369 (enum i386_abi): Removed.
5370 (enum struct_return): New enum.
5371 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5372 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5373 sc_pc_offset members.
5374 (i386_gdbarch_register_os_abi): Remove prototype.
5375 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5376 I386_SSE_NUM_REGS): New defines.
5377 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5378 I386_SSE_SIZEOF_REGS): New defines.
5379 (i386_register_name, i386_register_byte, i386_register_raw_size):
5380 New prototypes.
5381 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5382 (i386bsd_sigtramp_saved_pc): New prototype.
5383 * i386-tdep.c: Don't include "elf-bfd.h".
5384 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5385 i386_frame_chain, i386_saved_pc_after_call): Make static.
5386 (i386_frame_saved_pc): Rewrite to call architecture dependent
5387 function to deal with signal handlers. Make static.
5388 (i386go32_frame_saved_pc): Removed.
5389 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5390 Removed.
5391 (i386_get_longjmp_target): New function.
5392 (default_struct_convention, pcc_struct_convention,
5393 reg_struct_convention, valid_conventions, struct_convention): New
5394 variables.
5395 (i386_use_struct_convention): New function.
5396 (i386v4_sigtramp_saved_pc): Renamed to
5397 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5398 (i386_pc_in_sigtramp): New function.
5399 (i386_abi_names): Removed.
5400 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5401 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5402 Removed.
5403 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5404 i386_gdbarch_register_os_abi): Removed.
5405 (struct i386_abi_handler): Removed.
5406 (i386_abi_handler_list): Removed.
5407 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5408 functions.
5409 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5410 i386_nw_init_abi): New functions.
5411 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5412 Use set_gdbarch_xxx() calls instead of relying on macros for a
5413 number of calls.
5414 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5415 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5416 Register the various architecture variants defined in this file.
5417
5418 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
5419
5420 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5421 (struct main_type): Remove arg_types member. Update comments for
5422 struct field.
5423 (TYPE_ARG_TYPES): Remove.
5424 (TYPE_FN_FIELD_ARGS): Update.
5425 (smash_to_method_type): Update prototype.
5426
5427 * c-typeprint.c (cp_type_print_method_args): Take method type
5428 instead of argument list. Use new argument layout. Simplify.
5429 (c_type_print_args): Use new argument layout. Simplify.
5430 (c_type_print_base): Update call to cp_type_print_method_args.
5431 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5432 argument; use die->type instead. Update call to
5433 smash_to_method_type.
5434 (read_structure_scope): Update call to dwarf2_add_member_fn.
5435 * gdbtypes.c (allocate_stub_method): Update comment.
5436 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5437 Use new argument layout.
5438 (check_stub_method): Use new argument layout. Don't count
5439 void as an argument.
5440 (print_arg_types): Update comments. Use new argument layout.
5441 (recursive_dump_type): Don't print arg_types member.
5442 * hpread.c (hpread_read_struct_type): Use new argument layout.
5443 (fixup_class_method_type): Likewise.
5444 (hpread_type_lookup): Likewise.
5445 * stabsread.c (read_type): Update calls to read_args and
5446 smash_to_method_type.
5447 (read_args): Use new argument layout. Simplify.
5448 * valops.c (typecmp): Use new argument layout. Update parameters
5449 and comments. Simplify.
5450 (hand_function_call): Use new argument layout.
5451 (search_struct_method): Update call to typecmp.
5452 (find_overload_match): Use new argument layout.
5453
5454 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5455
5456 * NEWS: Mention multithreaded debug support for gdbserver.
5457
5458 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5459
5460 * MAINTAINERS: Mention NEWS.
5461
5462 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5463
5464 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5465 (struct mips_objfile_private, compare_pdr_entries): New.
5466 (non_heuristic_proc_desc): Read the ".pdr" section if it
5467 is present.
5468
5469 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5470
5471 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5472 (arm_debug): New static variable.
5473 (_initialize_arm_tdep): Add ``set debug arm'' command.
5474
5475 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5476
5477 * Makefile.in (sim_arm_h): Define.
5478 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5479 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5480 (arm_register_sim_regno): New function, map an internal REGNUM
5481 onto a simulator register number.
5482 (arm_gdbarch_init): Set register_sim_regno.
5483
5484 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
5485
5486 * MAINTAINERS: Add self.
5487
5488 2002-06-11 Jim Blandy <jimb@redhat.com>
5489
5490 * source.c (source_info): Mention whether the symtab has
5491 information about preprocessor macros.
5492
5493 Call the command `info macro', not `show macro'.
5494 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5495 Fix error message.
5496 (_initialize_macrocmd): Register `info_macro_command' in
5497 `infolist', not `showlist'.
5498
5499 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
5500
5501 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5502 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5503 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5504 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5505 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5506 unconditionally.
5507 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5508 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5509 (_initialize_mips_tdep): Remove dead code.
5510 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5511 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5512 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5513 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5514 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5515 MIPS_LAST_FP_ARG_REGNUM): Remove.
5516
5517 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5518
5519 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5520 (unwind_tmp_obstack_free, parse_frame_info)
5521 (update_context, cfi_read_fp, cfi_write_fp)
5522 (cfi_frame_chain, cfi_init_extra_frame_info)
5523 (cfi_virtual_frame_pointer): Use the above function.
5524 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5525
5526 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
5527
5528 * v850-tdep.c (v850_type_is_scalar): New function.
5529 (v850_use_struct_convention): Match current gcc implementation
5530 as close as possible.
5531 (v850_push_arguments): Fix stack_offset handling. Don't write
5532 struct_addr into register. This is done by v850_store_struct_return.
5533 (v850_extract_return_value): Care for structs.
5534 (v850_store_return_value): Ditto.
5535 (v850_store_struct_return): Actually write address.
5536
5537 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5538
5539 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5540 without debug information too.
5541
5542 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5543
5544 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5545 Make multi-arch pure.
5546 * gdbarch.h, gdbarch.c: Re-generate.
5547 * arm-tdep.c (arm_print_float_info): Update.
5548 * arch-utils.h (default_print_float_info): Update.
5549 * arch-utils.c (default_print_float_info): Update.
5550 * infcmd.c (float_info): Update call.
5551
5552 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5553
5554 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5555 the front of the initialize list.
5556
5557 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5558
5559 * infrun.c (struct inferior_status): Replace fields
5560 selected_frame_address and selected_level with field
5561 selected_frame_id.
5562 (save_inferior_status): Update. Use get_frame_id.
5563 (struct restore_selected_frame_args): Delete.
5564 (restore_selected_frame): Update. Use frame_find_by_id.
5565 (restore_inferior_status): Update.
5566
5567 * breakpoint.h (struct breakpoint): Change type of
5568 watchpoint_frame to frame_id.
5569 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5570 call to get_current_frame.
5571 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5572 get_current_frame.
5573 (watchpoint_check): Use frame_find_by_id.
5574
5575 * frame.h (record_selected_frame): Delete declaration.
5576 * stack.c (record_selected_frame): Delete function.
5577
5578 * frame.h (struct frame_id): Define.
5579 (get_frame_id): Declare.
5580 (frame_find_by_id): Declare.
5581 * frame.c (frame_find_by_id): New function.
5582 (get_frame_id): New function.
5583
5584 2002-06-10 Andrey Volkov <avolkov@transas.com>
5585
5586 * ser-e7kpc.c: Fix duplicated define and call of
5587 _initialize_ser_e7000pc
5588
5589 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5590
5591 * signals/signals.c (target_signal_from_host): Fix #ifdef
5592 SIGRTMIN case.
5593 (do_target_signal_to_host): Likewise.
5594
5595 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5596
5597 * mips-tdep.c (mips_find_abi_section): New function.
5598 (mips_gdbarch_init): Call it.
5599
5600 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5601
5602 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5603 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5604 after Andrew's 2002-06-08 gdbarch change.
5605
5606 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5607
5608 * i386-linux-nat.c (suppy_gregset): Don't supply
5609 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5610 register cache.
5611 (fill_gregset): Don't fetch it under the same circumstances.
5612
5613 2002-06-09 Andrew Cagney <cagney@redhat.com>
5614
5615 * Makefile.in (callback_h): Define.
5616 (remote_sim_h): Update path to remote-sim.h.
5617 (remote-rdp.o): Add $(callback_h).
5618 (remote-sim.o): Use $(callback_h).
5619 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5620 * remote-rdp.c: Include "gdb/callback.h".
5621
5622 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5623
5624 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5625 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5626
5627 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5628
5629 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5630 * rdi-share/serpardr.c: Ditto.
5631 * rdi-share/unixcomm.c: Ditto.
5632 * rdi-share/serdrv.c: Ditto.
5633 * rdi-share/hostchan.h: Ditto.
5634 * rdi-share/hostchan.c: Ditto.
5635 * rdi-share/host.h: Ditto.
5636 * rdi-share/devsw.c: Ditto.
5637
5638 * objfiles.h: Change type of obj_private to void pointer.
5639 * pa64solib.c: Update copyright. Don't include "assert.h", use
5640 strcmp instead of STREQ, use LONGEST, do not use PTR
5641 * somsolib.c: Ditto.
5642
5643 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5644 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5645 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5646
5647 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5648
5649 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5650 (default_get_saved_register): Delete function.
5651 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5652 generic_unwind_get_saved_register.
5653 * gdbarch.h, gdbarch.c: Re-generate.
5654
5655 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5656
5657 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5658 generic_func_frame_chain_valid.
5659 * gdbarch.h, gdbarch.c: Re-generate.
5660 * blockframe.c (generic_func_frame_chain_valid): Only check
5661 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5662 passing FP to PC_IN_CALL_DUMMY.
5663 Fix PR gdb/360.
5664
5665 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5666
5667 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5668 (register_gdbarch_data): Initialize init_p.
5669 (gdbarch_data): Initialize data pointer using the init function.
5670 (init_gdbarch_data): Delete function.
5671 (gdbarch_update_p): Update.
5672 (initialize_non_multiarch): Update.
5673 (struct gdbarch): Add field initialized_p.
5674 * gdbarch.h, gdbarch.c: Re-generate.
5675
5676 2002-06-07 Michal Ludvig <mludvig@suse.cz>
5677
5678 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5679 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5680 better do the things actually here.
5681 * x86-64-tdep.c (x86_64_register_name2nr): New.
5682 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5683 (x86_64_gdbarch_init): Respect the above change.
5684 * x86-64-tdep.h (x86_64_register_name2nr)
5685 (x86_64_register_nr2name): Add prototypes.
5686 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5687
5688 2002-06-06 Michael Snyder <msnyder@redhat.com>
5689
5690 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5691 Delete extra braces and re-indent.
5692 (d10v_store_return_value): Char return values
5693 must be shifted over by one byte in R0.
5694 (d10v_extract_return_value): Delete extra braces, re-indent.
5695
5696 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5697
5698 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5699 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5700 (d10v_integer_to_address): Rewrite.
5701 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5702 the d10v specific functions which take care of converting to the
5703 correct space.
5704
5705 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5706
5707 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5708 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5709
5710 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5711
5712 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5713 includes.
5714 * config/tm-linux.h: Ditto.
5715 * config/alpha/tm-alphalinux.h: Ditto.
5716 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5717 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5718 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5719 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5720 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5721 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5722 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5723 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5724 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5725 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5726 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5727 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5728 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5729 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5730 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5731 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5732 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5733 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5734 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5735 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5736 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5737 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5738 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5739 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5740 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5741 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5742 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5743 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5744 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5745 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5746 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5747 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5748 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5749 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5750 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5751 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5752 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5753
5754 2002-05-04 Aidan Skinner <aidan@velvet.net>
5755
5756 * ada-exp.tab.c: New file
5757 * ada-exp.y: New file
5758 * ada-lang.c: New file
5759 * ada-lang.h: New file
5760 * ada-lex.c: New file
5761 * ada-lex.l: New file
5762 * ada-tasks.c: New file
5763 * ada-typeprint.c: New file
5764 * ada-valprint.c: New file
5765
5766 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5767
5768 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5769 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5770
5771 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5772
5773 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5774 insetead of ppc-linux-tdep.o.
5775 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5776 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5777
5778 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5779
5780 2002-05-07 Christian Groessler <chris@groessler.org>
5781 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5782 bit register contents for little endian hosts.
5783
5784 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5785
5786 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5787 any maintainer.
5788
5789 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5790
5791 * gdbarch.h: Regenerate.
5792
5793 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5794
5795 * MAINTAINERS: Add everyone to write-after-approval list.
5796
5797 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5798
5799 * stack.c (frame_info): Use frame_register_unwind instead of
5800 saved_regs. Mention when the SP is on the stack or in a register.
5801
5802 * frame.h (frame_register_unwind_ftype): Define. Document.
5803 (struct frame_info): Add field register_unwind and
5804 register_unwind_cache.
5805 (frame_register_unwind): Declare.
5806 (generic_unwind_get_saved_register): Declare.
5807
5808 * frame.c (frame_register_unwind): New function.
5809 (generic_unwind_get_saved_register): New function.
5810
5811 * blockframe.c (generic_call_dummy_register_unwind): New function.
5812 (frame_saved_regs_register_unwind): New function.
5813 (set_unwind_by_pc): New function.
5814 (create_new_frame): New function.
5815 (get_prev_frame): New function.
5816
5817 2002-05-30 Andrew Cagney <ac131313@redhat.com>
5818
5819 * a29k-share/: Delete directory.
5820 * remote-vx29k.c: Delete file.
5821
5822 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5823
5824 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5825 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5826
5827 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5828
5829 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5830 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5831 (sparc64nbsd-nat.o)
5832 (sparcnbsd-nat.o)
5833 (sparcnbsd-tdep.o): New dependency lists.
5834 * NEWS: Note new UltraSPARC NetBSD native configuration.
5835 * configure.host (sparc64-*-netbsd*): New host.
5836 * configure.tgt (sparc-*-netbsdelf*)
5837 (sparc-*-netbsd*): Set gdb_target to nbsd.
5838 (sparc64-*-netbsd*): New target.
5839 * sparc64nbsd-nat.c: New file.
5840 * sparcnbsd-nat.c: New file.
5841 * sparcnbsd-tdep.c: New file.
5842 * sparcnbsd-tdep.h: New file.
5843 * config/sparc/nbsd.mt: New file.
5844 * config/sparc/nbsd64.mh: New file.
5845 * config/sparc/nbsd64.mt: New file.
5846 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5847 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5848 (HOST_IPC): Remove.
5849 * config/sparc/nbsdaout.mt: Remove.
5850 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5851 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5852 (HOST_IPC): Remove.
5853 * config/sparc/nbsdelf.mt: Remove.
5854 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5855 sparc-nat.c compatiblity defines.
5856 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5857 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5858 * config/sparc/tm-nbsd64.h: New file.
5859 * config/sparc/tm-nbsdaout.h: Remove.
5860 * config/sparc/xm-nbsd.h: Remove.
5861
5862 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5863
5864 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5865 * sparc-tdep.c: Include osabi.h.
5866 (gdbarch_tdep): Add osabi member.
5867 (_initialize_sparc_tdep): Use gdbarch_register.
5868 (sparc_gdbarch_init): Use generic OS ABI framework.
5869 (sparc_dump_tdep): New function.
5870
5871 2002-05-30 Kevin Buettner <kevinb@redhat.com>
5872
5873 * corefile.c (do_captured_read_memory_integer): Return non-zero
5874 result.
5875 (safe_read_memory_integer): Copy result of memory read when
5876 status is non-zero. Also, add comments.
5877
5878 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5879
5880 * Makefile.in (ppc_tdep_h): Define.
5881 (ppc-linux-nat.o)
5882 (ppc-linux-tdep.o)
5883 (rs6000-tdep.o): Use $(ppc_tdep_h).
5884 (ppc-sysv-tdep.o)
5885 (ppcnbsd-nat.o)
5886 (ppcnbsd-tdep.o): New dependency lists.
5887 * ppc-tdep.h: Use generic OS ABI framework.
5888 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5889 (ppc_linux_init_abi): New functions.
5890 (ppc_sysv_abi_broken_use_struct_convention)
5891 (ppc_sysv_abi_use_struct_convention)
5892 (ppc_sysv_abi_push_arguments): Move to...
5893 * ppc-sysv-tdep.c: ...here.
5894 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5895 * rs6000-tdep.c (process_note_abi_tag_sections)
5896 (get_elfosabi): Remove.
5897 (rs6000_gdbarch_init): Use generic OS ABI framework.
5898 (rs6000_dump_tdep): New function.
5899 (_initialize_rs6000_tdep): Use gdbarch_register.
5900 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5901 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5902 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5903 of ppc-linux-tdep.o.
5904 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5905 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5906 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5907 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5908 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5909 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5910
5911 2002-05-29 Jim Blandy <jimb@redhat.com>
5912
5913 * macroscope.c (default_macro_scope): Put `void' in empty argument
5914 list.
5915
5916 2002-05-29 Andrew Cagney <ac131313@redhat.com>
5917
5918 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5919 * arch-utils.c: Include "sim-regno.h".
5920 * gdbarch.sh: Don't include "sim-regno.h".
5921 * gdbarch.h, gdbarch.c: Regenerate.
5922 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5923 here.
5924 * arch-utils.h (legacy_register_sim_regno): To here.
5925 * remote-sim.c (legacy_register_sim_regno): Move function from
5926 here.
5927 * arch-utils.c (legacy_register_sim_regno): To here.
5928
5929 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5930
5931 * sim-regno.h: New file.
5932 * Makefile.in (sim_regno_h): Define.
5933 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5934 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5935 (legacy_register_sim_regno): New function.
5936 (one2one_register_sim_regno): New function.
5937 (gdbsim_fetch_register): Rewrite.
5938 (gdbsim_store_register): Only store a register when
5939 REGISTER_SIM_REGNO is valid.
5940 * d10v-tdep.c: Include "sim-regno.h".
5941 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5942 (d10v_ts3_register_sim_regno): Ditto.
5943 * gdbarch.sh: Include "sim-regno.h".
5944 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5945 * gdbarch.h, gdbarch.c: Regenerate.
5946 * arch-utils.h (default_register_sim_regno): Delete declaration.
5947 * arch-utils.c (default_register_sim_regno): Delete function.
5948
5949 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5950
5951 * ppcnbsd-nat.c: Rewrite.
5952 * ppcnbsd-tdep.c: New file.
5953 * ppcnbsd-tdep.h: New file.
5954 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5955 solib.o, and solib-svr4.o.
5956 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5957 nbsd-tdep.o, and corelow.o.
5958
5959 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5960
5961 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5962 `tr' and `sed'. Mention that `broken' targets are not expected to
5963 build.
5964
5965 2002-05-27 Michal Ludvig <mludvig@suse.cz>
5966
5967 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5968 Let PC point right after the prologue before looking up symbols.
5969
5970 2002-05-27 Martin M. Hunt <hunt@redhat.com>
5971
5972 * i386-tdep.c (i386_register_virtual_type): Return
5973 builtin_type_vec128i for SSE registers.
5974
5975 * gdbtypes.h (builtin_type_vec128i): Declare.
5976
5977 * gdbtypes.c (build_builtin_type_vec128i): New function.
5978 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5979 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5980 (build_gdbtypes): Initialize new builtin vector types.
5981 (_initialize_gdbtypes): Register new vector types with gdbarch.
5982
5983 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5984
5985 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5986 since it has been multi-arch'd.
5987 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5988 Move Alpha and VAX multi-arch news entries to same section
5989 as other multi-arch news.
5990
5991 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5992
5993 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5994 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5995 static. Rename some register numbers to put them in ns32k-tdep
5996 private namespace.
5997 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5998 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5999 functions.
6000 (_initialize_ns32k_tdep): Use gdbarch_register.
6001 * ns32k-tdep.h: New file.
6002 * ns32knbsd-tdep.c: New file.
6003 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
6004 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
6005 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
6006 REGISTER_BYTES, REGISTER_BYTE): Remove.
6007 * config/ns32k/tm-ns32k.h: New file.
6008 * config/ns32k/tm-umax.h: Remove.
6009
6010 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6011
6012 * ns32k-tdep.c (ns32k_saved_pc_after_call,
6013 ns32k_store_struct_return, ns32k_extract_return_value,
6014 ns32k_store_return_value, ns32k_extract_struct_value_address): New
6015 functions.
6016 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
6017 ns32k_saved_pc_after_call.
6018 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
6019 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
6020 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
6021 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6022 ns32k_extract_struct_value_address.
6023
6024 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6025
6026 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
6027 ns32k_fix_call_dummy): New.
6028 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
6029 ns32k_call_dummy_words.
6030 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
6031 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
6032 CALL_DUMMY_NARGS): Remove.
6033 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
6034
6035 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6036
6037 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
6038 ns32k_frame_saved_pc, ns32k_frame_args_address,
6039 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
6040 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
6041 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
6042 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
6043 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
6044 (BREAKPOINT): Remove..
6045 (FRAME_CHAIN): Define as ns32k_frame_chain.
6046 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
6047 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
6048 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
6049 (FRAME_FIND_SAVED_REGS): Remove.
6050 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
6051 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
6052 (POP_FRAME): Define as ns32k_pop_frame.
6053
6054 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6055
6056 * ns32k-tdep.c (ns32k_register_byte_32082,
6057 ns32k_register_byte_32382, ns32k_register_raw_size,
6058 ns32k_register_virtual_size, ns32k_register_virtual_type): New
6059 functions.
6060 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
6061 ns32k_register_byte_32382.
6062 * config/ns32k/tm-umax.h: Update copyright years.
6063 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
6064 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
6065 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
6066 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
6067 (ns32k_get_enter_addr): Fix prototype.
6068
6069 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6070
6071 * ns32k-tdep.c: Update copyright years.
6072 (ns32k_register_name_32082): New function.
6073 (ns32k_register_name_32382): Ditto.
6074 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
6075 (REGISTER_NAME): Define as ns32k_register_name_32382.
6076 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
6077 (REGISTER_NAME): Define as ns32k_register_name_32082.
6078
6079 2002-05-24 Jim Blandy <jimb@redhat.com>
6080
6081 * dwarf2read.c (free_line_header): Use xfree, not free.
6082
6083 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
6084
6085 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
6086 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
6087
6088 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6089
6090 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
6091
6092 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6093
6094 From Ross Alexander at NEC Europe:
6095 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
6096
6097 2002-05-23 Michael Snyder <msnyder@redhat.com>
6098
6099 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
6100 for input, rather than parse_and_eval_address.
6101
6102 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6103
6104 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
6105 * Makefile.in (sim_d10v_h): Update definition.
6106
6107 2002-05-24 Andrew Cagney <cagney@redhat.com>
6108
6109 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
6110 change `2002-05-22 Michael Snyder' below.
6111 (d10v_push_arguments): Ditto.
6112 (d10v_extract_return_value): Ditto.
6113
6114 2002-05-23 Jim Blandy <jimb@redhat.com>
6115
6116 * macrotab.c (check_for_redefinition): Don't complain if the new
6117 definition is the same as the previous one. Take more arguments
6118 to allow the comparison.
6119 (macro_define_object, macro_define_function): Pass more arguments
6120 to check_for_redefinition.
6121
6122 2002-05-22 Michael Snyder <msnyder@redhat.com>
6123
6124 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
6125 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
6126 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
6127 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
6128 Don't bail if return_pc is PC_IN_CALL_DUMMY.
6129 Add a temp variable to save a call (and a memory read).
6130 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
6131 if possible (so that PC_IN_CALL_DUMMY will work).
6132
6133 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
6134
6135 * MAINTAINERS: Remove status `OBSOLETE' from v850.
6136
6137 2002-05-22 Michal Ludvig <mludvig@suse.cz>
6138
6139 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6140 fde->cie_ptr.
6141 (dwarf2_build_frame_info): Corrected handling of eh_frame.
6142 (dwarf2_build_frame_info): Add offset to fde->initial_location
6143 so that frames of shared libraries are mapped correctly.
6144 (execute_stack_op): Change type of 'result' from ULONGEST to
6145 CORE_ADDR.
6146
6147 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6148
6149 * config/alpha/tm-nbsd.h: Include solib.h.
6150
6151 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6152
6153 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6154 assumptions about the host's byte order.
6155
6156 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6157
6158 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6159 to dependency list.
6160 * alphanbsd-tdep.c: Include solib-svr4.h.
6161 * shnbsd-tdep.c: Ditto.
6162
6163 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6164
6165 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6166 nbsd-tdep.h to dependency list.
6167 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6168 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6169 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6170 nbsdaout.mh and nbsdelf.mh consistently.
6171 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6172 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6173 nbsdaout.mt and nbsdelf.mh consistently.
6174 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6175 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6176 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6177 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6178 a.out shared library stuff from here...
6179 * config/nm-nbsdaout.h: ...to here.
6180 * config/tm-nbsd.h: Remove.
6181 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6182 * config/arm/nbsd.mh: Remove.
6183 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6184 nbsd-tdep.o.
6185 * config/arm/nbsdaout.mh: New file.
6186 * config/arm/nbsdelf.mh: New file.
6187 * config/arm/nm-nbsdaout.h: New file.
6188 * config/i386/nbsd.mh: Remove.
6189 * config/i386/nbsd.mt: Remove.
6190 * config/i386/nbsdaout.mh: New file.
6191 * config/i386/nbsdaout.mt: New file.
6192 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6193 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6194 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6195 i386_register_u_addr): Remove.
6196 * config/i386/nm-nbsdaout.h: New file.
6197 * config/i386/nm-nbsdelf.h: Remove.
6198 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6199 (USE_STRUCT_CONVENTION): Remove.
6200 * config/i386/tm-nbsdaout.h: New file.
6201 * config/i386/tm-nbsdelf.h: Remove.
6202 * config/m68k/nbsd.mh: Remove.
6203 * config/m68k/nbsd.mt: Remove.
6204 * config/m68k/nbsdaout.mh: New file.
6205 * config/m68k/nbsdaout.mt: New file.
6206 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6207 * config/m68k/nm-nbsdaout.h: New file.
6208 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6209 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6210 * config/ns32k/nbsd.mh: Remove.
6211 * config/ns32k/nbsd.mt: Remove.
6212 * config/ns32k/nbsdaout.mh: New file.
6213 * config/ns32k/nbsdaout.mt: New file.
6214 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6215 * config/ns32k/nm-nbsdaout.h: New file.
6216 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6217 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6218 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6219 (SVR4_SHARED_LIBS): Remove.
6220 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6221 * config/sparc/nbsd.mh: Remove.
6222 * config/sparc/nbsd.mt: Remove.
6223 * config/sparc/nbsdaout.mh: New file.
6224 * config/sparc/nbsdaout.mt: New file.
6225 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6226 * config/sparc/nbsdelf.mt: New file.
6227 * config/sparc/nm-nbsdaout.h: New file.
6228 * config/sparc/nm-nbsdelf.h: Remove.
6229 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6230 * config/sparc/tm-nbsdaout.h: New file.
6231
6232 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6233
6234 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6235 mipsnbsd-tdep.c
6236 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6237
6238 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6239
6240 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6241 shnbsd-nat.c.
6242 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6243
6244 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6245
6246 * NEWS: Note new MIPS NetBSD native configuration.
6247 * configure.host (mips*-*-netbsd*): New host.
6248 * configure.tgt (mips*-*-netbsd*): New target.
6249 * mipsnbsd-nat.c: New file.
6250 * mipsnbsd-tdep.c: New file.
6251 * mipsnbsd-tdep.h: New file.
6252 * config/mips/nbsd.mh: New file.
6253 * config/mips/nbsd.mt: New file.
6254 * config/mips/nm-nbsd.h: New file.
6255 * config/mips/tm-nbsd.h: New file.
6256
6257 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6258
6259 * Makefile.in (SFILES): Add osabi.c.
6260 (COMMON_OBS): Add osabi.o.
6261 (osabi.o): New dependency list.
6262 * osabi.c: New file.
6263 * osabi.h: New file.
6264 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6265
6266 * Makefile.in (alpha_tdep_h): Define and use instead of
6267 alpha-tdep.h.
6268 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6269 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6270 Remove.
6271 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6272 * alpha-tdep.h: Include osabi.h.
6273 (alpha_abi): Remove.
6274 (gdbarch_tdep): Use generic OS ABI framework.
6275 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6276 gdbarch_register_osabi.
6277 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6278 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6279 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6280
6281 * Makefile.in (sh_tdep_h): Add osabi.h.
6282 * sh-tdep.h (sh_osabi): Remove.
6283 (gdbarch_tdep): Use generic OS ABI framework.
6284 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6285 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6286 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6287 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6288
6289 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6290 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6291 gdbarch_register_osabi.
6292 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6293 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6294 (get_elfosabi): Rename to...
6295 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6296 ABI framework support routines.
6297 (arm_gdbarch_init): Use generic OS ABI framework.
6298 (arm_dump_tdep): Likewise.
6299 (_initialize_arm_tdep): Likewise.
6300 * arm-tdep.h: Include osabi.h.
6301 (arm_abi): Remove.
6302 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6303 osabi member.
6304 (arm_gdbarch_register_os_abi): Remove prototype.
6305 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6306 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6307
6308 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6309 * mips-tdep.c: Include osabi.h.
6310 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6311 OS ABI framework.
6312
6313 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6314
6315 * h8300-tdep.c: Fix formatting.
6316
6317 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
6318
6319 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6320 printing vector registers.
6321
6322 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6323
6324 From Fernando Nasser:
6325 * remote.c (remote_async_open_1): Re-throw the exception when the
6326 connection fails.
6327 (remote_cisco_open): Ditto.
6328 (remote_open_1): Ditto.
6329
6330 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6331
6332 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6333 (remote_start_remote): Add uiout parameter. Pass through to
6334 remote_start_remote_dummy.
6335 (remote_open_1): Use catch_exception instead of catch_errors.
6336 (remote_async_open_1): Ditto.
6337 (remote_cisco_open): Ditto.
6338
6339 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6340
6341 * remote.c (remote_start_remote): Replace PTR with void pointer.
6342 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6343 static.
6344
6345 2002-05-18 Andrew Cagney <ac131313@redhat.com>
6346
6347 * gdb_indent.sh: Allow the script to be run in the sim directory.
6348
6349 2002-05-18 Mark Kettenis <kettenis@gnu.org>
6350
6351 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6352 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6353
6354 * corelow.c (core_open): Only call set_gdbarch_from_file if
6355 exec_bfd is NULL.
6356
6357 2002-05-17 Andrey Volkov <avolkov@transas.com>
6358
6359 * h8300-tdep.c: Add support of EXR register
6360 * config/h8300/tm-h8300.h: Ditto.
6361
6362 2002-05-17 Andrey Volkov <avolkov@transas.com>
6363
6364 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6365
6366 2002-05-17 Andrey Volkov <avolkov@transas.com>
6367
6368 * h8300-tdep.c: Change literal regnums to REGNO.
6369
6370 2002-05-17 Jim Blandy <jimb@redhat.com>
6371
6372 * NEWS: Note addition of macro support.
6373
6374 Expand preprocessor macros in C expressions.
6375 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6376 (scan_macro_expansion, scanning_macro_expansion,
6377 finished_macro_expansion): New function declarations.
6378 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6379 variable declarations.
6380 * parser-defs.h (expression_context_pc): New declaration.
6381 * parse.c (expression_context_pc): New variable.
6382 (parse_exp_1): Set expression_context_pc, as well as
6383 expression_context_block.
6384 * c-exp.y (yylex): If we're not already reading the result of a
6385 macro expansion, try to macro-expand the next token. When we're
6386 done scanning a macro expansion, switch back to the mainline text.
6387 Commas and `if's in a macro's expansion don't terminate the input.
6388 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6389 (macro_original_text, macro_expanded_text,
6390 expression_macro_lookup_func, expression_macro_lookup_baton): New
6391 variables.
6392 (scan_macro_expansion, scanning_macro_expansion,
6393 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6394 c_preprocess_and_parse): New functions.
6395 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6396 c_preprocess_and_parse, instead of c_parse.
6397 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6398 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6399
6400 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6401
6402 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6403 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6404 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6405
6406 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
6407
6408 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6409
6410 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6411
6412 * Makefile.in (sh_tdep_h): Define and use.
6413 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6414 register enum): Move to...
6415 * * sh-tdep.h: ...here.
6416 * sh-tdep.c: Include sh-tdep.h.
6417 * sh3-rom.c: Likewise.
6418 * shnbsd-tdep.c: Likewise.
6419
6420 2002-05-16 Michael Snyder <msnyder@redhat.com>
6421
6422 * arm-tdep.c: Spelling fix in comment.
6423
6424 2002-05-16 Jim Blandy <jimb@redhat.com>
6425
6426 Add commands for manually expanding macros and showing their
6427 definitions.
6428 * macrocmd.c, macroscope.c, macroscope.h: New files.
6429 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6430 (macroscope_h): New variable.
6431 (HFILES_NO_SRCDIR): Add macroscope.h.
6432 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6433 (macroscope.o, macrocmd.o): New rules.
6434
6435 Teach the Dwarf 2 reader to read macro information.
6436 * dwarf2read.c: #include "macrotab.h".
6437 (dwarf_macinfo_buffer): New variable.
6438 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6439 dwarf_macinfo_size.
6440 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6441 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6442 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6443 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6444 dwarf2_macro_spaces_in_definition): New complaints.
6445 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6446 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6447 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6448 the partial symbol table.
6449 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6450 from what's recorded in the partial symbol table.
6451 (read_file_scope): If the compilation unit has a
6452 `DW_AT_macro_info' attribute, read its macro information.
6453 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6454
6455 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6456
6457 Fix PR gdb/546
6458 * ser-tcp.c: Don't include <netinet/udp.h>.
6459
6460 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6461
6462 * MAINTAINERS: Update my email address.
6463
6464 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
6465
6466 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6467 include file of the same name.
6468
6469 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6470
6471 * configure.tgt: Mark v850 as multi-arched.
6472 * config/v850/tm-v850.h: Remove file.
6473 * config/v850/v850.mt: Eliminate TM_FILE.
6474
6475 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6476
6477 * v850-tdep.c: Full multi-arch.
6478 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6479 Define GDB_MULTI_ARCH to 2.
6480
6481 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6482
6483 * p-exp.y (current_type): New static variable.
6484 Carries the type of the expression at the position that is parsed.
6485 (push_current_type, pop_current_type): Two new functions. Used
6486 to store/restore current_type in expression on specific tokens.
6487 (search_field): New static variable. Set to one after parsing a point
6488 as at that point only a FIELDNAME token should be searched.
6489 (FIELDNAME): New token. After a point only a token belonging to
6490 current_type type definition is allowed.
6491 (all over token rules): reset and change current_type according
6492 to rules.
6493 (exp '[' rule): insert implicit array index field if
6494 exp is a pascal string type.
6495
6496 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6497
6498 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6499 frame info. Use frame_info's saved_regs instead of matching member
6500 in extra_frame_info throughout.
6501 (v850_frame_init_saved_regs): New function.
6502 (v850_init_extra_frame_info): Move most functionality into
6503 v850_frame_init_saved_regs().
6504 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6505 (v850_frame_find_saved_regs): Remove declaration.
6506 (FRAME_FIND_SAVED_REGS): Remove definition.
6507 (v850_frame_init_saved_regs): Add declaration.
6508 (FRAME_INIT_SAVED_REGS): Add definition.
6509
6510 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6511
6512 * v850-tdep.c: Begin multi-arch'ing v850.
6513 (v850_target_architecture_hook): Remove function.
6514 (v850_gdbarch_init): New function. Add code previously in
6515 v850_target_architecture_hook().
6516 (_initialize_v850_tdep): Don't set target_architecture_hook.
6517 Call register_gdbarch_init() instead.
6518
6519 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6520
6521 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6522 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6523 (fixup_class_method_type): Likewise.
6524
6525 2002-05-15 Jim Blandy <jimb@redhat.com>
6526
6527 Add macro structures to GDB's symbol tables. Nobody puts anything
6528 in them yet.
6529 * symtab.h (struct symtab): New member: `macro_table'.
6530 * buildsym.h (pending_macros): New global variable.
6531 * buildsym.c: #include "macrotab.h".
6532 (buildsym_init): Initialize `pending_macros'.
6533 (end_symtab): If we found macro information while reading a CU's
6534 debugging info, do build a symtab structure for it. Make the
6535 symtab point to the macro information, and clear the
6536 `pending_macros' pointer which held it while we were reading the
6537 debug info.
6538 (really_free_pendings): Free any pending macro table.
6539 * objfiles.h (struct objfile): New member: `macro_cache'.
6540 * objfiles.c (allocate_objfile): Set allocate and free functions
6541 for the macro cache's objstack.
6542 (free_objfile): Empty the macro cache's obstack.
6543 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6544 set new allocate and free functions for it.
6545 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6546 free functions for the macro cache's objstack. (Why is this
6547 function building its own objfile?)
6548 * symmisc.c (print_objfile_statistics): Print statistics on the
6549 macro bcache.
6550 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6551
6552 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6553
6554 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6555 (REGISTER_U_ADDR): Delete definition.
6556 (arm_register_u_addr): Delete declaration.
6557
6558 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6559
6560 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6561 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6562
6563 2002-05-14 Andrew Cagney <ac131313@redhat.com>
6564
6565 * regcache.c (register_valid): Revise comments refering to "Not
6566 available" and "unavailable".
6567 * frame.c (frame_register_read): Ditto.
6568 * findvar.c (value_of_register): Ditto.
6569
6570 2002-05-15 Andrew Cagney <cagney@redhat.com>
6571
6572 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6573 (remote-sim.o): Update dependencies.
6574 (d10v-tdep.o): Specify dependencies.
6575 (sim_d10v_h): Define.
6576
6577 2002-05-14 Jim Blandy <jimb@redhat.com>
6578
6579 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6580 * macrotab.c (macro_lookup_inclusion, find_definition,
6581 new_macro_table): Same.
6582
6583 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6584 not `! strcmp ()'. This is a dubious improvement.
6585 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6586
6587 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6588 although it's not necessary, to avoid a warning.
6589
6590 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6591
6592 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6593 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6594 TYPE_INSTANCE_FLAGS.
6595 (struct main_type): New.
6596 (struct type): Move most members to struct main_type. Change
6597 cv_type and as_type to new type_chain member. Add instance_flags.
6598 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6599 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6600 (finish_cv_type): Remove prototype.
6601 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6602 Set TYPE_CHAIN.
6603 (alloc_type_instance): New function.
6604 (smash_type): New function.
6605 (make_pointer_type, make_reference_type, make_function_type)
6606 (smash_to_member_type, smash_to_method_type): Call smash_type.
6607 (make_qualified_type): New function.
6608 (make_type_with_address_space): Call make_qualified_type.
6609 (make_cv_type): Likewise.
6610 (finish_cv_type): Remove unnecessary function.
6611 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6612 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6613 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6614 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6615 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6616 * hpread.c (hpread_read_struct_type): Likewise.
6617 * stabsread.c (read_struct_type): Likewise.
6618
6619 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
6620
6621 * configure.tgt: Add a catch all sh* target, for cases like
6622 sh[2,3,4]-elf and sh-hms.
6623
6624 2002-05-14 Keith Seitz <keiths@redhat.com>
6625
6626 * event-loop.c (create_file_handler): Don't do anything but
6627 update data when we are given a fd which we are already
6628 monitoring.
6629
6630 2002-05-14 Michal Ludvig <mludvig@suse.cz>
6631
6632 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6633 (update_context): Use __func__ in warnings.
6634
6635 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6636
6637 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6638 and tcp_close to net_open and net_close.
6639 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6640 using UDP if requested. Don't try to disable Nagle on UDP
6641 sockets.
6642 * remote.c (remote_serial_open): New function. Warn about UDP.
6643 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6644
6645 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6646
6647 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6648
6649 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6650
6651 * configure.tgt: Remove sh-hms target.
6652 * MAINTAINERS: Don't list sh-hms as a separate target.
6653
6654 2002-05-13 Jim Blandy <jimb@redhat.com>
6655
6656 Add first preprocessor macro-expansion files.
6657 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6658 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6659 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6660 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6661 (COMMON_OBS): Add macrotab.o, macroexp.o.
6662 (macroexp.o, macrotab.o): New rules.
6663
6664 2002-05-13 Andrew Cagney <ac131313@redhat.com>
6665
6666 * config/m88k/tm-m88k.h: Update copyright.
6667 (m88k_target_write_pc): Declare
6668 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6669 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6670 (SHIFT_INST_REGS): Update definition.
6671 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6672 using old definition of TARGET_WRITE_PC.
6673 * regcache.c (generic_target_write_pc): Delete code handling
6674 NNPC_REGNUM.
6675 * gdbarch.sh (NNPC_REGNUM): Delete.
6676 * gdbarch.h, gdbarch.c: Regenerate.
6677
6678 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
6679
6680 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6681 builtin reg number.
6682
6683 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
6684
6685 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6686 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6687 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6688 access macros.
6689 * c-typeprint.c (cp_type_print_method_args): Likewise.
6690 (c_type_print_args): Likewise.
6691 * d10v-tdep.c (d10v_push_arguments): Likewise.
6692 (d10v_extract_return_value): Likewise.
6693 * expprint.c (print_subexp): Likewise.
6694 * gdbtypes.c (lookup_primitive_typename): Likewise.
6695 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6696 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6697 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6698 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6699 (TYPE_VECTOR): Likewise.
6700 * hpread.c (hpread_read_struct_type)
6701 (fix_static_member_physnames, fixup_class_method_type)
6702 (hpread_type_lookup): Likewise.
6703 * mdebugread.c (parse_symbol, parse_type): Likewise.
6704 * p-lang.c (is_pascal_string_type): Likewise.
6705 * valops.c (hand_function_call): Likewise.
6706 * x86-64-tdep.c (classify_argument): Likewise.
6707
6708 * hpread.c (hpread_read_function_type)
6709 (hpread_read_doc_function_type): Call replace_type.
6710 * dstread.c (create_new_type): Delete.
6711 (decode_dst_structure, process_dst_function): Call alloc_type.
6712 Use type access macros.
6713
6714 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6715
6716 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6717 the're not supported by the current architecture.
6718 (i387_fill_fxsave): Likewise.
6719
6720 2002-05-12 Fred Fish <fnf@redhat.com>
6721
6722 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6723 sect_index_xxx members to index the first slot in section_offsets
6724 if all of the section_offsets are zero.
6725
6726 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6727
6728 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6729 checked in with last change.
6730
6731 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6732
6733 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6734 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6735 config.sub.
6736
6737 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
6738
6739 * Makefile.in: Update dependencies.
6740
6741 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6742
6743 * language.c (local_hex_string_custom): Simplify. Do not depend
6744 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6745
6746 * memattr.c (mem_info_command): Replace calls to
6747 longest_local_hex_string and longest_local_hex_string_custom.
6748 * buildsym.c (make_blockvector): Ditto.
6749 * solib.c (info_sharedlibrary_command): Ditto.
6750 * tracepoint.c (tracepoints_info): Ditto.
6751 * symtab.c (print_msymbol_info): Ditto.
6752
6753 * language.c (local_hex_string): Delete.
6754 (local_hex_string_custom): Delete.
6755 (longest_local_hex_string): Rename to local_hex_string.
6756 (longest_local_hex_string_custom): Rename to
6757 local_hex_string_custom.
6758 * language.h (local_hex_string): Change parameter type to LONGEST.
6759 (local_hex_string_custom): Ditto.
6760 (longest_local_hex_string): Delete declaration.
6761 (longest_local_hex_string_custom): Ditto.
6762
6763 * solib.c: Update copyright.
6764 * memattr.c: Update copyright.
6765
6766 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6767
6768 * arch-utils.h (legacy_register_to_value): Declare.
6769 (legacy_value_to_register): Declare.
6770 (legacy_convert_register_p): Declare.
6771 * arch-utils.c (legacy_register_to_value): New function.
6772 (legacy_value_to_register): New function.
6773 (legacy_convert_register_p): New function.
6774
6775 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6776 (VALUE_TO_REGISTER): Define.
6777 (CONVERT_REGISTER_P): Define.
6778 * gdbarch.h, gdbarch.c: Regenerate.
6779
6780 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6781 VALUE_TO_REGISTER.
6782 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6783 CONVERT_REGISTER_P.
6784
6785 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
6786 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6787
6788 * Makefile.in: Update dependencies for valops.c.
6789 * valops.c: Include "gdb_assert.h".
6790 (typecmp): Skip THIS parameter to methods.
6791 (find_method_list): Remove static_memfuncp argument,
6792 update callers. Check for stub methods.
6793 (find_value_oload_method_list): Don't set *static_memfuncp.
6794 (find_overload_match): Don't check for stub methods. Assert
6795 that methods are not stubbed. Handle static methods.
6796 (value_find_oload_method_list): Remove static_memfuncp argument.
6797 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6798 to the argument list for static stub methods.
6799 * value.h (value_find_oload_method_list): Update prototype.
6800
6801 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6802
6803 * arch-utils.h (generic_register_size): Declare.
6804 (generic_register_raw_size, generic_register_virtual_size): Delete
6805 declarations.
6806 * arch-utils.c (generic_register_raw_size): Delete.
6807 (generic_register_size): New function.
6808 (generic_register_virtual_size): Delete.
6809
6810 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6811 default generic_register_size.
6812 * gdbarch.h, gdbarch.c: Re-generate.
6813
6814 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6815 register_virtual_size.
6816 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6817 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6818
6819 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6820
6821 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6822 * gdbarch.h, gdbarch.c: Regenerate.
6823 * gnu-v3-abi.c: Update copyright.
6824 (vtable_address_point_offset): Update.
6825 (gnuv3_rtti_type): Update.
6826 (gnuv3_baseclass_offset): Update.
6827 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6828 (init_fetch_link_map_offsets): Update.
6829 * remote.c (get_remote_state): Update.
6830
6831 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6832
6833 * TODO: Remove value_headof/value_from_vtable_info comment.
6834 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6835 * values.c (value_headof, value_from_vtable_info): Delete.
6836 * value.h (value_from_vtable_info): Delete prototype.
6837
6838 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6839
6840 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6841 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6842 $(gdb_regex_h).
6843 (gdb_assert_h): Define.
6844 (gdb_wait_h): Define.
6845 (gdb_regex_h): Define.
6846
6847 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6848
6849 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6850 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6851
6852 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6853
6854 * nbsd-tdep.c: Fix comment.
6855
6856 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6857
6858 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6859 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6860 (nbsd-tdep.o): New dependency list.
6861 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6862 nbsd-tdep.h.
6863 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6864 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6865 * nbsd-tdep.c: New file.
6866 * nbsd-tdep.h: New file.
6867 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6868 nbsd-tdep.h.
6869 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6870 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6871 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6872 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6873
6874 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6875
6876 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6877 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6878 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6879 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6880 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6881 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6882
6883 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6884
6885 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6886 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6887 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6888 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6889 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6890 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6891 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6892
6893 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6894
6895 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6896 fetch_elfcore_registers to...
6897 * i386nbsd-tdep.c: ...here.
6898 (i386nbsd_use_struct_convention): Rename to...
6899 (i386nbsd_aout_use_struct_convention): ...this.
6900 (i386nbsd_supply_reg): New function.
6901 (i386nbsd_fill_reg): New function.
6902 (fetch_core_registers): Use i386nbsd_supply_reg.
6903 (fetch_elfcore_registers): Likewise.
6904 (_initialize_i386nbsd_tdep): New function.
6905 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6906 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6907 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6908 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6909 (i386nbsd_aout_use_struct_convention): ...this.
6910
6911 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6912
6913 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6914 (store_inferior_registers): Use shnbsd_fill_reg.
6915 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6916 sh_nbsd_supply_register): Collapse into...
6917 (shnbsd_supply_reg): ...this.
6918 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6919 (shnbsd_fill_reg): ...this.
6920 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6921 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6922 (fetch_core_registers): Use shnbsd_supply_reg.
6923 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6924 (sh_nbsd_core_fns): Rename to...
6925 (shnbsd_core_fns): ...this.
6926 (sh_nbsd_elfcore_fns): Rename to...
6927 (shnbsd_elfcore_fns): ...this.
6928 (sh_nbsd_init_abi): Rename to...
6929 (shnbsd_init_abi): ...this.
6930 (_initialize_sh_nbsd_tdep): Rename to...
6931 (_initialize_shnbsd_tdep): ...this.
6932 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6933 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6934 sh_nbsd_fill_register): Remove prototypes.
6935 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6936
6937 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6938
6939 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6940 (i387-nat.o): Delete dependency list.
6941 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6942 (x86-64-linux-nat.o): Likewise.
6943 * i387-nat.c: Delete file, moving contents to...
6944 * i387-tdep.c: ...here.
6945 * i387-nat.h: Rename...
6946 * i387-tdep.h: ...to this.
6947 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6948 * i386-linux-nat.c: Likewise.
6949 * i386bsd-nat.c: Likewise.
6950 * i386gnu-nat.c: Likewise.
6951 * i386nbsd-nat.c: Likewise.
6952 * i386v4-nat.c: Likewise.
6953 * x86-64-linux-nat.c: Likewise.
6954 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6955 * config/i386/go32.mh (NATDEPFILES): Likewise.
6956 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6957 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6958 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6959 * config/i386/linux.mh (NATDEPFILES): Likewise.
6960 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6961 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6962 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6963 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6964
6965 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6966
6967 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6968 (alphanbsd-nat.o): Remove dependency list.
6969 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6970 * alphanbsd-nat.c: Delete. Contents moved to...
6971 * alphanbsd-tdep.c: ...here.
6972 (_initialize_alphanbsd_tdep): Register core functions.
6973 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6974
6975 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6976
6977 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6978 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6979 (alphanbsd-nat.o): Likewise.
6980 (alphabsd-tdep.o): New dependency list.
6981 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6982 (fill_gregset): Use alphabsd_fill_reg.
6983 (supply_fpregset): Use alphabsd_supply_fpreg.
6984 (fill_fpregset): Use alphabsd_fill_fpreg.
6985 (fetch_inferior_registers): Use struct reg and struct fpreg
6986 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6987 and alphabsd_supply_fpreg.
6988 (store_inferior_registers): Use struct reg and struct fpreg
6989 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6990 and alphabsd_fill_fpreg.
6991 * alphabsd-tdep.c: New file.
6992 * alphabsd-tdep.h: New file.
6993 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6994 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6995 alphabsd_supply_fpreg.
6996 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6997 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6998
6999 2002-05-11 Eric Christopher <echristo@redhat.com>
7000
7001 * mips-tdep.c (mips_double_register_type): Fix thinko.
7002 (mips_single_register_type): Ditto.
7003 * MAINTAINERS: Add self.
7004
7005 2002-05-11 Mark Kettenis <kettenis@gnu.org>
7006
7007 * i387-nat.c (i387_supply_register, i387_fill_fsave,
7008 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
7009 right thing on architectures with different endianness and/or
7010 integer sizes.
7011
7012 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
7013
7014 From Christian Limpach <chris@Pin.LU>
7015 * configure.in: Change sed expression which comments out
7016 NATDEPFILES to also comment out continuation lines.
7017 * configure: Regenerate.
7018
7019 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7020
7021 * sh-tdep.c: Clean up code erroneously reintroduced by previous
7022 big patch.
7023
7024 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7025
7026 * sh-tdep.c: Include correct file.
7027
7028 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7029
7030 New support for sh64-elf (sh5) target.
7031
7032 * configure.tgt: For sh64-elf target, default to sh-elf.
7033
7034 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
7035 (struct gdbarch_tdep): Add new fields for new registers and ABI
7036 info.
7037
7038 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
7039 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
7040 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
7041 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
7042 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
7043 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
7044 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
7045 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
7046 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
7047 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
7048 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
7049 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
7050 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
7051 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
7052 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
7053 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
7054 sh64_get_gdb_regnum, sh64_media_reg_base_num,
7055 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
7056 sign_extend, sh64_nofp_frame_init_saved_regs,
7057 sh64_init_extra_frame_info, sh64_get_saved_register,
7058 sh64_extract_struct_value_address, sh64_pop_frame,
7059 sh64_push_arguments, sh64_extract_return_value,
7060 sh64_store_return_value, sh64_show_media_regs,
7061 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
7062 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
7063 sh_sh64_register_virtual_type,
7064 sh_sh64_register_convert_to_virtual,
7065 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
7066 sh64_register_read, sh64_pseudo_register_write,
7067 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
7068 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
7069 sh64_do_pseudo_register, sh_compact_do_registers_info,
7070 sh64_do_registers_info, sh_gdbarch_init): New functions.
7071
7072 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7073
7074 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
7075
7076 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
7077
7078 * linespec.c (decode_line_1): Check for a double quote after
7079 a filename correctly.
7080
7081 2002-05-10 Jim Blandy <jimb@redhat.com>
7082
7083 Properly track the size of the current objfile's .debug_line section.
7084 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
7085 (DWARF_LINE_SIZE): New macro.
7086 (dwarf2_build_psymtabs_hard): Record the line section's size in
7087 the partial symbol table.
7088 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
7089 symbol table.
7090
7091 2002-05-10 Petr Sorfa <petrs@caldera.com>
7092
7093 * ia64-tdep.c: Handle breakpoints on L instruction type
7094 in MLX instruction bundle by moving the breakpoint to
7095 the third slot (X instruction type) as L holds only data.
7096
7097 2002-05-10 Kevin Buettner <kevinb@redhat.com>
7098
7099 * dbxread.c (discarding_local_symbols_complaint): New complaint.
7100 (process_one_symbol): Complain about discarding local symbols
7101 due to a misplaced N_LBRAC entry.
7102
7103 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
7104
7105 From Daniel Berlin <dan@cgsoftware.com>
7106 * linespec.c (find_toplevel_char): '<' and '>' also increase and
7107 decrease the depth we are at, in the case of templates.
7108
7109 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7110
7111 * mips-tdep.c (mips_float_register_type): New function.
7112 (mips_double_register_type): New function.
7113 (mips_print_register): Use them.
7114 (do_fp_register_row): Likewise.
7115
7116 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7117
7118 * signals/signals.c (signals): Remove conditional compilation around
7119 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
7120 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
7121
7122 2002-05-09 Michael Snyder <msnyder@redhat.com>
7123
7124 * remote-rdp.c (remote_rdp_can_run): Remove.
7125
7126 2002-05-09 Tom Tromey <tromey@redhat.com>
7127
7128 * jv-valprint.c (java_val_print): Handle `char' as a special case
7129 of TYPE_CODE_INT.
7130
7131 2002-05-09 Michael Snyder <msnyder@redhat.com>
7132
7133 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
7134 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
7135 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
7136 str r(0123),[sp,#nn].
7137 (arm_skip_prologue): Ditto. Also make disassembly
7138 order-independent by placing it in a loop.
7139
7140 2002-05-06 Michael Snyder <msnyder@redhat.com>
7141
7142 * stabsread.c (read_type): Add recognition for new attribute:
7143 "@V;" means that an array type is actually a vector.
7144 This is analogous to the vector flag that's been added to dwarf2.
7145
7146 2002-05-09 Mark Kettenis <kettenis@gnu.org>
7147
7148 * i386-tdep.h (i386_abi): New enum.
7149 (struct gdbarch_tdep): Replace os_ident member with abi.
7150 (i386_gdbarch_register_os_abi): New prototype.
7151 * i386-tdep.c (i386_abi_names): New array.
7152 (process_note_abi_tag_sections): Removed.
7153 (process_note_sections): New function.
7154 (i386_elf_abi_from_note, i386_elf_abi): New functions.
7155 (struct i386_abi_handler): New struct.
7156 (i386_abi_handler_list): New variable.
7157 (i386_gdbarch_register_os_abi): New function.
7158 (i386_gdbarch_init): Adapt for the changes given above.
7159
7160 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
7161
7162 * gregset.h: Say "GNU/Linux".
7163
7164 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
7165
7166 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7167 (build_gdbtypes): Build builtin_type_v2_float.
7168 (_initialize_gdbtypes): Register new builtin type.
7169
7170 2002-05-08 Andrew Cagney <ac131313@redhat.com>
7171
7172 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7173 (clear_gdbarch_swap): New function.
7174 (initialize_non_multiarch): Call.
7175 (gdbarch_update_p): Before calling init(), swap out and clear the
7176 existing architecture.
7177 * gdbarch.c: Regenerate.
7178
7179 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7180
7181 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7182 alphanbsd-tdep.c.
7183
7184 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7185
7186 * sh-nbsd-nat.c: Rename to...
7187 * shnbsd-nat.c: ...this.
7188 * sh-nbsd-tdep.c: Rename to...
7189 * shnbsd-tdep.c: ...this.
7190 * sh-nbsd-tdep.h: Rename to...
7191 * shnbsd-tdep.h: ...this.
7192 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7193 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7194
7195 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
7196
7197 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7198 concatenation for command help messages.
7199
7200 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7201
7202 * NEWS: Note new sh*-*-netbsdelf* configuration.
7203 * configure.host: Set gdb_host_cpu to sh for all sh*.
7204 (sh*-*-netbsdelf*): New host.
7205 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7206 (sh*-*-netbsdelf*): New target.
7207 * sh-nbsd-nat.c: New file.
7208 * sh-nbsd-tdep.c: New file.
7209 * sh-nbsd-tdep.h: New file.
7210 * config/sh/nbsd.mh: New file.
7211 * config/sh/nbsd.mt: New file.
7212 * config/sh/nm-nbsd.h: New file.
7213 * config/sh/tm-nbsd.h: New file.
7214
7215 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7216
7217 * sh-tdep.c (sh_osabi_names): Declare.
7218 (process_note_abi_tag_sections): New function.
7219 (get_elfosabi): Ditto.
7220 (sh_gdbarch_register_os_abi): Ditto.
7221 (sh_dump_tdep): Ditto.
7222 _initialize_sh_tdep): Use gdbarch_register to register
7223 sh_gdbarch_init and sh_dump_tdep.
7224 * config/sh/tm-sh.h (sh_osabi): Declare.
7225 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7226
7227 2002-05-07 Andrew Cagney <ac131313@redhat.com>
7228
7229 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7230 (thumb_scan_prologue): Ditto.
7231 (arm_find_callers_reg): Ditto.
7232 (arm_frame_chain): Ditto.
7233 (arm_init_extra_frame_info): Ditto.
7234 (arm_frame_saved_pc): Ditto.
7235 (arm_pop_frame): Ditto.
7236 (arm_push_return_address): New function.
7237 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7238 call_dummy_location, call_dummy_breakpoint_offset_p,
7239 call_dummy_breakpoint_offset, call_dummy_p,
7240 call_dummy_stack_adjust_p, call_dummy_words,
7241 sizeof_call_dummy_words, call_dummy_start_offset,
7242 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7243 call_dummy_address, push_return_address and push_dummy_frame for
7244 generic dummy frames.
7245
7246 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7247
7248 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7249 size computation for alloca.
7250 (sh_fp_frame_init_saved_regs): Likewise.
7251
7252 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
7253
7254 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7255 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
7256 * arm-tdep.c (arm_store_return_value): Use them.
7257 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7258 * remote-rdp.c (remote_rdp_fetch_register): Use
7259 ARM_MAX_REGISTER_RAW_SIZE.
7260 (remote_rdp_store_register): Likewise.
7261
7262 2002-05-07 Michal Ludvig <mludvig@suse.cz>
7263
7264 * dwarf2cfi.c: Code cleanup, removed unused variables,
7265 added default labels to switch {} statements.
7266 * x86-64-tdep.c: Ditto.
7267 * x86-64-linux-nat.c: Ditto.
7268
7269 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7270
7271 * solib.h: Protect against multiple inclusion.
7272
7273 2002-05-06 Jim Blandy <jimb@redhat.com>
7274
7275 Add first preprocessor macro-expansion files.
7276 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7277 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7278 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7279 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7280 (COMMON_OBS): Add macrotab.o, macroexp.o.
7281 (macroexp.o, macrotab.o): New rules.
7282
7283 Separate the job of reading the line number info statement program
7284 header (...expialidocious) out into its own function.
7285 * dwarf2read.c (struct line_head, struct filenames, struct
7286 directories): Replace with...
7287 (struct line_header): New structure, containing the full
7288 contents of the statement program header, including the
7289 include directory and file name tables.
7290 (read_file_scope): If we have line number info, instead of just
7291 calling dwarf_decode_lines to do all the work, call
7292 dwarf_decode_line_header first to get a `struct line_header'
7293 containing the data in the statement program header, and then
7294 pass that to dwarf_decode_lines, which will pick up where that
7295 left off. Be sure to clean up the `struct line_header' object.
7296 (dwarf_decode_line_header, free_line_header, add_include_dir,
7297 add_file_name): New functions.
7298 (dwarf_decode_lines): Move all the code to read the statement
7299 program header into dwarf_decode_line_header. Take the line
7300 header it built as the first argument, instead of the offset to
7301 the compilation unit's line number info. Use the new `struct
7302 line_header' type instead of the old structures. No need to do
7303 cleanups here now, since we don't allocate anything.
7304 (dwarf2_statement_list_fits_in_line_number_section,
7305 dwarf2_line_header_too_long): New complaints.
7306
7307 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
7308
7309 * gdbtypes.c (init_vector_type): New function.
7310 (build_builtin_type_vec128): Simplify the representation of SIMD
7311 registers.
7312 (build_gdbtypes): Initialize new builtin vector types.
7313 (_initialize_gdbtypes): Register new vector types with gdbarch.
7314 (builtin_type_v4_float, builtin_type_v4_int32,
7315 builtin_type_v8_int16, builtin_type_v16_int8,
7316 builtin_type_v2_int32, builtin_type_v4_int16,
7317 builtin_type_v8_int8): New (renamed) SIMD types.
7318
7319 2002-05-06 Mark Kettenis <kettenis@gnu.org>
7320
7321 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7322 (i387_fill_fxsave): Likewise.
7323
7324 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
7325
7326 * alpha-tdep.c (alpha_extract_return_value): Don't use
7327 non-constant array size in prototype.
7328
7329 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7330
7331 From Brian Taylor <briant at model dot com>:
7332 * ui-out.c (ui_out_field_core_addr): Use the function
7333 longest_local_hex_string_custom'to format addresses > 32 bits
7334 wide.
7335
7336 * ui-out.c (ui_out_field_core_addr): Update comment.
7337
7338 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7339
7340 * stack.c (select_and_print_frame): Make static. Delete the
7341 parameter `level'.
7342 (func_command): Update call.
7343 (select_frame_command): Delete code computing the frame level.
7344 * frame.h (select_and_print_frame): Delete declaration.
7345
7346 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7347
7348 * sparc-tdep.c (sparc_get_saved_register): Comment why
7349 get_prev_frame call is safe.
7350
7351 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7352
7353 * frame.h (select_frame): Delete level parameter.
7354 * stack.c (select_frame): Update. Use frame_relative_level to
7355 obtain the frame's level.
7356 (select_and_print_frame): Update call.
7357 (select_frame_command): Ditto.
7358 (up_silently_base): Ditto.
7359 (down_silently_base): Ditto.
7360 * ocd.c (ocd_start_remote): Ditto.
7361 * remote-rdp.c (remote_rdp_open): Ditto.
7362 * remote-mips.c (mips_initialize): Ditto.
7363 (common_open): Ditto.
7364 * remote-e7000.c (e7000_start_remote): Ditto.
7365 * m3-nat.c (select_thread): Ditto.
7366 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7367 (child_get_current_exception_event): Ditto.
7368 * varobj.c (varobj_create): Ditto.
7369 (varobj_update): Ditto.
7370 (c_value_of_root): Ditto.
7371 * tracepoint.c (finish_tfind_command): Ditto.
7372 * corelow.c (core_open): Ditto.
7373 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7374 * thread.c (info_threads_command): Ditto.
7375 (switch_to_thread): Ditto.
7376 * infrun.c (normal_stop): Ditto.
7377 (restore_selected_frame): Ditto.
7378 (restore_inferior_status): Ditto.
7379 * breakpoint.c (insert_breakpoints): Ditto.
7380 (watchpoint_check): Ditto.
7381 (bpstat_stop_status): Ditto.
7382 (do_enable_breakpoint): Ditto.
7383 * blockframe.c (flush_cached_frames): Ditto.
7384 (reinit_frame_cache): Ditto.
7385
7386 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7387
7388 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7389 maintainer.
7390
7391 2002-05-04 Jim Blandy <jimb@redhat.com>
7392
7393 * gdbtypes.c (replace_type): Doc fix.
7394
7395 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7396
7397 * valprint.c (strcat_longest): Delete commented out function.
7398 Update copyright.
7399
7400 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7401
7402 * MAINTAINERS: Mark a29k as deleted.
7403 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7404 Move new configurations to the top.
7405 * configure.tgt: Remove a29k.
7406 * config/a29k/tm-vx29k.h: Delete.
7407 * config/a29k/vx29k.mt: Delete.
7408 * config/a29k/tm-a29k.h: Delete.
7409 * config/a29k/a29k-udi.mt: Delete.
7410 * config/a29k/a29k.mt: Delete.
7411 * a29k-tdep.c: Delete.
7412 * remote-udi.c: Delete.
7413 * remote-mm.c: Delete.
7414 * remote-eb.c: Delete.
7415 * remote-adapt.c: Delete.
7416 * Makefile.in: Remove obsolete code.
7417 * config/s390/s390x.mt: Ditto.
7418 * config/s390/s390.mt: Ditto.
7419 * config/sparc/sparclynx.mh: Ditto.
7420 * config/sparc/linux.mh: Ditto.
7421 * config/pa/hppaosf.mh: Ditto.
7422 * config/pa/hppabsd.mh: Ditto.
7423 * config/ns32k/nbsd.mt: Ditto.
7424 * config/mips/vr5000.mt: Ditto.
7425 * config/m68k/sun3os4.mh: Ditto.
7426 * config/m68k/nbsd.mt: Ditto.
7427 * config/m68k/m68klynx.mh: Ditto.
7428 * config/m32r/m32r.mt: Ditto.
7429 * config/i386/x86-64linux.mt: Ditto.
7430 * config/i386/nbsdelf.mt: Ditto.
7431 * config/i386/nbsd.mt: Ditto.
7432 * config/i386/i386lynx.mh: Ditto.
7433
7434 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7435
7436 * target.c (debug_print_register): New function. Handle oversize
7437 registers.
7438 (debug_to_fetch_registers): Call.
7439 (debug_to_store_registers): Call.
7440
7441 2002-05-03 Jim Blandy <jimb@redhat.com>
7442
7443 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7444 (read_type): Doc fix.
7445 * gdbtypes.c (replace_type): Doc fix.
7446
7447 * stabsread.c (multiply_defined_struct): New complaint.
7448 (read_struct_type): If the type we were passed isn't empty, or
7449 incomplete, don't read the new struct type into it; complain,
7450 and return the original type unchanged. Take a new `type_code'
7451 argument, which is the type code for the new type.
7452 (read_type): Rather than storing the type's type code here, pass
7453 it as an argument to read_struct_type, and let that take care of
7454 storing it. That way, we don't overwrite the original type code,
7455 so read_struct_type can use it to decide whether we're overwriting
7456 something we shouldn't.
7457 (complain_about_struct_wipeout): New function.
7458
7459 2002-05-03 Andrew Cagney <ac131313@redhat.com>
7460
7461 * gdbarch.sh: Assert that gdbarch is non-NULL.
7462 * gdbarch.c: Regenerate.
7463
7464 2002-05-03 Jason Merrill <jason@redhat.com>
7465
7466 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7467 and return NULL.
7468
7469 2002-05-03 Michal Ludvig <mludvig@suse.cz>
7470
7471 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7472 (x86_64_dwarf2gdb_regno_map_length),
7473 (x86_64_dwarf2_reg_to_regnum): Added.
7474 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7475 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7476 (_initialize_x86_64_tdep): Synced with the change above.
7477 (x86_64_skip_prologue): Reformulated message.
7478
7479 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7480
7481 * f-exp.y: Also use new prev_lexptr variable
7482 to improve error reporting. Based on Michael Snyder
7483 2002-04-24 dated patch to c-exp.y.
7484 * jv-exp.y: Likewise.
7485 * m2-exp.y: Likewise.
7486
7487 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
7488
7489 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7490 we are dealing with vectors.
7491
7492 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7493
7494 * config/m68k/tm-nbsd.h: Obvious fix,
7495 correct machine name.
7496
7497 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7498
7499 * p-typeprint.c (pascal_type_print_base): Add support
7500 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7501
7502 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7503
7504 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7505 for fondamental pascal 'char' type.
7506
7507 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7508
7509 * p-lang.h (is_pascal_string_type): Declaration changed,
7510 new sixth argument of type char ** added.
7511 * p-lang.c (is_pascal_string_type): Implementation
7512 changed. Args length_pos, length_size, string_pos, char_size
7513 can now be NULL. New argument arrayname set to the field
7514 name of the char array. Return value set to char array
7515 field index plus one.
7516 * p-valprint.c (pascal_val_print): Adapt to new declaration of
7517 is_pascal_string_type function.
7518
7519 2002-05-02 Andrew Cagney <cagney@redhat.com>
7520
7521 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7522 <cagney@redhat.com> change.
7523 * gdbarch.c: Regenerate.
7524
7525 2002-05-02 Andrew Cagney <cagney@redhat.com>
7526
7527 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7528 before probing for a new one. Detect errorenous gdbarch_init
7529 functions.
7530 * gdbarch.c: Regenerate.
7531
7532 2002-05-01 Andrew Cagney <cagney@redhat.com>
7533
7534 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7535 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7536 * config/v850/tm-v850.h: Ditto. Update copyright.
7537
7538 2002-04-30 Andrew Cagney <ac131313@redhat.com>
7539
7540 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7541 current_gdbarch.
7542
7543 2002-04-30 Michael Snyder <msnyder@redhat.com>
7544
7545 * arm-tdep.c: Whitespace clean-ups.
7546 (arm_skip_prologue): Fix thinko; two lines
7547 should have been removed as part of 4/24 change.
7548
7549 2002-04-30 Kevin Buettner <kevinb@redhat.com>
7550
7551 * rs6000-tdep.c: Added comment describing how fpscr register
7552 numbers were chosen.
7553
7554 2002-04-30 Michael Snyder <msnyder@redhat.com>
7555
7556 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7557
7558 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7559
7560 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7561 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7562 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7563
7564 2002-04-29 Kevin Buettner <kevinb@redhat.com>
7565
7566 From Louis Hamilton <hamilton@redhat.com>:
7567 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7568 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7569 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7570 not bfd-private xcoff data, to determine wordsize.
7571 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7572
7573 2002-04-29 Andrew Cagney <ac131313@redhat.com>
7574
7575 GDB 5.2 released from 5.2 branch.
7576
7577 2002-04-29 Michal Ludvig <mludvig@suse.cz>
7578
7579 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7580 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7581 (x86_64_register_info_table): Added comments with register numbers.
7582
7583 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7584
7585 * rs6000-tdep.c (rs6000_extract_return_value,
7586 rs6000_store_return_value): Handle returning vectors.
7587 (rs6000_gdbarch_init): Use
7588 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7589 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7590 New function.
7591 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7592 vectors.
7593 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7594 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7595
7596 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7597
7598 * hpread.c (hpread_psymtab_to_symtab_1,
7599 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7600 with fprintf_unfiltered (gdb_stderr,...).
7601
7602 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7603
7604 * remote-array.c (printf_monitor, write_monitor,
7605 array_insert_breakpoint, array_remove_breakpoint ):
7606 Replace fprintf (stderr,...
7607 with fprintf_unfiltered (gdb_stderr,....
7608 * remote-es.c: Likewise.
7609 * remote-os9k.c: Likewise.
7610 * remote-st.c: Likewise.
7611
7612 2002-04-28 Andreas Schwab <schwab@suse.de>
7613
7614 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7615 linux-proc.o and gcore.o.
7616
7617 2002-04-26 Michal Ludvig <mludvig@suse.cz>
7618
7619 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7620 code without frame pointers.
7621
7622 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7623
7624 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7625 ON_STACK is needed.
7626
7627 2002-04-26 Ben Elliston <bje@redhat.com>
7628
7629 * target.c (do_xfer_memory): Correct reference to the new option
7630 "trust-readonly-sections".
7631
7632 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
7633
7634 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7635 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7636 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7637 vectors.
7638 (read_array_type): Record the fact that this array type is really a
7639 vector (i.e. are passed in by value).
7640
7641 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7642
7643 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7644 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7645 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7646 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7647 * alpha-linux-tdep.c: Include frame.h.
7648 (alpha_linux_sigcontext_addr): New function.
7649 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7650 alpha_linux_sigcontext_addr.
7651 * alpha-osf1-tdep.c: Include gdbcore.h.
7652 (alpha_osf1_sigcontext_addr): New function.
7653 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7654 alpha_osf1_sigcontext_addr.
7655 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7656 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7657
7658 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7659
7660 * stack.c (selected_frame_level):
7661 (select_frame): Do not set selected_frame_level.
7662 * frame.h (selected_frame_level): Delete declaration.
7663
7664 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7665
7666 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7667 convert_from_func_ptr-addr when AIX / PowerOpen.
7668
7669 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7670
7671 * valops.c (hand_function_call): Call
7672 generic_save_call_dummy_addr.
7673 * frame.h (generic_save_call_dummy_addr): Declare.
7674 * blockframe.c (struct dummy_frame): Add fields call_lo and
7675 call_hi.
7676 (generic_find_dummy_frame): Check for PC in range call_lo to
7677 call_hi instead of entry_point_address.
7678 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7679 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7680 (generic_save_call_dummy_addr): New function.
7681
7682 2002-04-24 David S. Miller <davem@redhat.com>
7683
7684 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7685 sparc_skip_prologue.
7686 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7687 information to find prologue when possible.
7688 (sparc_prologue_frameless_p): Call examine_prologue directly.
7689 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7690 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7691 second argument.
7692 (SKIP_PROLOGUE): Likewise.
7693
7694 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7695
7696 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7697 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7698 indicate that the condition it was testing is always true.
7699 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7700 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7701 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7702
7703 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7704
7705 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7706 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7707 tdep->jb_pc and tdep->jb_elt_size.
7708 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7709 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7710 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7711 * alpha-nat.c (get_longjmp_target): Remove.
7712 (JB_ELEMENT_SIZE): Ditto.
7713 (JB_PC): Ditto.
7714 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7715 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7716 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7717 to alpha_get_longjmp_target.
7718 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7719 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7720 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7721
7722 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7723
7724 * README: Update to GDB 5.2.
7725
7726 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7727
7728 * gdbarch.sh (LC_ALL): Set to `c'.
7729
7730 2002-04-25 Theodore A. Roth <troth@verinet.com>
7731
7732 * avr-tdep.c: Ran through gdb_indent.sh.
7733
7734 2002-04-25 Theodore A. Roth <troth@verinet.com>
7735
7736 * MAINTAINERS: Add myself as AVR maintainer.
7737 * NEWS: Note new target avr.
7738
7739 2002-04-25 Theodore A. Roth <troth@verinet.com>
7740
7741 * Makefile.in: Add support for AVR target.
7742 * configure.tgt: Add support for AVR target.
7743 * avr-tdep.c: New file
7744 * config/avr/avr.mt: New file.
7745
7746 2002-04-25 Theodore A. Roth <troth@verinet.com>
7747
7748 * MAINTAINERS: Add myself to write-after-approval.
7749
7750 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7751
7752 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7753 with fprintf_unfiltered (gdb_stderr,....
7754
7755 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7756
7757 Fix PR gdb/508.
7758 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7759
7760 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7761
7762 * p-exp.y: Also use new prev_lexptr variable
7763 to improve error reporting. Based on Michael Snyder
7764 2002-04-24 dated patch to c-exp.y.
7765
7766 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7767
7768 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7769 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7770 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7771 to 0.
7772 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7773 and struct value.
7774 (FUNCTION_START_OFFSET): Remove.
7775 (BREAKPOINT): Ditto.
7776
7777 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7778
7779 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7780 * NEWS: Ditto.
7781
7782 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7783
7784 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7785 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7786 alpha_linux_pc_in_sigtramp.
7787 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7788 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7789 alpha_osf1_pc_in_sigtramp.
7790 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7791 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7792 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7793 alphafbsd_pc_in_sigtramp.
7794 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7795 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7796 alphanbsd_pc_in_sigtramp.
7797 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7798 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7799
7800 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7801
7802 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7803
7804 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7805
7806 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7807 alphanbsd-tdep.c.
7808 (alphanbsd-nat.o): New dependency list.
7809 (alphanbsd-tdep.o): Ditto.
7810 * NEWS: Note new native NetBSD/alpha configuration.
7811 * alphanbsd-nat.c: New file.
7812 * alphanbsd-tdep.c: Ditto.
7813 * configure.host (alpha*-*-netbsd*): New host.
7814 * configure.tgt (alpha*-*-netbsd*): New target.
7815 * config/alpha/nbsd.mh: New file.
7816 * config/alpha/nbsd.mt: Ditto.
7817 * config/alpha/nm-nbsd.h: Ditto.
7818 * config/alpha/tm-nbsd.h: Ditto.
7819
7820 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7821
7822 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7823 (alpha-osf1-tdep.o): New dependency list.
7824 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7825 and skip_sigtramp_frame members.
7826 * alpha-linux-tdep.c: Include gdbcore.h.
7827 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7828 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7829 * alpha-osf1-tdep.c: New file.
7830 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7831 alpha-osf1-dep.c.
7832 (alpha_frame_past_sigtramp_frame): New function.
7833 (alpha_dynamic_sigtramp_offset): Ditto.
7834 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7835 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7836 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7837 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7838 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7839 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7840 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7841 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7842 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7843 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7844 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7845 to find_solib_trampoline_target.
7846 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7847 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7848 (SKIP_TRAMPOLINE_CODE): Remove.
7849 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7850 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7851 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7852 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7853 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7854 (PROC_SIGTRAMP_MAGIC): Ditto.
7855 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7856 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7857 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7858 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7859 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7860
7861 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7862
7863 * NEWS: Note that Alpha targets are now multi-arch.
7864
7865 2002-04-24 Michael Snyder <msnyder@redhat.com>
7866
7867 * parser-defs.h (prev_lexptr): New external variable.
7868 * parse.c (parse_exp_1): Set prev_lexptr to null before
7869 calling the language-specific parser.
7870 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7871 (yyerror): Use prev_lexptr in error reporting.
7872
7873 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
7874
7875 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7876 * gregset.h: If FILL_FPXREGSET is defined, provide
7877 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7878 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7879 is defined, call fill_fpxregset.
7880
7881 2002-04-24 Roland McGrath <roland@frob.com>
7882
7883 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7884 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7885 (supply_gregset, supply_fpregset): New functions.
7886
7887 * gnu-nat.c (gnu_find_memory_regions): New function.
7888 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7889 (gnu_xfer_memory): Add a cast.
7890
7891 2002-04-24 Michael Snyder <msnyder@redhat.com>
7892
7893 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
7894 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7895 of argument regs ("str r(0123), [r11, #-nn"]).
7896 (arm_skip_prologue): Better handling for frameless functions.
7897 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7898 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7899
7900 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7901
7902 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7903 NUM_PSEUDO_REGS can be used.
7904
7905 2002-04-24 Andrew Cagney <ac131313@redhat.com>
7906
7907 * arch-utils.h: Update copyright.
7908
7909 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7910 * gdbarch.h, gdbarch.c: Re-generate.
7911
7912 * inferior.h (IN_SIGTRAMP): Delete definition.
7913 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7914 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7915
7916 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7917 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7918 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7919 (find_proc_framesize): Ditto.
7920 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7921 (alpha_init_extra_frame_info): Ditto.
7922 * infrun.c (handle_inferior_event): Ditto.
7923 (handle_inferior_event): Ditto.
7924 (check_sigtramp2): Ditto.
7925 * blockframe.c (create_new_frame): Ditto.
7926 (get_prev_frame): Ditto.
7927 * ppc-linux-tdep.c: Update comments.
7928 * i386-linux-tdep.c: Update comments.
7929 * breakpoint.c (bpstat_what): Update comment.
7930
7931 2002-04-24 David S. Miller <davem@redhat.com>
7932
7933 * i960-tdep.c (register_in_window_p): New function.
7934 (i960_find_saved_register): Use it instead of
7935 REGISTER_IN_WINDOW_P.
7936 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7937
7938 * symtab.h (find_stab_function_addr): Kill extern.
7939 * minsyms.c (find_stab_function_addr): Remove from here...
7940 * dbxread.c: ... to here, and mark it static.
7941
7942 2002-04-20 David S. Miller <davem@redhat.com>
7943
7944 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7945 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7946
7947 2002-04-21 David S. Miller <davem@redhat.com>
7948
7949 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7950 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7951 (vx_write_register): Likewise.
7952
7953 2002-04-23 J. Brobecker <brobecker@gnat.com>
7954
7955 * source.c (is_regular_file): New function.
7956 (openp): Check wether file to open is a regular file
7957 to avoid opening directories.
7958
7959 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7960
7961 * findvar.c (extract_signed_integer): Cast printf argument
7962 to suppress format warning.
7963 (extract_unsigned_integer): Likewise.
7964 * infcmd.c (registers_info): Likewise.
7965 * top.c (get_prompt_1): Likewise.
7966 * valops.c (value_assign): Likewise.
7967 * valprint.c (print_decimal): Likewise.
7968
7969 2002-04-22 H.J. Lu (hjl@gnu.org)
7970
7971 * c-exp.y (typebase): Support
7972
7973 [long|long long|short] [signed|unsigned] [int|]
7974
7975 and
7976
7977 signed [long|long long|short] int
7978
7979 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7980
7981 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7982 and vax-tdep.h.
7983 * vax-tdep.h: New file.
7984 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7985 Make several routines static.
7986 (vax_get_saved_register): New function.
7987 (vax_gdbarch_init): New function.
7988 (_initialize_vax_tdep): Register vax_gdbarch_init.
7989 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7990 Remove macros now under the control of gdbarch.
7991
7992 2002-04-22 Michael Snyder <msnyder@redhat.com>
7993
7994 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7995 Some whitespace and coding standards tweaks.
7996
7997 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7998
7999 * vax-tdep.c: Include regcache.h.
8000 (vax_call_dummy_words): New.
8001 (sizeof_vax_call_dummy_words): New.
8002 (vax_fix_call_dummy): New function.
8003 (vax_saved_pc_after_call): Ditto.
8004 * config/vax/tm-vax.h: Don't include regcache.h.
8005 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
8006 (CALL_DUMMY): Remove.
8007 (CALL_DUMMY_WORDS): Define.
8008 (SIZEOF_CALL_DUMMY_WORDS): Define.
8009 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
8010
8011 2002-04-18 Michael Snyder <msnyder@redhat.com>
8012
8013 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
8014
8015 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8016
8017 * vax-tdep.c (vax_frame_chain): New function.
8018 (vax_push_dummy_frame): Ditto.
8019 (vax_pop_frame): Ditto.
8020 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
8021 (FRAMELESS_FUNCTION_INVOCATION): Use
8022 generic_frameless_function_invocation_not.
8023 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
8024 (POP_FRAME): Use vax_pop_frame.
8025
8026 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8027
8028 * vax-tdep.c (vax_store_struct_return): New function.
8029 (vax_extract_return_value): Ditto.
8030 (vax_store_return_value): Ditto.
8031 (vax_extract_struct_value_address): Ditto.
8032 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
8033 vax_store_struct_return.
8034 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
8035 (STORE_RETURN_VALUE): Use vax_store_return_value.
8036 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
8037
8038 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8039
8040 * vax-tdep.c (vax_frame_saved_pc): New function.
8041 (vax_frame_args_address_correct): Ditto.
8042 (vax_frame_args_address): Ditto.
8043 (vax_frame_locals_address): Ditto.
8044 (vax_frame_num_args): Move code to be in proximity to
8045 other frame-related functions.
8046 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
8047 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
8048 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
8049 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
8050 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
8051
8052 2002-04-22 H.J. Lu (hjl@gnu.org)
8053
8054 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
8055 includedir.
8056
8057 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8058
8059 * vax-tdep.c (vax_frame_init_saved_regs): New function.
8060 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
8061 (FRAME_INIT_SAVED_REGS): New macro.
8062
8063 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8064
8065 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
8066
8067 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8068
8069 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
8070 where needed.
8071 (fetch_osf_core_registers): Likewise.
8072 (supply_gregset): Likewise.
8073
8074 2002-04-22 J. Brobecker <brobecker@gnat.com>
8075
8076 * symfile.h (get_section_index): Define.
8077 * symfile.c (get_section_index): New function.
8078 * mdebugread.c (SC_IS_SBSS): New macro.
8079 (SC_IS_BSS): Return true for the scBss storage class only, as
8080 the scSBss storage class refers to the .sbss section.
8081 (parse_partial_symbols): Discard the symbols which associated
8082 section does not exist.
8083 Make sure to use the .sbss section index for symbols which
8084 storage class is scBss, rather than using the .bss section index.
8085
8086 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8087
8088 * vax-tdep.c: Update copyright years.
8089 (vax_register_name): New function.
8090 (vax_register_byte): Ditto.
8091 (vax_register_raw_size): Ditto.
8092 (vax_register_virtual_size): Ditto.
8093 (vax_register_virtual_type): Ditto.
8094 * config/vax/tm-vax.h: Update copyright years.
8095 (REGISTER_NAMES): Remove.
8096 (REGISTER_NAME): Define.
8097 (REGISTER_BYTE): Use vax_register_byte.
8098 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
8099 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
8100 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
8101
8102 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8103
8104 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
8105 declaration
8106 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
8107
8108 2002-04-21 David S. Miller <davem@redhat.com>
8109
8110 * arch-utils.c (generic_prologue_frameless_p): Kill
8111 SKIP_PROLOGUE_FRAMELESS_P code.
8112 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8113 references.
8114 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
8115 * arc-tdep.c (arc_prologue_frameless_p): Implement.
8116 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8117 references.
8118 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
8119 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
8120 (sparc_gdbarch_init): Pass it to
8121 set_gdbarch_prologue_frameless_p.
8122
8123 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8124
8125 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
8126 (alphabsd-nat.o): New dependency list.
8127
8128 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8129
8130 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8131 alphafbsd-tdep.c.
8132 (alpha-linux-tdep.o): New dependency list.
8133 (alphafbsd-tdep.o): Likewise.
8134
8135 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8136
8137 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
8138 to here...
8139 * alpha-tdep.c: ...from here.
8140 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8141
8142 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8143
8144 * config/alpha/tm-alpha.h: Move alpha_software_single_step
8145 prototype from here...
8146 * alpha-tdep.h: ...to here.
8147
8148 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8149
8150 * frame.h (selected_frame_level): Document as deprecated.
8151 (frame_relative_level): Declare.
8152 * stack.c (frame_relative_level): New function.
8153 (selected_frame_level): Document as deprecated.
8154 (select_frame): Do not set the selected_frame_level.
8155
8156 * stack.c (frame_info, record_selected_frame): Update.
8157 (frame_command, current_frame_command): Update.
8158 (up_silently_base, up_command, down_silently_base): Update.
8159 (down_command): Update.
8160 * inflow.c (kill_command): Update.
8161 * tracepoint.c (finish_tfind_command): Update.
8162 * corelow.c (core_open): Update.
8163 * thread.c (info_threads_command): Update.
8164 (do_captured_thread_select): Update.
8165 * infcmd.c (finish_command): Update.
8166 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8167
8168 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8169
8170 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8171
8172 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8173
8174 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8175 type const.
8176
8177 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8178
8179 * alphafbsd-tdep.c: Update copyright years. Include
8180 alpha-tdep.h.
8181 (alphafbsd_use_struct_convention): Make static.
8182 (alphafbsd_init_abi): New function.
8183 (_initialize_alphafbsd_tdep): New function.
8184 * config/alpha/tm-fbsd.h: Update copyright years.
8185 (USE_STRUCT_CONVENTION): Remove.
8186
8187 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8188
8189 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8190 an Alpha ABI variant.
8191 (alpha_abi_handler_list): Declare.
8192 (alpha_gdbarch_register_os_abi): New function.
8193 (alpha_gdbarch_init): Give registered ABI variant handlers a
8194 chance to tweak the gdbarch once we have set up defaults.
8195 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8196
8197 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8198
8199 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8200 to standard_coerce_float_to_double.
8201 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8202
8203 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8204
8205 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8206 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8207 from gdbarch_tdep rather than a constant.
8208 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8209 the default text address for all Alpha Unix ABIs.
8210 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8211 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8212
8213 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8214
8215 * alpha-tdep.h: New file. Includes several Alpha target constants
8216 taken from...
8217 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8218 let gdbarch deal with.
8219 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8220 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8221 to dependency list.
8222 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8223 Alpha target register names.
8224 * alphabsd-nat.c: Likewise.
8225 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8226 Alpha target register names. Make serveral routines static.
8227 (alpha_get_saved_register): New function.
8228 (alpha_abi_names): New.
8229 (process_note_abi_tag_sections): New function.
8230 (get_elfosabi): New function.
8231 (alpha_gdbarch_init): New function.
8232 (alpha_dump_tdep): New function.
8233 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8234
8235 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8236
8237 * frame.c (find_saved_register): Delete #ifdef
8238 HAVE_REGISTER_WINDOWS code.
8239 * config/sparc/tm-sparc.h: Update comments.
8240 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8241
8242 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8243
8244 * i960-tdep.c (i960_find_saved_register): New function.
8245 (i960_get_saved_register): New function.
8246 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8247 (i960_get_saved_register): Declare.
8248 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8249
8250 2002-04-20 David S. Miller <davem@redhat.com>
8251
8252 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8253
8254 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8255
8256 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8257 instead of NUM_PSEUDO_REGS.
8258
8259 2002-04-20 David S. Miller <davem@redhat.com>
8260
8261 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8262 GDB_MULTI_ARCH_PARTIAL
8263 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8264 define, let tm-sp64.h do it.
8265
8266 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8267
8268 * frame.c (find_saved_register): Avoid a NULL pointer
8269 dereference and actually walk the frame list.
8270
8271 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8272
8273 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8274 sorted in most most-recent-used order. Document.
8275 * gdbarch.h, gdbarch.c: Regenerate.
8276
8277 2002-04-19 Andrew Cagney <ac131313@redhat.com>
8278
8279 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8280 instead of ->prev.
8281 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8282 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8283 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8284 instead of ->prev.
8285
8286 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
8287
8288 Fix PR gdb/471.
8289 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8290 (build_builtin_type_vec128): Ditto.
8291 (append_composite_type_field): Fix calculation of type length in
8292 union case.
8293
8294 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8295
8296 * config/djgpp/README: Update.
8297
8298 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8299 compiler warnings.
8300
8301 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8302
8303 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8304 (alpha_setup_arbitrary_frame): ...to this.
8305 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8306 for alpha_setup_arbitrary_frame.
8307
8308 2002-04-18 Andrew Cagney <cagney@redhat.com>
8309
8310 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8311 * gdbarch.h, gdbarch.c: Regenerate.
8312
8313 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8314 * target.h (memory_breakpoint_from_pc): Update declaration.
8315 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8316
8317 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8318 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8319 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8320 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8321 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8322 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8323 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8324 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8325 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8326 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8327 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8328 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8329
8330 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8331 const pointer.
8332 * monitor.c (monitor_insert_breakpoint): Ditto.
8333 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8334
8335 * config/mcore/tm-mcore.h: Update copyright.
8336 * mem-break.c: Ditto.
8337 * xstormy16-tdep.c: Ditto.
8338
8339 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8340
8341 * p-exp.y: Add precedence rule for '^' token.
8342 This removes the shift/reduce conflicts.
8343 Remove the comment concerning these shift/reduce conflicts.
8344
8345 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
8346
8347 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8348 (registers_powerpc_nofp): New register set for processors
8349 without floating point unit.
8350
8351 2002-04-18 David S. Miller <davem@redhat.com>
8352
8353 * MAINTAINERS: Add myself to write-after-approval.
8354
8355 2002-04-17 Michael Snyder <msnyder@redhat.com>
8356
8357 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8358
8359 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8360
8361 * rs6000-tdep.c (frame_initial_stack_address): Use
8362 frame_register_read to read the alloca_reg.
8363
8364 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8365
8366 * frame.c (find_saved_register): Find saved registers in the next
8367 not prev frame.
8368 Fix PR gdb/365.
8369
8370 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8371
8372 * gdbarch.sh (LANG): Set to ``c''.
8373
8374 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8375
8376 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8377
8378 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8379
8380 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8381 Update copyright.
8382
8383 * hpread.c (hpread_get_lntt): Add declaration.
8384 Also fix PR gdb/391.
8385
8386 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8387
8388 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8389 * aclocal.m4, configure: Re-generate.
8390 Fix PR gdb/391.
8391
8392 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8393
8394 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8395 instead of tm_print_insn.
8396
8397 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8398
8399 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8400
8401 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8402
8403 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8404 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8405 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8406
8407 2002-04-12 Don Howard <dhoward@redhat.com>
8408
8409 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8410 max_user_call_depth.
8411 (init_cmd_lists): Initialize the new value;
8412 * cli/cli-script.c (execute_user_command): Limit the call depth of
8413 user defined commands. This avoids a core-dump when user commands
8414 are infinitly recursive.
8415
8416 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8417
8418 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8419 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8420 from tdep struct instead of DEFAULT_LR_SAVE.
8421 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8422 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8423 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8424
8425 2002-04-12 Michael Snyder <msnyder@redhat.com>
8426
8427 * Remote.c: Spelling fix.
8428 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8429 If no symbol found for "sbrk", try "_sbrk".
8430 (make_output_phdrs): Use bfd_section_name.
8431 (gcore_copy_callback): Use bfd_section_name.
8432 * eval.c: Indentation fix-ups.
8433 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8434 in case it gets applied to an address that is already
8435 in the instruction space.
8436 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8437 * symfile.c: Fix indentation, long lines.
8438 * source.c: White space fix-up.
8439
8440 2002-04-12 Andrew Cagney <cagney@redhat.com>
8441
8442 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8443 * frame.c (frame_register_read): New function. Return non-zero on
8444 success.
8445 (read_relative_register_raw_bytes_for_frame): Delete.
8446 (read_relative_register_raw_bytes): Delete.
8447 * frame.h (frame_register_read): Declare.
8448 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8449 * sh-tdep.c: Ditto.
8450 * infcmd.c (do_registers_info): Ditto.
8451 * hppa-tdep.c: Ditto.
8452 * rs6000-tdep.c: Ditto.
8453 * h8500-tdep.c: Ditto.
8454 * mips-tdep.c: Ditto.
8455 * h8300-tdep.c: Ditto.
8456 * z8k-tdep.c: Ditto.
8457
8458 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8459
8460 From Jimi X <jimix@watson.ibm.com>:
8461 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8462 64-bit SysV ABI.
8463
8464 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8465
8466 From Jimi X <jimix@watson.ibm.com>:
8467 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8468 bfd info.
8469
8470 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8471
8472 From Jimi X <jimix@watson.ibm.com>:
8473 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8474 register sets for these processor variants.
8475
8476 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
8477
8478 * regformats/reg-ppc.dat: Support FPSCR.
8479
8480 2002-04-11 Kevin Buettner <kevinb@redhat.com>
8481
8482 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8483 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8484 Add fpscr as an invalid/unfetchable register.
8485 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8486 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8487 (fill_fpregset): Add support for register fpscr.
8488 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8489 (fill_gregset): Account for the fact that register ``mq'' might
8490 not exist.
8491 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8492 (registers_power): Add fpscr to register set at slot 71.
8493 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8494 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8495
8496 2002-04-11 Michael Snyder <msnyder@redhat.com>
8497
8498 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8499 * configure: Regenerate.
8500 * config.in: Regenerate.
8501 * acconfig.h: Add define for _SYSCALL32.
8502 * core-sol2.c: Remove #define _SYSCALL32.
8503 * solib-legacy.c: Remove #define _SYSCALL32.
8504
8505 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8506
8507 * stack.c (select_frame): Cleanup internal error message, do not
8508 use %p.
8509
8510 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8511
8512 * stack.c (select_frame): Check that selected_frame and the
8513 specified level are as expected.
8514 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8515 Update copyright.
8516 * frame.h (struct frame_info): Add field `level'. Update
8517 copyright.
8518 Work-in-progress PR gdb/464.
8519
8520 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8521
8522 * maint.c (maint_print_section_info): Rename print_section_info.
8523 (print_bfd_section_info, print_objfile_section_info): Update.
8524 * inferior.h (struct gdbarch): Add opaque declaration.
8525 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8526 * gdbarch.h: Regenerate.
8527
8528 2002-04-10 Michal Ludvig <mludvig@suse.cz>
8529
8530 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8531 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8532 (kernel_u_size): Added.
8533 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8534 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8535
8536 2002-04-04 Jim Ingham <jingham@apple.com>
8537
8538 * valarith.c (find_size_for_pointer_math): New function, either returns
8539 the size for a pointer's target, returns 1 for void *, or errors for
8540 incomplete types.
8541 (value_add, value_sub): use find_size_for_pointer_math.
8542
8543 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8544
8545 * linux-low.c (linux_look_up_symbols): New hook.
8546 (linux_target_ops): Add linux_look_up_symbols.
8547 * remote-utils.c (decode_address): New function.
8548 (look_up_one_symbol): New function.
8549 * server.c (handle_query): Call target look_up_symbols hook.
8550 * server.h (look_up_one_symbol): Add prototype.
8551 * target.h (struct target_ops): Add look_up_symbols hook.
8552
8553 2002-04-09 Andrew Cagney <ac131313@redhat.com>
8554
8555 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8556 override FP_REGNUM with frame->fp. Update copyright.
8557 * parse.c (num_std_regs, std_regs): Delete.
8558 (target_map_name_to_register): Do not search std_regs. Update
8559 function description.
8560 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8561 declarations. Update copyright.
8562 Fix PR gdb/251.
8563
8564 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8565
8566 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8567 after the last symbol in a block.
8568
8569 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8570
8571 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8572 is non zero as a found symbol.
8573
8574 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8575
8576 * findvar.c: Include "builtin-regs.h".
8577 (value_of_register): Call value_of_builtin_reg when applicable.
8578 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8579 (target_map_name_to_register): Call
8580 builtin_reg_map_name_to_regnum.
8581 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8582 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8583 (builtin_regs_h): Define.
8584 (builtin-regs.o): New target.
8585 (findvar.o): Add $(builtin_regs_h).
8586 * builtin-regs.c, builtin-regs.h: New files.
8587 * std-regs.c: New file.
8588 Partial fix for PR gdb/251.
8589
8590 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8591
8592 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8593 it's no longer required.
8594
8595 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8596
8597 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8598
8599 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8600
8601 From Jimi X <jimix@watson.ibm.com>:
8602 * rs6000-tdep.c (rs6000_software_single_step): Use
8603 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8604 and size. Use target_insert_breakpoint() and
8605 target_remove_breakpoint() to insert and remove breakpoints
8606 instead of explicit memory reads and writes.
8607
8608 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8609
8610 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8611 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8612 ELF_OBJECT_FORMAT ifdef.
8613
8614 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8615
8616 From Jimi X <jimix@watson.ibm.com>:
8617 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8618
8619 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8620
8621 From Jimi X <jimix@watson.ibm.com>:
8622 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8623 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8624
8625 2002-04-07 Mark Kettenis <kettenis@gnu.org>
8626
8627 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8628 s/asprintf/xasprintf/.
8629 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8630
8631 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8632
8633 I believe Jeff Law denies responsability for this one:
8634 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8635 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8636 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8637 Work-around for PR gdb/366.
8638
8639 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8640
8641 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8642 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8643 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8644
8645 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8646
8647 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8648 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8649 information.
8650
8651 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8652
8653 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8654 maintainer.
8655
8656 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8657
8658 * README (Reporting Bugs in GDB): Document the bug web page as the
8659 prefered way of submitting bugs.
8660 Fix PR gdb/402.
8661
8662 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8663
8664 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8665 -1. Update comment.
8666 * gdbarch.h, gdbarch.c: Re-generate.
8667
8668 2002-04-07 Andreas Schwab <schwab@suse.de>
8669
8670 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8671 buffer to regcache_collect.
8672
8673 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8674
8675 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8676 * gdbarch.c, gdbarch.h: Re-generate.
8677
8678 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8679
8680 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8681 declaration. Fix -Werror.
8682
8683 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
8684
8685 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8686 * gdbarch.c: Regenerate.
8687
8688 2002-04-05 Michael Snyder <msnyder@redhat.com>
8689
8690 * breakpoint.c (clear_command): Rewrite middle section to
8691 combine two loops with identical control conditions.
8692 Add a cleanup to eliminate a memory leak.
8693 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8694
8695 2002-04-05 H.J. Lu (hjl@gnu.org)
8696
8697 * solib-svr4.c (bkpt_names): Add "__start".
8698
8699 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8700
8701 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8702 as test for 64 bit target.
8703
8704 2002-04-05 Andrew Cagney <ac131313@redhat.com>
8705
8706 * h8500-tdep.c (h8500_write_fp): Delete function.
8707 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8708 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8709 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8710 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8711 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8712 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8713 (s390_write_fp):
8714 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8715 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8716 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8717 (d10v_write_fp): Delete function.
8718 * inferior.h (write_fp, generic_target_write_fp): Delete
8719 declarations.
8720 * regcache.c (generic_target_write_fp): Delete function.
8721 (write_fp): Delete function.
8722 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8723 * gdbarch.h, gdbarch.c: Regenerate.
8724 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8725 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8726 (sparc64_write_fp): Delete declaration.
8727 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8728 (h8500_write_fp): Delete declaration.
8729
8730 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8731
8732 * sparc-tdep.c (sparc64_write_fp): Delete.
8733 (sparc_push_dummy_frame): Replace write_fp call with code to store
8734 the FP directly.
8735 (sparc_gdbarch_init): Do not initialize write_fp.
8736
8737 2002-04-05 Kevin Buettner <kevinb@redhat.com>
8738
8739 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8740 clause.
8741
8742 2002-03-29 Jim Blandy <jimb@redhat.com>
8743
8744 * stack.c (get_selected_block): Add new argument `addr_in_block',
8745 used to return the exact code address we used to select the block,
8746 not just the block.
8747 * blockframe.c (get_frame_block, get_current_block): Same.
8748 * frame.h (get_frame_block, get_current_block,
8749 get_selected_block): Update declarations.
8750 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8751 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8752
8753 2002-04-05 Michael Snyder <msnyder@redhat.com>
8754
8755 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8756 warning message.
8757
8758 2002-04-05 J. Brobecker <brobecker@gnat.com>
8759
8760 * utils.c (xfullpath): New function.
8761 * defs.h (xfullpath): Add declaration.
8762 * source.c (openp): Use xfullpath in place of gdb_realpath to
8763 avoid resolving the basename part of filenames when the
8764 associated file is a symbolic link. This fixes a potential
8765 inconsistency between the filenames known to GDB and the
8766 filenames it prints in the annotations.
8767 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8768 to be able to match a filename with either the real filename, or
8769 the name of any symbolic link to this file.
8770 (lookup_partial_symtab): Ditto.
8771
8772 2002-04-04 Michael Snyder <msnyder@redhat.com>
8773
8774 * breakpoint.c: Add support for hardware breakpoints in overlays.
8775 (overlay_events_enabled): New state variable.
8776 (insert_breakpoints): Use overlay_events_enabled to decide
8777 whether to attempt to set a breakpoint at the overlay load addr.
8778 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8779 (remove_breakpoint): Use overlay_events_enabled to decide
8780 whether breakpoints need to be removed from overlay load addr.
8781 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8782 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8783 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8784 disable_overlay_breakpoints): Update overlay_events_enabled.
8785
8786 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
8787
8788 * dwarf2read.c (struct function_range): New.
8789 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8790 (check_cu_functions): New.
8791 (read_file_scope): Initialize global function lists.
8792 Call dwarf_decode_line after processing children.
8793 (read_func_scope): Add to global function list.
8794 (dwarf_decode_lines): Call check_cu_functions everywhere
8795 record_line is called. Call record_line with a linenumber
8796 of 0 to mark sequence ends.
8797
8798 2002-04-04 Michal Ludvig <mludvig@suse.cz>
8799
8800 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8801 change sync with glibc.
8802
8803 2002-04-03 Jim Blandy <jimb@redhat.com>
8804
8805 * configure.in: Call AC_C_INLINE.
8806 * configure: Regenerated.
8807
8808 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
8809
8810 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8811 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8812
8813 2002-03-31 Mark Kettenis <kettenis@gnu.org>
8814
8815 * NEWS: Mention gcore support on FreeBSD/i386.
8816
8817 * fbsd-proc.c: New file.
8818 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8819 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8820
8821 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8822 while statement.
8823
8824 2002-03-29 Jim Blandy <jimb@redhat.com>
8825
8826 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8827 unescaped newlines in string literals, but newer ones don't. So
8828 escape them.
8829
8830 2002-03-26 Michael Snyder <msnyder@redhat.com>
8831 Andrew Cagney <cagney@redhat.com>
8832
8833 * cli/cli-dump.c: New file. Dump memory to file,
8834 restore file to memory.
8835 * cli/cli-dump.h: New file.
8836 * Makefile.in: Add rules, dependencies for cli-dump.o.
8837 * NEWS: Mention new commands.
8838
8839 2002-03-28 Michael Snyder <msnyder@redhat.com>
8840
8841 * symfile.c (symbol_file_add): Move test for null symbols to later.
8842
8843 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8844
8845 From veksler at il.ibm.com:
8846 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8847 the xstrduped original path.
8848 Fix PR gdb/417.
8849
8850 2002-03-27 Michael Snyder <msnyder@redhat.com>
8851
8852 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8853 * infcmd.c (_initialize_infcmd): Ditto.
8854 * language.c (_initialize_language): Ditto.
8855 * symfile.c (_initialize_symfile): Ditto.
8856 * top.c (_init_main): Ditto.
8857 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8858
8859 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
8860
8861 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8862 vector registers handling.
8863 (skip_prologue): Handle new AltiVec instructions. Fill in new
8864 fields of frame data.
8865 (frame_get_saved_regs): Fill in information for AltiVec registers.
8866
8867 2002-03-27 Jim Blandy <jimb@redhat.com>
8868
8869 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8870 a function; leave this macro here to invoke that function.
8871 (symbol_init_mangled_name): Declaration for that function.
8872 * symtab.c (symbol_init_mangled_name): New function.
8873
8874 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8875
8876 * valarith.c: Replace strerror with safe_strerror.
8877 * tracepoint.c: Ditto.
8878 * lin-lwp.c: Ditto.
8879 * go32-nat.c: Ditto.
8880 * inflow.c: Ditto.
8881 * gnu-nat.c: Ditto.
8882
8883 2002-03-27 Andreas Schwab <schwab@suse.de>
8884
8885 * event-top.c (command_line_handler): Remove useless if.
8886
8887 2002-03-27 Andreas Jaeger <aj@suse.de>
8888
8889 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8890 comment.
8891
8892 2002-03-27 Michal Ludvig <mludvig@suse.cz>
8893
8894 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8895 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8896 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8897 (x86_64_linux_dr_get_status, supply_gregset),
8898 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8899 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8900 (x86_64_register_info_table): Add.
8901 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8902 (x86_64_register_raw_size, x86_64_register_virtual_type),
8903 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8904 general x86_64_register_info_table.
8905 (i386_gdbarch_init): gdbarch_register_bytes is now set
8906 dynamicaly during initialization.
8907 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8908 * gdbserver/linux-x86-64-low.c: Ditto.
8909
8910 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8911
8912 * gdbserver/server.c (main): Call target_signal_to_host_p
8913 and target_signal_to_host on signals received from the remote.
8914 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8915 target_signal_from_host on signals sent to the remote.
8916 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8917 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8918
8919 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8920
8921 * signals/signals.c: Include "server.h" in gdbserver build.
8922 (target_signal_from_name): Don't use STREQ.
8923 (_initialize_signals): Likewise. Don't include function in
8924 gdbserver build.
8925
8926 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8927
8928 * signals.c: Moved to...
8929 * signals/signals.c: Here.
8930 * Makefile (signals.o): Update.
8931
8932 2002-03-26 Jeff Law (law@redhat.com)
8933
8934 * somread.c (som_symtab_read): Remove some commented out code and
8935 updated related comments. Do not set the minimal symbol table to
8936 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8937 in a dynamic executable.
8938 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8939 where we are unable to find the minimal symbol for the given
8940 PC value.
8941
8942 2002-03-25 Jeff Law (law@redhat.com)
8943
8944 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8945
8946 2002-03-25 Michal Ludvig <mludvig@suse.cz>
8947
8948 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8949
8950 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8951
8952 * command.h: Update copyright.
8953 (struct cmd_list_element): Replace definition with opaque
8954 declaration.
8955 (enum cmd_types): Document that it will eventually be moved to
8956 cli/cli-decode.h
8957 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8958 (MALLOCED_REPLACEMENT): Delete macro.
8959 * Makefile.in (cli_decode_h): Add $(command_h).
8960 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8961 * top.c: Include "cli/cli-decode.h".
8962 * completer.c: Include "cli/cli-decode.h".
8963 * maint.c: Include "cli/cli-decode.h".
8964 * cli/cli-decode.h: Include "command.h".
8965 (enum command_class): Delete.
8966 (enum cmd_types): Comment out.
8967 (enum cmd_auto_boolean): Delete.
8968 (enum var_types): Delete.
8969
8970 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8971
8972 * cli/cli-decode.c: Include "gdb_assert.h".
8973 (add_set_or_show_cmd): New static function.
8974 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8975 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8976 all fields, such as func, from the set command.
8977
8978 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8979
8980 * MAINTAINERS (sh-elf): Change warning flag to -w.
8981
8982 2002-03-23 Andrew Cagney <cagney@redhat.com>
8983
8984 * defs.h (error): Add printf format attribute.
8985 * thread-db.c (thread_from_lwp): Fix error format string.
8986 * stack.c (parse_frame_specification): Ditto.
8987 * cli/cli-decode.c (undef_cmd_error): Ditto.
8988 * scm-lang.c (scm_lookup_name): Ditto.
8989 * tracepoint.c (trace_error): Ditto.
8990 * remote-utils.c (usage): Ditto.
8991 * remote.c (compare_sections_command): Ditto.
8992 Fix PR gdb/328.
8993
8994 2002-03-22 Andrew Cagney <ac131313@redhat.com>
8995
8996 * gdbtypes.c (append_composite_type_field): New function.
8997 (init_composite_type): New function.
8998 * gdbtypes.h (append_composite_type_field): Declare.
8999 (init_composite_type): Ditto.
9000
9001 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
9002
9003 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
9004 function.
9005 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
9006 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
9007 structure returning convention for SYSV ABI case, but not
9008 for GNU/Linux, FreeBSD, or NetBSD.
9009
9010 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
9011
9012 * symtab.h (lookup_block_symbol): Add mangled_name argument
9013 to prototype.
9014
9015 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
9016 with new mangled_name argument.
9017 * linespec.c (decode_line_1): Likewise.
9018 * valops (value_of_this): Likewise.
9019 * symtab.c (lookup_transparent_type): Likewise.
9020 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
9021 (lookup_symbol): If we are given a mangled name, pass it down
9022 to lookup_symbol_aux.
9023 (lookup_block_symbol): If we are given a mangled name to check
9024 against, only return symbols which match it.
9025
9026 2002-03-22 Christopher Faylor <cgf@redhat.com>
9027
9028 * win32-nat.c (child_create_inferior): Check for proper shell to use
9029 here, in case the user changes it on the fly.
9030 (_initialize_inftarg): Remove shell path considerations.
9031
9032 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
9033
9034 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
9035 for gdbarch_max_register_raw_size and max_register_virtual_size.
9036 Adjust copyright year.
9037
9038 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
9039
9040 * dbxread.c (process_one_symbol): Extend the first N_SLINE
9041 in a function to cover the entire beginning of the function
9042 as well if it does not already.
9043
9044 2002-03-21 Tom Rix <trix@redhat.com>
9045
9046 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
9047 (rs6000_ptrace64): Renamed from ptrace64.
9048
9049 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9050
9051 * gdbserver/remote-utils.c (remote_open): Don't call
9052 getprotobyname, we're all using TCP here so just use
9053 IPPROTO_TCP.
9054 * gdbserver/gdbreplay.c (remote_open): Ditto.
9055
9056 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9057
9058 * regcache.c (_initialize_regcache): No need to call
9059 build_regcache() at this time; it gets called whenever
9060 the gdbarch changes.
9061
9062 2002-03-20 David O'Brien <obrien@FreeBSD.org>
9063
9064 * sparc-nat.c: Include sys/param.h where possible.
9065
9066 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
9067
9068 Fix PR gdb/422.
9069 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
9070 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
9071 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
9072 complex types.
9073 * stabsread.c (rs6000_builtin_type): Likewise.
9074 (read_sun_floating_type): Likewise.
9075
9076 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9077
9078 * stabsread.c (read_member_functions): Remove skip code for duplicate
9079 constructor/destructor methods. Use standard parsing for these
9080 methods and just do not chain them to the list of methods after
9081 parsing.
9082
9083 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
9084
9085 * coffread.c: Remove redundant static declarations. Replace
9086 occurrences of `PTR' with `void *'.
9087 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
9088 * top.h (quit_cover): Likewise.
9089 * defs.h (catch_errors): Likewise.
9090
9091 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9092
9093 * defs.h (XMALLOC): Define.
9094 * gdb-events.sh (XMALLOC): Delete macro.
9095 * gdb-events.c, gdb-events.h: Regenerate.
9096 * gdbarch.sh (XMALLOC): Delete macro.
9097 * gdbarch.c: Regenerate.
9098 * serial.c (XMALLOC): Delete macro.
9099 * ui-file.c (XMALLOC): Ditto.
9100 * ser-unix.h (XMALLOC): Ditto.
9101 * sh-tdep.c (XMALLOC): Ditto.
9102 * ui-out.c (XMALLOC): Ditto.
9103 * utils.c (XMALLOC): Ditto.
9104 * i386-tdep.c (XMALLOC): Ditto.
9105 * gdb-events.c (XMALLOC): Ditto.
9106 * d10v-tdep.c (XMALLOC): Ditto.
9107 * cli-out.c (XMALLOC): Ditto.
9108
9109 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
9110 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
9111 * ui-file.c, ui-out.c: Ditto.
9112
9113 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9114
9115 * command.h (struct cmd_list_element): Add field context.
9116 (set_cmd_context, get_cmd_context): Declare.
9117 * cli/cli-decode.h: Ditto.
9118 * cli/cli-decode.c (get_cmd_context): New function.
9119 (set_cmd_context): New function.
9120 (add_cmd): Initialize context.
9121 Part of fixing PR gdb/145 and PR gdb/146.
9122
9123 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9124
9125 * cli/cli-decode.c (cmd_type): New function.
9126 * command.h (cmd_type): Declare.
9127 * infrun.c (set_schedlock_func): Call function cmd_type.
9128 * kod.c (kod_set_os): Call cmd_type.
9129 * cris-tdep.c (cris_version_update): Use function cmd_type.
9130 (cris_mode_update, cris_abi_update): Ditto.
9131
9132 * command.h: (execute_cmd_post_hook): Declare.
9133 (execute_cmd_pre_hook): Declare.
9134 * cli/cli-script.c (clear_hook_in_cleanup): New function.
9135 (execute_cmd_post_hook, execute_cmd_pre_hook): New
9136 functions. Execute pre/post hook while ensuring that afterwords
9137 hook_in is cleared.
9138 * top.c (execute_command): Use execute_cmd_post_hook, and
9139 execute_cmd_pre_hook to execute pre/post commands.
9140 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
9141 hook_stop_stub.
9142 (hook_stop_stub): Call execute_cmd_pre_hook.
9143
9144 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9145
9146 * kod.c (kod_set_os): Revert previous change. Is called by ``info
9147 set'' and this leads to a core dump. Move xstrdup of
9148 operating_system to after check that it is not NULL.
9149
9150 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9151
9152 * kod.c (kod_set_os): Remove unnecessary check that
9153 ``command->type'' is set_cmd.
9154
9155 * valprint.c (set_input_radix): Use input_radix.
9156 (set_output_radix): Use output_radix.
9157 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9158 isn't reverted.
9159
9160 2002-03-16 Andrew Cagney <ac131313@redhat.com>
9161
9162 * value.h (struct value): Delete field ``substring_addr''. Change
9163 aligner fields to force_doublest_align, force_longest_align,
9164 force_core_addr_align and force_pointer_aligh.
9165
9166 * value.h (struct value): Fix typo in above change.
9167
9168 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9169
9170 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9171 to fix internal_error from ``maintenance print architecture''.
9172
9173 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9174
9175 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9176 for gcc versions after gcc-2.8.1.
9177
9178 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9179
9180 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9181 for method resolution. Restore adjustment of ``this'' pointer after
9182 calling value_struct_elt, which was accidentally removed during the
9183 HP merge.
9184
9185 2002-03-15 Andrew Cagney <ac131313@redhat.com>
9186
9187 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9188 value_of_register.
9189 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9190 get_saved_register.
9191 * value.h (value_of_register): Update.
9192
9193 2002-03-14 Richard Henderson <rth@redhat.com>
9194
9195 * configure.in: Detect declaration for canonicalize_file_name.
9196 * utils.c (canonicalize_file_name): Declare, if needed.
9197 (gdb_realpath): Prefer realpath if available and usable.
9198 * config.in, configure: Rebuild.
9199
9200 2002-03-14 Richard Henderson <rth@redhat.com>
9201
9202 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9203 a constant array bound.
9204
9205 * MAINTAINERS: Add myself to write-after-approval.
9206
9207 2002-03-14 Michael Snyder <msnyder@redhat.com>
9208
9209 * symfile.c (syms_from_objfile): Return immediately if no syms.
9210 (symbol_file_add): Return immediately if no syms.
9211 (find_sym_fns): Return immediately if no syms.
9212
9213 2002-03-13 Michal Ludvig <mludvig@suse.cz>
9214
9215 * gdbserver/remote-util.c (remote_open): Print remote-side's
9216 IP address when remote debugging over the network.
9217
9218 2002-03-12 David O'Brien <obrien@FreeBSD.org>
9219
9220 * config/sparc/fbsd.mh: Fix copyright.
9221 * config/sparc/fbsd.mt: Likewise.
9222
9223 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
9224
9225 * MAINTAINERS: Fix typo in name of gdb warnings option.
9226 (x86-64): Fix formating so that this can be parsed by awk.
9227
9228 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9229
9230 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9231 * defs.h: Include "gdb/signals.h".
9232 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9233
9234 2002-03-10 Michal Ludvig <mludvig@suse.cz>
9235
9236 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
9237 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
9238 from x86-64-tdep.h
9239
9240 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9241 Don Howard <dhoward@redhat.com>
9242
9243 * mips-tdep.c (ST0_FR): Define.
9244 (mips2_fp_compat): New function, temporarily disabled.
9245 (mips_read_fp_register_single): New function.
9246 (mips_read_fp_register_double): New function.
9247 (mips_print_register): Use them.
9248 (do_fp_register_row): Likewise.
9249
9250 2002-03-09 Andrew Cagney <ac131313@redhat.com>
9251
9252 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9253 approval''.
9254
9255 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9256
9257 * stabsread.c (read_member_functions): Fix is_stub test for
9258 static member functions, improve comment.
9259
9260 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
9261
9262 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9263 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9264 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9265 commands that set boolean values.
9266 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9267 (arm_rdi_resume): Always initialize PC.
9268 (arm_rdi_open): Don't use rslt as a boolean.
9269 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9270 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9271 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9272 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9273
9274 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
9275
9276 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9277 * configure: Rebuilt.
9278
9279 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9280
9281 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9282 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9283
9284 2002-03-06 Andrew Cagney <ac131313@redhat.com>
9285
9286 * cli/cli-decode.c (set_cmd_completer): New function.
9287 * command.h (set_cmd_completer): Declare.
9288 * cli/cli-decode.h (set_cmd_completer): Ditto.
9289
9290 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9291 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9292 * win32-nat.c (_initialize_inftarg): Ditto.
9293 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9294 * proc-api.c (_initialize_proc_api): Ditto.
9295 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9296 * source.c (_initialize_source): Ditto.
9297 * exec.c (_initialize_exec): Ditto.
9298 * solib.c (_initialize_solib): Ditto.
9299 * top.c (init_main): Ditto.
9300 * tracepoint.c (_initialize_tracepoint): Ditto.
9301 * symfile.c (_initialize_symfile): Ditto.
9302 * printcmd.c (_initialize_printcmd): Ditto.
9303 * infcmd.c (_initialize_infcmd): Ditto.
9304 * corefile.c (_initialize_core): Ditto.
9305
9306 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9307
9308 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9309
9310 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9311
9312 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9313
9314 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9315
9316 * NEWS: Update headings, 5.2 has branched.
9317
9318 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
9319
9320 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9321 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9322 (register_addr, REGISTER_RAW_SIZE): Likewise.
9323 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9324 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9325
9326 2002-03-03 Michal Ludvig <mludvig@suse.cz>
9327
9328 * MAINTAINERS (x86-64): Add myself.
9329 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9330 changed value_ptr -> struct value *
9331
9332 2002-03-01 David O'Brien <obrien@FreeBSD.org>
9333
9334 * configure.host (sparc64-*-freebsd): Add.
9335 * configure.tgt: Likewise.
9336 * config/sparc/fbsd.mh: New file.
9337 * config/sparc/fbsd.mt: Likewise.
9338 * config/sparc/nm-fbsd.h: Likewise.
9339 * config/sparc/tm-fbsd.h: Likewise.
9340
9341 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
9342
9343 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9344 regformats/reg-s390x.dat.
9345
9346 2002-03-01 Andrew Cagney <ac131313@redhat.com>
9347
9348 * utils.c: Add FIXME explaining true/false problem.
9349
9350 2002-02-28 Andrew Cagney <ac131313@redhat.com>
9351
9352 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9353
9354 2002-02-28 Michael Chastain <mec@shout.net>
9355
9356 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9357
9358 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
9359
9360 * gdbserver/linux-s390-low.c: New file.
9361 * regformats/reg-s390.dat: New file.
9362 * regformats/reg-s390x.dat: New file.
9363 * gdbserver/configure.srv: Add S/390.
9364 * gdbserver/Makefile.in: Add S/390.
9365 * configure.tgt: Enable gdbserver for S/390.
9366
9367 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9368
9369 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9370 first line of the doc string for "info dos", except at the end of
9371 the sentence, since the short help stops at the first period.
9372
9373 2002-02-28 Jason Merrill <jason@redhat.com>
9374
9375 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9376
9377 2002-02-27 Fred Fish <fnf@redhat.com>
9378
9379 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9380 comment (dumy -> dummy).
9381
9382 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9383
9384 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9385
9386 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
9387
9388 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9389
9390 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9391
9392 * gdbserver/acconfig.h: New file.
9393 * gdbserver/i387-fp.c: New file.
9394 * gdbserver/i387-fp.h: New file.
9395 * gdbserver/linux-x86-64.c: New file.
9396 * regformats/reg-x86-64.dat: New file.
9397 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9398 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9399 * gdbserver/configure.in: Add support for regsets.
9400 * gdbserver/config.in: Regenerate.
9401 * gdbserver/configure: Regenerate.
9402 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9403 * gdbserver/linux-low.h: New file.
9404 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9405 for regsets.
9406 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9407 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9408 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9409 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9410 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9411 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9412 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9413 "i387-fp.h". Add PTRACE_GETREGS and friends.
9414 * gdbserver/regcache.c (supply_register): New function.
9415 (supply_register_by_name): New function.
9416 (collect_register): New function.
9417 (collect_register_by_name): New function.
9418
9419 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9420
9421 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9422 (config.status): Add configure.srv dependency.
9423 (server_h): Add config.h dependency.
9424
9425 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9426
9427 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9428 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9429 * gdbserver/configure.srv: Change i386-*-linux* to use
9430 reg-i386-linux.o.
9431
9432 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9433
9434 * x86-64-tdep.c: Re-indent. Update copyright date.
9435
9436 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9437
9438 From Michal Ludvig <mludvig@suse.cz>:
9439 * x86-64-tdep.c (value.h): Delete.
9440 (gdb_assert.h): Include.
9441 (x86_64_register_convert_to_virtual,
9442 x86_64_register_convert_to_raw ): Add check which lets only
9443 floating-point values to be converted.
9444 (value_push): Delete.
9445 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9446 (i386_gdbarch_init): Number of register_bytes fixed.
9447
9448 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9449
9450 * MAINTAINERS: Add x86-64 target.
9451
9452 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9453
9454 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9455 * osfsolib.c (solib_map_sections): Ditto.
9456 * irix5-nat.c (solib_map_sections): Ditto.
9457 * corelow.c (gdb_check_format): Ditto.
9458 * symfile.c (symfile_bfd_open): Ditto.
9459 * solib.c (solib_map_sections): Ditto.
9460 Fix PR gdb/354.
9461
9462 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9463
9464 * remote.c (_initialize_remote): By default, disable ``e'' and
9465 ``E'' step out-of-range packets.
9466
9467 2002-02-26 Andreas Schwab <schwab@suse.de>
9468
9469 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9470 m68k_linux_frame_saved_pc.
9471 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9472 in_sigtramp.
9473 (SIGCONTEXT_PC_OFFSET): Remove.
9474 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9475 m68k_linux_sigtramp_saved_pc): New functions.
9476 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9477 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9478 (UCONTEXT_PC_OFFSET): Define.
9479 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9480 non-RT and RT signal trampolines.
9481
9482 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
9483
9484 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9485 (TARGET_NBPG, STACK_END_ADDR): Delete
9486 (VARIABLES_INSIDE_BLOCK): Delete.
9487
9488 2002-02-25 Andrew Cagney <ac131313@redhat.com>
9489
9490 * utils.c (perror_with_name): Make string parameter constant.
9491 (print_sys_errmsg): Ditto.
9492 (query): Ditto.
9493 * defs.h (perror_with_name): Update.
9494 (print_sys_errmsg): Update.
9495 (query): Update.
9496
9497 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
9498
9499 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9500 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9501
9502 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9503
9504 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9505 if it already matches the current architecture from the exec file.
9506 Include arch-utils.h for gdbarch_info_init prototype.
9507 * Makefile.in (rs6000-nat.o): Update dependencies.
9508
9509 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9510
9511 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9512 list of exported variables.
9513
9514 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
9515
9516 * gdbserver/configure.srv: New file.
9517 * gdbserver/configure.in: Use configure.srv instead
9518 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9519 from it.
9520 * gdbserver/configure: Regenerated.
9521 * gdbserver/terminal.h: New file.
9522 * gdbserver/Makefile.in: Update for configure changes. Remove
9523 more unneeded include paths.
9524
9525 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9526
9527 From wiz at danbala:
9528 * config/sparc/tm-sp64.h: Fix grammar and typos.
9529 Fix PR gdb/287.
9530
9531 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9532
9533 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9534 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9535 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9536 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9537 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9538 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9539 * s390-tdep.c: Ditto.
9540 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9541 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9542 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9543 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9544 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9545 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9546 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9547 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9548 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9549 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9550 Fix PR gdb/378.
9551
9552 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9553
9554 * lin-thread.c: Delete file.
9555 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9556 to gdb_proc_service.h.
9557 * configure: Re-generate.
9558
9559 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9560 * serial.c (serial_open): Delete check for "ocd".
9561 Fix PR gdb/349.
9562
9563 * Makefile.in (linux-thread.o): Delete target.
9564 * linux-thread.c: Delete file.
9565
9566 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9567 renamed SH files to be consistent.
9568
9569 * symtab.c (sort_search_symbols): Use xfree.
9570
9571 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9572
9573 * arm-linux-tdep.c (arm_linux_init_abi): Register
9574 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9575 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9576 definition with undef, since we don't want the sysvr4 definition.
9577 (SKIP_TRAMPOLINE_CODE): Likewise.
9578
9579 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9580
9581 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9582
9583 * configure.in: (AC_CHECK_FUNCS) Added test for
9584 canonicalize_file_name Regenerated.
9585 * config.in, configure: Regenerated.
9586 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9587 defined use canonicalize_file_name.
9588
9589 2002-02-23 Michael Chastain <mec@shout.net>
9590
9591 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9592
9593 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9594
9595 * README: Remove references to cygnus.com.
9596 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9597 dot com'' form. Remove references to cygnus.com and sourceware.
9598
9599 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9600
9601 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9602 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9603 1003.1-2001 no longer allows "head -1".
9604 * gdb/Makefile.in (version.c): Likewise.
9605 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9606 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9607 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9608
9609 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9610
9611 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9612 * command.h (cmd_cfunc_eq): Declare.
9613 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9614
9615 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9616 ``struct cmd_list_element *''.
9617 * cli/cli-cmds.c (is_complete_command): Update. Use
9618 cmd_cfunc_eq.
9619 * top.c (execute_command): Pass the command to
9620 is_complete_command.
9621 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9622
9623 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9624
9625 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9626 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9627 architecture defines.
9628 * s390-tdep.c (s390_gdbarch_init): Likewise.
9629
9630 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9631
9632 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9633 (arm_linux_push_arguments): Likewise.
9634 (arm_linux_init_abi): Register them. Also register linux-specific
9635 call_dummy_words.
9636 (find_minsym_and_objfile): Use strcmp, not STREQ.
9637 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9638 (arm_linux_call_dummy_words): Delete declaration.
9639 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9640 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9641 declarations.
9642 (LOWEST_PC): Delete.
9643
9644 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9645
9646 * maint.c (print_section_info): Do not prepend `0x' to filepos
9647 output, it will be handled by local_hex_string_custom.
9648
9649 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9650
9651 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9652 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9653 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9654
9655 2002-02-22 Jim Blandy <jimb@redhat.com>
9656
9657 Indicate that the bcache functions don't change the strings
9658 they're passed.
9659 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9660 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9661
9662 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9663
9664 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9665
9666 2002-02-21 Christopher Faylor <cgf@redhat.com>
9667
9668 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9669 find the complete path to a loaded DLL.
9670
9671 2002-02-21 Fred Fish <fnf@redhat.com>
9672
9673 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9674 that marks the end of the range of a function, enter a line number
9675 entry that has a line number of zero and a PC offset that matches
9676 the end of the function. This starts a range of PC's for which no
9677 line number information is known.
9678 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9679 PC's for which no line number info is found (line number is zero)
9680 then we didn't find any valid line information.
9681 * symtab.h: Document use of zero line number entry.
9682
9683 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
9684
9685 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9686 (have_ptrace_getvrregs): Define for run time checks.
9687 (gdb_vrregset_t): New type for Altivec register handling.
9688 (fetch_register, store_register): Fetch/store altivec register
9689 when needed.
9690 (fetch_altivec_register, store_altivec_register): New functions.
9691 (supply_vrregset, fill_vrregset): New functions.
9692 (fetch_altivec_registers, store_altivec_registers): New functions.
9693 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9694 registers as well.
9695
9696 2002-02-21 Jiri Smid <smid@suse.cz>
9697
9698 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9699
9700 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9701
9702 * Makefile.in (armnbsd-nat.o): Update dependencies.
9703 * armnbsd-nat.c (supply_gregset): New function. Common code to
9704 supply the integer register set.
9705 (supply_fparegset): New function. Similar for FPA registers.
9706 (fetch_regs, fetch_fp_regs): Use them.
9707 (fetch_core_registers): Likewise.
9708 (fetch_elfcore_registers): New function.
9709 (arm_netbsd_elfcore_fns): New core-file type specification.
9710 (_initialize_arm_netbsd_nat): Register it.
9711
9712 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9713
9714 * armnbsd-nat.c: Include gdbcore.h.
9715 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9716 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9717 'void' to declaration, to shut up ARI.
9718 (fetch_core_registers): Make static. Rewrite using supply_register.
9719 (arm_netbsd_core_fns): New core-file type specification.
9720 (_initialize_arm_netbsd_nat): New function.
9721
9722 2002-02-21 Christopher Faylor <cgf@redhat.com>
9723
9724 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9725 value.
9726
9727 2002-02-20 Christopher Faylor <cgf@redhat.com>
9728
9729 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9730 fails.
9731
9732 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9733
9734 * jv-exp.y (parse_number): Change type of implicit longs
9735 to builtin_type_uint64.
9736
9737 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9738
9739 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9740 to be an integer instead of a `union wait'.
9741
9742 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9743
9744 * mips-linux-nat.c: Call the operating system GNU/Linux.
9745 * mips-linux-tdep.c: Likewise.
9746 * mips-tdep.c: Likewise.
9747
9748 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9749
9750 Fix PR gdb/265.
9751 * jv-exp.y (parse_number): Handle 64-bit integers.
9752
9753 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9754
9755 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9756 AC_STDC_HEADERS to AC_HEADER_STDC.
9757 * gdbserver/configure: Regenerated.
9758
9759 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9760
9761 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9762 is defined.
9763 * sparc-tdep.c (get_longjmp_target): Likewise.
9764
9765 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9766
9767 * News: Add news about ARM and Multi-arch. Mention the new target
9768 arm*-*-netbsd*.
9769
9770 2002-02-19 Jim Blandy <jimb@redhat.com>
9771
9772 * stabsread.c (error_type_complaint): Improve error message.
9773
9774 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
9775
9776 * gdbserver/README: Update documentation.
9777 * gdbserver/configure.in: Update configury to match documentation.
9778 * gdbserver/Makefile.in: Likewise.
9779 * gdbserver/configure: Regenerated.
9780 * gdbserver/aclocal.m4: New file, generated by aclocal.
9781 * gdbserver/config.in: New file, generated by autoheader.
9782
9783 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9784
9785 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9786 armnbsd-nat.c.
9787
9788 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9789
9790 * arm-tdep.h (enum arm_float_model): New enum.
9791 (struct gdbarch_tdep): Add fp_model.
9792 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9793 up floating-point conversions until we know the floating-point model
9794 in use by the inferior. Don't complain about being unable to
9795 determine the ABI of the inferior when we don't have one.
9796 (arm_extract_return_value): Support different floating-point models.
9797 (arm_store_return_value): Likewise.
9798 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9799 ARM_FLOAT_SOFT.
9800 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9801
9802 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9803
9804 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9805 of ``current_gdbarch''.
9806
9807 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9808
9809 * armnbsd-nat.c : ANSIfy all function declarations.
9810 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9811 (fetch_inferior_registers): Re-implement in terms of above.
9812 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9813 (store_inferior_registers): Re-implement in terms of above.
9814
9815 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9816
9817 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9818 kernel.
9819 * arm-linux-tdep.c: Likewise.
9820 * config/arm/tm-linux.h: Likewise.
9821
9822 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9823
9824 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9825 * config/arm/nbsd.mt (TM_FILE): Delete.
9826 * config/arm/tm-nbsd.h: Delete.
9827
9828 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9829
9830 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9831 Initialize CALL_DUMMY_LENGTH.
9832
9833 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9834
9835 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9836 function.
9837 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
9838 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
9839 defines one thing and that is incorrect for this port.
9840 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9841
9842 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9843
9844 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9845
9846 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9847
9848 * win32-nat.c (display_selector): New function. Displays information
9849 about the information returned by GetThreadSelectorEntry API function.
9850 (display_selectors): New function. Displays the infomation of
9851 the selector given as argument, or of CS, DS ans FS selectors
9852 if no argument is given.
9853 ( _initialize_inftarg): Add "w32" as info prefix command.
9854 Add "info w32 selector" as command calling display_selectors.
9855
9856 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9857
9858 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9859 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9860 if not defined.
9861
9862 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9863
9864 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9865
9866 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9867
9868 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9869 (arm_fix_call_dummy): Call it.
9870 (arm_call_dummy_breakpoint_offset): Delete.
9871 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9872 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9873
9874 2002-02-18 Andrew Cagney <ac131313@redhat.com>
9875
9876 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9877 Default to func_frame_chain_valid.
9878 * gdbarch.h, gdbarch.c: Re-generate.
9879 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9880
9881 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
9882
9883 * ppc-linux-nat.c: Update copyright.
9884 (fetch_register, store_register): Add tid parameter, don't compute
9885 tid here.
9886 (fetch_ppc_registers, store_ppc_registers): Add tid
9887 parameter. Pass it along to callees.
9888 (fetch_inferior_registers, store_inferior_registers): Compute tid
9889 here, and pass it to calleed functions.
9890 (fill_gregset, supply_fpregset): Clean up formatting.
9891
9892 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9893
9894 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9895 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9896
9897 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9898
9899 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9900 * gdbarch.c gdbarch.h: Regenerate.
9901 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9902 function.
9903 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9904 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9905 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9906
9907 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9908 * arm-tdep.c (arm_get_longjmp_target): New function.
9909 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9910 this to a positive value register arm_get_longjmp_target as the
9911 longjmp handler.
9912 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9913 (arm_linux_init_abi): Set up longjmp description in tdep.
9914 * armnbsd-nat.c (get_longjmp_target): Delete.
9915 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9916 description in tdep.
9917 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9918 (get_longjmp_target): Delete declaration.
9919 (GET_LONGJMP_TARGET): Delete.
9920 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9921 (GET_LONGJMP_TARGET): Delete.
9922
9923 2002-02-17 Kevin Buettner <kevinb@redhat.com>
9924
9925 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9926 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9927 of ``current_gdbarch''.
9928
9929 2002-02-17 Tom Tromey <tromey@redhat.com>
9930
9931 * cli/cli-cmds.c (compare_strings): New function.
9932 (complete_command): Only print each unique item once.
9933 * completer.h (complete_line): Declare.
9934 * completer.c (complete_line): New function.
9935 (line_completion_function): Use it.
9936
9937 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9938
9939 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9940 * gdbarch.h, gdbarch.c: Re-generate.
9941
9942 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9943
9944 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9945
9946 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9947
9948 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9949 * valops.c (value_arg_coerce): Don't take the address of a reference
9950 to convert an argument to a reference.
9951
9952 2002-02-15 Christopher Faylor <cgf@redhat.com>
9953
9954 * win32-nat.c (get_image_name): New function.
9955 (handle_load_dll): Use get_image_name function.
9956 (get_child_debug_event): Avoid registering debug events until possibly
9957 execed process is started.
9958 (child_create_inferior): Allow invocation via shell so that command
9959 line redirection, etc. works ok.
9960 (_initialize_inftarg): Add new command: "set shell" to control whether
9961 a shell is used to start a process.
9962
9963 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9964
9965 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9966 instead of find_register_by_number.
9967 (cannot_store_register): Likewise.
9968
9969 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9970
9971 * dwarf2read.c: Replace fprintf (stderr, ...) by
9972 fprintf_unfiltered (gdb_stderr, ...).
9973
9974 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9975
9976 * gdbserver/gdbserver.1: Document --attach.
9977
9978 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9979
9980 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9981 descriptions.
9982 * arm-tdep.c (arm_default_arm_le_breakpoint)
9983 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9984 (arm_default_thumb_be_breakpoint): New. Initialize them from
9985 traditional breakpoint defines.
9986 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9987 (arm_gdbarch_init): Initialize new breakpoint variables.
9988 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9989 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9990 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9991 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9992 code out to ...
9993 (arm_netbsd_init_abi_common): ... here; new function.
9994 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9995 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9996 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9997 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9998
9999 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
10000
10001 * arm-tdep.h (enum arm_abi): New enum.
10002 (struct gdbarch_tdep): New structure.
10003 (LOWEST_PC): Provide a default.
10004 (arm_gdbarch_register_os_abi): Declare new function.
10005 * arm-tdep.c (arm_abi_names): New array.
10006 (process_note_abi_tag_sections): New function.
10007 (get_elfosabi): New function.
10008 (arm_gdbarch_register_os_abi): New function.
10009 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
10010 support for that ABI has been built in, then call the appropriate
10011 configuration routine. Use gdbarch_num_regs() to get the number
10012 of registers.
10013 (arm_dump_tdep): New function.
10014 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
10015 place-holder functions.
10016 (_initialize_arm_tdep): Register them.
10017 * config/arm/tm-arm.h (LOWEST_PC): Delete.
10018
10019 * armnbsd-tdep.c: New file.
10020 * Makefile.in (armnbsd-tdep.o): Add dependencies.
10021 * config/arm/nbsd.mt (TDEPFILES): Add it.
10022 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
10023
10024 * armnbsd-nat.c: Include regcache.h.
10025 * Makefile.in (armnbsd-nat.o): Update dependency list.
10026
10027 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
10028
10029 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10030
10031 * gdbserver/Makefile.in: Fix typos in target rules.
10032
10033 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10034
10035 Fix part of PR gdb/267.
10036 * linespec.c (find_methods): Handle constructors specially for now.
10037
10038 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
10039
10040 * arm-tdep.c (arm_push_arguments): Eliminate special float type
10041 handling.
10042 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
10043 standard_coerce_float_to_double().
10044
10045 2002-02-14 Christopher Faylor <cgf@redhat.com>
10046
10047 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
10048 GDBINIT_FILENAME.
10049
10050 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
10051
10052 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
10053 find_variant_by_name, because it confuses the multiarch
10054 framework. Return NULL if there isn't an architecture with the
10055 user supplied name, instead of forcing a different one without
10056 recording the change with the multiarch machinery.
10057 (find_variant_by_name): Delete.
10058
10059 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10060
10061 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
10062 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
10063
10064 2002-02-13 Martin M. Hunt <hunt@redhat.com>
10065
10066 * stack.c (print_frame_info_base): When calling
10067 print_frame_info_listing_hook, set current_source_symtab.
10068
10069 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10070
10071 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
10072 and remove unused $(INCLUDE_DIR).
10073 Add regcache.c to OBS.
10074 Add generated register protocol files to clean target.
10075 Update dependencies for new objects, obsolete old target code.
10076
10077 * gdbserver/linux-low.c: Remove all platform-specific code to
10078 new files. Remove various dead code. Update to use regcache
10079 functionality.
10080 * gdbserver/remote-utils.c (fromhex): Add return statement
10081 to quiet warning.
10082 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
10083 constant.
10084 (input_interrupt): Add integer parameter to match prototype
10085 of a signal handler.
10086 (outreg): Use register_data ().
10087 (prepare_resume_reply): Use gdbserver_expedite_regs.
10088 * gdbserver/server.c (main): Dynamically allocate own_buf because
10089 PBUFSIZ is no longer constant. Use registers_to_string () and
10090 registers_from_string ().
10091 * gdbserver/server.h: No longer include "defs.h". Add prototypes
10092 for error (), fatal (), and warning (). Update definition of
10093 PBUFSIZ to use regcache functionality. Add include guard.
10094 * gdbserver/utils.c (fatal): Add missing ``const''.
10095 (warning): New function.
10096
10097 * regformats/regdat.sh: Include "regcache.h" in generated files.
10098 Provide init_registers () function.
10099 * regformats/regdef.h: Add prototype for set_register_cache ().
10100 Add include guard.
10101
10102 * gdbserver/linux-arm-low.c: New file.
10103 * gdbserver/linux-i386-low.c: New file.
10104 * gdbserver/linux-ia64-low.c: New file.
10105 * gdbserver/linux-m68k-low.c: New file.
10106 * gdbserver/linux-mips-low.c: New file.
10107 * gdbserver/linux-ppc-low.c: New file.
10108 * gdbserver/linux-sh-low.c: New file.
10109
10110 * gdbserver/regcache.c: New file.
10111 * gdbserver/regcache.h: New file.
10112
10113 * gdbserver/low-linux.c: Removed obsolete file.
10114
10115 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10116
10117 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
10118 * config/i386/linux.mt: Likewise.
10119 * config/ia64/linux.mt: Likewise.
10120 * config/m68k/linux.mh: Likewise.
10121 * config/powerpc/linux.mh: Likewise.
10122 * config/mips/linux.mt: Likewise.
10123
10124 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
10125
10126 * config/i386/i386lynx.mh: Mark gdbserver variables
10127 as (currently) obsolete for this target.
10128 * config/i386/nbsd.mt: Likewise.
10129 * config/i386/nbsdelf.mt: Likewise.
10130 * config/m32r/m32r.mt: Likewise.
10131 * config/m68k/m68klynx.mh: Likewise.
10132 * config/m68k/nbsd.mt: Likewise.
10133 * config/m68k/sun3os4.mh: Likewise.
10134 * config/mips/vr5000.mt: Likewise.
10135 * config/ns32k/nbsd.mt: Likewise.
10136 * config/pa/hppabsd.mh: Likewise.
10137 * config/pa/hppaosf.mh: Likewise.
10138 * config/powerpc/nbsd.mt: Likewise.
10139 * config/rs6000/rs6000lynx.mh: Likewise.
10140 * config/s390/s390.mt: Likewise.
10141 * config/s390/s390x.mt: Likewise.
10142 * config/sparc/sparclynx.mh: Likewise.
10143 * config/sparc/sun4os4.mh: Likewise.
10144 * config/i386/x86-64linux.mt: Likewise.
10145 * config/sparc/linux.mh: Likewise.
10146
10147 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10148
10149 * configure.tgt: Configure gdbserver only for known working
10150 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
10151 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
10152 SUBDIRS if it is configured. Update comment for ${nativefile}.
10153 * configure: Regenerated.
10154
10155 2002-02-13 Michael Snyder <msnyder@redhat.com>
10156
10157 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10158
10159 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10160 (default_gcore_mach): Just return 0, work around a problem in bfd.
10161 (default_gcore_target): OK to return NULL if exec_bfd is null.
10162 (make_mem_sec): Use a cast, avoid a warning.
10163
10164 * procfs.c (find_memory_regions_callback): Use a cast instead of
10165 calling host_pointer_to_address (which complains if
10166 sizeof (host pointer) != sizeof (target pointer)).
10167 (procfs_make_note_section): Avoid overflow in psargs string.
10168
10169 * procfs.c (procfs_make_note_section): Make the default
10170 implementation return an error.
10171
10172 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
10173
10174 * procfs.c (procfs_make_note_section): Provide a default definition
10175 (for alpha-dec-osf4.0f). Fix typos.
10176
10177 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
10178
10179 * linux-proc.c: Add include of regcache.h.
10180 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10181
10182 2002-02-13 Andrew Cagney <ac131313@redhat.com>
10183
10184 From 2002-01-18 Greg McGary <greg@mcgary.org>:
10185 * memattr.c (create_mem_region): Disallow useless empty region.
10186 Regions are half-open intervals, so allow [A..B) [B..C) as
10187 non-overlapping.
10188
10189 2002-02-13 Michael Chastain <mec@shout.net>
10190
10191 * defs.h: Kill CONST_PTR.
10192 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10193 * c-lang.c (c_builtin_types): Likewise.
10194 * ch-lang.c (ch_builtin_types): Likewise.
10195 * f-lang.c (f_builtin_types): Likewise.
10196 * language.c (unknown_builtin_types): Likewise.
10197 * m2-lang.c (m2_builtin_types): Likewise.
10198 * p-lang.c (pascal_builtin_types): Likewise.
10199 * scm-lang.c (c_builtin_types): Likewise.
10200
10201 2002-02-13 Keith Seitz <keiths@redhat.com>
10202
10203 * arm-tdep.h (arm_get_next_pc): Add declaration.
10204
10205 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
10206
10207 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10208 with other related struct-returning functions.
10209 (arm_extract_struct_value_address): New function.
10210 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10211 initialize float_format, double_format and long_double_format as
10212 appropriate to the endianness of the target.
10213 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10214 (arm_use_struct_convention): Delete declaration.
10215 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10216
10217 2002-02-13 Keith Seitz <keiths@redhat.com>
10218
10219 * defs.h (core_addr_to_string_nz): New function.
10220
10221 2002-02-13 Mark Kettenis <kettenis@gnu.org>
10222
10223 Apply missing bits of 2002-01-15 patch.
10224 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10225 (fill_fpregset): Use i387_fill_fsave.
10226
10227 2002-02-12 Keith Seitz <keiths@redhat.com>
10228
10229 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10230 (core_addr_to_string_nz): New function.
10231
10232 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10233
10234 * arm-linux-nat.c: Really include arm-tdep.h.
10235 * config/arm/tm-linux.h (struct type, struct value): Declare.
10236
10237 2002-02-11 Michael Snyder <msnyder@redhat.com>
10238
10239 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10240 (gcore section): Ifdef for Solaris and Unixware only.
10241 (procfs_do_thread_registers): Unixware needs one lwpstatus
10242 per thread (not one prstatus or pstatus).
10243 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10244 not over all gdb threads. For unixware, call elfcore_write_pstatus
10245 once before iterating over threads.
10246
10247 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10248
10249 * arm-tdep.h: New file.
10250 * arm-tdep.c: Include arm-tdep.h.
10251 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10252 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10253 (arm_print_float_info, arm_register_type, convert_to_extended)
10254 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10255 (arm_extract_return_value, arm_register_name): Make static.
10256 (arm_software_single_step): Similarly. Fix types in declaration.
10257 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10258 (arm_store_return_value, arm_store_struct_return): New functions.
10259 (arm_gdbarch_init): Register the above functions. Also register
10260 call_dummy_start_offset, sizeof_call_dummy_words,
10261 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10262 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
10263 max_register_virtual_size, register_size. Set up
10264 prologue_cache.saved_regs here, rather than ...
10265 (_initialize_arm_tdep): ... here.
10266 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10267 declarations.
10268 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10269 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10270 (arm_print_float_info, arm_register_type, convert_to_extended)
10271 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10272 (arm_extract_return_value, arm_register_name): Delete declarations.
10273 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10274 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10275 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10276 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10277 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10278 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10279 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10280 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10281 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10282 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10283 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10284 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10285 interface.
10286 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10287 * remote-rdi.c remote-rdp.c: Likewise.
10288 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10289 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10290 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10291 definition.
10292
10293 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10294 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10295 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10296 from non-ARM_ prefixed definitions.
10297 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10298 all uses of above.
10299 * remote-rdi.c remote-rdp.c: Likewise.
10300 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10301
10302 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10303
10304 * arm-tdep.c (arm_frameless_function_invocation)
10305 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10306 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10307 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10308 (arm_pop_frame, arm_get_next_pc): Make static.
10309 (arm_gdbarch_init): Register above in gdbarch structure.
10310 (arm_read_fp): Renamed from arm_target_read_fp.
10311 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10312 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10313 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10314 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10315 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10316 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10317 (arm_pc_is_thumb_dummy): Delete declarations.
10318 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10319 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10320 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10321 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
10322
10323 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
10324
10325 * symtab.c (compare_search_syms): New function.
10326 (sort_search_symbols): New function.
10327 (search_symbols): Sort symbols after searching rather than
10328 before.
10329
10330 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10331
10332 * NEWS: Linux -> GNU/Linux.
10333
10334 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10335
10336 * gdbarch.sh: For for level one methods, disallow a definition
10337 when partially multi-arched. Add comments explaining rationale.
10338 * gdbarch.h: Re-generate.
10339
10340 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10341
10342 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10343 multi-arch partial.
10344
10345 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10346
10347 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10348 field. Use diff -u.
10349 * gdbarch.c: Re-generate.
10350
10351 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10352
10353 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
10354 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10355 partial.
10356
10357 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10358
10359 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10360 multi-arch partial.
10361 (PUSH_ARGUMENTS): Switch to using predefault.
10362 * gdbarch.c: Regenerate.
10363
10364 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10365
10366 * valops.c (PUSH_ARGUMENTS): Delete definition.
10367 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10368 partial. Default to default_push_arguments.
10369 * gdbarch.h, gdbarch.c: Regenerate.
10370
10371 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10372
10373 * defs.h (throw_exception): Rename return_to_top_level. Update
10374 comments.
10375 * utils.c (error_stream, internal_verror, quit): Ditto.
10376 * top.c (throw_exception, catcher): Ditto.
10377 * sparclet-rom.c (sparclet_load): Ditto.
10378 * remote.c (interrupt_query, minitelnet): Ditto.
10379 * remote-sds.c (interrupt_query): Ditto.
10380 * remote-mips.c (mips_error, mips_kill): Ditto.
10381 * ocd.c (interrupt_query): Ditto.
10382 * monitor.c (monitor_interrupt_query): Ditto.
10383 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10384 * target.h: Update comment.
10385
10386 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10387
10388 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10389
10390 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10391 default_double_format.
10392 * gdbarch.h, gdbarch.c: Re-generate.
10393 * findvar.c (floatformat_unknown): Delete variable definition.
10394 * doublest.h (floatformat_unknown): Delete variable declaration.
10395
10396 2002-02-09 Jim Blandy <jimb@redhat.com>
10397
10398 * stabsread.c (read_type): Add code to parse Sun's syntax for
10399 prototyped function types.
10400
10401 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10402
10403 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10404 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10405
10406 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10407
10408 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10409 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10410 now _initialize_xcoffsolib gets called again and overrides the
10411 commands from solib.c in a native configuration.
10412
10413 2002-02-09 Mark Kettenis <kettenis@gnu.org>
10414
10415 * doublest.c (store_typed_floating): Don't try to return a value.
10416 Fixes PR gdb/290.
10417
10418 2002-02-08 Jim Blandy <jimb@redhat.com>
10419
10420 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10421 is prototyped and has no arguments, print its argument list as
10422 `(void)'.
10423
10424 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10425
10426 * MAINTAINERS (write-after-approval): Add myself.
10427 (paper-trail): I've escaped!
10428
10429 2002-02-08 Christopher Faylor <cgf@redhat.com>
10430
10431 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10432 changes.
10433 (_initialize_check_for_gdb_ini): Ditto.
10434
10435 2002-02-08 Martin M. Hunt <hunt@redhat.com>
10436
10437 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10438 xaprintf -> xasprintf.
10439
10440 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10441
10442 * win32-nat.c: Remove use of printf and sprintf functions.
10443
10444 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
10445
10446 * arm-tdep.c (arm_frame_chain_valid): Make static.
10447 (arm_push_arguments): Likewise.
10448 (arm_gdbarch_init): New function.
10449 (_initialize_arm_tdep): Call it.
10450 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10451 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10452 (FRAME_CHAIN_VALID): Delete.
10453 (arm_frame_chain_valid): Delete declaration.
10454 (PUSH_ARGUMENTS): Delete.
10455 (arm_push_arguments): Delete declaration.
10456 (CALL_DUMMY_P): Delete.
10457
10458 2002-02-08 Andrew Cagney <ac131313@redhat.com>
10459 Corinna Vinschen <vinschen@redhat.com>
10460
10461 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10462 on builtin float types.
10463
10464 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
10465
10466 * utils.c: Include <curses.h> before "bfd.h".
10467 * tui/tui-hooks.c: Likewise.
10468 * tui/tui.c: Likewise.
10469 * tui/tuiCommand.c: Likewise.
10470 * tui/tuiData.c: Likewise.
10471 * tui/tuiDataWin.c: Likewise.
10472 * tui/tuiDisassem.c: Likewise.
10473 * tui/tuiGeneralWin.c: Likewise.
10474 * tui/tuiIO.c: Likewise.
10475 * tui/tuiLayout.c: Likewise.
10476 * tui/tuiRegs.c: Likewise.
10477 * tui/tuiSource.c: Likewise.
10478 * tui/tuiSourceWin.c: Likewise.
10479 * tui/tuiStack.c: Likewise.
10480 * tui/tuiWin.c: Likewise.
10481
10482 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
10483
10484 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10485 to include space for pseudoregs as well. Update loops accordingly.
10486 (sh_fp_frame_init_saved_regs): Ditto.
10487 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10488
10489 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10490
10491 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10492 Add Richard Earnshaw to Arm maintainers.
10493
10494 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10495
10496 * defs.h (warning_begin): Delete declaration.
10497
10498 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10499 Delete macro.
10500
10501 2002-02-07 Michael Snyder <msnyder@redhat.com>
10502
10503 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10504 Logic bug, remove misplaced else.
10505
10506 2002-02-07 Klee Dienes <klee@apple.com>
10507
10508 * fork-inferior.c (fork_inferior): Add '!' to the list of
10509 characters that need to be quoted when building a string for the
10510 shell. Quote '!' specifically with a backslash, since CSH chokes
10511 when trying to evaluate "str!str".
10512
10513 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10514
10515 * rdi-share/host.h: Only provide a typedef for bool if it is not
10516 defined.
10517
10518 2002-02-04 Michael Snyder <msnyder@redhat.com>
10519
10520 * breakpoint.h (enum bptype): Add new overlay event bp type.
10521 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10522
10523 * breakpoint.c (create_internal_breakpoint): New function.
10524 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10525 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10526 (create_thread_event_breakpoint): Ditto.
10527 (create_solib_event_breakpoint): Ditto.
10528 (create_overlay_event_breakpoint): New function.
10529 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10530 (update_breakpoints_after_exec): Delete and re-initialize
10531 overlay event breakpoints after an exec. Add FIXME comment
10532 about longjmp breakpoint.
10533 (print_it_typical): Ignore overlay event breakpoints.
10534 (print_one_breakpoint): Ditto.
10535 (mention): Ditto.
10536 (bpstat_what): Do not stop for overlay event breakpoints.
10537 (delete_breakpoint): Don't delete overlay event breakpoints.
10538 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10539 (breakpoint_re_set): Re-create overlay event breakpoint.
10540
10541 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10542 (overlay_manual_command): Disable overlay breakpoints.
10543 (overlay_off_command): Disable overlay breakpoints.
10544
10545 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10546
10547 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10548 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10549 to here from config/tm-arm.h.
10550 (coff_sym_is_thumb): Make static.
10551 (arm_elf_make_msymbol_special): New function.
10552 (arm_coff_make_msymbol_special): New function.
10553 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10554 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10555 (coff_sym_is_thumb): Delete declaration.
10556 (arm_elf_make_msymbol_special): Declare.
10557 (arm_coff_make_msymbol_special): Declare.
10558 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10559 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10560
10561 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10562
10563 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10564
10565 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10566
10567 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10568 * gdbarch.c gdbarch.h: Regenerate.
10569 * arch-utils.c (default_print_float_info): New function.
10570 * arch-utils.h (default_print_float_info): Prototype it.
10571 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10572 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10573 (PRINT_FLOAT_INFO): Document it.
10574
10575 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10576 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10577 (PRINT_FLOAT_INFO): Define.
10578
10579 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10580
10581 * win32-nat.c (_initialize_check_for_gdb_ini):
10582 Add typecast to sprintf argument to suppress a warning.
10583
10584 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10585
10586 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10587 to allow easier handling of pass state.
10588 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10589 that gives exception name and address.
10590 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10591 and set last_sig value to ourstatus->value.sig. Some missing
10592 exceptions added.
10593 (child_continue): Correctly report continue_status.
10594 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10595 TARGET_SIGNAL_0 (new default value).
10596 (child_resume): consider sig argument passed to decide if
10597 the exception should be passed to debuggee or not.
10598
10599 2002-02-05 Michael Snyder <msnyder@redhat.com>
10600
10601 * regcache.c (fetch_register): Call target_fetch_register
10602 only if we don't call FETCH_PSEUDO_REGISTER.
10603 (store_register): Call target_store_register only if we
10604 don't call STORE_PSEUDO_REGISTER.
10605
10606 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
10607
10608 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10609 ELF_MAKE_MSYMBOL_SPECIAL.
10610 * gdbarch.c, gdbarch.h: Regenerate.
10611 * arch-utils.c (default_make_msymbol_special): New function.
10612 * arch-utils.h (default_make_msymbol_special): Export.
10613 * elfread.c (elf_symtab_read): Compile use of
10614 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10615 multiarched.
10616 * coffread.c (coff_symtab_read): Ditto, for
10617 COFF_MAKE_MSYMBOL_SPECIAL.
10618
10619 2002-02-05 Jim Blandy <jimb@redhat.com>
10620
10621 * solib-svr4.c (svr4_truncate_ptr): New function.
10622 (svr4_relocate_section_addresses): Do the address arithmetic with
10623 the appropriate truncation for target addresses, even when
10624 CORE_ADDR is larger than a target address.
10625
10626 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10627
10628 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10629 to (int *).
10630
10631 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10632
10633 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10634 code.
10635
10636 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10637
10638 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10639
10640 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10641
10642 * gdbserver/linux-low.c: Remove unused include files.
10643
10644 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10645
10646 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10647 (read_inferior_memory): Use it.
10648 (write_inferior_memory): Likewise.
10649
10650 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10651
10652 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10653 grubbing through sys_errlist.
10654
10655 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10656
10657 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10658
10659 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10660 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10661
10662 2002-02-04 Andrew Cagney <ac131313@redhat.com>
10663
10664 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10665 (do_sfunc, set_cmd_sfunc): New functions.
10666
10667 * command.h (struct cmd_list_element): Add field func.
10668 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10669 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10670 * cli/cli-decode.h: Ditto.
10671
10672 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10673 (help_all, help_cmd_list): Ditto.
10674 (find_cmd, complete_on_cmdlist): Ditto.
10675 * top.c (execute_command): Ditto.
10676
10677 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10678 function.sfunc.
10679
10680 * infcmd.c (notice_args_read): Fix function signature.
10681
10682 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10683 * cli/cli-decode.c (add_set_cmd): Ditto.
10684 * utils.c (initialize_utils): Ditto.
10685 * maint.c (_initialize_maint_cmds): Ditto.
10686 * infrun.c (_initialize_infrun): Ditto.
10687 * demangle.c (_initialize_demangler): Ditto.
10688 * remote.c (add_packet_config_cmd): Ditto.
10689 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10690 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10691 * proc-api.c (_initialize_proc_api): Ditto.
10692 * kod.c (_initialize_kod): Ditto.
10693 * valprint.c (_initialize_valprint): Ditto.
10694 * top.c (init_main): Ditto.
10695 * infcmd.c (_initialize_infcmd): Ditto.
10696 * corefile.c (_initialize_core): Ditto.
10697 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10698 * arch-utils.c (initialize_current_architecture): Ditto.
10699 (_initialize_gdbarch_utils): Ditto.
10700 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10701
10702 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10703 * wince.c (_initialize_inftarg): Ditto.
10704 * symfile.c (_initialize_symfile): Ditto.
10705 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10706 * language.c (_initialize_language): Ditto.
10707 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10708
10709 2002-02-04 Michael Snyder <msnyder@redhat.com>
10710
10711 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10712
10713 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10714
10715 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10716 Add rules for building the register data files.
10717
10718 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10719
10720 * regformats/regdat.sh: Add braces to the definition of
10721 expedite_regs_${arch}.
10722
10723 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10724
10725 * regformats/regdef.h (struct reg): Add comment describing the
10726 requirements for offset and size fields.
10727
10728 2002-02-04 Andreas Schwab <schwab@suse.de>
10729
10730 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10731 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10732
10733 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
10734
10735 * gdbarch.sh (copyright): Update years in generated header.
10736 (SMASH_TEXT_ADDRESS): Add rule.
10737 * gdbarch.h, gdbarch.c: Re-generate.
10738 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10739 * dbxread.c: Likewise.
10740 * dwarfread.c: Likewise.
10741 * elfread.c: Likewise.
10742 * somread.c: Likewise.
10743
10744 * arm-tdep.c (arm_smash_text_address): New function.
10745 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10746
10747 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10748
10749 Add support for hardware watchpoints on win32 native.
10750 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10751 CONTEXT_DEBUG_REGISTERS.
10752 (dr variable): New variable. Static array containing a local copy
10753 of debug registers.
10754 (debug_registers_changed): New variable. Reflects when debug registers
10755 are changed and need to be written to inferior.
10756 (debug_registers_used): New variable. Reflects when any debug register
10757 was set, used when new threads are created.
10758 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10759 i386-nat code.
10760 (thread_rec): Set dr array if id is the thread of current_event .
10761 (child_continue, child_resume): Change the debug registers for all
10762 threads if debug_registers_changed.
10763 (child_add_thread): Change the debug registers if debug_registers_used.
10764 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10765 Link nm.h to new nm-cygwin.h file.
10766 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10767 of hardware registers.
10768
10769 2002-02-03 Andrew Cagney <ac131313@redhat.com>
10770
10771 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10772 Restore behavour broken by 2002-01-20 Andrew Cagney
10773 <ac131313@redhat.com> IEEE_FLOAT removal.
10774
10775 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10776
10777 * c-valprint.c (c_val_print): Pass a proper valaddr to
10778 cp_print_class_method.
10779 * valops.c (search_struct_method): If there is only one method
10780 and args is NULL, return that method.
10781
10782 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10783
10784 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10785 accessing tag_name directly.
10786
10787 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10788
10789 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10790 of accessing tag_name directly.
10791
10792 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10793
10794 PR gdb/280
10795 * gdbtypes.c (replace_type): New function.
10796 * gdbtypes.h (replace_type): Add prototype.
10797 * stabsread.c (read_type): Use replace_type.
10798
10799 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
10800
10801 * Makefile.in (memattr.o): Add missing dependencies rule.
10802
10803 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10804
10805 * breakpoint.c (break_at_finish_command): Really export.
10806 (break_at_finish_at_depth_command): Ditto.
10807 (tbreak_at_finish_command): Ditto.
10808 * hppa-tdep.c: Include completer.h.
10809 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10810 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10811
10812 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10813
10814 * utils.c (do_write): New function.
10815 (error_stream): Rewrite combining the code from error_begin and
10816 verror.
10817 (verror): Rewrite using error_stream.
10818 (error_begin): Delete function.
10819
10820 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10821
10822 * utils.c (error_begin): Make static.
10823 * defs.h (error_begin): Delete declaration.
10824
10825 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10826 (decode_line_1): Use cplusplus_error instead of error_begin,
10827 cplusplus_hint and return_to_top_level.
10828 * coffread.c (coff_symfile_read): Use error instead of error_begin
10829 and return_to_top_level.
10830 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10831
10832 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10833
10834 * language.h (type_error, range_error): Make string parameter
10835 constant.
10836 * language.c (warning_pre_print): Delete extern declaration.
10837 * dwarfread.c (warning_pre_print): Ditto.
10838 * language.c (type_error, range_error): Rewrite to use verror and
10839 vwarning instead of warning_begin.
10840
10841 2002-02-01 Michael Snyder <msnyder@redhat.com>
10842
10843 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10844 (set_ignore_count): Move misplaced comment back where it belongs.
10845
10846 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10847
10848 * command.h (NO_FUNCTION): Delete macro.
10849 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10850 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10851 * tracepoint.c (_initialize_tracepoint): Ditto.
10852 * cli/cli-decode.c (add_set_cmd): Ditto.
10853 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10854
10855 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10856
10857 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10858 Update ``this'' pointer when calling virtual functions.
10859
10860 2002-02-01 Michael Snyder <msnyder@redhat.com>
10861
10862 * breakpoint.c (create_temp_exception_breakpoint): Delete.
10863 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10864
10865 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10866
10867 * regformats/reg-arm.dat: New file.
10868 * regformats/reg-i386.dat: New file.
10869 * regformats/reg-ia64.dat: New file.
10870 * regformats/reg-m68k.dat: New file.
10871 * regformats/reg-mips.dat: New file.
10872 * regformats/reg-ppc.dat: New file.
10873 * regformats/reg-sh.dat: New file.
10874 * regformats/regdef.h: New file.
10875 * regformats/regdat.sh: New file.
10876
10877 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
10878
10879 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10880 (arm_frame_args_address, arm_frame_locals_address): New functions.
10881 (arm_frame_num_args): New function.
10882 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10883 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10884 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10885
10886 2002-01-31 Michael Snyder <msnyder@redhat.com>
10887
10888 * breakpoint.c (break_at_finish_command): Export.
10889 (break_at_finish_at_depth_command): Export.
10890 (tbreak_at_finish_command): Export.
10891 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
10892 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10893 "txbreak" commands, which are HPPA specific.
10894
10895 * printcmd.c (disassemble_command): Remove an ancient
10896 artifact of an old merge.
10897
10898 * symfile.h (enum overlay_debugging_state):
10899 Define enum constant values for overlay mode.
10900 * symfile.c (overlay_debugging): Use enums instead of literals.
10901 (overlay_is_mapped, overlay_auto_command,
10902 overlay_manual_command): Ditto.
10903
10904 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10905 breakpoint_here_p, breakpoint_inserted_here_p,
10906 breakpoint_thread_match, bpstat_stop_status,
10907 describe_other_breakpoints, check_duplicates, clear_command):
10908 Coding standard fixes.
10909
10910 * target.c (target_xfer_memory): Add spaces, coding standard.
10911 (do_xfer_memory): Add missing line to trust-readonly
10912 code: check bfd SEC_READONLY flag for section.
10913
10914 2002-01-31 Andrew Cagney <ac131313@redhat.com>
10915
10916 * PROBLEMS: Fix typo, 5.1->5.1.1.
10917
10918 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
10919
10920 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10921 data symbols, since we search based on textlow and texthigh.
10922 (find_pc_sect_symtab): Likewise.
10923
10924 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10925
10926 * defs.h (vwarning): Declare.
10927 * utils.c (vwarning): New function.
10928 (warning): Call vwarning.
10929 (warning_begin): Delete function.
10930
10931 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10932 the warning message.
10933 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10934 warning_begin.
10935
10936 2002-01-30 Michael Snyder <msnyder@redhat.com>
10937
10938 * NEWS: Mention "set trust-readonly-sections" command.
10939 Mention generate-core-file command.
10940
10941 2002-01-15 Michael Snyder <msnyder@redhat.com>
10942
10943 * target.c: New command, "set trust-readonly-sections on".
10944 (do_xfer_memory): Honor the suggestion to trust readonly sections
10945 by reading them from the object file instead of from the target.
10946 (initialize_targets): Register command "set trust-readonly-sections".
10947
10948 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10949
10950 * parse.c (target_map_name_to_register): Simplify, search regs and
10951 pseudo-regs using a single loop.
10952
10953 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10954
10955 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10956
10957 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
10958
10959 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10960 * config/i386/i386v42mp.mh: Add i387-nat.o .
10961 * i386v4-nat.c: Include i387-nat.h.
10962 (supply_fpregset): Use i387_supply_fsave.
10963 (fill_fpregset): Use i387_fill_fsave.
10964
10965 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
10966
10967 * arm-tdep.c (arm_call_dummy_words): Define.
10968 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10969 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10970 (CALL_DUMMY_WORDS): Define.
10971 (arm_call_dummy_words): Declare.
10972 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10973 (arm_linux_call_dummy_words): Declare.
10974
10975 2002-01-30 Andreas Schwab <schwab@suse.de>
10976
10977 * m68klinux-nat.c: Fix last change to use regcache_collect
10978 instead of referencing registers[] directly.
10979
10980 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10981
10982 * parse.c (target_map_name_to_register): Delete code wrapped in
10983 #ifdef REGISTER_NAME_ALIAS_HOOK.
10984
10985 2002-01-28 Michael Snyder <msnyder@redhat.com>
10986
10987 * regcache.c (legacy_read_register_gen): Need to be able to
10988 read pseudo-register as well as real register.
10989 (legacy_write_register_gen): Ditto.
10990
10991 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10992
10993 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10994 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10995 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10996 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10997 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10998 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10999 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
11000 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
11001 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
11002 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11003 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
11004 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
11005 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
11006 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
11007 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
11008 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
11009 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
11010 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
11011 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
11012 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
11013
11014 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11015
11016 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
11017 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
11018 (initialize_current_architecture): Update target_byte_order using
11019 information from BFD.
11020 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
11021 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
11022
11023 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11024
11025 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
11026 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
11027
11028 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
11029 #ifdef INVALID_FLOAT.
11030 * infcmd.c (do_registers_info): Ditto.
11031 * values.c (unpack_double): Ditto. Add comment.
11032
11033 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
11034 already commented out.
11035
11036 2002-01-26 Andreas Schwab <schwab@suse.de>
11037
11038 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
11039 * m68klinux-nat.c: Update ptrace interface for fetching/storing
11040 registers and add support for PTRACE_GETREGS.
11041
11042 2002-01-24 Andrew Cagney <ac131313@redhat.com>
11043
11044 GDB 5.1.1 released from 5.1 branch.
11045 * NEWS: Add 5.1.1 news.
11046 * README: Sync with 5.1 branch.
11047
11048 2002-01-23 Fred Fish <fnf@redhat.com>
11049
11050 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
11051 stabstring on initial malloc. Reallocing will copy it for us,
11052 if necessary.
11053
11054 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11055
11056 * Makefile.in (hpread_h): Delete.
11057 (HFILES_NO_SRCDIR): Remove hpread.h.
11058 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
11059 (hpread.o): Update dependencies.
11060 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
11061
11062 * hp-psymtab-read.c: Remove file.
11063 * hp-symtab-read.c: Remove file.
11064 * hpread.h: Remove file.
11065
11066 * hpread.c: Merge all contents of hp-psymtab-read.c,
11067 hp-symtab-read.c and hpread.h into this file, as it was prior to
11068 January 1999.
11069
11070 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
11071 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
11072 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
11073 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
11074
11075 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11076
11077 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
11078 fill_gregset): Call gdbarch_tdep() just once, assign result to
11079 variable and use that, instead of calling the function several
11080 times.
11081
11082 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11083
11084 * configure.host: Accept sparcv9 as alias for sparc64.
11085 * configure.tgt: Likewise.
11086
11087 2002-01-22 Kevin Buettner <kevinb@redhat.com>
11088
11089 * solib-aix5.c (build_so_list_from_mapfile)
11090 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
11091 arguments is not reversed.
11092 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
11093 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
11094
11095 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
11096
11097 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
11098 modified version of obsolete sh_fetch_pseudo_register.
11099 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
11100 (sh4_register_read): New function.
11101 (sh_pseudo_register_write): New function. Renamed and modified
11102 version of obsolete sh_store_pseudo_register.
11103 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
11104 (sh4_register_write): New function.
11105 (sh_gdbarch_init): Remove setting of gdbarch function
11106 fetch_pseudo_register and store_pseudo_register. Remove setting of
11107 register_convert_to_raw, register_convert_to_virtual,
11108 register_convertible.
11109 (sh_sh4_register_convertible): Delete. No longer needed. All is
11110 taken care by architecture specific functions
11111 register_read/register_write.
11112 (sh_sh4_register_convert_to_virtual): Make static.
11113 (sh_sh4_register_convert_to_raw): Ditto.
11114
11115 2002-01-22 Andrew Cagney <ac131313@redhat.com>
11116
11117 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
11118 (floatformat_is_nan, floatformat_mantissa): Ditto.
11119
11120 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
11121 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
11122 builtin_type_ieee_double_little,
11123 builtin_type_ieee_double_littlebyte_bigword,
11124 builtin_type_m68881_ext, builtin_type_i960_ext,
11125 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
11126 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
11127 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
11128 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
11129
11130 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
11131
11132 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
11133 parameter. Set frameless flag if it exists and depended of
11134 whether the scanned function is frameless or not.
11135 (xstormy16_skip_prologue): If function is frameless, return
11136 result of xstormy16_scan_prologue().
11137 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
11138 call.
11139
11140 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
11141
11142 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11143 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11144 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11145 sh_sh4_register_byte, sh_sh4_register_raw_size,
11146 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11147 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11148 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11149 sh_store_pseudo_register, sh_do_pseudo_register): Call
11150 gdbarch_tdep() just once, assign result to variable and use that,
11151 instead of calling the function several times.
11152
11153 2002-01-20 Mark Kettenis <kettenis@gnu.org>
11154
11155 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11156 macros instead of LAST_FPU_CTRL_REGNUM.
11157 (store_register): Likewise.
11158
11159 2002-01-21 Jim Blandy <jimb@redhat.com>
11160
11161 * infcmd.c (run_command): Check that the `exec' target layer's BFD
11162 is up-to-date before running the program, not just when a program
11163 exits.
11164
11165 2002-01-21 Fred Fish <fnf@redhat.com>
11166
11167 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11168 when we have found all instructions we are looking for.
11169
11170 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11171
11172 * arm-tdep.c (arm_register_name): New function.
11173 (arm_registers_names): Make static.
11174 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11175 (arm_register_name): Declare.
11176 (REGISTER_NAME): Use it.
11177
11178 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11179 Kevin Buettner <kevinb@redhat.com>
11180
11181 Convert arm targets to new FRAME interface.
11182 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11183 (arm_frame_find_save_regs): Delete.
11184 (arm_frame_init_saved_regs): New.
11185 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11186 Allocate extra_info as required. Convert all uses of fsr.regs
11187 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11188 to use extra_info.
11189 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11190 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11191 (check_prologue_cache, save_prologue_cache): Likewise.
11192 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11193 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11194 (FRAME_FIND_SAVED_REGS): Delete.
11195 (arm_frame_find_saved_regs): Delete prototype.
11196 (arm_frame_init_saved_regs): New prototype.
11197 (FRAME_INIT_SAVED_REGS): Define.
11198
11199 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11200
11201 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11202
11203 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11204
11205 From Jeff Law <law@redhat.com>:
11206 * infttrace.c: Include <sys/pstat.h>.
11207 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11208 exec file if the ttrace equivalent fails.
11209
11210 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11211
11212 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11213 (closeLogFile): Ditto.
11214
11215 2002-01-20 Michael Chastain <mec@shout.net>
11216
11217 * top.c (print_gdb_version): Bump copyright year to 2002.
11218
11219 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11220
11221 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11222 Zannoni and Eli Zaretskii.
11223
11224 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11225
11226 * buildsym.c: Update copyright years.
11227 * c-typeprint.c: Likewise.
11228 * dwarf2read.c: Likewise.
11229 * f-typeprint.c: Likewise.
11230 * gdbtypes.c: Likewise.
11231 * gdbtypes.h: Likewise.
11232 * hp-symtab-read.c: Likewise.
11233 * hpread.c: Likewise.
11234 * mdebugread.c: Likewise.
11235 * p-typeprint.c: Likewise.
11236
11237 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11238
11239 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11240 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11241 byte-order selectable.
11242 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11243 * arch-utils.c: Ditto.
11244 (set_endian): Ditto.
11245 (set_endian_from_file): Ditto.
11246 * gdbserver/low-sim.c (create_inferior): Ditto.
11247 * gdbarch.sh: Ditto.
11248 * gdbarch.h: Re-generate.
11249 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11250 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11251 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11252 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11253 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11254 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11255 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
11256 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11257 macro definition.
11258 * config/mips/tm-wince.h: Remove #undef of macro
11259 TARGET_BYTE_ORDER_SELECTABLE.
11260 * config/sh/tm-wince.h: Ditto.
11261
11262 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11263
11264 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11265 member function fields. Add accessor macro
11266 TYPE_FN_FIELD_ARTIFICIAL.
11267 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11268 * c-typeprint.c (c_type_print_base): Skip artificial member
11269 functions.
11270
11271 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11272
11273 * f-typeprint.c: Delete unused function f_type_print_args.
11274 * p-typeprint.c: Delete unused function pascal_type_print_args.
11275
11276 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11277
11278 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11279 comment. Add ``artificial'' to ``union field_location''.
11280
11281 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11282
11283 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11284 * mdebugread.c (parse_symbol): Likewise.
11285 * stabsread.c (define_symbol): Likewise.
11286 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11287 initializing TYPE_FIELD_BITPOS to n (obsolete).
11288 (hpread_doc_function_type): Likewise.
11289 * hpread.c (hpread_function_type): Likewise.
11290
11291 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11292
11293 * configure.in (host_makefile_frag): Only require a host makefile
11294 fragment when a native build.
11295 * configure: Re-generate.
11296
11297 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11298
11299 * doublest.h (floatformat_from_type): Declare.
11300 * doublest.c (floatformat_from_type): New function.
11301 (convert_typed_floating): Use.
11302
11303 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11304 call to function floatformat_from_type.
11305
11306 * gdbarch.sh (IEEE_FLOAT): Delete.
11307 * gdbarch.h, gdbarch.c: Re-generate.
11308 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11309 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11310 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11311 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11312 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11313 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11314 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11315 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11316 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11317 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11318 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
11319 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11320
11321 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11322 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11323 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11324 * sh-tdep.c (sh_gdbarch_init): Ditto.
11325 * mips-tdep.c (mips_gdbarch_init): Ditto.
11326 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11327 * cris-tdep.c (cris_gdbarch_init): Ditto.
11328
11329 2002-01-20 Jiri Smid <smid@suse.cz>
11330
11331 * configure.host, configure.tgt: Support x86-64.
11332 * NEWS: Note new target x86-64.
11333
11334 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11335 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11336 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11337 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11338 x86-64-linux-nat.o): Fix dependencies.
11339
11340 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11341
11342 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11343 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11344 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11345 * config/sparc/xm-sun4os4.h: Delete file.
11346 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
11347
11348 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11349
11350 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11351 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11352 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11353 * config/i386/i386lynx.mh (XM_FILE): Delete.
11354 * config/rs6000/xm-rs6000ly.h: Delete file.
11355 * config/sparc/xm-sparclynx.h: Delete file.
11356 * config/m68k/xm-m68klynx.h: Delete file.
11357 * config/i386/xm-i386lynx.h: Delete file.
11358 * config/xm-lynx.h: Delete file.
11359 * config/djgpp/fnchange.lst: Update.
11360
11361 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11362
11363 * alpha-tdep.c (alpha_register_byte): New function.
11364 (alpha_register_raw_size): Ditto.
11365 (alpha_register_virtual_size): Ditto.
11366 (alpha_skip_prologue_internal): Renamed from
11367 alpha_skip_prologue.
11368 (alpha_skip_prologue): New version that calls
11369 alpha_skip_prologue_internal.
11370 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11371 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11372 second argument from alpha_skip_prologue.
11373 (REGISTER_BYTE): Use alpha_register_byte.
11374 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11375 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11376 (FRAMELESS_FUNCTION_INVOCATION): Use
11377 generic_frameless_function_invocation_not.
11378 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11379 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11380
11381 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11382
11383 * config/mips/xm-news-mips.h: Delete file.
11384 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11385
11386 * config/m88k/xm-m88k.h: Delete file.
11387 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11388 * config/m88k/xm-delta88v4.h: Ditto.
11389 * config/m88k/xm-delta88.h: Ditto.
11390
11391 * config/alpha/xm-fbsd.h: Delete file.
11392 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11393
11394 * config/sparc/xm-sparc.h: Delete file.
11395 * Makefile.in (xm-sun4os4.h): Delete dependency.
11396 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11397 * config/sparc/xm-sun4os4.h: Ditto.
11398 * config/sparc/xm-linux.h: Ditto.
11399
11400 * config/i386/xm-windows.h: Delete file.
11401
11402 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11403
11404 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11405 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11406
11407 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11408
11409 * alpha-tdep.c (alpha_call_dummy_words): New.
11410 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11411 (CALL_DUMMY_P): Define.
11412 (CALL_DUMMY_WORDS): Define.
11413 (SIZEOF_CALL_DUMMY_WORDS): Define.
11414
11415 2002-01-19 Per Bothner <per@bothner.com>
11416
11417 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11418 isn't NULL, which can happen with some gcj-3.x-produced code.
11419
11420 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11421
11422 * alpha-tdep.c (alpha_register_virtual_type): New function.
11423 (alpha_init_frame_pc_first): Ditto.
11424 (alpha_fix_call_dummy): Ditto.
11425 (alpha_store_struct_return): Ditto.
11426 (alpha_extract_struct_value_address): Ditto.
11427 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11428 alpha_register_virtual_type.
11429 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11430 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11431 alpha_extract_struct_value_address.
11432 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11433 (INIT_FRAME_PC): Use init_frame_pc_noop.
11434 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11435
11436 2002-01-19 Mark Kettenis <kettenis@gnu.org>
11437
11438 * i386gnu-nat.c: Include "i386-tdep.h".
11439 (fetch_fpregs): Simplify code dealing with uninitialized floating
11440 point states such that it doesn't require FP7_REGNUM.
11441
11442 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11443
11444 * alpha-tdep.c (frame_extra_info): New.
11445 (alpha_find_saved_regs): Make static. Use
11446 frame->extra_info.
11447 (alpha_frame_init_saved_regs): New function.
11448 (alpha_frame_saved_pc): Use frame->extra_info.
11449 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11450 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11451 (init_extra_frame_info): Rename to...
11452 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
11453 (alpha_print_extra_frame_info): New function.
11454 (alpha_frame_locals_address): Ditto.
11455 (alpha_frame_args_address): Ditto.
11456 (alpha_pop_frame): Use frame->extra_info.
11457 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11458 alpha_frame_args_address.
11459 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11460 (alpha_find_saved_regs): Remove prototype.
11461 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11462 (EXTRA_FRAME_INFO): Remove.
11463 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11464 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11465
11466 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11467
11468 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11469 (alpha_cannot_fetch_register): Ditto.
11470 (alpha_cannot_store_register): Ditto.
11471 (alpha_register_convertible): Ditto.
11472 (alpha_use_struct_convention): Ditto.
11473 * config/alpha/tm-alpha.h: Update copyright years.
11474 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11475 (INNER_THAN): Use core_addr_lessthan.
11476 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11477 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11478 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11479 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11480 (FRAME_CHAIN): Remove unnecessary cast.
11481
11482 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11483
11484 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11485 obsolete.
11486
11487 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11488
11489 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11490 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11491 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11492 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11493 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11494 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11495 * x86-64-linux-nat.c: Ditto.
11496
11497 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11498
11499 * alpha-tdep.c (alpha_register_name): New function.
11500 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11501 (REGISTER_NAME): Define.
11502
11503 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11504
11505 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11506
11507 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11508
11509 * alpha-tdep.c: Update copyright years.
11510 (alpha_next_pc): New function.
11511 (alpha_software_single_step): Ditto.
11512 * config/alpha/tm-alpha.h: Add prototype for
11513 alpha_software_single_step.
11514
11515 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11516
11517 * alphabsd-nat.c: Update copyright years.
11518 (fill_gregset): Use regcache_collect.
11519 (fill_fpregset): Likewise.
11520 (fetch_inferior_registers): Only fetch integer registers
11521 if requested to do so.
11522 (store_inferior_registers): Only store integer registers
11523 if requested to do so.
11524
11525 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11526
11527 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11528 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11529 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11530 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11531 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11532 * config/arm/linux.mh (XDEPFILES): Delete.
11533 * config/arm/nbsd.mh (XDEPFILES): Delete.
11534 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11535 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11536 * config/i386/i386m3.mh (XDEPFILES): Delete.
11537 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11538 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11539 * config/i386/fbsd.mh (XDEPFILES): Delete.
11540 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11541 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11542 * config/i386/i386v4.mh (XDEPFILES): Delete.
11543 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11544 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11545 * config/i386/i386aix.mh (XDEPFILES): Delete.
11546 * config/i386/go32.mh (XDEPFILES): Delete.
11547 * config/i386/cygwin.mh (XDEPFILES): Delete.
11548 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11549 * config/i386/i386mach.mh (XDEPFILES): Delete.
11550 * config/i386/i386v32.mh (XDEPFILES): Delete.
11551 * config/i386/linux.mh (XDEPFILES): Delete.
11552 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11553 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11554 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11555 * config/i386/i386sco.mh (XDEPFILES): Delete.
11556 * config/i386/i386v.mh (XDEPFILES): Delete.
11557 * config/i386/nbsd.mh (XDEPFILES): Delete.
11558 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11559 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11560 * config/i386/symmetry.mh (XDEPFILES): Delete.
11561 * config/i386/obsd.mh (XDEPFILES): Delete.
11562 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11563 * config/ia64/linux.mh (XDEPFILES): Delete.
11564 * config/ia64/aix.mh (XDEPFILES): Delete.
11565 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11566 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11567 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11568 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11569 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11570 * config/m68k/linux.mh (XDEPFILES): Delete.
11571 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11572 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11573 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11574 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11575 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11576 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11577 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11578 * config/m88k/delta88.mh (XDEPFILES): Delete.
11579 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11580 * config/m88k/m88k.mh (XDEPFILES): Delete.
11581 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11582 * config/mips/linux.mh (XDEPFILES): Delete.
11583 * config/mips/irix6.mh (XDEPFILES): Delete.
11584 * config/mips/irix5.mh (XDEPFILES): Delete.
11585 * config/mips/irix4.mh (XDEPFILES): Delete.
11586 * config/mips/irix3.mh (XDEPFILES): Delete.
11587 * config/mips/decstation.mh (XDEPFILES): Delete.
11588 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11589 (NATDEPFILES): Move core-aout.o to here.
11590 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11591 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11592 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11593 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11594 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11595 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11596 * config/pa/hpux11.mh (XDEPFILES): Delete.
11597 * config/powerpc/aix.mh (XDEPFILES): Delete.
11598 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11599 * config/powerpc/linux.mh (XDEPFILES): Delete.
11600 * config/romp/rtbsd.mh: Rename XDEPFILES.
11601 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11602 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11603 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11604 * config/s390/s390.mh (XDEPFILES): Delete.
11605 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11606 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11607 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11608 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11609 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11610 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11611 * config/sparc/linux.mh (XDEPFILES): Delete.
11612 * config/vax/vaxult.mh (XDEPFILES): Delete.
11613 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11614 * Makefile.in (DEPFILES): Remove XDEPFILES.
11615
11616 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11617
11618 * utils.c (internal_verror): Fix comments, default is yes not no.
11619 Update queries to match. Default to quit and dump core.
11620
11621 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11622
11623 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11624 copyright.
11625 * defs.h, event-top.c, gdbcmd.h: Ditto.
11626 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11627 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11628 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11629 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11630 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11631 * mi/mi-main.c:Ditto.
11632
11633 * stack.c, symfile.c: Update copyright.
11634
11635 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11636
11637 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11638 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11639 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11640 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11641
11642 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11643
11644 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11645 * gdbserver/low-lynx.c (myattach): Likewise.
11646 * gdbserver/low-nbsd.c (myattach): Likewise.
11647 * gdbserver/low-sim.c (myattach): Likewise.
11648 * gdbserver/low-sparc.c (myattach): Likewise.
11649 * gdbserver/low-sun3.c (myattach): Likewise.
11650
11651 * gdbserver/low-linux.c (myattach): New function.
11652
11653 * gdbserver/server.c (attach_inferior): New function.
11654 (main): Handle "--attach".
11655
11656 2002-01-16 Andrew Cagney <ac131313@redhat.com>
11657
11658 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11659 maintainer.
11660
11661 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
11662
11663 * c-typeprint.c (is_type_conversion_operator): Add additional
11664 check for non-conversion operators.
11665
11666 2002-01-15 Michael Snyder <msnyder@redhat.com>
11667
11668 * linux-proc.c: Add "info proc" command, a la procfs.c.
11669 (read_mapping): New function, abstract and re-use code.
11670 (linux_find_memory_regions): Use new func read_mapping.
11671 (linux_info_proc_cmd): New function, implement "info proc".
11672 (_initialize_linux_proc): Add new command "info proc".
11673
11674 2002-01-15 Michael Snyder <msnyder@redhat.com>
11675
11676 * symfile.c (generic_load): Use bfd_map_over_sections method
11677 instead of manipulating bfd structure members directly.
11678 (add_section_size_callback): New function, bfd sections callback
11679 used by generic_load.
11680 (load_sections_callback): New function, bfd sections callback
11681 used by generic_load.
11682
11683 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
11684
11685 [Based on work by Jim Blandy]
11686 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11687 (builtin_type_vec128): Export.
11688 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11689 types.
11690 (builtin_type_vec128): New builtin type for 128 bit vector
11691 registers.
11692 (build_gdbtypes): Initialize builtin_type_v16qi and
11693 builtin_type_v8hi. Create the vec128 register builtin type
11694 structure.
11695 (build_builtin_type_vec128): New function.
11696 (_initialize_gdbtypes): Register builtin_type_v16qi and
11697 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11698 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11699 AltiVec register to new builtin type.
11700
11701 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
11702
11703 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11704 to make_cv_type.
11705
11706 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11707
11708 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11709 CLEAN_UP_REGISTER_VALUE.
11710 * regcache.c (supply_register): Update only call.
11711
11712 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11713
11714 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11715 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11716 a29k-*-vxworks* targets as obsolete.
11717
11718 2002-01-14 Michael Snyder <msnyder@redhat.com>
11719
11720 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11721 until we can resolve portability issues.
11722 * gregset.h: Remove references to fpxregs.
11723 * gcore.c (gcore_command): Initialize note_sec to NULL.
11724
11725 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11726
11727 * signals.c (target_signal_to_name): Rewrite. Only use
11728 signals[].name when in bounds and non-NULL.
11729
11730 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11731
11732 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11733 * signals.c (target_signal_to_name): Verify that SIG is within the
11734 bounds of the signals array.
11735
11736 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11737
11738 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11739
11740 2002-01-13 Keith Seitz <keiths@redhat.com>
11741
11742 * stack.c (print_frame_info_base): Print the frame's pc
11743 only if when print_frame_info_listing_hook is not defined.
11744
11745 2002-01-13 Keith Seitz <keiths@redhat.com>
11746
11747 * varobj.c (varobj_set_value): Make sure that there were no
11748 errors evaluating the object before attempting to set its
11749 value.
11750 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11751 so this offset adjustment is no longer necessary.
11752 (create_child): Don't set the error flag if the child is
11753 a CPLUS_FAKE_CHILD.
11754 (value_of_child): If value_fetch_lazy fails, return NULL
11755 so that callers will be notified that an error occurred.
11756 (c_value_of_variable): Delay check of variable's validity
11757 until later. We actually want all structs and unions to have
11758 the value "{...}".
11759 Do not return "???" for variables which could not be evaluated.
11760 This error condition must be returned to the caller so that it
11761 can get the error condition from gdb.
11762 (cplus_name_of_child): Adjust index for vptr before figuring
11763 out the name of the child.
11764 (cplus_value_of_child): If a child's (real) parent is not valid,
11765 don't even bother trying to give a value for it. Just return
11766 an error. Change all instances in this function.
11767 (cplus_type_of_child): If our parent is one of the "fake"
11768 parents, we need to get at the type of the real parent, and
11769 derive the child's true type using this information.
11770
11771 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11772
11773 From 2002-01-09 John Marshall <johnm@falch.net>:
11774 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11775 sources.redhat.com, and tweak some related URLs which had
11776 suffered from linkrot.
11777
11778 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11779
11780 From Jeff law:
11781 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11782 structures passed in registers.
11783
11784 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11785
11786 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11787 white space which prevented compilation. Reported by DSK
11788 <dsk@student.unsw.edu.au>.
11789
11790 2002-01-11 Michael Snyder <msnyder@redhat.com>
11791
11792 * symfile.c (build_section_addr_info_from_section_tab):
11793 Use bfd access method instead of manipulating bfd directly.
11794 (syms_from_objfile): Ditto.
11795 (simple_overlay_update_1): Ditto.
11796 (simple_overlay_update): Ditto.
11797 (generic_load): Ditto.
11798 (overlay_unmapped_address): FIXME comment, bfd access methods.
11799 (sections_overlap): FIXME comment, bfd access methods.
11800 (pc_in_mapped_range): FIXME comment, bfd access methods.
11801 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11802 (section_is_mapped): FIXME comment, bfd access methods.
11803 (section_is_overlay): FIXME comment, bfd access methods.
11804
11805 * symfile.c (generic_load): Whitespace and long line cleanups.
11806 Remove duplicate variable, change several local variables to
11807 more appropriate data types.
11808 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11809
11810 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11811
11812 From Peter Schauer:
11813 * language.c (longest_local_hex_string_custom): Use phex_nz to
11814 convert NUM to a hex string.
11815
11816 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
11817
11818 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11819 the function.
11820 Update Copyright year.
11821
11822 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11823
11824 * language.c (longest_raw_hex_string): Delete unused function.
11825
11826 2002-01-11 Petr Sorfa <petrs@caldera.com>
11827
11828 * MAINTAINERS (write-after-approval): Add myself.
11829 * dwarf2read.c (read_tag_string_type): Handling of
11830 DW_AT_byte_size.
11831 (read_tag_string_type): FORTRAN fix to prevent propagation of
11832 first string size.
11833 (set_cu_language): Handling of DW_LANG_Fortran95
11834
11835 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
11836
11837 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11838 GETPID(inferior_ptid).
11839 (store_inferior_registers): Likewise.
11840
11841 2002-01-10 Jason Merrill <jason@redhat.com>
11842
11843 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11844 Fix DW_OP_minus.
11845
11846 2002-01-10 Andrew Cagney <ac131313@redhat.com>
11847
11848 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11849 and bfd/elf32-sh-nbsd.c.
11850
11851 2002-01-10 Michael Snyder <msnyder@redhat.com>
11852
11853 * NEWS: Mention --pid and corefile/proc-id behavior change.
11854
11855 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11856 * gcore.c: Include cli/cli-decode.h instead of command.h.
11857
11858 * main.c (captured_main): Add new command line option "--pid".
11859 If the second command line argument (following the symbol-file)
11860 begins with a digit, try to attach to it before trying to open
11861 it as a corefile.
11862 (print_gdb_help): Document the "--pid" argument.
11863
11864 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11865
11866 * completer.c (command_completer): New function.
11867
11868 * completer.h <command_completer>: Add prototype.
11869
11870 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11871 completer for the "help" command.
11872
11873 2002-01-09 Jason Merrill <jason@redhat.com>
11874
11875 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11876
11877 2002-01-09 Michael Snyder <msnyder@redhat.com>
11878
11879 * i386-linux-nat.c (fill_fpxregset): Make global.
11880 (store_fpxregset): Ditto.
11881
11882 * gregset.h (gdb_fpxregset_t): Define.
11883 (supply_fpxregset): Prototype.
11884 (fill_fpxregset): Prototype.
11885
11886 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11887
11888 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11889
11890 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11891 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11892 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11893
11894 2002-01-09 Andrew Cagney <ac131313@redhat.com>
11895
11896 * MAINTAINERS: Update target maintainer rules so that any
11897 Maintainer can approve a tested patch for a maintenance-only
11898 target.
11899
11900 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11901
11902 * MAINTAINERS (write-after-approval): Add myself.
11903
11904 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
11905 IN_SIGTRAMP.
11906
11907 2002-01-08 Michael Snyder <msnyder@redhat.com>
11908
11909 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11910 real name of the executable, rather than the /proc name.
11911
11912 2002-01-03 Michael Snyder <msnyder@redhat.com>
11913
11914 Implement a "generate-core-file" command in gdb, save target state.
11915 * gcore.c: New file. Implement new command 'generate-core-file'.
11916 Save a corefile image of the current state of the inferior.
11917 * linux-proc.c: Add linux-specific code for saving corefiles.
11918 * target.h (struct target_ops): Add new target vectors for saving
11919 corefiles; to_find_memory_regions and to_make_corefile_notes.
11920 (target_find_memory_regions): New macro.
11921 (target_make_corefile_notes): New macro.
11922 * target.c (update_current_target): Inherit new target methods.
11923 (dummy_find_memory_regions): New place-holder method.
11924 (dummy_make_corefile_notes): New place-holder method.
11925 (init_dummy_target): Initialize new dummy target vectors.
11926 * exec.c (exec_set_find_memory_regions): New function.
11927 Allow the exec_ops vector for memory regions to be taken over.
11928 (exec_make_note_section): New function, target vector method.
11929 * defs.h (exec_set_find_memory_regions): Export prototype.
11930 * procfs.c (proc_find_memory_regions): New function, corefile method.
11931 (procfs_make_note_section): New function, corefile method.
11932 (init_procfs_ops): Set new target vector pointers.
11933 (find_memory_regions_callback): New function.
11934 (procfs_do_thread_registers): New function.
11935 (procfs_corefile_thread_callback): New function.
11936 * sol-thread.c (sol_find_memory_regions): New function.
11937 (sol_make_note_section): New function.
11938 (init_sol_thread_ops): Initialize new target vectors.
11939 * inftarg.c (inftarg_set_find_memory_regions): New function.
11940 Allow to_find_memory_regions vector to be taken over.
11941 (inftarg_set_make_corefile_notes): New function.
11942 Allow to_make_corefile_notes vector to be taken over.
11943 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11944 interface layer if not target_has_execution (may be a corefile).
11945 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11946 * config/sparc/sun4sol2.mh: Ditto.
11947 * config/alpha/alpha-linux.mh: Ditto.
11948 * config/arm/linux.mh: Ditto.
11949 * config/i386/x86-64linux.mh: Ditto.
11950 * config/ia64/linux.mh: Ditto.
11951 * config/m68k/linux.mh: Ditto.
11952 * config/mips/linux.mh: Ditto.
11953 * config/powerpc/linux.mh: Ditto.
11954 * config/sparc/linux.mh: Ditto.
11955
11956 2002-01-07 Michael Snyder <msnyder@redhat.com>
11957
11958 * arm-linux-nat.c: Remove references to regcache.c internal data
11959 (registers[] and register_valid[]).
11960
11961 2002-01-07 Michael Snyder <msnyder@redhat.com>
11962
11963 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11964 so that attaching to a pid will automatically read the process's
11965 symbol file and shlibs.
11966 * Makefile.in: Add rule for linux-proc.o.
11967 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11968 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11969 * config/arm/linux.mh: Ditto.
11970 * config/i386/linux.mh: Ditto.
11971 * config/i386/x86-64linux.mh: Ditto.
11972 * config/ia64/linux.mh: Ditto.
11973 * config/m68k/linux.mh: Ditto.
11974 * config/mips/linux.mh: Ditto.
11975 * config/powerpc/linux.mh: Ditto.
11976 * config/sparc/linux.mh: Ditto.
11977
11978 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11979
11980 * win32-nat.c: Add i386-tdep.h dependency.
11981
11982 2002-01-07 Michael Snyder <msnyder@redhat.com>
11983
11984 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11985 instead of bfd_get_arch_size. Don't bail out just because
11986 there's no exec_bfd.
11987
11988 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11989 * p-valprint.c (pascal_object_print_value): Ditto.
11990 * somread.c (som_symtab_read): Ditto.
11991 * symfile.c (simple_free_overlay_region_table): Ditto.
11992 * valops.c (value_assign): Ditto.
11993
11994 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11995 use tilde_expand and strerror for opening save-tracepoints file.
11996
11997 * thread-db.c (thread_db_new_objfile): Indendation fix.
11998
11999 * infptrace.c (GDB_MAX_ALLOCA): New define.
12000 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
12001 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
12002 can be overridden with whatever value is appropriate to the host).
12003 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
12004 alloca to allocate potentially large buffer.
12005 * rs6000-nat.c (child_xfer_memory): Ditto.
12006 * symm-nat.c (child_xfer_memory): Ditto.
12007 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
12008
12009 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
12010
12011 From Nick Clifton <nickc@redhat.com>
12012 * d10v-tdep.c: Set STACK_START to 0x200bffe.
12013
12014 2002-01-07 Michael Snyder <msnyder@redhat.com>
12015
12016 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12017 Don't use exec_bfd if it's NULL.
12018
12019 2002-01-06 Mark Kettenis <kettenis@gnu.org>
12020
12021 * valops.c (value_arg_coerce): Fix formatting.
12022
12023 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12024
12025 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
12026 * gnu-nat.c: Ditto.
12027
12028 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12029
12030 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
12031 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
12032 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
12033 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
12034 z8k-coff have not been multi-arched. Update z8k-coff build
12035 status.
12036
12037 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12038
12039 * MAINTAINERS: Mark a29k target as obsolete.
12040 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
12041 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
12042 comments.
12043 * NEWS: Note that a29k targets are obsolete.
12044 * a29k-tdep.c: Mark as obsolete.
12045 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12046 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12047 a29k-*-vxworks* targets as obsolete.
12048 * remote-adapt.c: Obsolete.
12049 * remote-eb.c: Obsolete.
12050 * remote-mm.c: Obsolete.
12051 * remote-udi.c: Obsolete.
12052 * config/a29k/a29k-udi.mt: Obsolete.
12053 * config/a29k/a29k.mt: Obsolete.
12054 * config/a29k/tm-a29k.h: Obsolete.
12055 * config/a29k/tm-vx29k.h: Obsolete.
12056 * config/a29k/vx29k.mt: Obsolete.
12057
12058 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12059
12060 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
12061 with BFD_ENDIAN_BIG.
12062
12063 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12064
12065 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
12066 * configure, config.in: Re-generate.
12067 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
12068 * defs.h: Do not include <endian.h>.
12069
12070 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
12071
12072 * acconfig.h (HAVE_PT_GETXMMREGS): New.
12073 * config.in: Regenerate.
12074 * configure.in: Update copyright years.
12075 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
12076 * configure: Regenerate.
12077 * i386bsd-nat.c: Update copyright years.
12078 (fill_gregset): Use regcache_collect.
12079 (fetch_inferior_registers): Only fetch integer registers
12080 if requested to do so. Add support for XMM registers
12081 using PT_GETXMMREGS.
12082 (store_inferior_registers): Only store integer registers
12083 if requested to do so. Add support for XMM registers
12084 using PT_SETXMMREGS.
12085 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
12086 (store_inferior_registers): Remove.
12087 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
12088 (fetch_elfcore_registers): New function.
12089 (i386nbsd_elfcore_fns): New.
12090 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
12091 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
12092 i386bsd-nat.o.
12093 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
12094 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
12095 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
12096 * config/i386/tm-nbsd.h: Update copyright years.
12097 (HAVE_SSE_REGS): Define.
12098 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
12099 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
12100 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
12101 (SIGCONTEXT_PC_OFFSET): Remove.
12102 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
12103
12104 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12105
12106 * configure.tgt: Remove powerpc-*-macos* target.
12107 * config/m68k/xm-mpw.h: Delete file.
12108 * config/xm-mpw.h: Delete file.
12109 * ser-mac.c: Delete file.
12110 * mpw-make.sed: Delete file.
12111 * mpw-config.in: Delete file.
12112 * mac-xdep.c: Delete file.
12113 * mac-gdb.r: Delete file.
12114 * mac-defs.h: Delete file.
12115 * mac-nat.c: Delete file.
12116 * config/powerpc/macos.mh: Delete file.
12117 * config/powerpc/macos.mt: Delete file.
12118 * config/powerpc/nm-macos.h: Delete file.
12119 * config/powerpc/tm-macos.h: Delete file.
12120 * source.c (openp, open_source_file): Remove obsolete code.
12121 * top.c (gdb_readline): Ditto.
12122 * utils.c (query): Ditto.
12123 * event-top.c (display_gdb_prompt): Ditto.
12124 * Makefile.in (ser-mac.o): Delete obsolete target.
12125 * NEWS: Update.
12126
12127 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12128
12129 * defs.h (BIG_ENDIAN): Delete macro definition.
12130 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
12131 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
12132 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
12133 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
12134 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
12135 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
12136 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
12137 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
12138 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
12139 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
12140 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
12141 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12142 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12143 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12144 * gdbarch.c: Re-generate.
12145
12146 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12147
12148 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12149 for core files.
12150
12151 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12152
12153 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12154
12155 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12156
12157 * value.h (value_ptr): Delete typedef.
12158
12159 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12160
12161 * i386nbsd-nat.c: Update copyright years.
12162 Include i386-tdep.h.
12163
12164 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
12165
12166 * stabsread.c: Update copyright years.
12167
12168 From Debashis Mahata <debashis.mahata@wipro.com>:
12169 (read_struct_fields): Deal with Sun C compiler erroneous stab
12170 output for structs and unions.
12171 Fix PR gdb/269.
12172
12173 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12174
12175 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12176 prototype.
12177
12178 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12179
12180 * cp-abi.c: Fix whitespace.
12181 (baseclass_offset): New wrapper function.
12182 * cp-abi.h (baseclass_offset): Add prototype.
12183 (struct cp_abi_ops): Add baseclass_offset pointer.
12184
12185 * valops.c (vb_match): Move to...
12186 * gnu-v2-abi.c (vb_match): here.
12187 * valops.c (baseclass_offset): Move to...
12188 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12189
12190 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12191
12192 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12193 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12194 * hpacc-abi.c (init_hpacc_ops): Likewise.
12195
12196 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12197
12198 * valops.c (find_overload_match): Accept obj as a
12199 reference parameter. Update it before returning.
12200 * value.h (find_overload_match): Update prototype.
12201 * eval.c (evaluate_subexp_standard): Pass object to
12202 find_overload_match by reference.
12203
12204 2002-01-03 Andrew Cagney <ac131313@redhat.com>
12205
12206 * valarith.c: Replace value_ptr with struct value pointer. Remove
12207 register attribute from value declarations.
12208 * valops.c: Ditto.
12209 * value.h: Ditto.
12210 * scm-lang.c (scm_lookup_name): Ditto.
12211
12212 2002-01-03 Michael Snyder <msnyder@redhat.com>
12213
12214 Abstract the functionality of iterating over mapped memory
12215 regions into a general purpose iterator function.
12216 * procfs.c (iterate_over_mappings): New function, general purpose
12217 iterator for memory sections.
12218 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12219 (solib_mappings_callback): New function, callback for above.
12220 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12221 (info_mappings_callback): New function, callback for above.
12222
12223 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12224
12225 2002-01-01 Mark Kettenis <kettenis@gnu.org>
12226
12227 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12228 * i386-tdep.c: Include "elf-bfd.h".
12229 (process_note_abi_tag_sections): New function.
12230 (i386_gdbarch_init): Add code to recognize various OS/ABI
12231 combinations.
12232
12233 * maint.c (_initialize_maint_cmds): Add missing \ in
12234 string-literal.
12235
12236 For older changes see ChangeLog-2001
12237 \f
12238 Local Variables:
12239 mode: change-log
12240 left-margin: 8
12241 fill-column: 74
12242 version-control: never
12243 End: