* x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
[binutils-gdb.git] / gdb / ChangeLog
1 2002-10-26 Mark Kettenis <kettenis@gnu.org>
2
3 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
4 cfi_init_extra_frame_info.
5 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
6 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
7
8 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
9 target where necessary. Add more comments and remove the ones
10 that don't provide any useful information.
11
12 * i386-tdep.c (i386_frame_saved_pc): Replace call to
13 deprecated_read_register_dummy with
14 frame_unwind_unsigned_register.
15
16 * i386-tdep.c (i386_extract_struct_value_address): Use
17 regcache_raw_read_unsigned instead of
18 regcache_cooked_read_unsigned since we know that the register
19 we're reading isn't a pseudo register. Rename variable 'val' into
20 the more descriptive 'addr'.
21
22 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
23 (x86_64_push_return_address): Add comment.
24 (x86_64_pop_frame): Make static.
25 (examine_argument): Clarify comment.
26 (x86_64_skip_prologue): Make prolog_expact variable static.
27
28 * dwarf2cfi.c: Fix some formatting problems.
29 (context_cpy, read_encoded_pointer): Clarify comments.
30
31 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
32 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
33 i386 target back into x86_64_gdbarch_init. Add some comments and
34 remove meaningless ones.
35
36 2002-10-25 Andrew Cagney <cagney@redhat.com>
37
38 * complaints.h (struct deprecated_complaint): Rename `struct
39 complaint'.
40 * complaints.c (complain): Update.
41 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
42 incorrect comment indicating that "symfile.h" was being included
43 for the `struct complaint' definition.
44 * remote-vx.c: Update.
45 * objc-lang.c: Update.
46 * xcoffread.c: Update.
47 * hpread.c: Update.
48 * mdebugread.c: Update.
49 * stabsread.c: Update.
50 * dwarf2read.c: Update.
51 * dwarfread.c: Update.
52 * elfread.c: Update.
53 * coffread.c: Update.
54 * stabsread.h: Update.
55 * dbxread.c: Update.
56 * buildsym.c: Update.
57 * gdbtypes.c: Update.
58 * macrotab.c: Update.
59
60 2002-10-25 Mark Kettenis <kettenis@gnu.org>
61
62 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
63 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
64 (x86_64_init_abi): ...new function.
65
66 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
67 * i386v-nat.c: Include "i386-tdep.h".
68
69 2002-10-25 Andrew Cagney <cagney@redhat.com>
70
71 * gdbtypes.c (address_space_name_to_int): Update.
72 (address_space_int_to_name): Update.
73 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
74 multi-arch predicate.
75 (address_class_name_to_type_flags): Ditto.
76 * gdbarch.h, gdbarch.c: Re-generate.
77
78 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
79
80 2002-10-24 Martin M. Hunt <hunt@redhat.com>
81
82 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
83
84 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
85
86 * symtab.h (INIT_SAL): Delete macro.
87 (init_sal): Export.
88 * symtab.c (init_sal): New function.
89
90 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
91 to init_sal function call.
92 (find_sal_from_funcs_and_line): Ditto.
93 (all_sals_for_line): Ditto.
94 * breakpoint.c (create_internal_breakpoint): Ditto.
95 (create_fork_vfork_event_catchpoint): Ditto.
96 (create_exec_event_catchpoint): Ditto.
97 (parse_breakpoint_sals): Ditto.
98 (watch_command_1): Ditto.
99 (handle_gnu_4_16_catch_command): Ditto.
100 (clear_command): Ditto.
101 * hppa-tdep.c (child_enable_exception_callback): Ditto.
102 * infcmd.c (run_stack_dummy): Ditto.
103 * infrun.c (process_event_stop_test): Ditto.
104 (check_sigtramp2): Ditto.
105 (step_over_function): Ditto.
106 * linespec.c (decode_line_2): Ditto.
107 (decode_line_1): Ditto.
108 * source.c (line_info): Ditto.
109 * symtab.c (find_pc_sect_line): Ditto.
110
111 2002-10-24 Michal Ludvig <mludvig@suse.cz>
112
113 * dwarf2cfi.c (struct context)
114 (struct context_reg): Moved to dwarf2cfi.h
115 (context_alloc, frame_state_alloc, context_cpy):
116 Made extern instead of static, removed prototypes.
117 * dwarf2cfi.h (struct context)
118 (struct context_reg): New, moved from dwarf2cfi.c
119 (context_alloc, frame_state_alloc, context_cpy):
120 New prototypes.
121 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
122 Changed from static to extern.
123 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
124 (LINUX_SIGCONTEXT_FP_OFFSET)
125 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
126 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
127 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
128 * x86-64-tdep.c (x86_64_gdbarch_init): Several
129 set_gdbarch_*() calls now use x86-64 specific functions
130 instead of DWARF2 CFI ones.
131 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
132 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
133 (x86_64_init_extra_frame_info): New prototypes.
134
135 2002-10-23 David Carlton <carlton@math.stanford.edu>
136
137 * linespec.c: #include "parser-defs.h".
138 Delete prototype for find_template_name_end.
139 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
140
141 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
142
143 * NEWS: add recent mi fixes.
144 * varobj.c (struct varobj): Add new "updated" flag.
145 (new_variable): Default "updated" flag to 0.
146 (varobj_set_value): Set "updated" flag to 1 if value
147 changes.
148 (varobj_update): Check varobj "updated" flag before
149 comparing old and refreshed values. Fix for
150 PR gdb/702.
151
152 2002-10-23 David Carlton <carlton@math.stanford.edu>
153
154 * parse.c (parse_exp_1): Use BLOCK_START.
155 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
156 SYMBOL_BLOCK_VALUE.
157 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
158
159 2002-10-23 David Carlton <carlton@math.stanford.edu>
160
161 * symtab.c: Delete cplusplus_hint.
162 Delete prototype for find_template_name_end.
163
164 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
165
166 * symtab.h: Update comment.
167
168 2002-10-23 Michael Snyder <msnyder@redhat.com>
169
170 * printcmd.c (address_info): Restore quotes in output.
171 * valops.c (value_of_local): Restore quotes in error message.
172
173 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
174
175 * symtab.c (symbol_demangled_name): New function.
176 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
177 turning most of it into a function.
178 (symbol_demangled_name): Export.
179
180 2002-10-23 Michael Snyder <msnyder@redhat.com>
181
182 * valops.c (value_of_local): Restore quotes in error message.
183
184 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
185
186 * symtab.c (symbol_init_language_specific): New function.
187 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
188 turning most of it into a function.
189 (symbol_init_language_specific): Export.
190
191 2002-10-23 David Carlton <carlton@math.stanford.edu>
192
193 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
194 (dwarf_attr_name): Ditto.
195 (dwarf_type_encoding_name): Ditto.
196 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
197 (process_die): Handle DW_TAG_namespace,
198 DW_TAG_imported_declaration, DW_TAG_imported_module.
199 (read_namespace): New function.
200
201 2002-10-22 Joel Brobecker <brobecker@gnat.com>
202
203 * configure.in: Define NEW_PROC_API on Interix too.
204 * configure: Regenerate.
205
206 2002-10-21 Joel Brobecker <brobecker@gnat.com>
207
208 * configure: Regenerate using the proper version of autoconf.
209
210 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
211
212 * findvar.c (read_var_value): Temporarily disable TLS code, until
213 complete TLS support is added.
214
215 2002-10-21 Jim Blandy <jimb@redhat.com>
216 Elena Zannoni <ezannoni@redhat.com>
217
218 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
219 for thread local storage locations.
220 (struct symbol): Add objfile field.
221 (SYMBOL_OBJFILE): Define.
222 * dwarf2read.c (is_thread_local): New static variable.
223 (new_symbol): If variable is in thread local fill in address class
224 and objfile appropriately.
225 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
226 stack operation.
227 * printcmd.c (address_info): Print the information for thread
228 local storage variable.
229 * findvar.c (read_var_value): In case of thread local variable,
230 defer to the target vector code to compute address.
231
232 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
233
234 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
235 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
236
237 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
238
239 * symtab.h (address_class): Rename
240 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
241 * hpread.c (hpread_process_one_debug_symbol): Ditto.
242 * printcmd.c (address_info): Ditto.
243 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
244
245 2002-10-20 Mark Kettenis <kettenis@gnu.org>
246
247 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
248 DBREG_DRX macro to acces debug registers.
249
250 * Makefile.in (i386obsd-tdep.o): New target.
251
252 * solib-sunos.c: Include "bcache.h" and "regcache.h".
253 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
254
255 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
256 * config/i386/obsd.mt: New file.
257 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
258 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
259 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
260 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
261 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
262 * i386obsd-tdep.c: New file.
263
264 2002-10-19 Adam Fedor <fedor@gnu.org>
265
266 * objc-exp.y (name_not_typename): Fix invalid comment.
267
268 2002-10-20 Mark Kettenis <kettenis@gnu.org>
269
270 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
271 to allocate partial syms and macro byte caches.
272
273 2002-10-18 David Carlton <carlton@math.stanford.edu>
274
275 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
276
277 2002-10-18 Adam Fedor <fedor@gnu.org>
278
279 * stabsread.c (find_name_end): New function.
280 (define_symbol): Use it.
281
282 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
283
284 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
285 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
286 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
287 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
288
289 2002-10-17 David Carlton <carlton@math.stanford.edu>
290
291 * symfile.h: Add opaque declaration for struct obstack.
292 Declare obsavestring to take a const char *.
293 * symfile.c (obsavestring): Make first argument a const char *.
294
295 2002-10-16 Adam Fedor <fedor@gnu.org>
296
297 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
298 names when matching breakpoints in current file.
299
300 2002-10-16 Kevin Buettner <kevinb@redhat.com>
301
302 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
303 (read_tag_pointer_type): Add address class support.
304 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
305 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
306 New methods.
307 * gdbarch.h, gdbarch.c: Regenerate.
308 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
309 (make_type_with_address_space, recursive_type_dump): Add address
310 class support.
311 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
312 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
313 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
314
315 2002-10-16 Klee Dienes <kdienes@apple.com>
316
317 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
318 to get the last character of a char[] buffer, not
319 name[sizeof(vptr_name)-1].
320
321 2002-10-14 Adam Fedor <fedor@gnu.org>
322
323 * symtab.h: New objc_specific struct.
324 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
325 (SYMBOL_DEMANGLED_NAME): Likewise.
326
327 2002-10-14 Adam Fedor <fedor@gnu.org>
328
329 * symfile.c (init_filename_language_table): Add ObjC file extension.
330
331 2002-10-14 Adam Fedor <fedor@gnu.org>
332
333 * utils.c (puts_filtered_tabular): New function.
334 (fprintf_symbol_filtered): Get ObjC demangled name.
335 * defs.h (puts_filtered_tabular): Declared.
336
337 2002-10-14 Kevin Buettner <kevinb@redhat.com>
338
339 * c-lang.h (c_type_print_varspec_prefix): Delete.
340 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
341 ``need_post_space'' parameter. Adjust all callers.
342
343 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
344
345 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
346 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
347 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
348 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
349
350 2002-10-13 Adam Fedor <fedor@gnu.org>
351
352 * source.c (print_source_lines): Update comments.
353
354 2002-10-13 Adam Fedor <fedor@gnu.org>
355
356 * valops.c (value_of_local): New function.
357 (value_of_this): Use it.
358 * value.h (value_of_local): Declared.
359
360 2002-10-13 Adam Fedor <fedor@gnu.org>
361
362 * parse.c: (length_of_subexp, prefixify_subexp): Handle
363 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
364
365 2002-10-12 Adam Fedor <fedor@gnu.org>
366
367 * language.c (binop_result_type): Add language_objc to case.
368 (integral_type): Likewise.
369 (character_type): Likewise.
370 (string_type): Likewise.
371 (boolean_type): Likewise.
372 (structured_type): Likewise.
373 (binop_type_check): Likewise.
374
375 2002-10-11 Adam Fedor <fedor@gnu.org>
376
377 * printcmd.c (address_info): Print 'self' for ObjC.
378
379 2002-10-11 Adam Fedor <fedor@gnu.org>
380
381 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
382 OP_SELF.
383
384 2002-10-11 Adam Fedor <fedor@gnu.org>
385
386 * language.h (CAST_IS_CONVERSION): Add language_objc.
387
388 2002-10-11 Adam Fedor <fedor@gnu.org>
389
390 * defs.h (enum language): Add language_objc.
391
392 2002-10-11 Klee Dienes <kdienes@apple.com>
393
394 * findvar.c (read_memory_typed_address): New function.
395 * gdbcore.h (read_memory_typed_address): Add prototype.
396 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
397 to read a value destined for a CORE_ADDR, not read_memory_integer.
398 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
399 (f77_get_dynamic_lowerbound): Ditto.
400
401 2002-10-11 Martin M. Hunt <hunt@redhat.com>
402
403 * utils.c (string_to_core_addr): After turning string into
404 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
405 which will do necessary sign-extension, etc.
406
407 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
408
409 * c-exp.y (THIS): Delete token and grammar rule.
410 (yylex): Don't return THIS.
411 * cp-valprint.c (vtbl_ptr_name_old): Delete.
412 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
413 * demangle.c (cplus_markers): Update comment. Put '$'
414 first. Remove CPLUS_MARKER.
415 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
416 * jv-exp.y (THIS): Delete token and grammar rule.
417 (yylex): Don't return THIS.
418 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
419 * objc-exp.y (THIS): Delete token and grammar rule.
420 (yylex): Don't return THIS.
421 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
422 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
423 (read_member_functions): Likewise for opname.
424 (read_tilde_fields): Use is_cplus_marker.
425
426 * defs.h (CPLUS_MARKER): Don't define.
427 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
428 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
429 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
430 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
431 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
432
433 * config/i386/tm-i386v4.h: Delete file.
434 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
435 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
436 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
437 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
438 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
439 * config/i386/i386sco5.mt (TM_FILE): Likewise.
440 * config/i386/i386v4.mt (TM_FILE): Likewise.
441 * config/i386/ncr3000.mt (TM_FILE): Likewise.
442
443 2002-10-10 Marko Mlinar <markom@opencores.org>
444
445 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
446 accidentially not commited 2002-10-09
447 * gdbarch.h, gdbarch.c: Re-generate.
448
449 2002-10-09 Marko Mlinar <markom@opencores.org>
450
451 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
452 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
453 * gdbarch.h, gdbarch.c: Re-generate.
454
455 2002-10-08 Petr Sorfa <petrs@caldera.com>
456
457 Revised and re-submitted by John Wolfe <jlw@caldera.com>
458
459 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
460 so we can work on more than one compilation unit at a time. This
461 helps prepare GDB to handle inter-CU die references.
462 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
463 the code to be defined before struct comp_unit_head.
464 (comp_unit_head): Added new members - offset, cu_head,
465 begin_die, next and dwarf2_abbrevs.
466 (dwarf2_abbrevs): Removed single static var; now member of
467 struct comp_unit_head.
468 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
469 members.
470 (psymtab_to_symtab_1): Changed to work with the new
471 struct comp_unit_head.
472 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
473 constructs the dwarf2_abbrevs[] inside the cu_header.
474 (dwarf2_empty_abbrev_table): Now expects a ptr to a
475 dwarf2_abbrev table to clean up.
476 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
477 handling of dwarf2_abbrevs inside the cu_header.
478 (read_partial_die): Now supports the call to the new
479 dwarf2_lookup_abbrev.
480 (read_full_die): Now supports the call to the new
481 dwarf2_lookup_abbrev.
482
483 2002-10-06 Christopher Faylor <cgf@redhat.com>
484
485 * Makefile.in (install-gdbtk): Add missing continuation backslash to
486 insure that shell variables, such as "transformed_name" are propagated
487 to later shell statements in rule.
488
489 2002-10-06 Mark Kettenis <kettenis@gnu.org>
490
491 * config/i386/nm-i386sco.h: Add protection against
492 multiple-inclusion. Include "i386/nm-i386v.h".
493 (REGISTER_U_ADDR): Remove define.
494 (i386_register_u_addr): Remove prototype.
495
496 2002-10-04 Michael Snyder <msnyder@redhat.com>
497
498 * m32r-stub.c (handle_exception): Make sure exception is "trap"
499 before treating it as a single-step event.
500
501 2002-10-03 Adam Fedor <fedor@gnu.org>
502
503 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
504 (objc_demangle): Remove assignment in if statements, Replace
505 free with xfree.
506 (add_msglist): Likewise.
507 (end_msglist): Likewise.
508 (complare_selectors): Likewise.
509 (selectors_info): Likewise.
510 (compare_classes): Likewise.
511 (classes_info): Likewise.
512 (print_object_command): Likewise.
513 (find_objc_msgcall_submethod): Replace PTR with void *.
514 * objc-lang.h: Remove check for __STDC__.
515
516 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
517
518 * ui-out.h (ui_out_field_fmt_int): New prototype.
519 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
520 of field width and alignment.
521 * stack.c (print_frame_info_base): When printing frame level, use
522 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
523 PR gdb/192
524
525 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
526
527 * MAINTAINERS: Add self to Write After Approval list.
528
529 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
530
531 * infcmd.c (interrupt_target_command_wrapper): Delete.
532 (interrupt_target_command): Make non static.
533 (nofp_registers_info): Make static.
534 * stack.c (return_command_wrapper): Delete.
535 (return_command): Make non static.
536
537 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
538
539 * event-top.c (gdb_setup_readline): New function. Code moved from
540 _initialize_event_loop().
541 (_initialize_event_loop): Call gdb_setup_readline().
542
543 2002-10-02 Andrew Cagney <ac131313@redhat.com>
544
545 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
546 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
547 * gdbarch.h, gdbarch.c: Re-generate.
548
549 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
550
551 Fix PR gdb/778
552 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
553 before recursing.
554 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
555 of fill_in_vptr_fieldno.
556
557 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
558
559 * inferior.h (registers_info, stepi_command, nexti_command,
560 continue_command, interrupt_target_command): Export from infcmd.c.
561 * frame.h (args_info, selected_frame_level_changed_hook,
562 return_command): Export from stack.c.
563 * v850ice.c (stepi_command, nexti_command, continue_command): use
564 prototypes from inferior.h.
565 * tracepoint.c (registers_info, args_info, locals_info): Use
566 prototypes from frame.h and inferior.h.
567 * Makefile.in (mi-main.o): Add dependency on frame.h.
568
569 2002-10-02 Andrew Cagney <ac131313@redhat.com>
570
571 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
572 value in register 3 adjusted by ppc_gp0_regnum.
573
574 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
575
576 2002-10-02 Marko Mlinar <markom@opencores.org>
577
578 * MAINTAINERS: Add myself to the Write After Approval list.
579
580 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
581
582 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
583 of the section for the N64 ABI, fixed.
584
585 * config/mips/tm-irix6.h: Include solib.h.
586
587 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
588
589 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
590 GNU operators.
591
592 2002-10-01 Andrew Cagney <ac131313@redhat.com>
593
594 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
595 and that "mi0" syntax has been removed.
596
597 2002-09-30 David Carlton <carlton@math.stanford.edu>
598
599 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
600 * ppc-sysv-tdep.c: #include "gdb_string.h".
601 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
602 pacify GCC.
603
604 2002-10-01 Andrew Cagney <ac131313@redhat.com>
605
606 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
607 "vrsave"'s register number.
608
609 2002-09-30 Andrew Cagney <ac131313@redhat.com>
610
611 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
612 use frame_unwind_signed_register to obtain the PC.
613 (mips_frame_chain): Handle a generic dummy frame.
614 (mips_init_extra_frame_info): When a generic dummy frame, don't
615 re-compute the frame base.
616 (mips_pop_frame): Handle generic dummy frames.
617 (mips_gdbarch_init): When generic dummy frames, set
618 use_generic_dummy_frames, push_dummy_frame to
619 generic_push_dummy_frame, pc_in_call_dummy to
620 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
621 generic_save_dummy_frame_tos.
622
623 2002-09-30 Andrew Cagney <ac131313@redhat.com>
624
625 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
626 against TOP when TOP was explictly set.
627 (generic_push_dummy_frame): Set TOP to zero.
628
629 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
630
631 * event-loop.c (start_event_loop): Rename variable 'result' to
632 'gdb_result', to avoid conflicts with upcoming intepreters changes.
633
634 2002-09-30 Keith Seitz <keiths@redhat.com>
635
636 * gdb-events.sh (selected_thread_changed): New event.
637 * gdb-events.c: Regenerated.
638 * gdb-events.h: Regenerated.
639
640 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
641
642 * MAINTAINERS: Add self to Write After Approval list.
643
644 2002-09-30 Fernando Nasser <fnasser@redhat.com>
645
646 * disasm.c: New file.
647 * disasm.h: New file.
648 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
649 (compare_lines): Ditto.
650 (dump_insns): Ditto.
651 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
652 argument.
653 (do_assembly_only): Ditto.
654 (do_disassembly): Renamed to gdb_disassembly and moved to
655 disasm.c. Sdded uiout argument.
656 * Makefile.in: Add new files. Reorder SFILES list. Update
657 dependencies. Include libgdb.a later in the insight executable.
658
659 2002-09-29 Andrew Cagney <ac131313@redhat.com>
660
661 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
662 bfd/elf64-alpha-fbsd.c.
663
664 2002-09-29 Andrew Cagney <ac131313@redhat.com>
665
666 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
667 i386gnu-tdep.c.
668
669 2002-09-29 Andrew Cagney <ac131313@redhat.com>
670
671 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
672 __FUNCTION__.
673 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
674 function name.
675 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
676 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
677 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
678 (S_msg_sig_post_reply): Ditto.
679
680 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
681
682 * sh-tdep.c (sh_use_struct_convention): Use definition according
683 to ABI.
684 (sh_push_arguments): Store in register with correct endianess.
685 (sh_default_store_return_value): Ditto.
686 (sh_gdbarch_init): Set sizeof long double to 8.
687
688 2002-09-27 Mark Kettenis <kettenis@gnu.org>
689
690 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
691 Fix some whitespace problems.
692
693 2002-09-27 David Carlton <carlton@math.stanford.edu>
694
695 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
696 (mcore-tdep.o): Ditto.
697 (ns32k-tdep.o): Ditto.
698 (ns32knbsd-tdep.o): Ditto.
699 (sh3-rom.o): Ditto.
700 (vax-tdep.o): Ditto.
701 * cris-tdep.c: #include "gdb_string.h"
702 * mcore-tdep.c: Ditto.
703 * ns32k-tdep.c: Ditto.
704 * ns32knbsd-tdep.c: Ditto.
705 * sh3-rom.c: Ditto.
706 * vax-tdep.c: Ditto.
707
708 2002-09-27 David Carlton <carlton@math.stanford.edu>
709
710 * config/djgpp/fnchange.lst: Add entries for
711 gdb/testsuite/gdb.c++/m-static files.
712
713 2002-09-27 Jim Wilson <wilson@redhat.com>
714
715 * MAINTAINERS: Add myself to the Write After Approval list.
716
717 2002-09-26 Martin M. Hunt <hunt@redhat.com>
718
719 * mips-tdep.c (find_proc_desc): Initialize startaddr.
720
721
722 2002-09-26 Andrew Cagney <ac131313@redhat.com>
723
724 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
725 frame.
726
727 2002-09-26 Andrew Cagney <ac131313@redhat.com>
728
729 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
730 (rs6000_struct_return_address): Delete variable.
731 (rs6000_store_struct_return): Update.
732 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
733 deprecated_extract_struct_value_address.
734 (rs6000_frame_align): New function.
735 (rs6000_gdbarch_init): Set frame_align.
736
737 2002-09-26 Andrew Cagney <ac131313@redhat.com>
738
739 From Grace Sainsbury <graces@redhat.com>:
740 * Makefile.in (gdbtk-main.o): New target.
741 (gdb.o): New target.
742 (main_h): Define.
743 (main.o): Update dependencies.
744 (gdb$(EXEEXT)): Add gdb.o.
745 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
746 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
747 (SUBDIR_GDBTK_CLEAN): Set.
748 (install-gdbtk): Install the insight binary.
749 (uninstall-gdbtk): New target.
750 (all-gdbtk, clean-gdbtk): New rule.
751 * top.c (use_windows): Default to zero.
752 * main.c: Include "main.h".
753 (main): Delete.
754 (struct captured_main_args): Delete.
755 (gdb_main): New function.
756 * main.h: New file.
757 * gdb.c: New File.
758
759 2002-09-25 Andrew Cagney <cagney@redhat.com>
760
761 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
762 (frame_map_regnum_to_name): New function.
763 (frame_map_name_to_regnum): New function.
764 * frame.h (frame_map_name_to_regnum): Declare.
765 (frame_map_regnum_to_name): Declare.
766 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
767 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
768 * parse.c: Do not include "builtin-regs.h".
769 (target_map_name_to_register): Delete function.
770 (write_dollar_variable): Use frame_map_name_to_regnum.
771 * parser-defs.h (target_map_name_to_register): Delete declaration.
772 * expprint.c: Include "frame.h".
773 (print_subexp): Use frame_map_regnum_to_name.
774 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
775 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
776
777 2002-09-25 Andrew Cagney <ac131313@redhat.com>
778
779 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
780 wasn't saved, and the next innermost frame is a dummy, return the
781 dummy frame's link register.
782
783 2002-09-24 Jim Blandy <jimb@redhat.com>
784
785 Fix from Paul Breed:
786 * main.c (captured_main): Add a `break' after the case for 'b'.
787
788 2002-09-24 Keith Seitz <keiths@redhat.com>
789
790 * varobj.c (c_type_of_child): Use get_target_type instead
791 of TYPE_TARGET_TYPE.
792
793 2002-09-22 Fernando Nasser <fnasser@redhat.com>
794
795 * source.c (get_current_or_default_source_symtab_and_line): Remove
796 function.
797 (set_default_source_symtab_and_line): New function. Attempts to
798 determine a source file to list lines from if one is not currently
799 defined.
800 (get_current_source_symtab_and_line): Initialize sal.pc and
801 sal.end fields.
802 (set_current_source_symtab_and_line): Mark argument as const.
803 * source.h: Update declarations and comments.
804 * linespec.c (decode_line_1): Replace call to removed routine above.
805 * stack.c (print_frame_info_base): Ditto.
806 * cli/cli-cmds.c (edit_command): Ditto.
807 (list_command): Ditto.
808
809 2002-09-22 Fernando Nasser <fnasser@redhat.com>
810
811 * source.c (get_current_or_default_source_symtab_and_line): Initialize
812 sal.pc and sal.end fields.
813 (get_current_or_default_source_symtab_and_line): Ditto.
814 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
815 so we do not cause a new source symtab to be searched for (reverting an
816 unintentional change from the 2002-09-20 patch).
817 * scm-lang.c (scm_unpac): Ditto.
818
819 2002-09-21 Andrew Cagney <cagney@redhat.com>
820
821 * complaints.c (symfile_explanations): Remove new-line from
822 ``isolated_message''.
823 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
824 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
825
826 2002-09-20 Nick Clifton <nickc@redhat.com>
827
828 * NEWS: Announce that V850EA ISA is no longer supported.
829 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
830
831 2002-09-20 David Carlton <carlton@math.stanford.edu>
832
833 * Makefile.in (c-lang.o): Correct dependencies.
834 (utils.o): Gather dependencies.
835 (charset.o): Move.
836 * c-lang.c: #include "gdb_string.h"
837
838 2002-09-20 Fernando Nasser <fnasser@redhat.com>
839
840 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
841 * cli/cli-cmds.c (list_command): New function. Implements the new
842 cli edit command.
843 (_init_cli_cmds): Add new command definition.
844 * gdb.1: Document edit command.
845 * doc/gdb.texinfo: Document edit command.
846
847 2002-09-20 Fernando Nasser <fnasser@redhat.com>
848
849 * source.c: Make global variables current_source_symtab and
850 current_source_line static.
851 (list_command): Moved to cli/cli-cmds.c.
852 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
853 (get_first_line_listed): New accessor function.
854 (get_lines_to_list): New accessor function.
855 (get_current_source_symtab_and_line): New function. Retrieves the
856 position in the source code that we consider current.
857 (get_current_or_default_source_symtab_and_line): New function.
858 Like the above but attempts to determine a default position if one
859 is not currently defined.
860 (set_current_source_symtab_and_line): New function. Sets the source
861 code position considered current and returns the previously set one.
862 (clear_current_source_symtab_and_line): Reset stored information about
863 a current source line.
864 (_initialize_source): Remove registration for the "list" command and
865 its alias.
866 * source.h: Add declarations for the new functions above.
867 * symtab.h: Remove declarations for the global variables mentioned
868 above.
869 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
870 obtain current source line.
871 * linespec.c (decode_line_1): Ditto.
872 * macroscope.c (default_macro_scope): Ditto.
873 * scm-lang.c (scm_unpac): Ditto.
874 * stack.c (print_frame_info_base): Ditto.
875 * symfile.c (clear_symtab_users): Ditto.
876 * symtab.c (decode_line_spec): Ditto.
877 * cli/cli-cmds.c (list_command): Moved here from source.c.
878 (ambiguous_line_spec): Moved here from source.c.
879 (_init_cli_cmds): Add definition for "list" and its alias.
880 * Makefile.in: Update dependencies.
881
882 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
883
884 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
885 with what gcc thinks is correct.
886
887 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
888
889 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
890 multiple register push instruction.
891
892 2002-09-19 Jim Blandy <jimb@redhat.com>
893
894 Add support for distinct host and target character sets.
895 * charset.c, charset.h: New files.
896 * c-exp.y: #include "charset.h".
897 (yylex): Convert character and string literals to the target
898 character set, before returning them as the semantic value of the
899 token.
900 * c-lang.c: #include "charset.h".
901 (c_emit_char): Use charset-specific methods to recognize
902 characters with backslash escape forms, to decide which characters
903 to print literally and which to print using numeric escape
904 sequences, and to convert target characters to host characters
905 before printing.
906 * utils.c: #include "charset.h".
907 (no_control_char_error): New function.
908 (parse_escape): Use charset-specific methods to recognize
909 backslash escapes, parse `control character' notation, and convert
910 characters from the host character set to the target character set.
911 * configure.in: Set the default host character set.
912 Check where to find iconv, and what its argument types might be.
913 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
914 * Makefile.in (SFILES): List charset.c.
915 (COMMON_OBS): List charset.o.
916 (charset.o): New rule.
917 (charset_h): New header dependency variable.
918 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
919 (LIBICONV): New variable, set by configure.
920 (CLIBS): Include $(LIBICONV) here.
921 * aclocal.m4, config.in, configure: Regenerated.
922
923 2002-09-19 Joel Brobecker <brobecker@gnat.com>
924
925 * ada-exp.y: Add missing semicolons to end rules. Fixes a
926 bison 1.35 warning.
927
928 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
929
930 * gdb_mbuild.sh: New file.
931
932 2002-09-19 Andrew Cagney <ac131313@redhat.com>
933
934 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
935
936 2002-09-18 Andrew Cagney <ac131313@redhat.com>
937
938 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
939 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
940 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
941 valops.c, value.h: Revert previous change.
942
943 2002-09-18 Michael Snyder <msnyder@redhat.com>
944
945 Preliminary support for Objective-C:
946 * defs.h (language_objc): New enum value.
947 (puts_filtered_tabular): Declaration only, exported from utils.c.
948 (skip_quoted): Delete, declared in completer.h.
949 * c-exp.y: Include completer.h.
950 * p-exp.y: Ditto.
951 * jv-exp.y: Ditto.
952 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
953 New operator enum values.
954 * language.h (CAST_IS_CONVERSION): Test for language_objc.
955 * language.c (binop_result_type): Handle language_objc case.
956 (integral_type, character_type, string_type, boolean_type,
957 structured_type, binop_type_check): Ditto.
958 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
959 (struct objc_specific): Add to general_symbol_info.
960 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
961 (SYMBOL_DEMANGLED_NAME): Handle objc case.
962 * parser-defs.h (struct objc_class_str): New struct type.
963 (start_msglist, end_msglist, add_msglist): Declaration only,
964 exported from objc-lang.c.
965 * value.h (value_of_local, value_nsstring,
966 call_function_by_hand_expecting_type): Exported from valops.c.
967 * valops.c (find_function_addr): Export.
968 (call_function_by_hand_expecting_type): New function.
969 (value_of_local): New function.
970 * symfile.c (init_filename_language_table): Add ".m" extension
971 for Objective-C.
972 * utils.c (puts_filtered_tabular): New function.
973 (fprintf_symbol_filtered): Add objc demangling support (disabled).
974 (set/show demangle): Extend help-string to refer to ObjC.
975 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
976 * stabsread.c (symbol_reference_defined): Objective-C symbols
977 may contain colons: make allowances when scanning stabs strings
978 for colons.
979 (objc_find_colon): New function.
980 * printcmd.c (address_info): If language == objc then print
981 "self" instead of "this".
982 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
983 OP_NSSTRING, and OP_SELF.
984 (prefixify_subexp): Ditto.
985 * source.c (print_source_lines): Mention objc in comment.
986 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
987 method names.
988
989 2002-09-18 Andrew Cagney <ac131313@redhat.com>
990
991 * complaints.h: Update copyright.
992 (struct complaints): Declare.
993 (struct complaint): Make `message' constant.
994 (internal_complaint): Declare.
995 (complaint): Declare.
996 (complaint_root): Delete declaration.
997 (symfile_complaints): Delete declaration.
998 (struct complaints): Add opaque declaration.
999 (clear_complaints): Add a complaints parameter.
1000 * complaints.c: Update copyright.
1001 (enum complaint_series): Define.
1002 (complaint_root): Delete.
1003 (struct complaints): Define.
1004 (complaint_sentinel, symfile_complaint_book): New variables.
1005 (symfile_explanations, symfile_complaints): New variables.
1006 New variables.
1007 (get_complaints): New function.
1008 (vcomplaint): New function.
1009 (complaint): New function.
1010 (internal_complaint): New function.
1011 (complain): Call vcomplain with symfile_complaint.
1012 (clear_complaints): Rewrite.
1013 (_initialize_complaints): Use add_setshow_command.
1014 * Makefile.in (complaints.o): Update dependencies.
1015 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
1016 to call to clear_complaints.
1017 (new_symfile_objfile, reread_symbols): Ditto.
1018 (oldsyms_complaint): Delete.
1019 (empty_symtab_complaint, unknown_option_complaint): Delete.
1020 (free_named_symtabs): Use complaint instead of complain.
1021
1022 2002-09-18 Michael Snyder <msnyder@redhat.com>
1023
1024 Contributed by Apple Computer, Inc. Merged with current sources
1025 by Adam Fedor <fedor@doc.com> [cagney].
1026
1027 * objc-lang.c: First clean-up round: comments, indentation.
1028 * objc-lang.h: Ditto.
1029 * objc-lang.y: Ditto.
1030
1031 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1032
1033 * maint.c (maintenance_internal_error): Print the parameter as the
1034 error message.
1035 (maintenance_internal_warning): New function.
1036 (_initialize_maint_cmds): Add command `maint internal-warning'.
1037
1038 * defs.h (internal_warning, internal_vwarning): Declare.
1039 * utils.c (struct internal_problem): Define.
1040 (internal_vproblem): New function.
1041 (internal_warning): New function.
1042 (internal_vwarning): New function.
1043 (internal_warning_problem, internal_error_problem): New variables.
1044 (internal_verror): Just call internal_vproblem.
1045
1046 2002-09-18 Michael Snyder <msnyder@redhat.com>
1047
1048 * objc-lang.c: New file, support for Objective-C.
1049 Preliminary check-in, not yet integrated into gdb.
1050 * objc-lang.h: New file.
1051 * objc-exp.y: New file.
1052
1053 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1054
1055 * infrun.c (signal_stop_update): Convert definition to ISO C.
1056 (signal_print_update): Ditto.
1057 (signal_pass_update): Ditto.
1058 * inflow.c (terminal_save_ours): Ditto.
1059
1060 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
1061 comments.
1062
1063 * config/djgpp/fnchange.lst: Handle name clashes between
1064 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
1065 bfd/coff-tic80.c.
1066
1067 * i386-linux-tdep.h: Fix tipo.
1068
1069 2002-09-18 Adam Fedor <fedor@gnu.org>
1070
1071 * MAINTAINERS: Add myself to the Write After Approval list.
1072
1073 2002-09-18 Jim Blandy <jimb@redhat.com>
1074
1075 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
1076 texthigh and textlow to reader-specific structs caused
1077 objfile_relocate to miss them. This is fixable, but the work that
1078 the change was supposed to prepare GDB for never got done anyway.
1079
1080 2002-09-18 David Carlton <carlton@math.stanford.edu>
1081
1082 * MAINTAINERS: Alphabetize Write After Approval list.
1083
1084 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
1085
1086 Fix PR gdb/709
1087 * values.c (value_static_field): Call read_var_value.
1088
1089 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1090
1091 * valops.c (hand_function_call): Align the initial stack pointer
1092 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
1093 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
1094 return value.
1095 * mips-tdep.c (mips_frame_align): New function.
1096 (mips_gdbarch_init): Set frame_align.
1097 * gdbarch.sh (FRAME_ALIGN): New method.
1098 * gdbarch.h, gdbarch.c: Re-generate.
1099
1100 2002-09-18 Michal Ludvig <mludvig@suse.cz>
1101
1102 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
1103 registers.
1104
1105 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1106
1107 * NEWS: Mention that MIPS $fp behavior changed.
1108 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
1109 reference to FP_REGNUM.
1110 (mipsnbsd_cannot_store_register): Ditto.
1111 * mips-linux-nat.c: Update copyright.
1112 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
1113 (mips_linux_cannot_store_register): Ditto.
1114 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
1115 * config/mips/tm-mips.h: Update copyright.
1116 (FP_REGNUM): Delete macro.
1117 (MIPS_REGISTER_NAMES): Replace "fp" with "".
1118 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
1119 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
1120 (mips_r3041_reg_names, mips_r3051_reg_names)
1121 (mips_r3081_reg_names): Replace "fp" with "".
1122 Fix PR gdb/480.
1123
1124 2002-09-17 Theodore A. Roth <troth@verinet.com>
1125
1126 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
1127 generic_read_register_dummy() (PR gdb/703).
1128 (avr_push_return_address): #if 0 out unused vars.
1129 (avr_gdbarch_init): Enable use of avr_push_return_address().
1130
1131 2002-09-17 Michael Snyder <msnyder@redhat.com>
1132
1133 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
1134 RTE will take care of it.
1135
1136 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1137
1138 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
1139 invalid, return SP_REGNUM.
1140
1141 2002-09-17 Michael Snyder <msnyder@redhat.com>
1142
1143 * mips-tdep.c (mips_pop_frame): Read saved values of floating
1144 point registers without sign extension.
1145
1146 2002-09-17 Andrew Cagney <cagney@redhat.com>
1147
1148 * blockframe.c (deprecated_read_register_dummy): Rename
1149 generic_read_register_dummy.
1150 * frame.c (frame_unwind_signed_register): New function.
1151 (frame_unwind_unsigned_register): New function.
1152 * frame.h (frame_unwind_signed_register): Declare.
1153 (frame_unwind_unsigned_register): Declare.
1154 (deprecated_read_register_dummy): Rename
1155 generic_read_register_dummy.
1156
1157 * h8300-tdep.c (h8300_frame_chain): Update.
1158 (h8300_frame_saved_pc): Update.
1159 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1160 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1161 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1162 (s390_frame_chain): Update.
1163 * v850-tdep.c (v850_find_callers_reg): Update.
1164 (v850_frame_saved_pc): Update.
1165 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1166 (m32r_find_callers_reg): Update.
1167 (m32r_frame_saved_pc): Update.
1168 * sh-tdep.c (sh_find_callers_reg): Update.
1169 (sh64_get_saved_pr): Update.
1170 (sh_init_extra_frame_info): Update.
1171 (sh_init_extra_frame_info): Update.
1172 (sh64_init_extra_frame_info): Update.
1173 (sh64_init_extra_frame_info): Update.
1174 * mcore-tdep.c (mcore_find_callers_reg): Update.
1175 (mcore_frame_saved_pc): Update.
1176 (mcore_init_extra_frame_info): Update.
1177 * i386-tdep.c (i386_frame_saved_pc): Update.
1178 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1179 (ia64_init_extra_frame_info): Update.
1180 (ia64_init_extra_frame_info): Update.
1181 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1182 * cris-tdep.c (cris_init_extra_frame_info): Update.
1183 * avr-tdep.c (avr_frame_chain): Update.
1184 (avr_init_extra_frame_info): Update.
1185 (avr_frame_saved_pc): Update.
1186 * arm-tdep.c (arm_find_callers_reg): Update.
1187 (arm_init_extra_frame_info): Update.
1188 (arm_frame_saved_pc): Update.
1189
1190 2002-09-17 Tom Tromey <tromey@redhat.com>
1191
1192 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1193 is "'".
1194
1195 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
1196
1197 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1198 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1199 NEXT_PROLOGUE_INSN.
1200 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1201 NEXT_PROLOGUE_INSN.
1202
1203 2002-09-16 Joel Brobecker <brobecker@gnat.com>
1204
1205 * osfsolib.c: Remove file, replaced by solib-osf.c.
1206 * Makefile.in: Remove compilation rules for osfsolib.c.
1207
1208 2002-09-16 David Carlton <carlton@math.stanford.edu>
1209
1210 * cp-valprint.c (cp_print_class_method): Correct args to
1211 check_stub_method_group.
1212
1213 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
1214
1215 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1216 `set architecture'. Unify naming convention of functions.
1217 (h8300_skip_prologue): Improve prologue analysis.
1218 (h8300_push_arguments): Rewritten to more closely match GCC's
1219 bizarre argument-passing behavior, along with the comment describing
1220 said behavior.
1221 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1222 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1223 sim, remote-e7000.c, remote-hms.c and remote.c
1224
1225 2002-09-15 Mark Kettenis <kettenis@gnu.org>
1226
1227 * i386-tdep.c (gdb_print_insn_i386): Removed.
1228 (i386_print_insn): New function.
1229 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1230 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1231 tm_print_insn_info.
1232
1233 2002-09-14 Mark Kettenis <kettenis@gnu.org>
1234
1235 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1236 zero.
1237
1238 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
1239
1240 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1241 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1242 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1243
1244 2002-09-13 Christopher Faylor <cgf@redhat.com>
1245
1246 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1247
1248 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
1249
1250 * gdbtypes.c (check_stub_method): Make static.
1251 (check_stub_method_group): New function.
1252 * gdbtypes.h: Update prototypes.
1253 * cp-support.c: New file.
1254 * cp-support.h: New file.
1255
1256 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1257 (update_method_name_from_physname): New function.
1258 (read_member_functions): Correct method names for operators
1259 and v3 constructors/destructors. Separate v2 constructors and
1260 destructors.
1261 * Makefile.in (stabsread.o): Update dependencies.
1262 (SFILES): Add cp-support.c.
1263 (COMMON_OBS): Add cp-support.o.
1264 (cp_support_h, cp-support.o): Add.
1265
1266 * cp-valprint.c (cp_print_class_method): Call
1267 check_stub_method_group instead of check_stub_method. Remove
1268 extraneous QUITs.
1269 * p-valprint.c (pascal_object_print_class_method): Likewise.
1270 * valops.c (search_struct_method): Likewise.
1271 (find_method_list, value_struct_elt_for_reference): Likewise.
1272
1273 2002-09-13 Andrew Cagney <cagney@redhat.com>
1274
1275 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1276 * gdbarch.h, gdbarch.c: Regenerate.
1277
1278 2002-09-13 Andrew Cagney <ac131313@redhat.com>
1279
1280 * frame.c (find_saved_register): Delete function.
1281 * frame.h (find_saved_register): Delete declaration.
1282 Fix PR gdb/631.
1283
1284 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1285
1286 * mips-tdep.c (read_next_frame_reg): Re-hack using
1287 frame_register_unwind.
1288
1289 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1290
1291 * mips-tdep.c (mips_get_saved_register): Re-hack using
1292 frame_register_unwind.
1293
1294 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1295
1296 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1297 vector. Will be useful for Interix.
1298 * gdbarch.h, gdbarch.c: Regenerate.
1299
1300 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1301 name of the malloc function by NAME_OF_MALLOC.
1302
1303 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1304
1305 * value.h (find_function_in_inferior): Add const keyword to
1306 one of the parameters. Allows us to invoke this function with
1307 a const char *.
1308 * valops.c (find_function_in_inferior): Likewise.
1309
1310 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1311
1312 * exec.c (xfer_memory): Fix compilation warning with old versions
1313 of GCC.
1314 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1315
1316 2002-09-12 David Carlton <carlton@math.stanford.edu>
1317
1318 * symtab.h: Run through gdb_indent.h.
1319 Add 2002 to Copyright year list.
1320
1321 2002-09-12 Alan Modra <amodra@bigpond.net.au>
1322
1323 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1324 mach constants.
1325 * MAINTAINERS: Add myself to write after approval list.
1326
1327 2002-09-11 J. Brobecker <brobecker@gnat.com>
1328
1329 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1330
1331 2002-09-11 J. Brobecker <brobecker@gnat.com>
1332
1333 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1334 Interix.
1335
1336 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1337
1338 * procfs.c (do_detach): Clear current signal, not just fault.
1339 Corrects problem with breakpoint trap signal leaking to detached
1340 process on Tru64.
1341
1342 2002-09-10 Michael Snyder <msnyder@redhat.com>
1343
1344 * buildsym.c (finish_block): Protect against null pointer.
1345
1346 2002-09-10 Andrew Cagney <cagney@redhat.com>
1347
1348 * infcmd.c (default_print_registers_info): Send all output to
1349 ``file'' instead of ``gdb_stdout''.
1350
1351 2002-09-10 Michael Snyder <msnyder@redhat.com>
1352
1353 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1354 LONGEST, and use signed register read (addresses are sign-
1355 extended for mips).
1356
1357 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1358
1359 * event-loop.c (gdb_do_one_event): Make public.
1360 * event-loop.h (gdb_do_one_event): Declare.
1361
1362 2002-09-10 Jeff Law <law@redhat.com>
1363
1364 * infttrace.c (child_resume): Simplify and rework to avoid
1365 TT_PROC_CONTINUE.
1366
1367 2002-09-09 Fred Fish <fnf@intrinsity.com>
1368
1369 * printcmd.c (print_scalar_formatted): "len" is the number of
1370 target bytes, NOT the number of target bits.
1371
1372 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
1373
1374 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1375 * top.c (init_main): Set rl_terminal_name.
1376
1377 2002-09-08 Aidan Skinner <aidan@velvet.net>
1378
1379 * ada-lang.c (ada_array_bound, ada_type_match,
1380 _initialize_ada_language): Fix K&R definitions.
1381 * ada-tasks.c (get_current_task): Fix K&R definitions.
1382 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1383
1384 2002-09-07 Christopher Faylor <cgf@redhat.com>
1385
1386 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1387 Add XP.
1388
1389 2002-09-06 Mark Kettenis <kettenis@gnu.org>
1390
1391 * i386-tdep.c (i386_register_virtual_type,
1392 i386_register_convertible, i386_register_convert_to_virtual,
1393 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1394 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1395 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1396 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1397 Don't set push_arguments twice.
1398
1399 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1400 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1401 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1402 sigtramp_end to NULL.
1403 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1404 defines.
1405 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1406
1407 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1408 whitespace.
1409
1410 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1411 * gdbarch.h, gdbarch.c: Re-generate.
1412 * blockframe.c (find_pc_sect_partial_function): Convert to use
1413 SIGTRAMP_START_P predicate.
1414
1415 2002-09-05 Michael Snyder <msnyder@redhat.com>
1416
1417 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1418 generic_dummy_frame method and old method. Also distinguish
1419 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1420 (arm_extract_return_value): Use new regcache method.
1421
1422 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1423 adjustment that doesn't conform to the ABI.
1424 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1425 saved regcache, not from current regcache.
1426
1427 2002-09-05 Andrew Cagney <ac131313@redhat.com>
1428
1429 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1430 * README: Update.
1431
1432 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1433
1434 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1435 if arm_apcs_32 is false.
1436
1437 2002-09-04 Andrew Cagney <ac131313@redhat.com>
1438
1439 GDB 5.3 branch created.
1440
1441 2002-09-03 Theodore A. Roth <troth@verinet.com>
1442
1443 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1444 generic_unwind_get_saved_register.
1445
1446 2002-09-03 David Carlton <carlton@math.stanford.edu>
1447
1448 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1449 argument (PR gdb/653). Update call to smash_to_method_type.
1450 (read_structure_scope): Update call to dwarf2_add_member_fn.
1451
1452 2002-09-03 Michal Ludvig <mludvig@suse.cz>
1453
1454 * x86-64-linux-tdep.c: Include gdb_string.h
1455 * x86-64-linux-nat.c: Ditto.
1456
1457 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1458
1459 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1460 when YYDEBUG is set to 1.
1461 * c-exp.y: Likewise.
1462 * f-exp.y: Likewise.
1463 * jv-exp.y: Likewise.
1464 * m2-exp.y: Likewise.
1465 * p-exp.y: Likewise.
1466
1467 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1468
1469 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1470 dependency list.
1471 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1472 solib_svr4_fetch_link_map_offsets to
1473 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1474 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1475 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1476 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1477 solib-svr4.o, and solib-legacy.o.
1478 * config/i386/tm-nbsd.h: Include solib.h.
1479
1480 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1481
1482 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1483 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1484 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1485 comment noting that this needs its own target configuration.
1486 * config/i386/nbsd.mt: New file.
1487 * config/i386/nbsdaout.mt: Remove.
1488 * config/i386/nbsdelf.mt: Ditto.
1489 * config/i386/tm-nbsdaout.h: Ditto.
1490
1491 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1492
1493 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1494 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1495 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1496 tdep->sigtramp_end.
1497 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1498 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1499 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1500
1501 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1502
1503 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1504 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1505 * i386-tdep.h (i386bsd_init_abi): New prototype.
1506 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1507 function declaration.
1508 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1509 for NetBSD-a.out or NetBSD-ELF.
1510 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1511 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1512 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1513 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1514 and nbsd-tdep.h.
1515 (i386nbsd_pc_in_sigtramp): New function.
1516 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1517 i386nbsd_pc_in_sigtramp.
1518 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1519 and i386nbsdelf_init_abi OS ABI handlers.
1520 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1521 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1522
1523 2002-09-02 Mark Kettenis <kettenis@gnu.org>
1524
1525 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1526 registers if the target really has them.
1527
1528 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1529
1530 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1531 than nbsd-tdep.h.
1532
1533 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1534
1535 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1536 list.
1537 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1538 (alphanbsd_skip_sigtramp_frame): New functions.
1539 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1540 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1541 to alphanbsd_sigcontext_addr.
1542
1543 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1544
1545 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1546 list.
1547 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1548 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1549 nbsd_pc_in_sigtramp.
1550 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1551 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1552 * nbsd-tdep.c: Include gdb_string.h.
1553 (nbsd_pc_in_sigtramp): New function.
1554 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1555 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1556 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1557 ppcnbsd_pc_in_sigtramp.
1558 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1559 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1560 shnbsd_pc_in_sigtramp.
1561 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1562 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1563 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1564
1565 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1566
1567 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1568 watchpoints to NULL.
1569 (insert_breakpoints): set val field of watchpoints if NULL.
1570
1571
1572 2002-08-29 Jim Blandy <jimb@redhat.com>
1573
1574 * symtab.c (lookup_symbol_aux): In the cases where we find a
1575 minimal symbol of an appropriate name and use its address to
1576 select a symtab to read and search, use `name' (as passed to us)
1577 as the demangled name when searching the symtab's global and
1578 static blocks, not the minsym's name.
1579
1580 2002-08-29 Keith Seitz <keiths@redhat.com>
1581
1582 * stack.c (print_frame_info_base): Always set current_source_symtab
1583 and current_source_line.
1584
1585 2002-08-29 Donn Terry <donnte@microsoft.com>
1586
1587 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1588
1589 2002-08-28 Keith Seitz <keiths@redhat.com>
1590
1591 * stack.c (select_frame): Add FIXME concerning selected-frame
1592 events.
1593 (select_frame_command): Send selected-frame-level-changed
1594 event notification, but only if the level actually changed.
1595 (up_silently_base): Add selected-frame-level-changed event
1596 notification.
1597 (down_silently_base): Likewise.
1598
1599 2002-08-28 Andrew Cagney <ac131313@redhat.com>
1600
1601 * Makefile.in: Update dependencies for all gdb/*.c files.
1602
1603 2002-08-27 Tom Tromey <tromey@redhat.com>
1604
1605 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1606 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1607 Update dependencies.
1608 * i387-tdep.c: Include gdb_string.h.
1609 * osabi.c: Likewise.
1610 * i386-linux-nat.c: Likewise.
1611 * lin-lwp.c: Likewise.
1612 * ax-gdb.c: Likewise.
1613 * signals/signals.c: Likewise.
1614 * jv-valprint.c: Likewise.
1615 * p-lang.c: Likewise.
1616 * c-valprint.c: Likewise.
1617 * cp-abi.c: Likewise.
1618
1619 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
1620
1621 * cli/cli-script.h (copy_command_lines): Export.
1622 * breakpoint.c: Include cli/cli-script.h.
1623 * Makefile.in (breakpoint.o): Update dependencies.
1624
1625 2002-08-26 Michael Snyder <msnyder@redhat.com>
1626
1627 * breakpoint.c (insert_breakpoints): Protect all references
1628 to 'process_warning'. Shorten long lines.
1629
1630 2002-08-26 Joel Brobecker <brobecker@gnat.com>
1631
1632 * cli/cli-script.c (copy_command_lines): New function.
1633 * defs.h (copy_command_lines): Export.
1634 * testsuite/gdb.base/commands.exp: New tests for commands
1635 attached to a temporary breakpoint, and for commands that
1636 delete the breakpoint they are attached to.
1637
1638 2002-08-26 Michael Snyder <msnyder@redhat.com>
1639
1640 * breakpoint.c (bpstat_stop_status): Instead of copying the
1641 pointer to the breakpoint commands struct, make a new copy
1642 of the struct and point to that.
1643 (bpstat_clear): Free the commands struct.
1644 (bpstat_clear_actions): Free the commands struct.
1645 (bpstat_do_actions): Free the command actions. Also execute
1646 the local cleanups, instead of deleting them.
1647 (delete_breakpoint): Leave the commands field of the bpstat
1648 chain alone -- it will be freed later.
1649
1650 2002-08-26 Kevin Buettner <kevinb@redhat.com>
1651
1652 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1653 deleted in 2002-08-20 commit. This function is still used by
1654 ppc-linux-nat.c.
1655
1656 2002-08-26 Keith Seitz <keiths@redhat.com>
1657
1658 * gdb-events.sh: Add selected-frame-level-changed event.
1659 * gdb-events.c: Regenerated.
1660 * gdb-events.h: Regenerated.
1661
1662 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1663
1664 Fix PR gdb/393:
1665 * inflow.c (terminal_save_ours): New function to save terminal
1666 settings.
1667 * inferior.h (terminal_save_ours): Declare.
1668 * target.c (debug_to_terminal_save_ours): New function.
1669 (cleanup_target): Defaults to_terminal_save_ours.
1670 (update_current_target): Inherit to_terminal_save_ours.
1671 (setup_target_debug): Set to_terminal_save_ours.
1672 * target.h (target_terminal_save_ours): New to save terminal settings.
1673 (target_ops): New member to_terminal_save_ours.
1674 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1675 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1676 * inftarg.c (init_child_ops): Likewise.
1677 * m3-nat.c (init_m3_ops): Likewise.
1678 * procfs.c (init_procfs_ops): Likewise.
1679 * wince.c (init_child_ops): Likewise.
1680 * win32-nat.c (init_child_ops): Likewise.
1681 * sol-thread.c (init_sol_thread_ops): Likewise.
1682
1683 2002-08-26 Mark Kettenis <kettenis@gnu.org>
1684
1685 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1686 use regcache_* functions.
1687 (i386_gdbarch_init): Set store_return_value instead of
1688 deprecated_store_return_value.
1689
1690 * regcache.c (regcache_raw_write_signed,
1691 regcache_raw_write_unsigned): New functions.
1692 * regcache.h (regcache_raw_write_signed,
1693 regcache_raw_write_unsigned): New prototypes.
1694
1695 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1696
1697 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1698 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1699 source file dependencies. Cleanup corresponding generator rules.
1700
1701 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1702
1703 * regcache.h (register_offset_hack): Declare.
1704 (regcache_cooked_read_using_offset_hack): Declare.
1705 (regcache_cooked_write_using_offset_hack): Declare.
1706
1707 * regcache.c (register_offset_hack): New function.
1708 (regcache_cooked_read_using_offset_hack): New function.
1709 (regcache_cooked_write_using_offset_hack): New function.
1710 (regcache_dump): Check that the registers, according to their
1711 offset, are packed hard against each other.
1712 (cooked_xfer_using_offset_hack): New function.
1713
1714 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1715
1716 * regcache.c (struct regcache_descr): Add field register_type.
1717 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1718 in as a parameter
1719 (init_regcache_descr): Initialize register_type. Pass the descr
1720 to init_legacy_regcache_descr. Use register_type instead of
1721 REGISTER_VIRTUAL_TYPE.
1722 (register_type): New function.
1723 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1724 * regcache.h (register_type): Declare.
1725
1726 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1727
1728 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1729 instead of deprecated_store_return_value. Fix fallout from
1730 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1731
1732 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1733
1734 * regcache.c (max_register_size): New function.
1735 (init_legacy_regcache_descr): Ensure that max_register_size is
1736 large enough for REGISTER_VIRTUAL_SIZE.
1737 * regcache.h (max_register_size): Declare.
1738
1739 2002-08-24 Andrew Cagney <ac131313@redhat.com>
1740
1741 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1742 store_return_value.
1743 (e500_extract_return_value): Change type of valbuf pointer to
1744 void.
1745
1746 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1747
1748 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1749 workaround.
1750
1751 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1752 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1753 long long) to prevent compiler warning on 64-bit systems.
1754
1755 2002-08-23 Andrew Cagney <cagney@redhat.com>
1756
1757 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1758 (DEPRECATED_STORE_RETURN_VALUE): New method.
1759 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1760 * gdbarch.h, gdbarch.c: Re-generate.
1761
1762 * values.c (set_return_value): Pass current_regcache to
1763 STORE_RETURN_VALUE.
1764 * arch-utils.h (legacy_store_return_value): Declare.
1765 * arch-utils.c (legacy_store_return_value): New function.
1766 (legacy_extract_return_value): Update parameters.
1767
1768 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1769 STORE_RETURN_VALUE.
1770 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1771 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1772 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1773 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1774 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1775 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1776 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1777 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1778 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1779 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1780
1781 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1782 * i386-tdep.c (i386_extract_return_value): Update.
1783 * arch-utils.c (legacy_extract_return_value): Update.
1784 * frv-tdep.c (frv_gdbarch_init): Update.
1785 * cris-tdep.c (cris_gdbarch_init): Update.
1786 * d10v-tdep.c (d10v_gdbarch_init): Update.
1787 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1788 * m68k-tdep.c (m68k_gdbarch_init): Update.
1789 * mcore-tdep.c (mcore_gdbarch_init): Update.
1790 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1791 * s390-tdep.c (s390_gdbarch_init): Update.
1792 * sparc-tdep.c (sparc_gdbarch_init): Update.
1793 * sh-tdep.c (sh_gdbarch_init): Update.
1794 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1795 * v850-tdep.c (v850_gdbarch_init): Update.
1796 * avr-tdep.c (avr_gdbarch_init): Update.
1797 * ia64-tdep.c (ia64_gdbarch_init): Update.
1798 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1799 * vax-tdep.c (vax_gdbarch_init): Update.
1800 * alpha-tdep.c (alpha_gdbarch_init): Update.
1801 * arm-tdep.c (arm_gdbarch_init): Update.
1802 * mips-tdep.c (mips_gdbarch_init): Update.
1803 * i386-tdep.c (i386_gdbarch_init): Update.
1804
1805 2002-08-23 Andrew Cagney <ac131313@redhat.com>
1806
1807 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1808 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1809
1810 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1811
1812 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1813 problems.
1814
1815 2002-08-23 Joel Brobecker <brobecker@gnat.com>
1816
1817 * infrun.c (handle_inferior_event): Move a comment outside of a
1818 function call, in order to avoid indent reformatting this part
1819 of the code in an unreadable way.
1820
1821 2002-08-23 Grace Sainsbury <graces@redhat.com>
1822
1823 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1824 when breakpoints fail. Move general breakpoint error messages to
1825 insert_breakpoints.
1826 * breakpoint.c (insert_breakpoints): Change warnings when
1827 breakpoints are nto inserted to specify the type. Remove call to
1828 memory_error when hardware breakpoints can't be inserted. Remove
1829 multiple calls to warning so all messages are sent to the user at
1830 once.
1831 (delete_breakpoints): Make insert error messsages more explicit.
1832
1833 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
1834
1835 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1836 gdbserver/ChangeLog.
1837
1838 2002-08-23 Mark Kettenis <kettenis@gnu.org>
1839
1840 * i386-tdep.c: Include "objfiles.h".
1841 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1842 skip_trampoline_code.
1843 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1844 (CPLUS_MARKER): Define to '.'.
1845
1846 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1847 member.
1848 (linux_corefile_thread_callback): Increase args->num_notes.
1849 (linux_make_note_section): Initialize thread_args.num_notes, and
1850 use it to determine whether notes for any threads were created.
1851
1852 2002-08-23 Donn Terry <donnte@microsoft.com>
1853
1854 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1855 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1856 and PCUNKILL.
1857 (write_with_trace): Conditionalize out the switch branch handling
1858 PCSHOLD if the corresponding macro is not defined. Likewise for
1859 PRSABORT and PRSTOP.
1860 This change will be needed by the Interix port.
1861
1862 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1863
1864 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1865 write_register wherever possible instead of manipulating the
1866 register bytes directly.
1867 Assign VALUE_CONTENTS to a variable and use that.
1868 The GPR numbers are now dependent on the architecture.
1869
1870 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1871
1872 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1873 ev_offset fields.
1874 (skip_prologue): Add support for BookE/e500 instructions.
1875 (e500_extract_return_value): New function.
1876 (frame_get_saved_regs): Add support for saving ev registers and
1877 pseudo gpr's.
1878 (e500_store_return_value): New function.
1879 (rs6000_gdbarch_init): Move up default intializations of
1880 deprecated_extract_return_value and store_return_value. Overwrite
1881 init of store_return_value with e500 specific version.
1882 Set extract_return_value for e500.
1883
1884 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1885
1886 * blockframe.c (generic_call_dummy_register_unwind): Use
1887 regcache_cooked_read to catch cases in which the variable is
1888 stored in a pseudo register.
1889
1890 2002-08-22 Andrew Cagney <cagney@redhat.com>
1891
1892 * NEWS: Mention that the i960 has been made obsolete.
1893 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1894 i960-tdep.c
1895 (remote-nrom.o): Obsolete target.
1896 (remote-nindy.o, i960-tdep.o): Ditto.
1897 * remote-nrom.c: Make file obsolete.
1898 * remote-nindy.c, remote-vx960.c: Ditto.
1899 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1900 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1901 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1902 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1903 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1904 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1905 i960-*-vxworks* obsolete.
1906 * MAINTAINERS: Note that the i960 is obsolete.
1907
1908 2002-08-21 Corinna Vinschen <vinschen@redhat.com
1909
1910 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1911 detach to allow reinitialization.
1912
1913 2002-08-22 Andrew Cagney <ac131313@redhat.com>
1914
1915 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1916 attempt).
1917
1918 2002-08-22 Jim Blandy <jimb@redhat.com>
1919
1920 * coffread.c (coff_symfile_read): Don't try to read the line
1921 number table from disk if the image file doesn't have a symbol
1922 table; we'll never actually look at the info anyway, and Windows
1923 ships DLL's with bogus file offsets for the line number data.
1924
1925 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1926
1927 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1928 an e500 executable.
1929
1930 2002-08-21 Michael Snyder <msnyder@redhat.com>
1931
1932 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1933 (MSYMBOL_SIZE): Replace macro with function.
1934 (DEFAULT_MIPS_TYPE): Delete unused macro.
1935 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1936 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1937
1938 2002-08-21 Jim Blandy <jimb@redhat.com>
1939
1940 * valops.c (value_cast): Simplify and correct logic for doing a
1941 static cast from a pointer to a base class to a pointer to a
1942 derived class.
1943
1944 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1945
1946 * infcmd.c (default_print_registers_info): Replace
1947 do_registers_info.
1948 (registers_info): Use gdbarch_print_registers_info instead of
1949 DO_REGISTERS_INFO.
1950 * inferior.h (default_print_registers_info): Replace
1951 do_registers_info.
1952 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1953 (DO_REGISTERS_INFO): Change to a predicate function.
1954 * gdbarch.h, gdbarch.c: Regenerate.
1955
1956 2002-08-21 Keith Seitz <keiths@redhat.com>
1957
1958 * gdb-events.sh: Add target-changed event.
1959 * gdb-events.c: Regenerated.
1960 * gdb-events.c: Regenerated.
1961 * valops.c (value_assign): Add target-changed event notification
1962 to inlval_register, lval_memory, and lval_reg_frame_relative.
1963
1964 2002-08-21 Joel Brobecker <brobecker@gnat.com>
1965
1966 * NEWS: Add an entry regarding the improvement of the next/step
1967 operation on Alpha Tru64 multi-processor machines.
1968
1969 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1970
1971 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1972 directores.
1973 * Makefile.in: Update all _h macro definitions.
1974 * Makefile.in (install-gdbtk): Move to install section.
1975 (rdi-share/libangsd.a): Move to end of file.
1976
1977 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1978
1979 * frame.c (frame_register_unwind): When a register, set addrp to
1980 the register's byte.
1981
1982 2002-08-20 Michael Snyder <msnyder@redhat.com>
1983
1984 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1985 used locally, so move them from the target machine header to here.
1986 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1987 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1988 Make static.
1989 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1990
1991 2002-08-20 Andrew Cagney <cagney@redhat.com>
1992
1993 * NEWS: Mention that the Apollo line was made obsolete.
1994 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1995 m68*-hp-hpux* obsolete.
1996 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1997 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1998 * buildsym.c (make_blockvector): Make static.
1999 * buildsym.h (make_blockvector): Make extern declaration obsolete.
2000 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
2001 (ALLDEPFILES): Remove dstread.c.
2002 (dstread.o): Obsolete make rule.
2003 * dstread.c: Makefile obsolete.
2004 * dst.h: Ditto.
2005 * config/m68k/hp300hpux.mt: Ditto.
2006 * config/m68k/hp300hpux.mh: Ditto.
2007 * config/m68k/hp300bsd.mt: Ditto.
2008 * config/m68k/hp300bsd.mh: Ditto.
2009 * config/m68k/apollo68b.mt: Ditto.
2010 * config/m68k/apollo68v.mh: Ditto.
2011 * config/m68k/apollo68b.mh: Ditto.
2012
2013 2002-08-20 Michael Snyder <msnyder@redhat.com>
2014
2015 * mips-tdep.c (mips_in_return_stub): Make static.
2016 (mips_gdbarch_init): Set in_solib_return_trampoline.
2017 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
2018
2019 2002-08-20 Michael Snyder <msnyder@redhat.com>
2020
2021 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
2022 * gdbarch.c, gdbarch.h: Regenerate.
2023 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
2024 Add.
2025 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
2026
2027 2002-08-20 Michael Snyder <msnyder@redhat.com>
2028
2029 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
2030 (mips_gdbarch_init): Set skip_trampoline_code,
2031 in_solib_call_trampoline.
2032 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
2033 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
2034
2035 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2036
2037 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
2038
2039 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
2040 vector type for ev registers.
2041 (e500_pseudo_register_read): New function.
2042 (e500_pseudo_register_write): New function.
2043 (e500_dwarf2_reg_to_regnum): New function.
2044 (PPC_UISA_NOFP_SPRS): New macro.
2045 (PPC_EV_REGS): New macro.
2046 (PPC_GPRS_PSEUDO_REGS): New macro.
2047 (registers_e500): New register set for e500.
2048 (variants): Add e500 variant.
2049 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
2050 before setting architectural dependent variations. Initialize ev
2051 registers numbers. Add case for e500 architecture. Set the
2052 number of pseudo registers.
2053
2054 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2055
2056 * rs6000-tdep.c: Clean up comments.
2057
2058 2002-08-20 Andrew Cagney <cagney@redhat.com>
2059
2060 * h8300-tdep.c: Re-indent file.
2061
2062 2002-08-20 Jim Blandy <jimb@redhat.com>
2063
2064 * Makefile.in (LDFLAGS): Allow the configure script to establish a
2065 default for this.
2066
2067 2002-08-20 Keith Seitz <keiths@redhat.com>
2068
2069 * breakpoints.c (watch_command_1): Use internal breakpoint
2070 when setting a watchpoint_scope breakpoint.
2071
2072 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2073
2074 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
2075 (build_builtin_type_vec64i): Ditto.
2076 (build_builtin_type_vec128): Ditto.
2077 (build_builtin_type_vec128i): Ditto.
2078
2079 2002-08-19 Michael Snyder <msnyder@redhat.com>
2080
2081 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
2082 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
2083 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
2084 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
2085 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
2086 CALL_DUMMY_ADDRESS): Delete.
2087 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
2088 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
2089 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
2090 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
2091 push_return_address.
2092 (mips_register_raw_size, mips_eabi_use_struct_convention,
2093 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
2094 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
2095 mips_init_extra_frame_info, mips_eabi_push_arguments,
2096 mips_n32n64_push_arguments, mips_push_return_address,
2097 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
2098 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
2099
2100 2002-08-19 Michael Snyder <msnyder@redhat.com>
2101
2102 * mips-tdep.c (mips_frame_num_args): New function.
2103 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
2104 frame_saved_pc, frame_args_address, frame_locals_address,
2105 frame_num_args, and frame_args_skip.
2106 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
2107 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
2108 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
2109 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
2110
2111 2002-08-20 Michael Snyder <msnyder@redhat.com>
2112
2113 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
2114 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2115 * mips-tdep.c (mips_store_struct_return): New function.
2116 (mips_extract_struct_value_address): New function.
2117 (mips_gdbarch_init): Set store_struct_return and
2118 extract_struct_value_address.
2119
2120 2002-08-20 David Carlton <carlton@math.stanford.edu>
2121
2122 * dwarf2read.c (dwarf2_build_psymtabs): Check that
2123 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
2124 (read_file_scope): Check that line_header is nonzero before
2125 decoding macro information.
2126
2127 2002-08-20 Mark Kettenis <kettenis@gnu.org>
2128
2129 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
2130 flag the general-purpose registers as floating-point on targets
2131 that don't support the floating-point registers.
2132
2133 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2134
2135 * rs6000-tdep.c (altivec_register_p): Delete.
2136 (rs6000_do_altivec_registers): Delete.
2137 (rs6000_altivec_registers_info): Delete.
2138 (rs6000_do_registers_info): Delete.
2139 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
2140 (rs6000_gdbarch_init): Remove setting of do_registers_info.
2141
2142 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2143
2144 * infcmd.c (do_registers_info): Print vector registers in hex
2145 format only.
2146 (print_vector_info): Check that printing registers
2147 makes sense.
2148 (print_float_info): Ditto.
2149
2150 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2151
2152 * mips-tdep.c (mips_gdbarch_init): Update.
2153 (mips_o32_extract_return_value): Rewrite.
2154 (mips_o32_store_return_value): Rewrite.
2155 (mips_o32_xfer_return_value): New function.
2156 (mips_xfer_register): Tweak debug print message. Allow for
2157 buf_offset when dumping the value transfered.
2158
2159 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2160
2161 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2162 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2163 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2164 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2165 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2166
2167 2002-08-14 Michael Snyder <msnyder@redhat.com>
2168
2169 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2170
2171 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2172
2173 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2174 register.
2175 (P): New macro to define a register as a pseudo register.
2176 (R, R4, R8, R16, FR32, R64, R0): Updated.
2177 (struct variant): Add new fields for number of pseudo registers
2178 and number of total registers.
2179 (tot_num_registers): New macro replacing....
2180 (num_registers): ...deleted macro.
2181 (num_registers): New function.
2182 (num_pseudo_registers): New function.
2183 (variants): Update all variants to intialize new fields correctly.
2184 Postpone initialization of number of pseudo regs and real regs.
2185 (init_variants): New function.
2186 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2187 registers offsets.
2188
2189 2002-08-19 David Carlton <carlton@math.stanford.edu>
2190
2191 * valops.c (search_struct_field): Change error message to treat
2192 return value of 0 from value_static_field as meaning that field is
2193 optimized out.
2194 (value_struct_elt_for_reference): Ditto.
2195 * values.c (value_static_field): Treat an unresolved location the
2196 same as a nonexistent symbol. Fix PR gdb/635.
2197 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2198 enclosed. Fix PR gdb/574.
2199 * MAINTAINERS: Add self to Write After Approval list.
2200
2201 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2202
2203 * mips-tdep.c (mips_xfer_register): New function.
2204 (mips_n32n64_extract_return_value): Rewrite.
2205 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2206 instead of deprecated_extract_return_value.
2207
2208 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2209
2210 * rs6000-tdep.c (TDEP): Delete macro.
2211 (branch_dest): Replace use of TDEP macro with its body.
2212 (rs6000_pop_frame): Ditto.
2213 (rs6000_push_arguments): Ditto.
2214 (rs6000_skip_trampoline_code): Ditto.
2215 (rs6000_frame_saved_pc): Ditto.
2216 (rs6000_frame_chain): Ditto.
2217 (rs6000_register_name): Ditto.
2218 (rs6000_register_byte): Ditto.
2219 (rs6000_register_raw_size): Ditto.
2220 (rs6000_register_virtual_type): Ditto.
2221 (rs6000_register_convertible): Ditto.
2222 (rs6000_convert_from_func_ptr_addr): Ditto.
2223
2224 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
2225
2226 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2227 conditionally.
2228 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2229 MIPS_LINUX_JB_ELEMENT_SIZE.
2230 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2231 for MAX_REGISTER_RAW_SIZE arrays.
2232 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2233 MIPS_LINUX_JB_ELEMENT_SIZE.
2234
2235 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2236
2237 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2238
2239 2002-08-19 Aidan Skinner <aidan@velvet.net>
2240
2241 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2242 ada-valprint.c ada-tasks.c.
2243 (YYFILES): Add ada-exp.y.
2244 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2245 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2246 (ada-exp.tab.o): New target.
2247
2248 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2249
2250 * regcache.c (regcache_xfer_part): New function.
2251 (regcache_raw_read_part): New function.
2252 (regcache_raw_write_part): New function.
2253 (regcache_cooked_read_part): New function.
2254 (regcache_cooked_write_part): New function.
2255 * regcache.h (regcache_raw_read_part): Declare.
2256 (regcache_raw_write_part): Declare.
2257 (regcache_cooked_read_part): Declare.
2258 (regcache_cooked_write_part): Declare.
2259
2260 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
2261
2262 * remote.c (remote_open_1): Add async_p.
2263 (remote_async_open_1): Delete.
2264 (open_remote_target): Delete.
2265 (remote_open, extended_remote_open): Update calls to remote_open_1.
2266 (remote_async_open, extended_remote_async_open): Call
2267 remote_open_1 instead of remote_async_open_1.
2268
2269 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2270
2271 * blockframe.c: Fix a few coding standard violations.
2272
2273 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2274
2275 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2276 here from ...
2277 * config/i386/tm-i386sco5.h: ... here. File removed.
2278 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2279
2280 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
2281 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2282 (TM_FILE): Set to tm-i386.h.
2283 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2284 * config/i386/tm-i386v.h: Remove file.
2285 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2286 instead of "i386/tm-i386v.h".
2287 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2288 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2289 "i386/tm-i386v.h".
2290 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2291 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2292 "i386/tm-i386.h".
2293
2294 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2295
2296 * config/i386/nm-i386v.h: Add protection against
2297 multiple-inclusion.
2298 (i386_register_u_addr): Remove prototype.
2299 (register_u_addr): New prototype.
2300 (REGISTER_U_ADDR): Redefine accordingly.
2301 * i386v-nat.c: Improve several comments.
2302 (i386_register_u_addr): Change signature and rename to
2303 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2304 ubase variable.
2305
2306 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2307
2308 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2309 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2310 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2311 deprecated_extract_return_value.
2312 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2313 rename mips_o32o64_push_arguments.
2314 (mips_gdbarch_init): Update.
2315 (mips_extract_return_value): Delete.
2316 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2317 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2318 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2319 (mips_n32n64_extract_return_value): Clone
2320 mips_extract_return_value.
2321 (mips_store_return_value): Delete.
2322 (mips_o32_store_return_value): Clone mips_store_return_value.
2323 (mips_o64_store_return_value): Clone mips_store_return_value.
2324 (mips_eabi_store_return_value): Clone mips_store_return_value.
2325 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2326
2327 2002-08-18 Aidan Skinner <aidan@velvet.net>
2328
2329 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2330 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2331
2332 2002-08-18 Aidan Skinner <aidan@velvet.net>
2333
2334 * ada-lang.c: Run through gdb_indent.sh.
2335 * ada-lang.h: Run through gdb_indent.sh.
2336 * ada-tasks.c: Run through gdb_indent.sh.
2337 * ada-typeprint.c: Run through gdb_indent.sh.
2338 * ada-valprint.c: Run through gdb_indent.sh.
2339
2340 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2341
2342 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2343 ABI.
2344
2345 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2346
2347 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2348
2349 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2350 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2351
2352 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2353 write_register_gen instead of write_register_bytes.
2354
2355 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2356 i[3456]-*-osf1mk* configurations have been made obsolete.
2357 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2358 i[3456]86-*-osf1mk* hosts obsolete.
2359 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2360 targets obsolete.
2361 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2362 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2363 config/i386/i386m3.mt, config/i386/nm-m3.h,
2364 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2365 config/i386/i386mk.mh, config/i386/i386mk.mt,
2366 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2367 obsolete.
2368 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2369 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2370 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2371
2372 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2373
2374 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2375 (hppa_value_returned_from_stack): Declare.
2376 (hppa_extract_return_value): Declare.
2377 * config/pa/hppa.mt: New file.
2378 * configure.tgt: Recognize hppa*-*-*.
2379 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2380
2381 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2382
2383 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2384 comment.
2385
2386 2002-08-17 Mark Kettenis <kettenis@gnu.org>
2387
2388 * top.c (gdb_rl_operate_and_get_next): Make sure
2389 operate-and-get-next functions correctly even when the history
2390 list is completely filled.
2391
2392 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2393
2394 * MAINTAINERS (Target Instruction Set Architectures): Rename
2395 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2396 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2397 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2398 already listed under Host/Native.
2399
2400 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2401 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2402 mips*-*-*.
2403
2404 2002-08-17 Andrew Cagney <ac131313@redhat.com>
2405
2406 * config/ia64/ia64.mt: New file.
2407 * config/alpha/alpha.mt: New file.
2408 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2409 ia64-linux-gnu. Mention that ia64-elf is broken.
2410 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2411
2412 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2413
2414 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2415 generic_func_frame_valid instead of func_frame_valid.
2416
2417 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2418
2419 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2420 procfs appears to be broken when debugging on multi-processor
2421 machines. So enable software single stepping in order to avoid
2422 using the procfs interface to do next/step operations, using
2423 internal breakpoints instead.
2424
2425 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2426 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2427 make this pc address equal to the value it would have if the
2428 system stepping capability was used. Also set a new flag used
2429 to ensure that we don't readjust the PC one more time later.
2430
2431 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2432 address by DECR_PC_AFTER_BREAK when software single step is
2433 in use for this architecture, as this has already been taken
2434 care of in handle_inferior_event().
2435
2436 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2437
2438 * infrun.c (handle_inferior_event): Minor reformatting, to make
2439 a rather long condition expression easier to read.
2440
2441 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2442
2443 * Makefile.in (gdbtk.o): Move to end of file.
2444 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2445 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2446 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2447 (gdbtk-wrapper.o, gdbres.o): Ditto.
2448
2449 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2450
2451 * Makefile.in (copying.o): Separate out compile rule.
2452 (hpux-thread.o, procfs.o, signals.o): Ditto.
2453 (v850ice.o, z8k-tdep.o): Ditto.
2454 (tui-file.o): Move to TUI section.
2455 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2456 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2457
2458 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2459
2460 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2461 skip_trampoline_code, for better namespace-proofing.
2462
2463 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2464
2465 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2466
2467 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2468
2469 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2470
2471 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2472 signal, check whether we hit a breakpoint before checking for a
2473 single step breakpoint. Otherwise, GDB fails to notice that a
2474 breakpoint has been hit when stepping onto a breakpoint.
2475
2476 2002-08-16 Keith Seitz <keiths@redhat.com>
2477
2478 * gdb-events.sh (clear_gdb_event_hooks): New function.
2479 * gdb-events.c: Regenerate.
2480 * gdb-events.h: Regenerate.
2481
2482 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2483
2484 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2485 not_a_sw_breakpoint.
2486 * breakpoint.h (bpstat_stop_status): Add parameter names.
2487
2488 2002-08-16 Grace Sainsbury <graces@redhat.com>
2489
2490 * remote.c (remote_insert_hw_breakpoint)
2491 (remote_remove_hw_breakpoint): Fix calculation of length field
2492 for Z-packet.
2493
2494 2002-08-15 Michael Snyder <msnyder@redhat.com>
2495
2496 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2497 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2498 (supply_fpregset): Ditto.
2499
2500 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2501 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2502 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2503 (TARGET_READ_SP): Delete.
2504 (DO_REGISTERS_INFO): Delete.
2505 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2506 Delete.
2507 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2508 from macros to functions.
2509
2510 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2511 (mips_register_convertible, mips_register_convert_to_virtual,
2512 mips_register_convert_to_raw): Make static.
2513 (mips_read_sp): New function.
2514 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2515 (mips_do_registers_info): Make static.
2516 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2517 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2518 (mips_register_convert_from_type, mips_register_convert_to_type):
2519 New functions.
2520 (mips_gdbarch_init): Set up function_start_offset,
2521 register_virtual_size, pc_in_sigtramp.
2522
2523 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2524
2525 * infcmd.c (vector_info): New function.
2526 (_initialize_infcmd): Add command "info vector".
2527 (print_vector_info): New function.
2528
2529 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2530 * gdbarch.h, gdbarch.c: Regenerate.
2531
2532 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2533
2534 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2535 ``print_all''. Only print vector registers when ``print_all''.
2536
2537 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2538
2539 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2540 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2541
2542 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2543 Add `args' parameter.
2544 * gdbarch.h, gdbarch.c: Regenerate.
2545
2546 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2547
2548 * infcmd.c (float_info): Call print_float_info.
2549 (print_float_info): New function. By default, print the
2550 floating-point registers.
2551
2552 * arch-utils.h (default_print_float_info): Delete declaration.
2553 * arch-utils.c (default_print_float_info): Delete function.
2554
2555 2002-08-16 Mark Kettenis <kettenis@gnu.org>
2556
2557 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2558 out define.
2559
2560 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2561 FRAME.
2562
2563 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2564 * configure.host: Make i[3456]86-*-aix host obsolete.
2565 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2566 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2567 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2568 config/i386/xm-i386aix.h: Make files obsolete.
2569 * i386aix-nat.c: Make file obsolete.
2570 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2571 (i386aix-nat.o): Make target obsolete.
2572
2573 * config/i386/nm-gnu.h: Removed.
2574 * config/i386/nm-i386gnu.h: New file.
2575 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2576 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2577 Moved here from ...
2578 * config/i386/tm-i386gnu.h: ... here. Removed.
2579 * config/i386/xm-i386gnu.h: Removed.
2580 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2581 (NAT_FILE): Set to nm-i386gnu.h.
2582 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2583 * i386-tdep.c: New file.
2584 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2585 (i386gnu-tdep.o): Specify dependencies.
2586
2587 2002-08-15 Mark Kettenis <kettenis@gnu.org>
2588
2589 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2590 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2591 Adjust a few comments to reflect reality a bit closer.
2592 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2593 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2594 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2595 target_insert_watchpoint, target_remove_watchpoint):
2596 Move defines to ...
2597 * config/i386/nm-i386sco5.h: ... here.
2598 (kernel_u_size): Add prototype. Improve a few comments and add
2599 protection against multiple inclusion.
2600
2601 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2602 out define.
2603
2604 * uw-thread.c (SP_ARG0): Define if not already defined.
2605 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2606
2607 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2608
2609 * config/i386/tm-i386.h: Don't include "regcache.h".
2610
2611 * i387-tdep.h (i387_print_float_info): New prototype.
2612 * i387-tdep.c (print_i387_value, print_i387_ext,
2613 print_i387_status_word, print_i387_control_word): Add `struct
2614 ui_file *' argument and use it for output.
2615 (i387_print_float_info): Renamed from i387_float_info. Add
2616 `struct gdbarch *' and `struct ui_file *' arguments and use the
2617 latter for output.
2618 * i386-tdep.c: Include "i387-tdep.h".
2619 (i386_gdbarch_init): Set print_float_info.
2620 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2621 (FLOAT_INFO): Remove define.
2622
2623 2002-08-13 Michael Snyder <msnyder@redhat.com>
2624
2625 * mips-tdep.c (mips_push_arguments): Rename to
2626 mips_eabi_push_arguments, and tune for EABI.
2627 (MIPS_REGS_HAVE_HOME_P): Delete.
2628 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2629 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2630 Delete references to mips_regs_have_home_p.
2631
2632 2002-08-14 Keith Seitz <keiths@redhat.com>
2633
2634 * Makefile.in (install-gdbtk): Create insight plugin directory.
2635 Install plugins.tcl file.
2636
2637 2002-08-14 Keith Seitz <keiths@redhat.com>
2638
2639 * configure.in: Move SUBDIRS to near top of the file so that
2640 --enable options may add things to it.
2641 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2642 * configure: Regenerate.
2643
2644 2002-08-13 Michael Snyder <msnyder@redhat.com>
2645
2646 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2647 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2648 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2649
2650 2002-08-13 Andrew Cagney <ac131313@redhat.com>
2651
2652 * vax-tdep.c (vax_get_saved_register): Delete function.
2653 (vax_gdbarch_init): Update.
2654 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2655 (ns32k_gdbarch_init): Update.
2656 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2657 (alpha_gdbarch_init): Update.
2658
2659 2002-08-13 Andrew Cagney <cagney@redhat.com>
2660
2661 * regcache.c (init_regcache_descr): Overallocate the
2662 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2663 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2664 nr_raw_registers.
2665 (set_register_cached): Add range checking assertions. Use
2666 current_regcache.
2667
2668 2002-08-13 Mark Kettenis <kettenis@gnu.org>
2669
2670 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2671 numbers for MMX registers.
2672
2673 2002-08-13 Andrew Cagney <cagney@redhat.com>
2674
2675 * i386-tdep.c (i386_gdbarch_init): Use
2676 generic_unwind_get_saved_register.
2677
2678 2002-08-13 Kevin Buettner <kevinb@redhat.com>
2679
2680 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2681 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2682 target vector.
2683 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2684 Delete. Add comment regarding this now-deleted target method.
2685
2686 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2687
2688 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2689 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2690 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2691 real PC and the page number (if it's within the memory bank window).
2692 (m68hc11_pseudo_register_write): Likewise when saving.
2693 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2694 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2695 (m68hc11_register_raw_size): And use 32-bit for it.
2696 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2697 16K memory bank is used by the prog; also use the virtual pc.
2698
2699 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2700
2701 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2702 (m68hc11_gdbarch_init): Install it in gdbarch.
2703 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2704 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2705 (MSYMBOL_SIZE): New for documentation.
2706 (insn_return_kind): Enum to specify how a function returns.
2707 (frame_extra_info): Cleanup and record the return mode.
2708 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2709 register in address computation.
2710 (m68hc11_get_return_insn): New to obtain the return instruction used
2711 by the function.
2712 (m68hc11_frame_init_saved_regs): Take into account the return
2713 instruction used by the function for far and interrupt functions.
2714 (m68hc11_init_extra_frame_info): Take into account page register.
2715 (m68hc11_frame_args_address): Adjust according to the return mode.
2716 (show_regs): Print page register only when it's used.
2717
2718 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2719
2720 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2721 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2722 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2723 registers.
2724 (m68hc11_register_raw_size): Likewise.
2725
2726 2002-08-13 Andrew Cagney <cagney@redhat.com>
2727
2728 * i386-tdep.c (i386_register_name): Handle mmx registers.
2729 (mmx_regnum_p): New function.
2730 (i386_mmx_names): New array.
2731 (mmx_num_regs): New variable.
2732 (i386_pseudo_register_read): New function.
2733 (i386_pseudo_register_write): New function.
2734 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2735
2736 * regcache.c (regcache_raw_read_unsigned): New function.
2737 (regcache_raw_read_signed): New function.
2738 * regcache.h (regcache_raw_read_unsigned): Declare.
2739 (regcache_raw_read_signed): Declare.
2740
2741 2002-08-13 Andrew Cagney <cagney@redhat.com>
2742
2743 * regcache.c (regcache_raw_read_as_address): Delete function.
2744 (regcache_cooked_read_signed): New function.
2745 (regcache_cooked_read_unsigned): New function.
2746 * regcache.h (regcache_cooked_read_signed): Declare.
2747 (regcache_cooked_read_unsigned): Declare.
2748 (regcache_raw_read_as_address): Delete declaration.
2749
2750 * blockframe.c (generic_read_register_dummy): Use
2751 regcache_cooked_read_unsigned.
2752 * i386-tdep.c (i386_extract_struct_value_address): Use
2753 regcache_cooked_read_unsigned.
2754
2755 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2756
2757 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2758 double sizes according to ELF ABI flags.
2759 (gdbarch_tdep): Record elf_flags.
2760
2761 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2762
2763 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2764 (m6812_prolog): They can appear in 68HC12 function prologue.
2765 (m68hc11_frame_chain): Cleanup.
2766
2767 2002-08-12 Andrew Cagney <cagney@redhat.com>
2768
2769 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2770 declarations.
2771 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2772 (i386_linux_register_raw_size): Delete function.
2773 (i386_linux_init_abi): Update.
2774 * i386-tdep.c (i386_register_raw_size): Delete function.
2775 (i386_register_byte): Delete function.
2776 (i386_gdbarch_init): Update.
2777 (i386_register_size): Delete array.
2778 (i386_register_offset): Delete array.
2779
2780 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2781 (REGISTER_RAW_SIZE): Delete macro.
2782 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2783 (REGISTER_BYTE): Delete macro.
2784
2785 2002-08-11 Aidan Skinner <aidan@velvet.net>
2786
2787 * ada-lang.c (ada_lookup_partial_symbol)
2788 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2789 prototype names so that grep ^func works properly.
2790
2791 * ada-lang.c (ada_array_element_type)
2792 (ada_lookup_partial_symbol): Fix typos in parameter list.
2793
2794 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2795 Fix prototype names so that grep ^func works properly.
2796
2797 2002-08-10 Andrew Cagney <cagney@redhat.com>
2798 Elena Zannoni <ezannoni@redhat.com>
2799 Martin M. Hunt <hunt@redhat.com>
2800
2801 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2802 (build_builtin_type_vec128i): Set the vector bit.
2803 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2804 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2805 (build_builtin_type_vec64): New function.
2806 (build_builtin_type_vec64i): New function.
2807 (build_gdbtypes): Initialize builtin_type_vec64 and
2808 builtin_type_vec64i.
2809
2810 2002-08-09 Andrew Cagney <cagney@redhat.com>
2811
2812 * regcache.c (regcache_dump): Compare the register offset
2813 with REGISTER_BYTE.
2814 * arch-utils.c (generic_register_byte): New function.
2815 * arch-utils.h (generic_register_byte): Declare.
2816 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2817 * gdbarch.h, gdbarch.c: Regenerate.
2818
2819 2002-08-09 Andrew Cagney <cagney@redhat.com>
2820
2821 * regcache.c: Include "gdbcmd.h"
2822 (_initialize_regcache): Add commands "maintenance print
2823 registers", "maintenance print raw-registers" and "maintenance
2824 print cooked-registers".
2825 (enum regcache_dump_what): Define.
2826 (dump_endian_bytes): New function.
2827 (regcache_dump): New function.
2828 (regcache_print): New function.
2829 (maintenance_print_registers): New function.
2830 (maintenance_print_raw_registers): New function.
2831 (maintenance_print_cooked_registers): New function.
2832 * Makefile.in (regcache.o): Update dependencies.
2833
2834 2002-08-09 Michael Snyder <msnyder@redhat.com>
2835
2836 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2837 (mips_push_arguments): Correct some comments. Use paddr_nz
2838 for printing addresses in debug output. Replace static
2839 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2840 (mips_n32n64_push_arguments): New function, cloned from
2841 mips_push_arguments and tuned for the n32/n64 ABI.
2842 (mips_push_register): Buffer needs dynamic allocation.
2843 (mips_print_register): Ditto.
2844 (do_gp_register_row): Ditto.
2845 (mips_store_return_value): Ditto.
2846 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2847
2848 2002-08-09 Don Howard <dhoward@redhat.com>
2849
2850 * memattr.c (mem_info_command): Print special case of upper bound
2851 as max CORE_ADDR + 1.
2852
2853 2002-08-08 Michael Snyder <msnyder@redhat.com>
2854
2855 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2856 returns structs by ref if they're too big to fit in two registers.
2857
2858 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2859
2860 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2861 saved regs value.
2862 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2863 mips_find_saved_regs().
2864 (mips_pop_frame): Likewise.
2865
2866 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2867
2868 * blockframe.c (frame_saved_regs_register_unwind): Revise
2869 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2870 frames are in use.
2871
2872 2002-08-09 Grace Sainsbury <graces@redhat.com>
2873
2874 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2875 T-packets; the 'a' is not taken as a register number.
2876 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2877 (remote_stopped_data_address): New functions; add to target
2878 vector.
2879 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2880 prototypes to match other implementations of this
2881 function. replace integer argument with pointer -- the length
2882 field in the Z-packet is the length of what is pointed to or 1 if
2883 pointer is null. Add to target vector.
2884 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2885 target vector.
2886
2887 From Mark Salter:
2888 * remote.c (remote_wait): Add support to extract optional
2889 watchpoint information from T-packet. Ignore unrecognized
2890 optional info in T-packet.
2891 (remote_async_wait): Ditto.
2892
2893 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
2894
2895 * cli/cli-dump.c: Change fopen modes to use binary open modes
2896 as defined in include/fopen-bin.h throughout.
2897
2898 2002-08-08 Michael Snyder <msnyder@redhat.com>
2899
2900 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2901
2902 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2903
2904 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2905 assertion failure by returning early after a warning.
2906
2907 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2908
2909 * mips-tdep.c (mips_find_saved_regs): Make static.
2910 (mips_frame_init_saved_regs): New function.
2911 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2912 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2913 (mips_find_saved_regs): Delete declaration.
2914
2915 2002-08-08 Grace Sainsbury <graces@redhat.com>
2916
2917 * remote.c (remote_wait, remote_async_wait): Change
2918 thread_num from int to ULONGEST.
2919 (unpack_varlen_hex): Change result parameter from
2920 int * to ULONGEST *.
2921
2922 2002-08-08 Andrew Cagney <ac131313@redhat.com>
2923
2924 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2925 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2926 powerpc*-*-*.
2927 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2928
2929 2002-08-08 Andrew Cagney <cagney@redhat.com>
2930
2931 * gcore.c (override_derive_stack_segment): Delete variable.
2932 (preempt_derive_stack_segment): Delete function.
2933 (derive_stack_segment): Delete function.
2934 (default_derive_stack_segment): Renamed to derive_stack_segment.
2935 (override_derive_heap_segment): Delete variable.
2936 (preempt_derive_heap_segment): Delete function.
2937 (derive_heap_segment): Delete function.
2938 (default_derive_heap_segment): Rename to derive_heap_segment.
2939
2940 2002-08-06 Michael Snyder <msnyder@redhat.com>
2941
2942 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2943 * mips-tdep.c (mips_EABI_use_struct_convention,
2944 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2945 New functions. (mips_use_struct_convention): Delete.
2946 (mips_gdbarch_init): set use_gdbarch_convention.
2947
2948 2002-08-06 Michael Snyder <msnyder@redhat.com>
2949
2950 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2951 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2952 mips_o32_reg_struct_has_addr): New functions.
2953 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2954
2955 2002-08-07 Andrew Cagney <ac131313@redhat.com>
2956
2957 * regcache.c (pseudo_register): Delete function.
2958 (fetch_register): Delete function.
2959 (store_register): Delete function.
2960 (regcache_raw_read, legacy_read_register_gen): Use
2961 target_fetch_registers instead of fetch_register.
2962 (legacy_write_register_gen, regcache_raw_write): Use
2963 target_store_register instead of store_register.
2964 (write_register_bytes): Ditto.
2965
2966 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2967 (STORE_PSEUDO_REGISTER): Delete.
2968 * gdbarch.h, gdbarch.c: Regenerate.
2969
2970 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
2971
2972 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2973 write dump file binary.
2974
2975 2002-08-05 Michael Snyder <msnyder@redhat.com>
2976
2977 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2978 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2979 (mips_gdbarch_init): Set N32 target to be mips64.
2980
2981 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2982
2983 * frame.c (find_saved_register): Break out of loop once saved
2984 register address is found. Don't mention sparc in loop comment
2985 anymore.
2986
2987 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2988
2989 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2990 mips_default_saved_regsize to 8.
2991
2992 2002-08-06 Andrew Cagney <ac131313@redhat.com>
2993
2994 * gcore.c: Do not include <sys/procfs.h>.
2995 * Makefile.in (gcore.o): Update dependencies.
2996
2997 2002-08-06 Andrew Cagney <cagney@redhat.com>
2998
2999 * configure.tgt: Make arc-*-* obsolete.
3000 * NEWS: Mention that arc-*-* has been identifed as obsolete.
3001 * MAINTAINERS: Make arc-elf obsolete.
3002 * arc-tdep.c: Make file obsolete.
3003 * config/arc/arc.mt: Ditto.
3004 * config/arc/tm-arc.h: Ditto.
3005
3006 2002-08-05 Theodore A. Roth <troth@verinet.com>
3007
3008 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
3009
3010 2002-08-05 Andrew Cagney <ac131313@redhat.com>
3011
3012 * mcore-tdep.c (mcore_gdbarch_init): Use
3013 generic_unwind_get_saved_register instead of
3014 generic_get_saved_register.
3015 * v850-tdep.c (v850_gdbarch_init): Ditto.
3016 * frv-tdep.c (frv_gdbarch_init): Ditto.
3017 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3018 * s390-tdep.c (s390_gdbarch_init): Ditto.
3019 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3020 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
3021 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
3022
3023 2002-08-05 Joel Brobecker <brobecker@gnat.com>
3024
3025 * objfiles.h: Add missing #include "symfile.h"
3026
3027 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
3028
3029 2002-08-04 Andrew Cagney <ac131313@redhat.com>
3030
3031 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
3032 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
3033 of FIELD_BITSIZE.
3034
3035 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
3036
3037 * NEWS: Cleanup and nitpick.
3038
3039 2002-08-03 Andrew Cagney <ac131313@redhat.com>
3040
3041 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
3042
3043 2002-08-03 Andrew Cagney <ac131313@redhat.com>
3044
3045 * Makefile.in (gdbtk-bp.o): Update dependencies.
3046 (gdbtk-register.o): Ditto.
3047 (gdbtk-varobj.o): Ditto.
3048
3049 2002-08-03 Andrew Cagney <cagney@redhat.com>
3050
3051 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
3052 m68hc11_fetch_pseudo_register.
3053 (m68hc11_pseudo_register_write): Replace
3054 m68hc11_store_pseudo_register.
3055 (m68hc11_gdbarch_init): Update.
3056
3057 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
3058
3059 * gdbarch.sh: Include "gdb_string.h".
3060 * gdbarch.c: Regenerate.
3061
3062 * regcache.c: Include "gdb_string.h".
3063 * ax-general.c: Ditto.
3064 * varobj.c: Ditto.
3065 * std-regs.c: Ditto.
3066 * fbsd-proc.c: Ditto.
3067 * thread.c: Ditto.
3068
3069 * Makefile.in (regcache.o): Update dependencies.
3070 (thread.o, gdbarch.o): Ditto.
3071 (ax-general.o, gdbarch.o): Ditto.
3072 (varobj.o, std-regs.o): Ditto.
3073 (fbsd-proc.o): Specify dependencies.
3074
3075 2002-08-02 Andrew Cagney <cagney@redhat.com>
3076
3077 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
3078 regnum.
3079 (regcache_cooked_write): Ditto.
3080
3081 2002-08-02 Andrew Cagney <ac131313@redhat.com>
3082
3083 * regcache.c (regcache_cooked_read): New function.
3084 (regcache_cooked_write): New function.
3085 (read_register_gen): Rewrite using regcache_cooked_read.
3086 (write_register_gen): Rewrite using regcache_cooked_write.
3087
3088 * regcache.h (regcache_cooked_read, regcache_cooked_write):
3089 Declare.
3090
3091 2002-08-02 Andrew Cagney <cagney@redhat.com>
3092
3093 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
3094 Replace the architecture methods register_read and register_write.
3095 * gdbarch.h, gdbarch.c: Regenerate.
3096 * regcache.c (init_regcache_descr): Update.
3097 (read_register_gen): Update.
3098 (write_register_gen): Update.
3099 (supply_register): Update comment.
3100
3101 * sh-tdep.c (sh_gdbarch_init): Update.
3102 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
3103 `regcache' and `gdbarch' parameters. Make `buffer' a void
3104 pointer. Update code.
3105 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
3106 `regcache' and `gdbarch' parameters. Make `buffer' a constant
3107 void pointer. Update code.
3108 (sh64_register_write): Delete.
3109 (sh4_register_read): Delete.
3110 (sh64_register_read): Delete.
3111 (sh4_register_write): Delete.
3112 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
3113 void pointer, `to' parameter a void pointer.
3114 (sh_sh64_register_convert_to_raw): Ditto.
3115
3116 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3117
3118 * mips-tdep.c (mips_register_virtual_type): Use architecture
3119 invariant return values.
3120
3121 2002-08-01 Andrew Cagney <cagney@redhat.com>
3122
3123 * linux-proc.c: Include "gdb_string.h".
3124 * Makefile.in (linux-proc.o): Update dependency list.
3125
3126 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3127
3128 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
3129 comment.
3130
3131 2002-08-01 Grace Sainsbury <graces@redhat.com>
3132
3133 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3134 to_insert_watchpoint, to_remove_watchpoint,
3135 to_stopped_by_watchpoint, to_stopped_data_address,
3136 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
3137 target vecctor. Define their corresponding macros so they call
3138 them.
3139
3140 * target.c: Add default and debug versions of for
3141 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3142 to_insert_watchpoint, to_remove_watchpoint,
3143 to_stopped_by_watchpoint, to_stopped_data_address,
3144 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
3145
3146 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3147
3148 * mips-tdep.c (mips_register_virtual_type): New function.
3149 (mips_gdbarch_init): Register mips_register_virtual_type()
3150 with gdbarch machinery.
3151 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3152 this file instead of tm-bigmips.h.
3153 (MIPS_REGSIZE): Delete this macro.
3154 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
3155 multiarch version in mips-tdep.c will be found.
3156
3157 2002-08-01 Andrew Cagney <cagney@redhat.com>
3158
3159 * NEWS: Menion that CHILL has been made obsolete.
3160
3161 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
3162 * stabsread.c (read_range_type): Ditto.
3163 * gdbtypes.h: Ditto.
3164 * language.c (binop_type_check): Ditto.
3165 (binop_result_type): Ditto.
3166 (integral_type): Ditto.
3167 (character_type): Ditto.
3168 (string_type): Ditto.
3169 (boolean_type): Ditto.
3170 (structured_type): Ditto.
3171 (lang_bool_type): Ditto.
3172 (binop_type_check): Ditto.
3173 * language.h (_LANG_chill): Ditto.
3174 * dwarfread.c (set_cu_language): Ditto.
3175 * dwarfread.c (CHILL_PRODUCER): Ditto.
3176 * dwarfread.c (handle_producer): Ditto.
3177 * expression.h (enum exp_opcode): Ditto.
3178 * eval.c: Ditto for comments.
3179 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3180 * expprint.c (print_subexp): Ditto.
3181 (print_subexp): Ditto.
3182 * valops.c (value_cast): Ditto.
3183 (search_struct_field): Ditto.
3184 * value.h (COERCE_VARYING_ARRAY): Ditto.
3185 * symfile.c (init_filename_language_table): Ditto.
3186 (add_psymbol_with_dem_name_to_list): Ditto.
3187 * valarith.c (value_binop): Ditto.
3188 (value_neg): Ditto.
3189 * valops.c (value_slice): Ditto.
3190 * symtab.h (union language_specific): Ditto.
3191 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3192 (SYMBOL_DEMANGLED_NAME): Ditto.
3193 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3194 * defs.h (enum language): Ditto.
3195 * symtab.c (got_symtab): Ditto.
3196 * utils.c (fprintf_symbol_filtered): Ditto.
3197
3198 * ch-typeprint.c: Make file obsolete.
3199 * ch-valprint.c: Make file obsolete.
3200 * ch-lang.h: Make file obsolete.
3201 * ch-exp.c: Make file obsolete.
3202 * ch-lang.c: Make file obsolete.
3203
3204 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3205 CHILL_LIB.
3206 (TARGET_FLAGS_TO_PASS): Ditto.
3207 (CHILLFLAGS): Obsolete.
3208 (CHILL): Obsolete.
3209 (CHILL_FOR_TARGET): Obsolete.
3210 (CHILL_LIB): Obsolete.
3211 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3212 ch-valprint.c.
3213 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3214 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3215 ch-lang.o.
3216 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3217 targets.
3218
3219 2002-07-31 Joel Brobecker <brobecker@gnat.com>
3220
3221 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3222 This does not change anything at the moment, but will be helpful
3223 later when full Ada support is integrated.
3224
3225 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3226
3227 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3228 help message.
3229
3230 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3231
3232 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3233 and save it in a local variable. Use variable in later test.
3234
3235 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3236
3237 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3238 test. (Thanks to Daniel Jacobowitz.)
3239
3240 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3241
3242 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3243 (mips_abi_strings): Add "n64".
3244 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3245
3246 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3247
3248 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3249 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3250
3251 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3252
3253 * utils.c (host_pointer_to_address, address_to_host_pointer):
3254 Use gdb_assert() instead of explicit call to internal_error().
3255
3256 2002-07-30 Kevin Buettner <kevinb@redhat.com>
3257
3258 * Makefile.in (rs6000-nat.o): Update dependencies.
3259
3260 From Nicholas Duffek:
3261 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3262 (aix-thread.o): New rule.
3263 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3264 * config/powerpc/aix432.mh: New file.
3265
3266 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3267
3268 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3269 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3270 (fetch_core_registers, ppc_linux_supply_gregset)
3271 (ppc_linux_supply_fpregset): New functions.
3272 (ppc_linux_regset_core_fns): New.
3273 (_initialize_ppc_linux_tdep): Call add_core_fns.
3274 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3275 and ppc_linux_supply_gregset.
3276 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3277 (supply_fpregset): Call ppc_linux_supply_fpregset.
3278 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3279 corelow.o.
3280 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3281
3282 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3283
3284 * symtab.c (lookup_symbol): Demangle before lowercasing.
3285
3286 2002-07-30 Andrew Cagney <ac131313@redhat.com>
3287
3288 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3289 declaration.
3290 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3291 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3292 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3293 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3294 "gdb_string.h".
3295 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3296 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3297 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3298 (avr-tdep.o, mon960-rom.o): Ditto.
3299 (aout_stabs_gnu_h): Define.
3300 (symtab_h): Remove $(gdb_obstack_h).
3301
3302 2002-07-30 Jim Blandy <jimb@redhat.com>
3303
3304 Patch from David Carlton <carlton@math.stanford.edu>:
3305 * gdbinit.in: Move the `dir' commands that add GDB's own source
3306 directory to the search path to the end, so that the `gdb' source
3307 directory will be searched first.
3308
3309 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3310
3311 * gdb_obstack.h: New file.
3312 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3313 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3314 * objfiles.h: Include "gdb_obstack.h".
3315 * Makefile.in (gdb_obstack_h): Define.
3316 (symtab_h): Add $(gdb_obstack_h).
3317 (objfiles_h): Add $(gdb_obstack_h).
3318
3319 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3320 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3321 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3322 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3323 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3324 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3325 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3326 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3327
3328 * Makefile.in (bcache.o): Update dependencies.
3329 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3330 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3331 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3332 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3333 (stabsread.o, symfile.o, symmisc.o): Ditto.
3334 (symtab.o, typeprint.o, macroexp.o): Ditto.
3335 (macrotab.o, mdebugread.o): Ditto.
3336 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3337 (coff_ecoff_h, aout_aout64_h): Define.
3338 (aout_stabs_gnu_h, libaout_h): Define.
3339
3340 2002-07-29 Andrew Cagney <cagney@redhat.com>
3341
3342 * regcache.c (struct regcache_descr): Rename nr_registers to
3343 nr_cooked_registers. Revise comments describing the structure
3344 member fields.
3345 (init_regcache_descr): Update.
3346 (init_legacy_regcache_descr): Update.
3347 (read_register_gen, write_register_gen): When a cooked register in
3348 the raw register range, directly access the value from the raw
3349 register cache.
3350
3351 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3352
3353 * z8k-tdep.c: Do not include "obstack.h".
3354 * h8300-tdep.c, h8500-tdep.c: Ditto.
3355 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3356 * valprint.c, v850-tdep.c: Ditto.
3357 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3358 * mn10200-tdep.c: Ditto.
3359
3360 * Makefile.in (z8k-tdep.o): Update dependencies.
3361 (m68hc11-tdep.o, valprint.o): Ditto.
3362 (v850-tdep.o, d10v-tdep.o): Ditto.
3363 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3364 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3365 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3366 (sh_opc_h, gdb_sim_sh_h): Define.
3367 (elf_sh_h, elf_bfd_h): Define.
3368 (opcode_m68hc11_h): Define.
3369 (OPCODES_SRC, OPCODES_DIR): define.
3370 (OPCODES): Use $(OPCODES_DIR).
3371 (gdb_sim_d10v_h): Rename sim_d10v_h.
3372 (gdb_sim_arm_h): Rename sim_arm_h.
3373
3374 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3375
3376 * utils.c (host_pointer_to_address, address_to_host_pointer):
3377 Change internal_error() message to indicate function responsible
3378 for the error.
3379
3380 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3381
3382 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3383 calls to local_hex_string_custom().
3384
3385 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3386
3387 * irix5-nat.c: Move IRIX shared library support from here...
3388 * solib-irix.c: ...to here. Revised substantially to work with
3389 generic solib framework.
3390
3391 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3392 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3393 * mips-irix-tdep.c: New file.
3394
3395 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3396 (mips-irix-tdep.o, solib-irix.o): New rules.
3397 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3398 solib-irix.o.
3399 * config/mips/irix6.mt (TDEPFILES): Likewise.
3400 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3401
3402 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3403
3404 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3405 disabled (via ``#if 0'') includes.
3406
3407 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3408
3409 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3410 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3411 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3412 Add support for the fpscr register.
3413 * rs6000-nat.c (regmap, fetch_inferior_registers)
3414 (store_inferior_registers, fetch_core_registers): Likewise.
3415
3416 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3417
3418 * rs6000-nat.c (language.h): Include.
3419 (special_regs): Delete this array.
3420 (regmap): New function.
3421 (fetch_register, store_register): Use regmap() to map gdb
3422 register numbers to ptrace register numbers. Also, use
3423 outputs from regmap() to make decisions regarding type of
3424 ptrace() call to make. In particular, don't compare against
3425 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3426 (fetch_inferior_registers, store_inferior_registers): Where
3427 possible, obtain register numbers from tdep struct. Don't
3428 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3429 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3430 (LAST_UISA_SP_REGNUM): Delete.
3431
3432 2002-07-25 Kevin Buettner <kevinb@redhat.com>
3433
3434 * rs6000-nat.c (ppc-tdep.h): Include.
3435 (fetch_registers, store_register, fetch_core_registers): Don't
3436 access registers[] directly. Instead, use supply_register() or
3437 regcache_collect() as appropriate.
3438 (find_toc_address): Format hex address with local_hex_string().
3439
3440 2002-07-25 Andrew Cagney <ac131313@redhat.com>
3441
3442 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3443 bfd/elf32-frv.c.
3444
3445 2002-07-24 Tom Tromey <tromey@redhat.com>
3446
3447 * jv-exp.y: Marked all strings with _().
3448 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3449 internal_error.
3450 (MethodInvocation, CastExpression, parse_number, yyerror,
3451 java_type_from_name, push_expression_name, yylex): Typo fixes.
3452
3453 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
3454
3455 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3456 (tee_file_flush, tee_file_write, tee_file_fputs)
3457 (tee_file_isatty): New.
3458 * ui-file.h (tee_file_new): Add prototype.
3459
3460 2002-07-24 Aidan Skinner <aidan@velvet.net>
3461
3462 * ada-lang.c: Change k&r style function definitions to prototyped
3463 form.
3464 * ada-typeprint.c: Change k&r style function definitions to prototyped
3465 form.
3466 * ada-valprint.c: Change k&r style function definitions to prototyped
3467 form.
3468
3469 2002-07-24 Andrew Cagney <cagney@redhat.com>
3470
3471 * README: Remove reference to remote-bug.
3472 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3473 remote-bug.c.
3474 (m88k-nat.o): Delete rule.
3475 (m88k-tdep.o): Delete rule.
3476 (remote-bug.o): Delete rule.
3477 * MAINTAINERS: Mark as obsolete.
3478 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3479 * m88k-tdep.c: Make file obsolete.
3480 * config/m88k/m88k.mh: Ditto.
3481 * config/m88k/delta88v4.mh: Ditto.
3482 * config/m88k/delta88v4.mt: Ditto.
3483 * config/m88k/delta88.mt: Ditto.
3484 * config/m88k/delta88.mh: Ditto.
3485 * remote-bug.c: Ditto.
3486 * config/m88k/tm-delta88.h: Ditto.
3487 * config/m88k/nm-delta88v4.h: Ditto.
3488 * config/m88k/xm-delta88.h: Ditto.
3489 * config/m88k/xm-dgux.h: Ditto.
3490 * config/m88k/tm-m88k.h: Ditto.
3491 * config/m88k/nm-m88k.h: Ditto.
3492 * config/m88k/tm-delta88v4.h: Ditto.
3493 * m88k-nat.c: Ditto.
3494 * cxux-nat.c: Ditto.
3495 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3496 and m88*-*-* obsolete.
3497 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3498 m88*-*-* obsolete.
3499
3500 2002-07-24 Andrew Cagney <cagney@redhat.com>
3501
3502 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3503 constant. Same for local pointer variables.
3504 (extract_signed_integer): Ditto.
3505 * defs.h (extract_unsigned_integer): Update.
3506 (extract_signed_integer): Update.
3507
3508 2002-07-24 Andrew Cagney <cagney@redhat.com>
3509
3510 * regcache.c (regcache_raw_write): Change buf parameter to a
3511 constant void pointer.
3512 (regcache_raw_read): Change buf parameter to a void pointer.
3513 (legacy_write_register_gen): Change myaddr parameter a constant
3514 void pointer.
3515 (supply_register): Change val parameter to a const void pointer.
3516 * regcache.h (regcache_raw_write): Update declaration.
3517 (regcache_raw_read): Update declaration.
3518 (supply_register): Update declaration.
3519
3520 2002-07-24 Tom Tromey <tromey@redhat.com>
3521
3522 * defs.h (gdb_readline_wrapper): Declare.
3523 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3524 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3525 * top.c (gdb_readline_wrapper): New function.
3526 (command_line_input): Use it.
3527
3528 2002-07-24 Andrew Cagney <cagney@redhat.com>
3529
3530 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3531 regcache_read and regcache_write.
3532 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3533 * regcache.c: Update.
3534 * sh-tdep.c (sh64_push_arguments): Update comment.
3535 (sh_pseudo_register_read): Update.
3536 (sh_pseudo_register_write): Update.
3537 (sh4_register_read): Update.
3538 (sh4_register_write): Update.
3539 (sh64_pseudo_register_read): Update.
3540 (sh64_pseudo_register_write): Update.
3541 (sh64_register_read): Update.
3542 (sh64_register_write): Update.
3543 * i386-tdep.c (i386_extract_return_value): Update.
3544 (i386_extract_struct_value_address): Update.
3545 (i386_extract_return_value): Update.
3546 * blockframe.c (generic_read_register_dummy): Update.
3547 (generic_call_dummy_register_unwind): Update
3548 * infrun.c (write_inferior_status_register): Update.
3549
3550 2002-07-23 Jim Blandy <jimb@redhat.com>
3551
3552 * parser-defs.h (expression_context_pc): Make this extern.
3553 (Thanks to Michael Snyder.)
3554
3555 2002-07-23 Andrew Cagney <ac131313@redhat.com>
3556
3557 GDB 5.2.1 released from 5.2 branch.
3558 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3559 * README: Update to mention 5.2.1.
3560
3561 2002-07-23 Mark Salter <msalter@redhat.com>
3562
3563 * remote.c (remote_read_bytes): Fix check for error.
3564
3565 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3566
3567 * aix-thread.c (language.h): Include.
3568 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3569 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3570 Print newlines at end of debug messages.
3571 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3572 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3573
3574 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3575
3576 * aix-thread.c (ppc-tdep.h): Include.
3577 (special_register_p): New function.
3578 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3579 (store_regs_user_thread): Use register number information from
3580 gdbarch_tdep struct instead of hardcoded offsets relative to
3581 FIRST_UISA_SP_REGNUM.
3582 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3583 special_register_p() instead of using FPLAST_REGNUM and
3584 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3585 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3586 will be MQ's register number.
3587
3588 2002-07-22 Michael Snyder <msnyder@redhat.com>
3589
3590 * aix-thread.c (ops): Rename to aix_thread_ops.
3591 (base_ops): Rename to base_target.
3592 (ops_attach): Rename to aix_thread_attach.
3593 (ops_detach): Rename to aix_thread_detach.
3594 (ops_resume): Rename to aix_thread_detach.
3595 (ops_wait): Rename to aix_thread_wait.
3596 (ops_kill): Rename to aix_thread_kill.
3597 (init_ops): Rename to init_aix_thread_ops.
3598 (ops_fetch_register): Rename to aix_thread_fetch_register.
3599 (ops_store_register): Rename to aix_thread_store_register.
3600 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3601 (ops_thread_alive): Rename to aix_thread_thread_alive.
3602 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3603 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3604 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3605 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3606 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3607 (store_regs_lib): Rename to store_regs_user_thread.
3608 (store_regs_kern): Rename to store_regs_kernel_thread.
3609
3610 2002-07-22 Michael Snyder <msnyder@redhat.com>
3611
3612 * aix-thread.c (ops_prepare_to_store): Eliminate.
3613 (init_ops): Don't initialize ops.prepare_to_store.
3614 (store_regs_kern): Pre-fetch register buffers from child,
3615 because some registers may not be in the cache. Copy
3616 regs from register cache only if they are cached.
3617 (store_regs_lib): Copy regs from register cache only
3618 if they are cached.
3619 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3620 fill_gprs64): Ditto.
3621
3622 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3623
3624 * aix-thread.c (gdb_assert.h): Include.
3625 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3626 register sizes (from register cache) match size of buffer holding
3627 register data.
3628 (fill_sprs32): Change parameter types to match those in the ptrace()
3629 buffer.
3630 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3631 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3632
3633 2002-07-22 Michael Snyder <msnyder@redhat.com>
3634
3635 * aix-thread.c (supply_sprs64): Cosmetic change.
3636 (supply_sprs32): Cosmetic change.
3637 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3638 (fill_sprs64): Use regcache_collect instead of read_register.
3639 (store_regs_lib): Use regcache_collect instead of
3640 read_register. Use fill_sprs32 instead of fill_sprs64,
3641 if debugging a 32-bit architecture.
3642 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3643 out of the register cache, instead of passing a pointer into
3644 the register cache directly to ptrace. Use regcache_collect
3645 insteaad of read_register.
3646 (ops_prepare_to_store): Use target_read_registers instead
3647 of read_register_bytes.
3648
3649 2002-07-20 Aidan Skinner <aidan@velvet.net>
3650
3651 * MAINTAINERS: Add self under write after approval.
3652
3653 2002-07-20 Aidan Skinner <aidan@velvet.net>
3654
3655 * ada-tasks.c: Change k&r style function definitions to prototyped
3656 form.
3657
3658 2002-07-19 Andrew Cagney <ac131313@redhat.com>
3659
3660 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3661 * x86-64-tdep.c: Include "objfiles.h".
3662 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3663 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3664
3665 2002-07-17 Michal Ludvig <michal@suse.cz>
3666
3667 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3668 (update_context): Initialise cfa variable.
3669
3670 2002-07-17 Michael Snyder <msnyder@redhat.com>
3671
3672 * aix-thread.c: Shorten some long lines.
3673 Bring comments into line with code spec.
3674
3675 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3676
3677 * infrun.c: Re-indent using gdb_indent.sh.
3678
3679 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3680
3681 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3682 Leave the indentation temporarily untouched, to minimize the diffs.
3683
3684 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
3685
3686 * stabsread.c: Make os9k sections of the code obsolete,
3687 for real this time.
3688 * stabsread.h: Make os9k sections of the code obsolete.
3689
3690 2002-07-18 Michal Ludvig <mludvig@suse.cz>
3691
3692 * linux-low.c (regsets_store_inferior_registers): Add free()
3693 at the end of a loop to prevent memory leak.
3694 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3695 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3696 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3697 line a comment.
3698 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3699
3700 2002-07-17 Jim Blandy <jimb@redhat.com>
3701
3702 * macrocmd.c (info_macro_command): Remove newline from error
3703 message.
3704
3705 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
3706
3707 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3708 (sh_gdbarch_init): Use it for sh-dsp.
3709
3710 2002-07-16 Kevin Buettner <kevinb@redhat.com>
3711
3712 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3713 64-bit DWARF2 format.
3714
3715 2002-07-16 Joel Brobecker <brobecker@gnat.com>
3716
3717 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3718 <sys/proc.h> when not available.
3719
3720 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3721
3722 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3723 * stabsread.c: Make os9k sections of the code obsolete.
3724 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3725 * config/i386/i386os9k.mt: Make file obsolete.
3726 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3727 (COMMON_OBS): Remove os9kread.o
3728 (SFILES): Remove os9kread.c.
3729 (os9kread.o, remote-os9k.o): Make target obsolete.
3730 * remote-os9k.c: Make file obsolete.
3731 * os9kread.c: Make file obsolete.
3732 * Makefile.in
3733
3734 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3735
3736 * NEWS: Mention that the FR30 has been made obsolete.
3737 * fr30-tdep.c: Make file obsolete.
3738 * config/fr30/tm-fr30.h: Ditto.
3739 * config/fr30/fr30.mt: Ditto.
3740 * configure.tgt: Make fr30-*-elf obsolete.
3741 * MAINTAINERS: Make fr30-elf obsolete.
3742
3743 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3744
3745 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3746 found is not inside a section.
3747
3748 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3749
3750 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3751 strerror().
3752 (pdc_realloc): Use xrealloc() instead of realloc().
3753
3754 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3755
3756 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3757 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3758 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3759 macros.
3760
3761 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3762
3763 * aix-thread.c (ptrace_check): Eliminate goto.
3764 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3765 problem.
3766
3767 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3768
3769 * aix-thread.c (gdbcmd.h): Include.
3770 (DEBUG, DBG, DBG2, dbg): Eliminate.
3771 (debug_aix_thread): New static global.
3772 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3773 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3774 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3775 invocations to DBG and DBG2 macros to test against
3776 ``debug_aix_thread'' and call fprintf_unfiltered().
3777 (_initialize_aix_thread): Add new command "set debug aix-thread".
3778
3779 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3780
3781 From Gerhard Tonn <TON@de.ibm.com>:
3782 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3783 instead of supply_register.
3784
3785 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3786
3787 * dwarf2cfi.c: Include "gdb_assert.h".
3788 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3789 non-NULL.
3790 (update_context): Do not use __func__. Add missing ``break''.
3791 (update_context): Do not use __func__.
3792
3793 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
3794
3795 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3796 and its setting. Set gdbarch instruction printing functions
3797 directly. For non-rs6000 case use new function
3798 gdb_print_insn_powerpc.
3799 (gdb_print_insn_powerpc): New function.
3800
3801 2002-07-13 Andrew Cagney <ac131313@redhat.com>
3802
3803 * NEWS: Mention that the d30v has been marked obsolete.
3804 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3805 * configure.tgt: Mark d30v-*-* as obsolete.
3806 * d30v-tdep.c: Mark file as obsolete.
3807 * config/d30v/d30v.mt: Ditto.
3808 * config/d30v/tm-d30v.h: Ditto.
3809
3810 2002-07-13 Aidan Skinner <aidan@velvet.net>
3811
3812 * ada-tasks.c (add_task_entry): replace calls to
3813 malloc() with xmalloc
3814 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3815
3816 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3817 ada_finish_decode_line_1, all_sals_for_line
3818 ada_breakpoint_rewrite): replace calls to free() with xfree()
3819
3820 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3821
3822 From Nicholas Duffek (with minor changes by Martin Hunt,
3823 Louis Hamilton, and Kevin Buettner):
3824 * aix-thread.c: New file.
3825
3826 2002-07-12 Petr Sorfa <petrs@caldera.com>
3827
3828 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3829 complaint for invalid attribute class or form.
3830 (read_func_scope): DW_AT_frame_base
3831 better handling of DW_AT_block*.
3832 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3833 better handling of DW_AT_block*.
3834 (read_common_block): DW_AT_location
3835 better handling of DW_AT_block*.
3836 (read_partial_die): DW_AT_location better handling
3837 of DW_AT_block*.
3838 (new_symbol): DW_AT_external better handling of
3839 DW_AT_block*. Proper initialization of variable
3840 "addr".
3841 (attr_form_is_block): New function that returns true
3842 if the attribute's form is of DW_FORM_block*.
3843
3844 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3845
3846 * valops.c (find_method_list): Remove comment about
3847 removed STATIC_MEMFUNCP argument.
3848 (value_find_oload_method_list): Likewise.
3849
3850 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3851
3852 From Nicholas Duffek:
3853 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3854 target_new_objfile_hook.
3855
3856 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3857
3858 From Nicholas Duffek:
3859 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3860 csect.
3861
3862 2002-07-12 Andrew Cagney <cagney@redhat.com>
3863
3864 * MAINTAINERS: Mention --enable-sim-build-warnings.
3865 (m68hc11-elf): Disable sim build warnings.
3866 (m32r-elf): Mark as broken obsolete candidate.
3867 (x86_64-linux-gnu): Mark as buildable with -Werror.
3868 (arm-elf): Change -w to ``,'' which enables warnings but not
3869 -Werror.
3870
3871 2002-07-12 Andrew Cagney <ac131313@redhat.com>
3872
3873 * bcache.h: Update copyright.
3874 (struct bstring, struct bcache): Move definition to "bcache.c".
3875 Replaced by opaque declaration.
3876 (bcache_xfree): Replace free_bcache.
3877 (bcache_xmalloc, bcache_memory_used): Declare.
3878
3879 * bcache.c: Update copyright.
3880 (struct bstring, struct bcache): Moved to here from "bcache.h".
3881 Update comments.
3882 (bcache_xmalloc, bcache_memory_used): New functions.
3883 (bcache_xfree): Replace function free_bcache.
3884
3885 * Makefile.in (objfiles.o): Add $(bcache_h).
3886 (objfiles_h): Remove $(bcache_h).
3887 (symfile.o): Add $(bcache_h).
3888
3889 * symmisc.c: Update copyright.
3890 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3891 (print_objfile_statistics): Use bcache_memory_used.
3892
3893 * symfile.c: Include "bcache.h".
3894 (reread_symbols): Use bcache_xfree.
3895 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3896 (add_psymbol_to_list): Pass psymbol_cache by value.
3897 (add_psymbol_with_dem_name_to_list): Ditto.
3898
3899 * objfiles.h: Update copyright.
3900 (struct bcache): Declare opaque. Do not include "bcache.h".
3901 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3902 bcache'' pointers.
3903 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3904
3905 * objfiles.c: Include "bcache.h". Update copyright.
3906 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3907 macro_cache.
3908 (free_objfile): Use bcache_xfree.
3909
3910 2002-07-11 Grace Sainsbury <graces@redhat.com>
3911
3912 * monitor.c (monitor_fetch_register): Make name a constant.
3913 (monitor_store_register): Same.
3914
3915 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
3916
3917 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3918 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3919 (finish_block) For non-function blocks, hash the symbol table. For
3920 function blocks, mark the symbol table as unhashed.
3921 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3922 (msymbol_hash_iw): Likewise.
3923 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3924 value.
3925 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3926 (lookup_minimal_symbol): Likewise for both.
3927 * symtab.h (struct block): Add `hashtable' flag. Comment the
3928 hashtable.
3929 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3930 (ALL_BLOCK_SYMBOLS): Update.
3931 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3932 (struct symbol): Add `hash_next' pointer.
3933 * symtab.c (lookup_block_symbol): Search using the hash table when
3934 possible.
3935 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3936 (search_symbols, find_addr_symbol): Likewise.
3937
3938 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3939 (read_dst_symtab): Likewise.
3940 * jv-lang.c (get_java_class_symtab): Likewise.
3941 * mdebugread.c: Include "gdb_assert.h".
3942 (shrink_block): Assert that the block being modified is not hashed.
3943 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3944 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3945 symbols.
3946 (dump_symtab): Recognize hashed blocks.
3947 * printcmd.c (print_frame_args): Assert that function blocks do not
3948 have hashed symbol tables.
3949 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3950 (fill_in_ada_prototype, debug_print_block): Likewise.
3951 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3952
3953 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
3954
3955 * stack.c (print_frame): Use result of frame_address_in_block()
3956 instead of fi->pc when evaluating symbols.
3957 (backtrace_command_1): Ditto.
3958
3959 2002-07-11 Andrew Cagney <cagney@redhat.com>
3960
3961 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3962 Make static.
3963
3964 * arm-tdep.c (arm_register_name): Make return type constant.
3965
3966 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3967
3968 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3969 prototype.
3970 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3971 * s390-tdep.c (s390_fp_regnum): Ditto.
3972 (s390_read_fp): Ditto.
3973 (s390_pop_frame): Ditto.
3974 (_initialize_s390_tdep): Ditto.
3975 * remote.c (get_remote_state): Ditto.
3976 * procfs.c (mappingflags): Ditto.
3977 * memattr.c (_initialize_mem): Ditto.
3978 * mcore-tdep.c (mcore_pop_frame): Ditto.
3979 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3980 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3981 * language.c (set_case_str): Ditto.
3982 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3983 * frv-tdep.c (new_variant): Ditto.
3984 (frv_stopped_data_address): Ditto.
3985 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3986 (context_alloc): Ditto.
3987 (frame_state_alloc): Ditto.
3988 (unwind_tmp_obstack_init): Ditto.
3989 (unwind_tmp_obstack_free): Ditto.
3990 (cfi_read_fp): Ditto.
3991 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3992 (cris_pop_frame): Ditto.
3993 * c-lang.c (scanning_macro_expansion): Ditto.
3994 (finished_macro_expansion): Ditto.
3995 (c_preprocess_and_parse): Ditto.
3996 * gdbarch.sh: Ditto.
3997 * gdbarch.h, gdbarch.c: Regenerate.
3998 * config/mn10200/tm-mn10200.h: Adjust indentation.
3999 * target.c: Adjust indentation.
4000 * symtab.h: Adjust indentation.
4001 * stabsread.h: Adjust indentation.
4002 * remote-es.c: Adjust indentation.
4003 * os9kread.c: Adjust indentation.
4004
4005 2002-07-10 Andrew Cagney <ac131313@redhat.com>
4006
4007 * wince.c (_initialize_wince): Rename _initialize_inftarg.
4008 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
4009
4010 2002-07-10 Grace Sainsbury <graces@redhat.com>
4011
4012 * NEWS: Mention m68k, mcore multi-arching.
4013 * MAINTAINERS: Change status of m68k, mcore to reflect
4014 multi-arching.
4015
4016 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
4017
4018 * valops.c (find_overload_match): Free oload_syms.
4019
4020 2002-07-09 Joel Brobecker <brobecker@gnat.com>
4021
4022 Define HAVE_SYS_PROC_H if sys/proc.h exists
4023 * configure.in: Add check for sys/proc.h
4024 * config.in: Regenerate.
4025 * configure: Regenerate.
4026
4027 2002-07-09 Grace Sainsbury <graces@redhat.com>
4028
4029 * config/m68k/tm-m68k.h: Remove macros wrapped in
4030 #if !GDB_MULTI_ARCH.
4031
4032 2002-07-08 Andrew Cagney <ac131313@redhat.com>
4033
4034 * config.in, configure: Regenerate.
4035
4036 2002-07-08 Mark Kettenis <kettenis@gnu.org>
4037
4038 * dwarf2cfi.c: Include "gcore.h".
4039 (execute_stack_op): Fix implementation of the
4040 DW_OP_deref and DW_OP_deref_size operators by letting do their
4041 lookup in the target.
4042
4043 2002-07-07 Mark Kettenis <kettenis@gnu.org>
4044
4045 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
4046 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
4047 tdep->sc_sp_offset.
4048
4049 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
4050
4051 Fix PR gdb/595, gdb/602
4052 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
4053 Don't call value_cast, just read the vtable pointer; update comments
4054 to match.
4055
4056 2002-07-05 Grace Sainsbury <graces@redhat.com>
4057
4058 * config/mcore/tm-mcore.h: Remove file.
4059 * config/mcore/mcore.mt: Remove definition of TM_FILE
4060 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
4061
4062 2002-07-05 Mark Kettenis <kettenis@gnu.org>
4063
4064 * i386bsd-tdep.c: Include "gdb_string.h".
4065
4066 2002-07-04 Grace Sainsbury <graces@redhat.com>
4067
4068 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
4069 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
4070 mcore-tdep.
4071 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
4072 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
4073 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
4074 (RETVAL_REGNUM): Move macros from tm-mcore.h
4075 (mcore_reg_struct_has_addr): New function.
4076 (mcore_gdbarch_init): Added initializations for the macros removed
4077 from tm-mcore.h.
4078
4079 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4080
4081 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
4082 traditonal string branding within the ELF header.
4083
4084 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
4085
4086 * symtab.c (remove_params): New function.
4087 (make_symbol_overload_list): Use it instead of cplus_demangle.
4088 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
4089
4090 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4091
4092 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
4093
4094 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
4095 New variables.
4096 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
4097 and tdep->sigtramp_end.
4098 * i386obsd-nat.c: New file.
4099 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
4100
4101 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
4102 Don't call get_current_frame().
4103
4104 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
4105
4106 * i386-nat.c (child_post_startup_inferior): New function
4107 calling i386_cleanup_dregs if
4108 I386_USE_GENERIC_WATCHPOINTS is defined.
4109 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
4110 conditional to acknowledge that i386-nat.c has its
4111 own child_post_startup_inferior function.
4112
4113 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4114
4115 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
4116 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
4117 instead of MAX_REGISTER_RAW_SIZE.
4118 (i386_extract_return_value, i386_extract_struct_value_address):
4119 Convert to use regcache.
4120 (i386_gdbarch_init): Set max_register_raw_size and
4121 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
4122 Set extract_return_value and extract_struct_value_address instead
4123 of their deprecated variants.
4124
4125 Convert i386 target to generic dummy frames.
4126 * i386-tdep.c: Include "symfile.h".
4127 (i386_frameless_signal_p): Consider a function to be frameless if
4128 the pc points at the first instruction of the function.
4129 (i386_frame_chain): Handle (generic) call dummies.
4130 (i386_frame_saved_pc): Likewise.
4131 (i386_frame_init_saved_regs): Remove code dealing with call
4132 dummies on the stack.
4133 (i386_push_dummy_frame): Removed.
4134 (i386_call_dummy_words): Removed.
4135 (i386_fix_call_dummy): Removed.
4136 (i386_push_return_address): New function.
4137 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
4138 parameter, and don't call get_current_frame.
4139 (i386_pop_frame): New function.
4140 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
4141 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
4142 entry_point_address, set call_dummy_breakpoint_offset to 0, set
4143 call_dummy_length to 0, set call_dummy_words to NULL, set
4144 sizeof_call_dummy_words to 0, set fix_call_dummy to
4145 generic_fix_call_dummy, set pc_in_call_dummy to
4146 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
4147 generic_push_dummy_frame, set push_return_address to
4148 i386_push_return_address and set frame_chain_valid to
4149 generic_file_frame_chain_valid.
4150
4151 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4152
4153 * gdbarch.sh (struct regcache): Add opaque declaration.
4154 (EXTRACT_RETURN_VALUE): New architecture method.
4155 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4156 * gdbarch.h, gdbarch.c: Regenerate.
4157 * arch-utils.c (legacy_extract_return_value): New function.
4158 * arch-utils.h (legacy_extract_return_value): Declare.
4159 * values.c (value_being_returned): Re-enable code handling
4160 EXTRACT_STRUCT_VALUE_ADDRESS. Move
4161 deprecated_grub_regcache_for_registers call to block handling
4162 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4163 (EXTRACT_RETURN_VALUE): Do not define.
4164
4165 2002-07-03 Grace Sainsbury <graces@redhat.com>
4166
4167 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4168 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4169 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4170 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4171 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4172 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4173 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4174 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4175 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4176 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4177 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4178 argument so the function fits the prototype in the architecture
4179 vector.
4180 (mcore_pop_frame): Remove argument so the function fits the
4181 prototype. Use get_current_frame instead of the argument.
4182 (mcore_push_arguments): Change type of struct_return so the
4183 function can be used in the architecture vector.
4184 (mcore_store_struct_return): Add.
4185 (mcore_frame_init_saved_regs): Add.
4186 (mcore_gdbarch_init): Add function calls to replace the macros
4187 removed from tm-mcore.h
4188
4189 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4190
4191 * infcmd.c (print_return_value): Remove compatibility code calling
4192 deprecated_grub_regcache_for_registers.
4193
4194 * values.c: Include "regcache.h".
4195 (value_being_returned): Update. Use
4196 deprecated_grub_regcache_for_registers to extract the register
4197 buffer address.
4198 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4199 ``struct regcache''.
4200 * Makefile.in (values.o): Add dependency on $(regcache_h).
4201
4202 * inferior.h (run_stack_dummy): Change type of second parameter to
4203 a ``struct regcache''.
4204 * valops.c (hand_function_call): Change type of retbuf to ``struct
4205 regcache''. Allocate using regcache_xmalloc, clean using
4206 make_cleanup_regcache_xfree.
4207 * infcmd.c (run_stack_dummy): Update. Use
4208 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4209
4210 * regcache.c (do_regcache_xfree): New function.
4211 (make_cleanup_regcache_xfree): New function.
4212 * regcache.h (make_cleanup_regcache_xfree): Declare.
4213
4214 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4215
4216 * event-top.c (command_line_handler): Don't read past
4217 beginning of buffer.
4218
4219 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4220
4221 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4222 struct frame_id.
4223 (varobj_create): Store frame_id for root.
4224 (varobj_gen_name): Use xasprintf.
4225 (varobj_update): Save and restore frame using get_frame_id() and
4226 frame_find_by_id().
4227 (create_child): Use xasprintf.
4228 (new_root_variable): Initialize frame_id.
4229 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4230 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4231 to prevent memory leak.
4232
4233 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4234
4235 * valops.c (hand_function_call): Move declaration of retbuf to
4236 start of function, allocate using malloc, add a cleanup but before
4237 the inf_status cleanup, cleanup the buffer. Rename local variable
4238 old_chain to inf_status_cleanup.
4239
4240 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4241
4242 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4243
4244 * cli/cli-decode.c (cmd_func_p): New function.
4245 (cmd_func): New function.
4246
4247 * command.h: Add cmd_func() and cmd_func_p().
4248
4249 2002-07-03 Grace Sainsbury <graces@redhat.com>
4250
4251 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4252 (REGISTER_SIZE): Remove.
4253 (MAX_REGISTER_RAW_SIZE): Remove.
4254 (REGISTER_VIRTUAL_TYPE): Remove.
4255 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4256 (REGISTER_NAME): Remove.
4257 (USE_GENERIC_DUMMY_FRAMES): Remove.
4258 (CALL_DUMMY): Remove.
4259 (CALL_DUMMY_START_OFFSET): Remove.
4260 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4261 (CALL_DUMMY_LOCATION): Remove.
4262 (FIX_CALL_DUMMY): Remove.
4263 (CALL_DUMMY_ADDRESS): Remove.
4264 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4265 (SAVE_DUMMY_FRAME_TOS): Remove.
4266 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4267 (mcore_register_virtual_type): New function.
4268 (mcore_register_byte): New function.
4269 (mcore_register_size): New function.
4270 (mcore_register_name): New function.
4271 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4272 macros removed from tm-mcore.h.
4273 (mcore_dump_tdep): Add.
4274 (_initialize_mcore_tdep): Add gdbarch_register call.
4275
4276 2002-07-03 Mark Kettenis <kettenis@gnu.org>
4277
4278 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4279 frameless_look_for_prologue, such that we actually call this
4280 function.
4281
4282 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4283
4284 * frame.h (frame_address_in_block): New function.
4285
4286 * blockframe.c (frame_address_in_block): New function extracted
4287 from get_frame_block().
4288 (get_frame_block): Use frame_address_in_block().
4289 (block_innermost_frame): Use frame_address_in_block() to match
4290 the frame pc address against the block boundaries rather than
4291 the frame pc directly. This prevents a failure when a frame pc
4292 is actually a return-address pointing immediately after the end
4293 of the given block.
4294
4295 2002-07-02 Grace Sainsbury <graces@redhat.com>
4296
4297 * MAINTAINERS: Add self under write after approval.
4298
4299 2002-07-02 Grace Sainsbury <graces@redhat.com>
4300
4301 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4302 used in architecture vector. The default is
4303 m68k_local_breakpoint_from_pc.
4304 (m68k_local_breakpoint_from_pc): Add.
4305 (enum): Add register numbers from tm-m68k.h.
4306 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4307 vector.
4308 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4309 GDB_MULTI_ARCH_PARTIAL.
4310 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4311 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4312 m68k-tdep.c.
4313 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4314 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4315 to enum in m68k-tdep.c
4316
4317 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4318
4319 * solib-osf.c (open_map): Compute the list of shared libraries
4320 loaded by the inferior, rather than the list of libraries loaded
4321 by GDB itself. Otherwise, GDB ends up reading the symbols from
4322 the wrong shared libraries...
4323
4324 2002-07-02 Mark Kettenis <kettenis@gnu.org>
4325
4326 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4327 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4328 macros.
4329 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4330 Remove functions.
4331 (FRAMELESS_SIGNAL): Remove function.
4332 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4333 i386_linux_saved_pc_after_call): Removed.
4334 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4335 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4336 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4337
4338 * i386-tdep.c (i386_frameless_signal_p): New function.
4339 (i386_frame_chain): Deal with frameless signals.
4340 (i386_sigtramp_saved_sp): New function.
4341 (i386_frame_saved_pc): Deal with frameless signals.
4342 (i386_saved_pc_after_call): Make sure the correct value is
4343 returned just after entry into a sigtramp.
4344 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4345 i386fbsd4_sc_sp_offset): New variables.
4346 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4347 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4348 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4349 similiar to what we already did for sc_pc_offset.
4350 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4351 tdep->sc_sp_offset.
4352
4353 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4354
4355 2002-07-02 Michal Ludvig <mludvig@suse.cz>
4356
4357 * config/i386/tm-x86-64linux.h: New.
4358 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4359 definitions.
4360 * config/i386/nm-x86-64.h: Rename to ...
4361 * config/i386/nm-x86-64linux.h: ... this one.
4362 * config/i386/x86-64linux.mh: Reflect the above change.
4363
4364 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4365
4366 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4367 with sigcontext_addr. Add sc_sp_offset.
4368 (i386bsd_sigtramp_saved_pc): Remove prototype.
4369 (i386bsd_sicontext_addr): Add prototype.
4370 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4371 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4372 (i386_svr4_sigtramp_saved_pc): Removed.
4373 (i386_svr4_sigcontext_addr): New function.
4374 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4375 Initialize tdep->sigcontext_addr instead. Initialize
4376 tdep->sc_pc_offset and tdep->sc_sp_offset.
4377 (i386_gdbarch_init): Likewise.
4378 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4379 any more.
4380 (i386bsd_sigtramp_saved_pc): Remove function.
4381 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4382 Initialize tdep->sigcontext_addr instead. Initialize
4383 tdep->sc_pc_offset.
4384 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4385 of tdep->sigtramp_saved_pc.
4386 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4387 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4388 instead.
4389
4390 * i386-tdep.c (i386_frameless_function_invocation,
4391 i386_frame_num_args, i386_frame_init_saved_regs,
4392 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4393 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4394 i386_extract_return_value, i386_store_return_value,
4395 i386_extract_struct_value_address, i386_register_virtual_type,
4396 i386_register_convertible, i386_register_convert_to_virtual,
4397 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4398 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4399 static.
4400
4401 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4402
4403 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4404
4405 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4406 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4407 this macro. Include "value.h".
4408
4409 2002-06-30 Aidan Skinner <aidan@velvet.net>
4410
4411 * ada-exp.tab.c: remove as it's a generated file
4412 * ada-lex.c: remove as it's a generated file
4413
4414 2002-06-30 Mark Kettenis <kettenis@gnu.org>
4415
4416 * config/i386/tm-i386.h (struct frame_info, struct
4417 frame_saved_regs, struct value, struct type): Remove forward
4418 declarations.
4419
4420 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4421 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4422 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4423 (FILL_FPXREGSET): Define.
4424
4425 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4426
4427 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4428 i[3456]86-*-netbsd* case.
4429 * config/i386/tm-obsd.h: Removed.
4430 * config/i386/obsd.mt: Removed.
4431 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4432 core-aout.o.
4433 (MH_CFLAGS): Add -DYYDEBUG=0.
4434
4435 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4436 i386nbsd_sc_pc_offset on OpenBSD too.
4437
4438 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4439 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4440 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4441 define.
4442 * i386bsd-tdep.c: Include "arch-utils.h".
4443 (i386bsd_aout_in_solib_call_trampoline): New function.
4444 (i386bsd_init_abi): Set in_solib_call_trampoline to
4445 i386bsd_aout_in_solib_call_trampoline.
4446 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4447 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4448
4449 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4450
4451 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4452 (struct obstack, struct bcache): Add opaque declarations.
4453 * Makefile.in (macrotab_h): Update
4454
4455 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4456
4457 * blockframe.c (generic_find_dummy_frame): Change return type to
4458 ``struct regcache''.
4459 (struct dummy_frame): Replace field ``registers'' with regcache, a
4460 struct regcache object.
4461 (generic_find_dummy_frame): Update.
4462 (generic_push_dummy_frame): Update. Use regcache_xfree,
4463 regcache_xmalloc and regcache_cpy.
4464 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4465 regcache_xfree.
4466 (deprecated_generic_find_dummy_frame): Update.
4467 (generic_read_register_dummy): Update. Use
4468 regcache_read_as_address.
4469 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4470 (generic_get_saved_register): Update. Use regcache_read.
4471
4472 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4473
4474 * Makefile.in (objfiles_h): Add $(bcache_h).
4475 * objfiles.h: Include "bcache.h".
4476
4477 * Makefile.in (symtab_h): Remove $(bcache_h).
4478 * symtab.h: Do not include "bcache.h".
4479
4480 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4481
4482 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4483 generic_func_frame_chain_valid.
4484
4485 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4486
4487 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4488 * config/i386/tm-fbsd.h: Likewise.
4489
4490 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4491
4492 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4493 generic_unwind_get_saved_register.
4494
4495 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4496
4497 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4498 * regcache.c (supply_register): Add missing argument to
4499 register_buffer call.
4500
4501 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4502
4503 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4504 Solaris /bin/grep does not not like it. From Peter Schauer.
4505
4506 2002-06-26 Tom Tromey <tromey@redhat.com>
4507
4508 * command.h (add_setshow_cmd): Declare.
4509 (add_setshow_cmd_full): Declare.
4510 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4511 returns void. Use add_setshow_cmd_full.
4512 (add_setshow_cmd_full): New function.
4513 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4514 (add_setshow_boolean_cmd): Likewise.
4515
4516 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4517
4518 * config/vax/tm-vax.h: Protect from multiple inclusion.
4519 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4520 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4521 * config/vax/tm-vaxbsd.h: ...here. New file.
4522 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4523
4524 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4525
4526 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4527 (BELIEVE_PCC_PROMOTION): Remove.
4528 (AP_REGNUM): Move to...
4529 * config/vax/nm-vax.h: ...here.
4530 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4531 (vax_breakpoint_from_pc): New function.
4532 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4533 and gdbarch_believe_pcc_promotion.
4534
4535 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4536
4537 * Makefile.in (vax_tdep_h): Define.
4538 (vax-tdep.o): Use $(vax_tdep_h).
4539 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4540 (vax_dump_tdep): New function.
4541 (_initialize_vax_tdep): Register vax_dump_tdep.
4542 * vax-tdep.h: Include osabi.h.
4543 (struct gdbarch_tdep): New.
4544
4545 2002-06-26 Andrew Cagney <cagney@redhat.com>
4546
4547 * frame.h (deprecated_generic_find_dummy_frame): Rename
4548 generic_find_dummy_frame.
4549 * blockframe.c (generic_find_dummy_frame): Make static.
4550 (deprecated_generic_find_dummy_frame): New function.
4551 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4552 generic_find_dummy_frame with deprecated_find_dummy_frame.
4553 (sh64_nofp_frame_init_saved_regs): Ditto.
4554 (sh_fp_frame_init_saved_regs): Ditto.
4555 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4556 (s390_frame_chain): Ditto.
4557 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4558
4559 2002-06-26 Grace Sainsbury <graces@redhat.com>
4560
4561 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4562 gdbarch vector are at the top.
4563 (NUM_REGS): Remove.
4564 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4565 (FRAME_ARGS_ADDRESS): Remove.
4566 (FRAME_LOCALS_ADDRESS): Remove.
4567 (FRAME_NUM_ARGS): Remove.
4568 (FRAME_ARGS_SKIP): Remove.
4569 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4570 (m68k_gdbarch_init): Add gdbarch initializations for macros
4571 undefined in tm-m68k.h
4572
4573 2002-06-26 Grace Sainsbury <graces@redhat.com>
4574
4575 * monitor.h: Add the function regname to monitor_ops
4576 structure. This way NUM_REGS does not have to be a constant.
4577 * monitor.c (monitor_fetch_register): Added support for regname
4578 function. The function is called if the array regnames is NULL.
4579 (monitor_store_register): Same.
4580 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4581 regnames array.
4582 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4583 cpu32bug_cmds.regname to point to new function.
4584 * abug-rom.c (abug_regname): Same as above.
4585 (init_abug_cmds): Same.
4586 * dbug-rom.c (dbug_regname): Same as above.
4587 (init_dbug_cmds): Same.
4588 * remote-est.c (est_regname): Same.
4589 (init_est_cmds): Same.
4590 * rom68k-rom.c (rom68k_regname): Same.
4591 (init_rom68k_cmds): Same.
4592
4593 2002-06-25 Tom Tromey <tromey@redhat.com>
4594
4595 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4596
4597 2002-06-25 Andrew Cagney <cagney@redhat.com>
4598
4599 * infrun.c (stop_registers): Change variable's type to ``struct
4600 regcache'''.
4601 (xmalloc_inferior_status): Delete function.
4602 (free_inferior_status): Delete function.
4603 (normal_stop): Use regcache_cpy.
4604 (struct inferior_status): Change type of fields ``stop_registers''
4605 and ``registers'' to ``struct regcache''.
4606 (write_inferior_status_register): Use regcache_write.
4607 (save_inferior_status): Instead of calling
4608 xmalloc_inferior_status, allocate the inf_status buffer directly.
4609 Use regcache_dup_no_passthrough and regcache_dup to save the
4610 buffers.
4611 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4612 Replace the stop_registers regcache instead of overriding it. Use
4613 regcache_xfree. Instead of calling free_inferior_status, xfree
4614 the buffer directly.
4615 (discard_inferior_status): Use regcache_xfree. Instead of calling
4616 free_inferior_status, xfree the buffer directly.
4617 (build_infrun): Use regcache_xmalloc.
4618 (_initialize_infrun): Delete redundant call to build_infrun.
4619
4620 * Makefile.in (infcmd.o): Add $(regcache_h).
4621
4622 * infcmd.c: Include "regcache.h".
4623 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4624 obtain the address of `stop_registers' register buffer.
4625 (print_return_value): Ditto.
4626
4627 * inferior.h (struct regcache): Add opaque declaration.
4628 (stop_registers): Change variable's declared type to ``struct
4629 regcache''.
4630
4631 2002-06-24 Tom Tromey <tromey@redhat.com>
4632
4633 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4634 * target.c (initialize_targets): Fixed typo in
4635 trust-readonly-sections `show' documentation.
4636
4637 * main.c: Marked all strings with _().
4638
4639 2002-06-24 Don Howard <dhoward@redhat.com>
4640
4641 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4642 that means max CORE_ADDR+1.
4643 (lookup_mem_region): Ditto.
4644 (mem_info_command): Ditto.
4645
4646 2002-06-24 Grace Sainsbury <graces@redhat.com>
4647
4648 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4649 (REGISTER_BYTES_OK): Remove.
4650 (REGISTER_BYTES): Remove.
4651 (STORE_STRUCT_RETURN): Remove.
4652 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4653 (STORE_RETURN_VALUE): Remove.
4654 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4655 (FRAME_CHAIN): Remove.
4656 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4657 (FRAME_SAVED_PC): Remove.
4658 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4659 (m68k_store_struct_return): Add.
4660 (m68k_deprecated_extract_return_value): Add.
4661 (m68k_deprecated_extract_struct_value_address): Add.
4662 (m68k_store_return_value): Add.
4663 (m68k_frame_chain): Add.
4664 (m68k_frameless_function_invocation): Add.
4665 (m68k_frame_saved_pc): Add.
4666 (m68k_gdbarch_init): added set_gdbarch calls for new
4667 functions and deleted macros.
4668
4669 2002-06-23 Tom Tromey <tromey@redhat.com>
4670
4671 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4672 (ALLDEPFILES): Likewise.
4673 (udiheaders): Removed.
4674 (udip2soc.o): Likewise.
4675 (udi2go32.o): Likewise.
4676 (udr.o): Likewise.
4677 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4678
4679 2002-06-22 Andrew Cagney <ac131313@redhat.com>
4680
4681 * infrun.c (_initialize_infrun): Delete unnecessary call to
4682 build_infrun.
4683
4684 * regcache.h: Update comments describing the regcache_cpy family
4685 of functions.
4686 (regcache_save, regcache_restore): Delete declaration.
4687 (regcache_save_no_passthrough): Delete declaration.
4688 (regcache_restore_no_passthrough): Delete declaration.
4689 * regcache.c (regcache_save): Delete function.
4690 (regcache_save_no_passthrough): Delete function.
4691 (regcache_restore): Delete function.
4692 (regcache_restore_no_passthrough): Delete function.
4693
4694 2002-06-21 Andrew Cagney <ac131313@redhat.com>
4695
4696 * config/m68k/tm-m68k.h: Fix typo.
4697 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4698 (m68k_frame_init_saved_regs): Declare.
4699
4700 2002-06-21 Jim Blandy <jimb@redhat.com>
4701
4702 Remove some vestiges of Harris 88k support.
4703 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4704 register numbering quirk.
4705 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4706 odd symbols occurring in Harris 88k ELF targets.
4707
4708 2002-06-21 Tom Tromey <tromey@redhat.com>
4709
4710 * gdb_locale.h: New file.
4711 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4712 (defs_h): Added gdb_locale.h.
4713 * configure, config.in: Rebuilt.
4714 * configure.in (PACKAGE): Define.
4715 * defs.h: Include gdb_locale.h.
4716 * main.c (captured_main): Call setlocale, bindtextdomain,
4717 textdomain.
4718
4719 2002-06-21 Dave Brolley <brolley@redhat.com>
4720
4721 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4722 * config/frv/frv.mt: New file.
4723 * config/frv/tm-frv.h: New file.
4724 * configure.tgt: Support frv-*-*.
4725 * Makefile.in (frv-tdep.o): New target.
4726 * frv-tdep.c: New file.
4727 * NEWS: Mention frv.
4728
4729 2002-06-21 Dave Brolley <brolley@redhat.com>
4730
4731 * MAINTAINERS: Add self to "Write After Approval" list.
4732
4733 2002-06-21 Grace Sainsbury <graces@redhat.com>
4734
4735 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4736 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4737 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4738 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4739 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4740
4741 * m68k-tdep.c: Include arch-utils.h
4742 (m68k_register_raw_size): Add.
4743 (m68k_register_virtual_size): Add.
4744 (m68k_register_virtual_type): Add.
4745 (m68k_register_name): Add.
4746 (m68k_stack_align): Add.
4747 (m68k_register_byte): Add.
4748 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4749 tm-m68k.h.
4750
4751 2002-06-21 Grace Sainsbury <graces@redhat.com>
4752
4753 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4754 m68k_find_saved_regs.
4755 (m68k_pop_frame): Removed saved_regs structure, and replaced
4756 references to it with frame->saved_regs.
4757 (m68k_gdbarch_init): Added function calls to initialize the
4758 gdbarch structure.
4759 (m68k_fix_call_dummy): Add.
4760 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4761 (CALL_DUMMY): Remove.
4762 (CALL_DUMMY_LENGTH): Remove.
4763 (CALL_DUMMY_START_OFFSET): Remove.
4764 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4765 (FIX_CALL_DUMMY): Remove.
4766 (PUSH_DUMMY_FRAME): Remove.
4767 (POP_FRAME): Remove.
4768
4769 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4770
4771 * parse.c (parse_fprintf): New function used to avoid calls to
4772 fprintf in bison parser generated debug code.
4773 * parser-defs.h: Declaration of new parse_fprintf function.
4774 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4775 Set YYDEBUG to 1 by default.
4776 Set YYFPRINTF as parse_fprintf.
4777
4778 2002-06-21 Michal Ludvig <mludvig@suse.cz>
4779
4780 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4781 encoding anymore.
4782 (pointer_encoding, enum ptr_encoding): New.
4783 (execute_cfa_program): Take care about pointer encoding.
4784 (dwarf2_build_frame_info): Only call parse_frame_info for
4785 .debug_frame and .eh_frame.
4786 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4787 fixed augmentation handling, added relative addressing,
4788 ignore duplicate FDEs. Added comments.
4789 * dwarf2cfi.c: Reindented.
4790
4791 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
4792
4793 * event-top.c (command_handler): Don't use space_at_cmd_start
4794 unless there is sbrk() on the host. Assign time and space data
4795 to union fields of the appropriate length.
4796
4797 2002-06-20 Michal Ludvig <mludvig@suse.cz>
4798
4799 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4800 x86_64_register_name. Return type changed to 'const char *'.
4801 (x86_64_register_name2nr): Rename to x86_64_register_number.
4802 (x86_64_gdbarch_init): Update to reflect the change.
4803 * x86-64-tdep.h: Ditto.
4804 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4805 (supply_fpregset): Ditto.
4806
4807 2002-06-19 Andrew Cagney <cagney@redhat.com>
4808
4809 * regcache.h: Update copyright.
4810 (struct regcache, struct gdbarch): Add opaque declarations.
4811 (current_regcache): Declare global variable.
4812 (regcache_read, regcache_write): Add gdbarch parameter.
4813 (regcache_save, regcache_save_no_passthrough)
4814 (regcache_restore, regcache_restore_no_passthrough)
4815 (regcache_dup, regcache_dup_no_passthrough)
4816 (regcache_cpy, regcache_cpy_no_passthrough)
4817 (deprecated_grub_regcache_for_registers)
4818 (deprecated_grub_regcache_for_register_valid)
4819 (regcache_valid_p): Add function declarations.
4820
4821 * regcache.c: Update copyright.
4822 (regcache_descr_handle): New global variable.
4823 (struct regcache_descr): Define.
4824 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4825 (regcache_descr, xfree_regcache_descr): New functions.
4826 (struct regcache): Define.
4827 (regcache_xmalloc, regcache_xfree): New functions.
4828 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4829 (regcache_dup, regcache_dup_no_passthrough): New functions.
4830 (regcache_valid_p, regcache_read_as_address): New functions.
4831 (deprecated_grub_regcache_for_registers): New function.
4832 (deprecated_grub_regcache_for_register_valid): New function.
4833 (current_regcache): New global variable.
4834 (register_buffer): Add regcache parameter. Update calls.
4835 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4836 (read_register_gen, write_register_gen): Update register_buffer
4837 call. Test for legacy_p instead of gdbarch_register_read_p or
4838 gdbarch_register_write_p.
4839 (regcache_collect): Update register_buffer call.
4840 (build_regcache): Rewrite. Use deprecated grub functions.
4841 (regcache_save, regcache_save_no_passthrough): New functions.
4842 (regcache_restore, regcache_restore_no_passthrough): New
4843 functions.
4844 (_initialize_regcache): Create the regcache_data_handle. Swap
4845 current_regcache global variable.
4846
4847 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4848 parameter to regcache_read and regcache_write calls.
4849 (sh4_register_read): Ditto.
4850 (sh64_pseudo_register_read): Ditto.
4851 (sh64_register_read): Ditto.
4852 (sh_pseudo_register_write): Ditto.
4853 (sh4_register_write): Ditto.
4854 (sh64_pseudo_register_write): Ditto.
4855 (sh64_register_write): Ditto.
4856
4857 * defs.h (XCALLOC): Define.
4858
4859 2002-06-19 Grace Sainsbury <graces@redhat.com>
4860
4861 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4862 * m68k-tdep.c (m68k_gdbarch_init): Added.
4863 (m68k_dump_tdep): Added.
4864
4865 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4866
4867 * ada-lang.c (fill_in_ada_prototype): Update comment.
4868
4869 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4870
4871 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4872 MIPS_ABI_LAST.
4873 (mips_abi_string, mips_abi_strings): New.
4874 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4875 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4876 tdep->mips_abi_string. Honor mips_abi_string. Default to
4877 O32 if no ABI is found.
4878 (mips_dump_tdep): Use mips_abi_strings.
4879 (mips_abi_update): New function.
4880 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4881 ``set mips abi'' and ``show mips abi''. Check the size of
4882 mips_abi_strings.
4883
4884 2002-06-19 Andrew Cagney <cagney@redhat.com>
4885
4886 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4887 constant.
4888
4889 2002-06-18 Joel Brobecker <brobecker@gnat.com>
4890
4891 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4892 current frame using only the first stack size adjustment. All
4893 subsequent size adjustments are not considered to be part of
4894 the "static" part of the current frame.
4895 Compute the address of the saved registers relative to the
4896 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4897 in use in this frame.
4898
4899 2002-06-18 Don Howard <dhoward@redhat.com>
4900
4901 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4902 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4903 suggesting this solution.
4904
4905 2002-06-18 Andrew Cagney <ac131313@redhat.com>
4906
4907 * config/romp/xm-rtbsd.h: Delete file.
4908 * config/romp/rtbsd.mh: Delete file.
4909
4910 2002-06-18 Keith Seitz <keiths@redhat.com>
4911
4912 * breakpoint.c (condition_command): Post breakpoint_modify
4913 when a condition is added to an existing breakpoint.
4914 (commands_command): Likewise for commands.
4915 (set_ignore_count): Likewise for ignore counts.
4916 If no tty, do not simply return, still need to send event
4917 notification.
4918 (ignore_command): Only print a newline if the command came
4919 from a tty.
4920 Don't call breakpoints_changed, since this is now properly
4921 handled by set_ignore_count.
4922
4923 2002-06-18 Andrew Cagney <cagney@redhat.com>
4924
4925 * MAINTAINERS: Note that cris-elf target can be compiled with
4926 -Werror.
4927 * cris-tdep.c (cris_register_name): Make return type constant.
4928 (cris_breakpoint_from_pc): Ditto.
4929
4930 2002-06-18 Michal Ludvig <mludvig@suse.cz>
4931
4932 * frame.h (struct frame_info): Change type of context to
4933 'struct context'.
4934
4935 2002-06-17 Andrew Cagney <cagney@redhat.com>
4936
4937 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4938 pointer.
4939 * gdbarch.h, gdbarch.c: Regenerate.
4940 * config/mips/tm-mips.h (mips_register_name): Update.
4941 * i386-tdep.h (i386_register_name): Update.
4942 * mips-tdep.c (mips_register_name): Update
4943 * alpha-tdep.c (alpha_register_name): Update.
4944 * arch-utils.c (legacy_register_name): Update.
4945 * arch-utils.h (legacy_register_name): Update.
4946 * avr-tdep.c (avr_register_name): Update.
4947 * ia64-tdep.c (ia64_register_name): Update.
4948 * i386-tdep.c (i386_register_name): Update.
4949 * sparc-tdep.c (sparc32_register_name): Update.
4950 (sparc64_register_name): Update.
4951 (sparclite_register_name): Update.
4952 (sparclet_register_name): Update.
4953 * sh-tdep.c (sh_generic_register_name): Update.
4954 (sh_sh_register_name): Update.
4955 (sh_sh3_register_name): Update.
4956 (sh_sh3e_register_name): Update.
4957 (sh_sh_dsp_register_name): Update.
4958 (sh_sh3_dsp_register_name): Update.
4959 (sh_sh4_register_name): Update.
4960 (sh_sh64_register_name): Update.
4961 * s390-tdep.c (s390_register_name): Update.
4962 * rs6000-tdep.c (rs6000_register_name): Update.
4963 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4964 (ns32k_register_name_32382): Update.
4965 * d10v-tdep.c (d10v_ts2_register_name): Update.
4966 (d10v_ts3_register_name): Update.
4967 * xstormy16-tdep.c (xstormy16_register_name): Update.
4968 * vax-tdep.c (vax_register_name): Update.
4969 * v850-tdep.c (v850_register_name): Update.
4970 * m68hc11-tdep.c (m68hc11_register_name): Update.
4971 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4972 (am33_register_name): Update.
4973
4974 2002-06-17 Grace Sainsbury <graces@redhat.com>
4975
4976 * m68k-tdep.c: Reindented.
4977
4978 2002-06-17 Andrew Cagney <ac131313@redhat.com>
4979
4980 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4981 list of predefined types.
4982
4983 2002-06-16 Mark Kettenis <kettenis@gnu.org>
4984
4985 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4986 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4987 REGISTER_CONVERT_TO_RAW): Remove defines.
4988 (i386_register_virtual_type, i386_register_convertible,
4989 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4990 Remove prototypes.
4991 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4992 macros mentioned above.
4993
4994 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4995 (i386lynx_saved_pc_after_call): Remove prototype.
4996 * i386ly-tdep.c: Include "i386-tdep.h".
4997 (i386lynx_saved_pc_after_call): Make static. Use
4998 read_memory_nobpt instead of read_memory. Use
4999 read_memory_unsigned_integer instead of read_memory_integer.
5000 (i386lynx_init_abi): New function.
5001 (i386lynx_coff_osabi_sniffer): New function.
5002 (_initialize_i386bsd_tdep): New function.
5003
5004 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
5005 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
5006 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
5007 (i386_fix_call_dummy): Remove prototype.
5008 * i386-tdep.c (i386_call_dummy_words): New variable.
5009 (i386_gdbarch_init): Adjust for removal of the
5010 macros mentioned above.
5011
5012 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5013
5014 * command.h (add_setshow_auto_boolean_cmd): Replace
5015 add_set_auto_boolean_cmd.
5016 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
5017 add_set_auto_boolean_cmd.
5018 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
5019 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
5020 mask-address'' command.
5021 (show_mask_address): Add cmd parameter.
5022 * remote.c (add_packet_config_cmd): Update. Change type of
5023 set_func and show_func to cmd_sfunc_ftype.
5024 (_initialize_remote): Update `set remote Z-packet'
5025 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
5026 (show_remote_protocol_e_packet_cmd): Ditto.
5027 (show_remote_protocol_E_packet_cmd): Ditto.
5028 (show_remote_protocol_P_packet_cmd): Ditto.
5029 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
5030 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
5031 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
5032 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
5033 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
5034 (show_remote_protocol_Z_packet_cmd): Ditto.
5035 (show_remote_protocol_binary_download_cmd): Ditto.
5036 (show_remote_cmd): Pass NULL to all of above.
5037
5038 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5039
5040 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
5041 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
5042 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
5043 POP_FRAME): Remove defines.
5044 (i386_push_arguments, i386_store_struct_return,
5045 i386_extract_return_value, i386_store_return_value,
5046 i386_extract_struct_value_address, i386_push_dummy_frame,
5047 i386_pop_frame): Renove prototypes.
5048 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5049 macros mentioned above.
5050
5051 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5052
5053 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
5054 add_set_boolean_cmd.
5055 (add_setshow_cmd): New function.
5056 * command.h (add_setshow_boolean_cmd): Replace
5057 add_set_boolean_cmd.
5058 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
5059 and ``set rdiromatzero''.
5060 * maint.c (_initialize_maint_cmds): Update commented out code.
5061 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
5062 * target.c (initialize_targets): Update `set
5063 trust-readonly-sections'.
5064 * remote.c (_initialize_remote): Update `set remotebreak'.
5065
5066 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5067
5068 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
5069 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
5070 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
5071 fit into multi-arch framework.
5072 (i386_breakpoint_from_pc): New function.
5073 (i386_gdbarch_init): Adjust for removal of the macros mentioned
5074 above.
5075
5076 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
5077 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
5078 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
5079 (i386_frameless_function_invocation, i386_frame_num_args,
5080 i386_frame_init_saved_regs): Remove prototypes.
5081 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5082 macros mentioned above.
5083
5084 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5085
5086 * cli/cli-decode.c (set_cmd_cfunc): Update.
5087 (set_cmd_sfunc): Update.
5088 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
5089 (set_cmd_sfunc, set_cmd_cfunc): Update.
5090 * cli/cli-decode.h: Update.
5091
5092 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5093
5094 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
5095 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
5096
5097 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5098
5099 * defs.h (auto_boolean): Declare enum.
5100 * command.h (cmd_auto_boolean): Delete enum.
5101 * mips-tdep.c (mask_address_var): Update.
5102 (mips_mask_address_p): Update.
5103 (show_mask_address): Update.
5104 * remote.c (struct packet_config): Update.
5105 (update_packet_config): Update.
5106 (show_packet_config_cmd): Update.
5107 (packet_ok): Update.
5108 (add_packet_config_cmd): Update.
5109 (_initialize_remote):
5110 * command.h: Update.
5111 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
5112 (do_setshow_command): Update.
5113 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
5114 * cli/cli-decode.h: Update.
5115
5116 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5117
5118 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
5119 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
5120 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
5121 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
5122 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
5123 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
5124
5125 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
5126 list of DJGPP COFF targets.
5127
5128 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
5129 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
5130 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
5131 (FP0_REGNUM): Remove define.
5132 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5133 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
5134 (i386_register_virtual_size): Remove protoype.
5135 * i386-tdep.c (i386_register_virtual_size): Removed.
5136 (i386_extract_return_value, i386_store_return_value): Use
5137 FP0_REGNUM instead of NUM_FREGS to determine whether the
5138 floating-point registers are available.
5139 (i386_gdbarch_init): Tweak FIXME about FPU registers.
5140 Adjust for removal of macros mentioned above.
5141
5142 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5143
5144 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
5145 comments.
5146 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5147 Remove prototypes.
5148 (supply_gregset, fill_gregset): Remove use of register keyword and
5149 remove declaration for regmap. Use I386_NUM_GREGS instead of
5150 NUM_REGS and NUM_FREGS.
5151 (FPREGSET_FSAVE_OFFSET): Remove.
5152 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5153 NUM_FREGS to determine whether the floating-point registers are
5154 available.
5155
5156 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5157 gnu_store_registers): Replace usage of NUM_GREGS with
5158 I386_NUM_GREGS.
5159
5160 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5161 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5162 usage of NUM_GREGS with I386_NUM_GREGS.
5163
5164 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5165
5166 * i386bsd-nat.c: Include "i386-tdep.h".
5167 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5168 I386_NUM_GREGS.
5169
5170 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5171 and associated comment. They no longer make any sense, since we
5172 don't use this file anymore on Linux.
5173
5174 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5175 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5176 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5177 elements in these arrays.
5178 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5179 MAX_NUM_REGS.
5180
5181 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5182
5183 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5184 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5185
5186 2002-06-14 Andrew Cagney <cagney@redhat.com>
5187
5188 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5189 EXTRACT_RETURN_VALUE.
5190 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5191 EXTRACT_STRUCT_VALUE_ADDRESS.
5192 * gdbarch.h, gdbarch.c: Regenerate.
5193
5194 * values.c (value_being_returned): Handle
5195 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5196 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5197
5198 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5199 * arm-tdep.c (arm_gdbarch_init): Update.
5200 * avr-tdep.c (avr_gdbarch_init): Update.
5201 * cris-tdep.c (cris_gdbarch_init): Update.
5202 * d10v-tdep.c (d10v_gdbarch_init): Update.
5203 * ia64-tdep.c (ia64_gdbarch_init): Update.
5204 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5205 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5206 * s390-tdep.c (s390_gdbarch_init): Update.
5207 * sh-tdep.c (sh_gdbarch_init): Update.
5208 * s390-tdep.c (s390_gdbarch_init): Update.
5209 * sparc-tdep.c (sparc_gdbarch_init): Update.
5210 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5211 * v850-tdep.c (v850_gdbarch_init): Update.
5212 * vax-tdep.c (vax_gdbarch_init): Update.
5213 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5214 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5215
5216 * config/arc/tm-arc.h: Update.
5217 * config/d30v/tm-d30v.h: Update.
5218 * config/fr30/tm-fr30.h: Update.
5219 * config/h8300/tm-h8300.h: Update.
5220 * config/h8500/tm-h8500.h: Update.
5221 * config/i386/tm-i386.h: Update.
5222 * config/i386/tm-ptx.h: Update.
5223 * config/i386/tm-symmetry.h: Update.
5224 * config/i960/tm-i960.h: Update.
5225 * config/m32r/tm-m32r.h: Update.
5226 * config/m68k/tm-delta68.h: Update.
5227 * config/m68k/tm-linux.h: Update.
5228 * config/m68k/tm-m68k.h: Update.
5229 * config/m88k/tm-m88k.h: Update.
5230 * config/mcore/tm-mcore.h: Update.
5231 * config/mips/tm-mips.h: Update.
5232 * config/mn10200/tm-mn10200.h: Update.
5233 * config/pa/tm-hppa.h: Update.
5234 * config/pa/tm-hppa64.h: Update.
5235 * config/sparc/tm-sp64.h: Update.
5236 * config/sparc/tm-sparc.h: Update.
5237 * config/sparc/tm-sparclet.h: Update.
5238 * config/z8k/tm-z8k.h: Update.
5239
5240 2002-06-14 Andrew Cagney <cagney@redhat.com>
5241
5242 * Makefile.in (i386_linux_tdep_h): Define.
5243 (i386_tdep_h, i387_tdep_h): Define.
5244 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5245 $(i386_tdep_h) and $(i387_tdep_h).
5246 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5247
5248 2002-06-14 Mark Kettenis <kettenis@gnu.org>
5249
5250 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5251 Already covered by the default.
5252
5253 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5254 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5255 (i386_gdbarch_init): Initialize long_double_format and long_double
5256 bit.
5257
5258 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5259 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5260 Move these to ...
5261 * config/i386/i386sol2.mh: ... here.
5262 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5263 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5264 (SIGCONTEXT_PC_OFFSET): Remove define.
5265 (IN_SIGTRAMP): Remove define.
5266 * i386-sol2-tdep.c: New file.
5267
5268 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5269 * config/i386/tm-i386nw.h: Removed.
5270
5271 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5272 USE_STRUCT_CONVENTION): Remove defines.
5273 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5274 (get_longjmp_target): Remove prototype.
5275 (IN_SIGTRAMP): Remove define.
5276 (i386bsd_in_sigtramp): Remove prototype.
5277 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5278 function. Update comment accordingly
5279 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5280 (FRAME_SAVED_PC): Remove define.
5281 (i386bsd_frame_saved_pc): Remove prototype.
5282 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5283 GET_LONGJMP_TARGET): Remove defines.
5284 (get_longjmp_target): Remove prototype.
5285 (IN_SIGTRAMP): Remove define.
5286 (i386bsd_in_sigtramp): Remove prototype.
5287 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5288 function. Update comment accordingly
5289 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5290 (FRAME_SAVED_PC): Remove define.
5291 (i386bsd_frame_saved_pc): Remove prototype.
5292 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5293 Remove prototype.
5294 (USE_STRUCT_CONVENTION): Remove prototype.
5295 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5296 declaration.
5297 (_initialize_i386bsd_nat): Revise logic to determine some
5298 constants at compile time when compiling a native GDB. Warn if
5299 things don't match up with what we expect.
5300 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5301 Remove variables.
5302 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5303 to use date stored in `struct gdbarch_tdep'.
5304 (i386bsd_sigcontext_offset): Remove varaible.
5305 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5306 stored in `struct gdbarch_tdep'.
5307 (i386bsd_frame_saved_pc): Make static.
5308 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5309 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5310 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5311 i386fbsd4_sc_pc_offset): New variables.
5312 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5313 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5314 functions.
5315 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5316 functions.
5317 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5318 Modify the value of i386fbsd_sigtramp_start and
5319 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5320 i386fbsd_sigtramp_end.
5321 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5322 function.
5323
5324 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5325 define to i386-linux-tdep.h.
5326 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5327 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5328 defines.
5329 (i386_linux_register_name, i386_linux_register_byte,
5330 i386_linux_register_raw_size): Remove prototypes.
5331 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5332 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5333 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5334 TARGET_WRITE_PC): Remove defines.
5335 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5336 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5337 i386_linux_write_pc): Remove prototypes.
5338 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5339 (get_longjmp_target): Remove prototype.
5340 * i386-linux-tdep.h: New file.
5341 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5342 * i386-linux-tdep.c: Include "i386-tdep.h" and
5343 "i386-linux-tdep.h".
5344 (i386_linux_register_name, i386_linux_register_byte,
5345 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5346 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5347 Make static.
5348 (i386_linux_init_abi): New function.
5349 (_initialize_i386_linux_tdep): New function.
5350
5351 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5352 (i386_saved_pc_after_call): Remove prototype.
5353 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5354 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5355 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5356 (i386_register_name, i386_stab_reg_to_regnum,
5357 i386_dwarf_reg_to_regnum): Remove prototypes.
5358 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5359 SIZEOF_SSE_REGS): Remove defines.
5360 (REGISTER_BYTES): Remove define.
5361 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5362 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5363 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5364 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5365 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5366 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5367 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5368 (get_longjmp_target): Remove prototype.
5369 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5370 (sigtramp_saved_pc): Remove define.
5371 (i386v4_sigtramp_saved_pc): Remove prototype.
5372 * config/i386/tm-go32.h (FRAME_CHAIN,
5373 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5374 (i386go32_frame_saved_pc): Remove prototype.
5375 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5376 (get_longjmp_target): Remove prototype.
5377 * i386-tdep.h: Include "osabi.h".
5378 (enum i386_abi): Removed.
5379 (enum struct_return): New enum.
5380 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5381 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5382 sc_pc_offset members.
5383 (i386_gdbarch_register_os_abi): Remove prototype.
5384 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5385 I386_SSE_NUM_REGS): New defines.
5386 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5387 I386_SSE_SIZEOF_REGS): New defines.
5388 (i386_register_name, i386_register_byte, i386_register_raw_size):
5389 New prototypes.
5390 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5391 (i386bsd_sigtramp_saved_pc): New prototype.
5392 * i386-tdep.c: Don't include "elf-bfd.h".
5393 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5394 i386_frame_chain, i386_saved_pc_after_call): Make static.
5395 (i386_frame_saved_pc): Rewrite to call architecture dependent
5396 function to deal with signal handlers. Make static.
5397 (i386go32_frame_saved_pc): Removed.
5398 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5399 Removed.
5400 (i386_get_longjmp_target): New function.
5401 (default_struct_convention, pcc_struct_convention,
5402 reg_struct_convention, valid_conventions, struct_convention): New
5403 variables.
5404 (i386_use_struct_convention): New function.
5405 (i386v4_sigtramp_saved_pc): Renamed to
5406 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5407 (i386_pc_in_sigtramp): New function.
5408 (i386_abi_names): Removed.
5409 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5410 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5411 Removed.
5412 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5413 i386_gdbarch_register_os_abi): Removed.
5414 (struct i386_abi_handler): Removed.
5415 (i386_abi_handler_list): Removed.
5416 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5417 functions.
5418 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5419 i386_nw_init_abi): New functions.
5420 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5421 Use set_gdbarch_xxx() calls instead of relying on macros for a
5422 number of calls.
5423 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5424 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5425 Register the various architecture variants defined in this file.
5426
5427 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
5428
5429 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5430 (struct main_type): Remove arg_types member. Update comments for
5431 struct field.
5432 (TYPE_ARG_TYPES): Remove.
5433 (TYPE_FN_FIELD_ARGS): Update.
5434 (smash_to_method_type): Update prototype.
5435
5436 * c-typeprint.c (cp_type_print_method_args): Take method type
5437 instead of argument list. Use new argument layout. Simplify.
5438 (c_type_print_args): Use new argument layout. Simplify.
5439 (c_type_print_base): Update call to cp_type_print_method_args.
5440 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5441 argument; use die->type instead. Update call to
5442 smash_to_method_type.
5443 (read_structure_scope): Update call to dwarf2_add_member_fn.
5444 * gdbtypes.c (allocate_stub_method): Update comment.
5445 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5446 Use new argument layout.
5447 (check_stub_method): Use new argument layout. Don't count
5448 void as an argument.
5449 (print_arg_types): Update comments. Use new argument layout.
5450 (recursive_dump_type): Don't print arg_types member.
5451 * hpread.c (hpread_read_struct_type): Use new argument layout.
5452 (fixup_class_method_type): Likewise.
5453 (hpread_type_lookup): Likewise.
5454 * stabsread.c (read_type): Update calls to read_args and
5455 smash_to_method_type.
5456 (read_args): Use new argument layout. Simplify.
5457 * valops.c (typecmp): Use new argument layout. Update parameters
5458 and comments. Simplify.
5459 (hand_function_call): Use new argument layout.
5460 (search_struct_method): Update call to typecmp.
5461 (find_overload_match): Use new argument layout.
5462
5463 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5464
5465 * NEWS: Mention multithreaded debug support for gdbserver.
5466
5467 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5468
5469 * MAINTAINERS: Mention NEWS.
5470
5471 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5472
5473 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5474 (struct mips_objfile_private, compare_pdr_entries): New.
5475 (non_heuristic_proc_desc): Read the ".pdr" section if it
5476 is present.
5477
5478 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5479
5480 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5481 (arm_debug): New static variable.
5482 (_initialize_arm_tdep): Add ``set debug arm'' command.
5483
5484 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5485
5486 * Makefile.in (sim_arm_h): Define.
5487 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5488 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5489 (arm_register_sim_regno): New function, map an internal REGNUM
5490 onto a simulator register number.
5491 (arm_gdbarch_init): Set register_sim_regno.
5492
5493 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
5494
5495 * MAINTAINERS: Add self.
5496
5497 2002-06-11 Jim Blandy <jimb@redhat.com>
5498
5499 * source.c (source_info): Mention whether the symtab has
5500 information about preprocessor macros.
5501
5502 Call the command `info macro', not `show macro'.
5503 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5504 Fix error message.
5505 (_initialize_macrocmd): Register `info_macro_command' in
5506 `infolist', not `showlist'.
5507
5508 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
5509
5510 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5511 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5512 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5513 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5514 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5515 unconditionally.
5516 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5517 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5518 (_initialize_mips_tdep): Remove dead code.
5519 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5520 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5521 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5522 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5523 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5524 MIPS_LAST_FP_ARG_REGNUM): Remove.
5525
5526 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5527
5528 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5529 (unwind_tmp_obstack_free, parse_frame_info)
5530 (update_context, cfi_read_fp, cfi_write_fp)
5531 (cfi_frame_chain, cfi_init_extra_frame_info)
5532 (cfi_virtual_frame_pointer): Use the above function.
5533 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5534
5535 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
5536
5537 * v850-tdep.c (v850_type_is_scalar): New function.
5538 (v850_use_struct_convention): Match current gcc implementation
5539 as close as possible.
5540 (v850_push_arguments): Fix stack_offset handling. Don't write
5541 struct_addr into register. This is done by v850_store_struct_return.
5542 (v850_extract_return_value): Care for structs.
5543 (v850_store_return_value): Ditto.
5544 (v850_store_struct_return): Actually write address.
5545
5546 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5547
5548 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5549 without debug information too.
5550
5551 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5552
5553 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5554 Make multi-arch pure.
5555 * gdbarch.h, gdbarch.c: Re-generate.
5556 * arm-tdep.c (arm_print_float_info): Update.
5557 * arch-utils.h (default_print_float_info): Update.
5558 * arch-utils.c (default_print_float_info): Update.
5559 * infcmd.c (float_info): Update call.
5560
5561 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5562
5563 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5564 the front of the initialize list.
5565
5566 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5567
5568 * infrun.c (struct inferior_status): Replace fields
5569 selected_frame_address and selected_level with field
5570 selected_frame_id.
5571 (save_inferior_status): Update. Use get_frame_id.
5572 (struct restore_selected_frame_args): Delete.
5573 (restore_selected_frame): Update. Use frame_find_by_id.
5574 (restore_inferior_status): Update.
5575
5576 * breakpoint.h (struct breakpoint): Change type of
5577 watchpoint_frame to frame_id.
5578 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5579 call to get_current_frame.
5580 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5581 get_current_frame.
5582 (watchpoint_check): Use frame_find_by_id.
5583
5584 * frame.h (record_selected_frame): Delete declaration.
5585 * stack.c (record_selected_frame): Delete function.
5586
5587 * frame.h (struct frame_id): Define.
5588 (get_frame_id): Declare.
5589 (frame_find_by_id): Declare.
5590 * frame.c (frame_find_by_id): New function.
5591 (get_frame_id): New function.
5592
5593 2002-06-10 Andrey Volkov <avolkov@transas.com>
5594
5595 * ser-e7kpc.c: Fix duplicated define and call of
5596 _initialize_ser_e7000pc
5597
5598 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5599
5600 * signals/signals.c (target_signal_from_host): Fix #ifdef
5601 SIGRTMIN case.
5602 (do_target_signal_to_host): Likewise.
5603
5604 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5605
5606 * mips-tdep.c (mips_find_abi_section): New function.
5607 (mips_gdbarch_init): Call it.
5608
5609 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5610
5611 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5612 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5613 after Andrew's 2002-06-08 gdbarch change.
5614
5615 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5616
5617 * i386-linux-nat.c (suppy_gregset): Don't supply
5618 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5619 register cache.
5620 (fill_gregset): Don't fetch it under the same circumstances.
5621
5622 2002-06-09 Andrew Cagney <cagney@redhat.com>
5623
5624 * Makefile.in (callback_h): Define.
5625 (remote_sim_h): Update path to remote-sim.h.
5626 (remote-rdp.o): Add $(callback_h).
5627 (remote-sim.o): Use $(callback_h).
5628 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5629 * remote-rdp.c: Include "gdb/callback.h".
5630
5631 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5632
5633 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5634 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5635
5636 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5637
5638 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5639 * rdi-share/serpardr.c: Ditto.
5640 * rdi-share/unixcomm.c: Ditto.
5641 * rdi-share/serdrv.c: Ditto.
5642 * rdi-share/hostchan.h: Ditto.
5643 * rdi-share/hostchan.c: Ditto.
5644 * rdi-share/host.h: Ditto.
5645 * rdi-share/devsw.c: Ditto.
5646
5647 * objfiles.h: Change type of obj_private to void pointer.
5648 * pa64solib.c: Update copyright. Don't include "assert.h", use
5649 strcmp instead of STREQ, use LONGEST, do not use PTR
5650 * somsolib.c: Ditto.
5651
5652 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5653 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5654 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5655
5656 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5657
5658 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5659 (default_get_saved_register): Delete function.
5660 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5661 generic_unwind_get_saved_register.
5662 * gdbarch.h, gdbarch.c: Re-generate.
5663
5664 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5665
5666 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5667 generic_func_frame_chain_valid.
5668 * gdbarch.h, gdbarch.c: Re-generate.
5669 * blockframe.c (generic_func_frame_chain_valid): Only check
5670 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5671 passing FP to PC_IN_CALL_DUMMY.
5672 Fix PR gdb/360.
5673
5674 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5675
5676 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5677 (register_gdbarch_data): Initialize init_p.
5678 (gdbarch_data): Initialize data pointer using the init function.
5679 (init_gdbarch_data): Delete function.
5680 (gdbarch_update_p): Update.
5681 (initialize_non_multiarch): Update.
5682 (struct gdbarch): Add field initialized_p.
5683 * gdbarch.h, gdbarch.c: Re-generate.
5684
5685 2002-06-07 Michal Ludvig <mludvig@suse.cz>
5686
5687 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5688 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5689 better do the things actually here.
5690 * x86-64-tdep.c (x86_64_register_name2nr): New.
5691 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5692 (x86_64_gdbarch_init): Respect the above change.
5693 * x86-64-tdep.h (x86_64_register_name2nr)
5694 (x86_64_register_nr2name): Add prototypes.
5695 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5696
5697 2002-06-06 Michael Snyder <msnyder@redhat.com>
5698
5699 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5700 Delete extra braces and re-indent.
5701 (d10v_store_return_value): Char return values
5702 must be shifted over by one byte in R0.
5703 (d10v_extract_return_value): Delete extra braces, re-indent.
5704
5705 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5706
5707 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5708 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5709 (d10v_integer_to_address): Rewrite.
5710 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5711 the d10v specific functions which take care of converting to the
5712 correct space.
5713
5714 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5715
5716 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5717 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5718
5719 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5720
5721 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5722 includes.
5723 * config/tm-linux.h: Ditto.
5724 * config/alpha/tm-alphalinux.h: Ditto.
5725 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5726 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5727 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5728 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5729 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5730 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5731 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5732 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5733 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5734 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5735 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5736 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5737 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5738 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5739 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5740 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5741 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5742 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5743 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5744 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5745 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5746 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5747 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5748 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5749 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5750 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5751 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5752 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5753 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5754 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5755 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5756 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5757 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5758 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5759 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5760 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5761 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5762
5763 2002-05-04 Aidan Skinner <aidan@velvet.net>
5764
5765 * ada-exp.tab.c: New file
5766 * ada-exp.y: New file
5767 * ada-lang.c: New file
5768 * ada-lang.h: New file
5769 * ada-lex.c: New file
5770 * ada-lex.l: New file
5771 * ada-tasks.c: New file
5772 * ada-typeprint.c: New file
5773 * ada-valprint.c: New file
5774
5775 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5776
5777 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5778 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5779
5780 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5781
5782 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5783 insetead of ppc-linux-tdep.o.
5784 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5785 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5786
5787 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5788
5789 2002-05-07 Christian Groessler <chris@groessler.org>
5790 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5791 bit register contents for little endian hosts.
5792
5793 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5794
5795 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5796 any maintainer.
5797
5798 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5799
5800 * gdbarch.h: Regenerate.
5801
5802 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5803
5804 * MAINTAINERS: Add everyone to write-after-approval list.
5805
5806 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5807
5808 * stack.c (frame_info): Use frame_register_unwind instead of
5809 saved_regs. Mention when the SP is on the stack or in a register.
5810
5811 * frame.h (frame_register_unwind_ftype): Define. Document.
5812 (struct frame_info): Add field register_unwind and
5813 register_unwind_cache.
5814 (frame_register_unwind): Declare.
5815 (generic_unwind_get_saved_register): Declare.
5816
5817 * frame.c (frame_register_unwind): New function.
5818 (generic_unwind_get_saved_register): New function.
5819
5820 * blockframe.c (generic_call_dummy_register_unwind): New function.
5821 (frame_saved_regs_register_unwind): New function.
5822 (set_unwind_by_pc): New function.
5823 (create_new_frame): New function.
5824 (get_prev_frame): New function.
5825
5826 2002-05-30 Andrew Cagney <ac131313@redhat.com>
5827
5828 * a29k-share/: Delete directory.
5829 * remote-vx29k.c: Delete file.
5830
5831 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5832
5833 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5834 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5835
5836 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5837
5838 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5839 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5840 (sparc64nbsd-nat.o)
5841 (sparcnbsd-nat.o)
5842 (sparcnbsd-tdep.o): New dependency lists.
5843 * NEWS: Note new UltraSPARC NetBSD native configuration.
5844 * configure.host (sparc64-*-netbsd*): New host.
5845 * configure.tgt (sparc-*-netbsdelf*)
5846 (sparc-*-netbsd*): Set gdb_target to nbsd.
5847 (sparc64-*-netbsd*): New target.
5848 * sparc64nbsd-nat.c: New file.
5849 * sparcnbsd-nat.c: New file.
5850 * sparcnbsd-tdep.c: New file.
5851 * sparcnbsd-tdep.h: New file.
5852 * config/sparc/nbsd.mt: New file.
5853 * config/sparc/nbsd64.mh: New file.
5854 * config/sparc/nbsd64.mt: New file.
5855 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5856 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5857 (HOST_IPC): Remove.
5858 * config/sparc/nbsdaout.mt: Remove.
5859 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5860 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5861 (HOST_IPC): Remove.
5862 * config/sparc/nbsdelf.mt: Remove.
5863 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5864 sparc-nat.c compatiblity defines.
5865 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5866 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5867 * config/sparc/tm-nbsd64.h: New file.
5868 * config/sparc/tm-nbsdaout.h: Remove.
5869 * config/sparc/xm-nbsd.h: Remove.
5870
5871 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5872
5873 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5874 * sparc-tdep.c: Include osabi.h.
5875 (gdbarch_tdep): Add osabi member.
5876 (_initialize_sparc_tdep): Use gdbarch_register.
5877 (sparc_gdbarch_init): Use generic OS ABI framework.
5878 (sparc_dump_tdep): New function.
5879
5880 2002-05-30 Kevin Buettner <kevinb@redhat.com>
5881
5882 * corefile.c (do_captured_read_memory_integer): Return non-zero
5883 result.
5884 (safe_read_memory_integer): Copy result of memory read when
5885 status is non-zero. Also, add comments.
5886
5887 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5888
5889 * Makefile.in (ppc_tdep_h): Define.
5890 (ppc-linux-nat.o)
5891 (ppc-linux-tdep.o)
5892 (rs6000-tdep.o): Use $(ppc_tdep_h).
5893 (ppc-sysv-tdep.o)
5894 (ppcnbsd-nat.o)
5895 (ppcnbsd-tdep.o): New dependency lists.
5896 * ppc-tdep.h: Use generic OS ABI framework.
5897 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5898 (ppc_linux_init_abi): New functions.
5899 (ppc_sysv_abi_broken_use_struct_convention)
5900 (ppc_sysv_abi_use_struct_convention)
5901 (ppc_sysv_abi_push_arguments): Move to...
5902 * ppc-sysv-tdep.c: ...here.
5903 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5904 * rs6000-tdep.c (process_note_abi_tag_sections)
5905 (get_elfosabi): Remove.
5906 (rs6000_gdbarch_init): Use generic OS ABI framework.
5907 (rs6000_dump_tdep): New function.
5908 (_initialize_rs6000_tdep): Use gdbarch_register.
5909 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5910 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5911 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5912 of ppc-linux-tdep.o.
5913 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5914 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5915 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5916 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5917 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5918 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5919
5920 2002-05-29 Jim Blandy <jimb@redhat.com>
5921
5922 * macroscope.c (default_macro_scope): Put `void' in empty argument
5923 list.
5924
5925 2002-05-29 Andrew Cagney <ac131313@redhat.com>
5926
5927 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5928 * arch-utils.c: Include "sim-regno.h".
5929 * gdbarch.sh: Don't include "sim-regno.h".
5930 * gdbarch.h, gdbarch.c: Regenerate.
5931 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5932 here.
5933 * arch-utils.h (legacy_register_sim_regno): To here.
5934 * remote-sim.c (legacy_register_sim_regno): Move function from
5935 here.
5936 * arch-utils.c (legacy_register_sim_regno): To here.
5937
5938 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5939
5940 * sim-regno.h: New file.
5941 * Makefile.in (sim_regno_h): Define.
5942 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5943 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5944 (legacy_register_sim_regno): New function.
5945 (one2one_register_sim_regno): New function.
5946 (gdbsim_fetch_register): Rewrite.
5947 (gdbsim_store_register): Only store a register when
5948 REGISTER_SIM_REGNO is valid.
5949 * d10v-tdep.c: Include "sim-regno.h".
5950 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5951 (d10v_ts3_register_sim_regno): Ditto.
5952 * gdbarch.sh: Include "sim-regno.h".
5953 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5954 * gdbarch.h, gdbarch.c: Regenerate.
5955 * arch-utils.h (default_register_sim_regno): Delete declaration.
5956 * arch-utils.c (default_register_sim_regno): Delete function.
5957
5958 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5959
5960 * ppcnbsd-nat.c: Rewrite.
5961 * ppcnbsd-tdep.c: New file.
5962 * ppcnbsd-tdep.h: New file.
5963 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5964 solib.o, and solib-svr4.o.
5965 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5966 nbsd-tdep.o, and corelow.o.
5967
5968 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5969
5970 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5971 `tr' and `sed'. Mention that `broken' targets are not expected to
5972 build.
5973
5974 2002-05-27 Michal Ludvig <mludvig@suse.cz>
5975
5976 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5977 Let PC point right after the prologue before looking up symbols.
5978
5979 2002-05-27 Martin M. Hunt <hunt@redhat.com>
5980
5981 * i386-tdep.c (i386_register_virtual_type): Return
5982 builtin_type_vec128i for SSE registers.
5983
5984 * gdbtypes.h (builtin_type_vec128i): Declare.
5985
5986 * gdbtypes.c (build_builtin_type_vec128i): New function.
5987 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5988 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5989 (build_gdbtypes): Initialize new builtin vector types.
5990 (_initialize_gdbtypes): Register new vector types with gdbarch.
5991
5992 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5993
5994 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5995 since it has been multi-arch'd.
5996 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5997 Move Alpha and VAX multi-arch news entries to same section
5998 as other multi-arch news.
5999
6000 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6001
6002 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
6003 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
6004 static. Rename some register numbers to put them in ns32k-tdep
6005 private namespace.
6006 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
6007 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
6008 functions.
6009 (_initialize_ns32k_tdep): Use gdbarch_register.
6010 * ns32k-tdep.h: New file.
6011 * ns32knbsd-tdep.c: New file.
6012 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
6013 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
6014 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
6015 REGISTER_BYTES, REGISTER_BYTE): Remove.
6016 * config/ns32k/tm-ns32k.h: New file.
6017 * config/ns32k/tm-umax.h: Remove.
6018
6019 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6020
6021 * ns32k-tdep.c (ns32k_saved_pc_after_call,
6022 ns32k_store_struct_return, ns32k_extract_return_value,
6023 ns32k_store_return_value, ns32k_extract_struct_value_address): New
6024 functions.
6025 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
6026 ns32k_saved_pc_after_call.
6027 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
6028 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
6029 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
6030 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6031 ns32k_extract_struct_value_address.
6032
6033 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6034
6035 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
6036 ns32k_fix_call_dummy): New.
6037 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
6038 ns32k_call_dummy_words.
6039 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
6040 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
6041 CALL_DUMMY_NARGS): Remove.
6042 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
6043
6044 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6045
6046 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
6047 ns32k_frame_saved_pc, ns32k_frame_args_address,
6048 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
6049 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
6050 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
6051 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
6052 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
6053 (BREAKPOINT): Remove..
6054 (FRAME_CHAIN): Define as ns32k_frame_chain.
6055 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
6056 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
6057 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
6058 (FRAME_FIND_SAVED_REGS): Remove.
6059 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
6060 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
6061 (POP_FRAME): Define as ns32k_pop_frame.
6062
6063 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6064
6065 * ns32k-tdep.c (ns32k_register_byte_32082,
6066 ns32k_register_byte_32382, ns32k_register_raw_size,
6067 ns32k_register_virtual_size, ns32k_register_virtual_type): New
6068 functions.
6069 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
6070 ns32k_register_byte_32382.
6071 * config/ns32k/tm-umax.h: Update copyright years.
6072 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
6073 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
6074 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
6075 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
6076 (ns32k_get_enter_addr): Fix prototype.
6077
6078 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6079
6080 * ns32k-tdep.c: Update copyright years.
6081 (ns32k_register_name_32082): New function.
6082 (ns32k_register_name_32382): Ditto.
6083 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
6084 (REGISTER_NAME): Define as ns32k_register_name_32382.
6085 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
6086 (REGISTER_NAME): Define as ns32k_register_name_32082.
6087
6088 2002-05-24 Jim Blandy <jimb@redhat.com>
6089
6090 * dwarf2read.c (free_line_header): Use xfree, not free.
6091
6092 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
6093
6094 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
6095 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
6096
6097 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6098
6099 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
6100
6101 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6102
6103 From Ross Alexander at NEC Europe:
6104 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
6105
6106 2002-05-23 Michael Snyder <msnyder@redhat.com>
6107
6108 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
6109 for input, rather than parse_and_eval_address.
6110
6111 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6112
6113 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
6114 * Makefile.in (sim_d10v_h): Update definition.
6115
6116 2002-05-24 Andrew Cagney <cagney@redhat.com>
6117
6118 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
6119 change `2002-05-22 Michael Snyder' below.
6120 (d10v_push_arguments): Ditto.
6121 (d10v_extract_return_value): Ditto.
6122
6123 2002-05-23 Jim Blandy <jimb@redhat.com>
6124
6125 * macrotab.c (check_for_redefinition): Don't complain if the new
6126 definition is the same as the previous one. Take more arguments
6127 to allow the comparison.
6128 (macro_define_object, macro_define_function): Pass more arguments
6129 to check_for_redefinition.
6130
6131 2002-05-22 Michael Snyder <msnyder@redhat.com>
6132
6133 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
6134 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
6135 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
6136 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
6137 Don't bail if return_pc is PC_IN_CALL_DUMMY.
6138 Add a temp variable to save a call (and a memory read).
6139 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
6140 if possible (so that PC_IN_CALL_DUMMY will work).
6141
6142 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
6143
6144 * MAINTAINERS: Remove status `OBSOLETE' from v850.
6145
6146 2002-05-22 Michal Ludvig <mludvig@suse.cz>
6147
6148 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6149 fde->cie_ptr.
6150 (dwarf2_build_frame_info): Corrected handling of eh_frame.
6151 (dwarf2_build_frame_info): Add offset to fde->initial_location
6152 so that frames of shared libraries are mapped correctly.
6153 (execute_stack_op): Change type of 'result' from ULONGEST to
6154 CORE_ADDR.
6155
6156 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6157
6158 * config/alpha/tm-nbsd.h: Include solib.h.
6159
6160 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6161
6162 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6163 assumptions about the host's byte order.
6164
6165 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6166
6167 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6168 to dependency list.
6169 * alphanbsd-tdep.c: Include solib-svr4.h.
6170 * shnbsd-tdep.c: Ditto.
6171
6172 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6173
6174 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6175 nbsd-tdep.h to dependency list.
6176 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6177 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6178 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6179 nbsdaout.mh and nbsdelf.mh consistently.
6180 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6181 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6182 nbsdaout.mt and nbsdelf.mh consistently.
6183 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6184 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6185 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6186 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6187 a.out shared library stuff from here...
6188 * config/nm-nbsdaout.h: ...to here.
6189 * config/tm-nbsd.h: Remove.
6190 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6191 * config/arm/nbsd.mh: Remove.
6192 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6193 nbsd-tdep.o.
6194 * config/arm/nbsdaout.mh: New file.
6195 * config/arm/nbsdelf.mh: New file.
6196 * config/arm/nm-nbsdaout.h: New file.
6197 * config/i386/nbsd.mh: Remove.
6198 * config/i386/nbsd.mt: Remove.
6199 * config/i386/nbsdaout.mh: New file.
6200 * config/i386/nbsdaout.mt: New file.
6201 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6202 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6203 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6204 i386_register_u_addr): Remove.
6205 * config/i386/nm-nbsdaout.h: New file.
6206 * config/i386/nm-nbsdelf.h: Remove.
6207 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6208 (USE_STRUCT_CONVENTION): Remove.
6209 * config/i386/tm-nbsdaout.h: New file.
6210 * config/i386/tm-nbsdelf.h: Remove.
6211 * config/m68k/nbsd.mh: Remove.
6212 * config/m68k/nbsd.mt: Remove.
6213 * config/m68k/nbsdaout.mh: New file.
6214 * config/m68k/nbsdaout.mt: New file.
6215 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6216 * config/m68k/nm-nbsdaout.h: New file.
6217 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6218 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6219 * config/ns32k/nbsd.mh: Remove.
6220 * config/ns32k/nbsd.mt: Remove.
6221 * config/ns32k/nbsdaout.mh: New file.
6222 * config/ns32k/nbsdaout.mt: New file.
6223 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6224 * config/ns32k/nm-nbsdaout.h: New file.
6225 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6226 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6227 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6228 (SVR4_SHARED_LIBS): Remove.
6229 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6230 * config/sparc/nbsd.mh: Remove.
6231 * config/sparc/nbsd.mt: Remove.
6232 * config/sparc/nbsdaout.mh: New file.
6233 * config/sparc/nbsdaout.mt: New file.
6234 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6235 * config/sparc/nbsdelf.mt: New file.
6236 * config/sparc/nm-nbsdaout.h: New file.
6237 * config/sparc/nm-nbsdelf.h: Remove.
6238 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6239 * config/sparc/tm-nbsdaout.h: New file.
6240
6241 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6242
6243 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6244 mipsnbsd-tdep.c
6245 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6246
6247 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6248
6249 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6250 shnbsd-nat.c.
6251 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6252
6253 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6254
6255 * NEWS: Note new MIPS NetBSD native configuration.
6256 * configure.host (mips*-*-netbsd*): New host.
6257 * configure.tgt (mips*-*-netbsd*): New target.
6258 * mipsnbsd-nat.c: New file.
6259 * mipsnbsd-tdep.c: New file.
6260 * mipsnbsd-tdep.h: New file.
6261 * config/mips/nbsd.mh: New file.
6262 * config/mips/nbsd.mt: New file.
6263 * config/mips/nm-nbsd.h: New file.
6264 * config/mips/tm-nbsd.h: New file.
6265
6266 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6267
6268 * Makefile.in (SFILES): Add osabi.c.
6269 (COMMON_OBS): Add osabi.o.
6270 (osabi.o): New dependency list.
6271 * osabi.c: New file.
6272 * osabi.h: New file.
6273 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6274
6275 * Makefile.in (alpha_tdep_h): Define and use instead of
6276 alpha-tdep.h.
6277 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6278 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6279 Remove.
6280 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6281 * alpha-tdep.h: Include osabi.h.
6282 (alpha_abi): Remove.
6283 (gdbarch_tdep): Use generic OS ABI framework.
6284 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6285 gdbarch_register_osabi.
6286 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6287 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6288 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6289
6290 * Makefile.in (sh_tdep_h): Add osabi.h.
6291 * sh-tdep.h (sh_osabi): Remove.
6292 (gdbarch_tdep): Use generic OS ABI framework.
6293 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6294 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6295 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6296 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6297
6298 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6299 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6300 gdbarch_register_osabi.
6301 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6302 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6303 (get_elfosabi): Rename to...
6304 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6305 ABI framework support routines.
6306 (arm_gdbarch_init): Use generic OS ABI framework.
6307 (arm_dump_tdep): Likewise.
6308 (_initialize_arm_tdep): Likewise.
6309 * arm-tdep.h: Include osabi.h.
6310 (arm_abi): Remove.
6311 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6312 osabi member.
6313 (arm_gdbarch_register_os_abi): Remove prototype.
6314 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6315 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6316
6317 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6318 * mips-tdep.c: Include osabi.h.
6319 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6320 OS ABI framework.
6321
6322 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6323
6324 * h8300-tdep.c: Fix formatting.
6325
6326 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
6327
6328 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6329 printing vector registers.
6330
6331 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6332
6333 From Fernando Nasser:
6334 * remote.c (remote_async_open_1): Re-throw the exception when the
6335 connection fails.
6336 (remote_cisco_open): Ditto.
6337 (remote_open_1): Ditto.
6338
6339 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6340
6341 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6342 (remote_start_remote): Add uiout parameter. Pass through to
6343 remote_start_remote_dummy.
6344 (remote_open_1): Use catch_exception instead of catch_errors.
6345 (remote_async_open_1): Ditto.
6346 (remote_cisco_open): Ditto.
6347
6348 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6349
6350 * remote.c (remote_start_remote): Replace PTR with void pointer.
6351 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6352 static.
6353
6354 2002-05-18 Andrew Cagney <ac131313@redhat.com>
6355
6356 * gdb_indent.sh: Allow the script to be run in the sim directory.
6357
6358 2002-05-18 Mark Kettenis <kettenis@gnu.org>
6359
6360 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6361 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6362
6363 * corelow.c (core_open): Only call set_gdbarch_from_file if
6364 exec_bfd is NULL.
6365
6366 2002-05-17 Andrey Volkov <avolkov@transas.com>
6367
6368 * h8300-tdep.c: Add support of EXR register
6369 * config/h8300/tm-h8300.h: Ditto.
6370
6371 2002-05-17 Andrey Volkov <avolkov@transas.com>
6372
6373 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6374
6375 2002-05-17 Andrey Volkov <avolkov@transas.com>
6376
6377 * h8300-tdep.c: Change literal regnums to REGNO.
6378
6379 2002-05-17 Jim Blandy <jimb@redhat.com>
6380
6381 * NEWS: Note addition of macro support.
6382
6383 Expand preprocessor macros in C expressions.
6384 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6385 (scan_macro_expansion, scanning_macro_expansion,
6386 finished_macro_expansion): New function declarations.
6387 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6388 variable declarations.
6389 * parser-defs.h (expression_context_pc): New declaration.
6390 * parse.c (expression_context_pc): New variable.
6391 (parse_exp_1): Set expression_context_pc, as well as
6392 expression_context_block.
6393 * c-exp.y (yylex): If we're not already reading the result of a
6394 macro expansion, try to macro-expand the next token. When we're
6395 done scanning a macro expansion, switch back to the mainline text.
6396 Commas and `if's in a macro's expansion don't terminate the input.
6397 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6398 (macro_original_text, macro_expanded_text,
6399 expression_macro_lookup_func, expression_macro_lookup_baton): New
6400 variables.
6401 (scan_macro_expansion, scanning_macro_expansion,
6402 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6403 c_preprocess_and_parse): New functions.
6404 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6405 c_preprocess_and_parse, instead of c_parse.
6406 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6407 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6408
6409 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6410
6411 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6412 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6413 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6414
6415 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
6416
6417 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6418
6419 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6420
6421 * Makefile.in (sh_tdep_h): Define and use.
6422 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6423 register enum): Move to...
6424 * * sh-tdep.h: ...here.
6425 * sh-tdep.c: Include sh-tdep.h.
6426 * sh3-rom.c: Likewise.
6427 * shnbsd-tdep.c: Likewise.
6428
6429 2002-05-16 Michael Snyder <msnyder@redhat.com>
6430
6431 * arm-tdep.c: Spelling fix in comment.
6432
6433 2002-05-16 Jim Blandy <jimb@redhat.com>
6434
6435 Add commands for manually expanding macros and showing their
6436 definitions.
6437 * macrocmd.c, macroscope.c, macroscope.h: New files.
6438 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6439 (macroscope_h): New variable.
6440 (HFILES_NO_SRCDIR): Add macroscope.h.
6441 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6442 (macroscope.o, macrocmd.o): New rules.
6443
6444 Teach the Dwarf 2 reader to read macro information.
6445 * dwarf2read.c: #include "macrotab.h".
6446 (dwarf_macinfo_buffer): New variable.
6447 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6448 dwarf_macinfo_size.
6449 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6450 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6451 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6452 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6453 dwarf2_macro_spaces_in_definition): New complaints.
6454 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6455 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6456 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6457 the partial symbol table.
6458 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6459 from what's recorded in the partial symbol table.
6460 (read_file_scope): If the compilation unit has a
6461 `DW_AT_macro_info' attribute, read its macro information.
6462 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6463
6464 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6465
6466 Fix PR gdb/546
6467 * ser-tcp.c: Don't include <netinet/udp.h>.
6468
6469 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6470
6471 * MAINTAINERS: Update my email address.
6472
6473 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
6474
6475 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6476 include file of the same name.
6477
6478 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6479
6480 * configure.tgt: Mark v850 as multi-arched.
6481 * config/v850/tm-v850.h: Remove file.
6482 * config/v850/v850.mt: Eliminate TM_FILE.
6483
6484 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6485
6486 * v850-tdep.c: Full multi-arch.
6487 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6488 Define GDB_MULTI_ARCH to 2.
6489
6490 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6491
6492 * p-exp.y (current_type): New static variable.
6493 Carries the type of the expression at the position that is parsed.
6494 (push_current_type, pop_current_type): Two new functions. Used
6495 to store/restore current_type in expression on specific tokens.
6496 (search_field): New static variable. Set to one after parsing a point
6497 as at that point only a FIELDNAME token should be searched.
6498 (FIELDNAME): New token. After a point only a token belonging to
6499 current_type type definition is allowed.
6500 (all over token rules): reset and change current_type according
6501 to rules.
6502 (exp '[' rule): insert implicit array index field if
6503 exp is a pascal string type.
6504
6505 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6506
6507 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6508 frame info. Use frame_info's saved_regs instead of matching member
6509 in extra_frame_info throughout.
6510 (v850_frame_init_saved_regs): New function.
6511 (v850_init_extra_frame_info): Move most functionality into
6512 v850_frame_init_saved_regs().
6513 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6514 (v850_frame_find_saved_regs): Remove declaration.
6515 (FRAME_FIND_SAVED_REGS): Remove definition.
6516 (v850_frame_init_saved_regs): Add declaration.
6517 (FRAME_INIT_SAVED_REGS): Add definition.
6518
6519 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6520
6521 * v850-tdep.c: Begin multi-arch'ing v850.
6522 (v850_target_architecture_hook): Remove function.
6523 (v850_gdbarch_init): New function. Add code previously in
6524 v850_target_architecture_hook().
6525 (_initialize_v850_tdep): Don't set target_architecture_hook.
6526 Call register_gdbarch_init() instead.
6527
6528 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6529
6530 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6531 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6532 (fixup_class_method_type): Likewise.
6533
6534 2002-05-15 Jim Blandy <jimb@redhat.com>
6535
6536 Add macro structures to GDB's symbol tables. Nobody puts anything
6537 in them yet.
6538 * symtab.h (struct symtab): New member: `macro_table'.
6539 * buildsym.h (pending_macros): New global variable.
6540 * buildsym.c: #include "macrotab.h".
6541 (buildsym_init): Initialize `pending_macros'.
6542 (end_symtab): If we found macro information while reading a CU's
6543 debugging info, do build a symtab structure for it. Make the
6544 symtab point to the macro information, and clear the
6545 `pending_macros' pointer which held it while we were reading the
6546 debug info.
6547 (really_free_pendings): Free any pending macro table.
6548 * objfiles.h (struct objfile): New member: `macro_cache'.
6549 * objfiles.c (allocate_objfile): Set allocate and free functions
6550 for the macro cache's objstack.
6551 (free_objfile): Empty the macro cache's obstack.
6552 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6553 set new allocate and free functions for it.
6554 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6555 free functions for the macro cache's objstack. (Why is this
6556 function building its own objfile?)
6557 * symmisc.c (print_objfile_statistics): Print statistics on the
6558 macro bcache.
6559 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6560
6561 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6562
6563 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6564 (REGISTER_U_ADDR): Delete definition.
6565 (arm_register_u_addr): Delete declaration.
6566
6567 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6568
6569 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6570 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6571
6572 2002-05-14 Andrew Cagney <ac131313@redhat.com>
6573
6574 * regcache.c (register_valid): Revise comments refering to "Not
6575 available" and "unavailable".
6576 * frame.c (frame_register_read): Ditto.
6577 * findvar.c (value_of_register): Ditto.
6578
6579 2002-05-15 Andrew Cagney <cagney@redhat.com>
6580
6581 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6582 (remote-sim.o): Update dependencies.
6583 (d10v-tdep.o): Specify dependencies.
6584 (sim_d10v_h): Define.
6585
6586 2002-05-14 Jim Blandy <jimb@redhat.com>
6587
6588 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6589 * macrotab.c (macro_lookup_inclusion, find_definition,
6590 new_macro_table): Same.
6591
6592 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6593 not `! strcmp ()'. This is a dubious improvement.
6594 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6595
6596 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6597 although it's not necessary, to avoid a warning.
6598
6599 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6600
6601 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6602 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6603 TYPE_INSTANCE_FLAGS.
6604 (struct main_type): New.
6605 (struct type): Move most members to struct main_type. Change
6606 cv_type and as_type to new type_chain member. Add instance_flags.
6607 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6608 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6609 (finish_cv_type): Remove prototype.
6610 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6611 Set TYPE_CHAIN.
6612 (alloc_type_instance): New function.
6613 (smash_type): New function.
6614 (make_pointer_type, make_reference_type, make_function_type)
6615 (smash_to_member_type, smash_to_method_type): Call smash_type.
6616 (make_qualified_type): New function.
6617 (make_type_with_address_space): Call make_qualified_type.
6618 (make_cv_type): Likewise.
6619 (finish_cv_type): Remove unnecessary function.
6620 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6621 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6622 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6623 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6624 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6625 * hpread.c (hpread_read_struct_type): Likewise.
6626 * stabsread.c (read_struct_type): Likewise.
6627
6628 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
6629
6630 * configure.tgt: Add a catch all sh* target, for cases like
6631 sh[2,3,4]-elf and sh-hms.
6632
6633 2002-05-14 Keith Seitz <keiths@redhat.com>
6634
6635 * event-loop.c (create_file_handler): Don't do anything but
6636 update data when we are given a fd which we are already
6637 monitoring.
6638
6639 2002-05-14 Michal Ludvig <mludvig@suse.cz>
6640
6641 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6642 (update_context): Use __func__ in warnings.
6643
6644 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6645
6646 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6647 and tcp_close to net_open and net_close.
6648 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6649 using UDP if requested. Don't try to disable Nagle on UDP
6650 sockets.
6651 * remote.c (remote_serial_open): New function. Warn about UDP.
6652 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6653
6654 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6655
6656 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6657
6658 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6659
6660 * configure.tgt: Remove sh-hms target.
6661 * MAINTAINERS: Don't list sh-hms as a separate target.
6662
6663 2002-05-13 Jim Blandy <jimb@redhat.com>
6664
6665 Add first preprocessor macro-expansion files.
6666 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6667 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6668 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6669 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6670 (COMMON_OBS): Add macrotab.o, macroexp.o.
6671 (macroexp.o, macrotab.o): New rules.
6672
6673 2002-05-13 Andrew Cagney <ac131313@redhat.com>
6674
6675 * config/m88k/tm-m88k.h: Update copyright.
6676 (m88k_target_write_pc): Declare
6677 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6678 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6679 (SHIFT_INST_REGS): Update definition.
6680 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6681 using old definition of TARGET_WRITE_PC.
6682 * regcache.c (generic_target_write_pc): Delete code handling
6683 NNPC_REGNUM.
6684 * gdbarch.sh (NNPC_REGNUM): Delete.
6685 * gdbarch.h, gdbarch.c: Regenerate.
6686
6687 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
6688
6689 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6690 builtin reg number.
6691
6692 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
6693
6694 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6695 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6696 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6697 access macros.
6698 * c-typeprint.c (cp_type_print_method_args): Likewise.
6699 (c_type_print_args): Likewise.
6700 * d10v-tdep.c (d10v_push_arguments): Likewise.
6701 (d10v_extract_return_value): Likewise.
6702 * expprint.c (print_subexp): Likewise.
6703 * gdbtypes.c (lookup_primitive_typename): Likewise.
6704 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6705 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6706 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6707 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6708 (TYPE_VECTOR): Likewise.
6709 * hpread.c (hpread_read_struct_type)
6710 (fix_static_member_physnames, fixup_class_method_type)
6711 (hpread_type_lookup): Likewise.
6712 * mdebugread.c (parse_symbol, parse_type): Likewise.
6713 * p-lang.c (is_pascal_string_type): Likewise.
6714 * valops.c (hand_function_call): Likewise.
6715 * x86-64-tdep.c (classify_argument): Likewise.
6716
6717 * hpread.c (hpread_read_function_type)
6718 (hpread_read_doc_function_type): Call replace_type.
6719 * dstread.c (create_new_type): Delete.
6720 (decode_dst_structure, process_dst_function): Call alloc_type.
6721 Use type access macros.
6722
6723 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6724
6725 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6726 the're not supported by the current architecture.
6727 (i387_fill_fxsave): Likewise.
6728
6729 2002-05-12 Fred Fish <fnf@redhat.com>
6730
6731 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6732 sect_index_xxx members to index the first slot in section_offsets
6733 if all of the section_offsets are zero.
6734
6735 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6736
6737 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6738 checked in with last change.
6739
6740 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6741
6742 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6743 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6744 config.sub.
6745
6746 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
6747
6748 * Makefile.in: Update dependencies.
6749
6750 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6751
6752 * language.c (local_hex_string_custom): Simplify. Do not depend
6753 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6754
6755 * memattr.c (mem_info_command): Replace calls to
6756 longest_local_hex_string and longest_local_hex_string_custom.
6757 * buildsym.c (make_blockvector): Ditto.
6758 * solib.c (info_sharedlibrary_command): Ditto.
6759 * tracepoint.c (tracepoints_info): Ditto.
6760 * symtab.c (print_msymbol_info): Ditto.
6761
6762 * language.c (local_hex_string): Delete.
6763 (local_hex_string_custom): Delete.
6764 (longest_local_hex_string): Rename to local_hex_string.
6765 (longest_local_hex_string_custom): Rename to
6766 local_hex_string_custom.
6767 * language.h (local_hex_string): Change parameter type to LONGEST.
6768 (local_hex_string_custom): Ditto.
6769 (longest_local_hex_string): Delete declaration.
6770 (longest_local_hex_string_custom): Ditto.
6771
6772 * solib.c: Update copyright.
6773 * memattr.c: Update copyright.
6774
6775 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6776
6777 * arch-utils.h (legacy_register_to_value): Declare.
6778 (legacy_value_to_register): Declare.
6779 (legacy_convert_register_p): Declare.
6780 * arch-utils.c (legacy_register_to_value): New function.
6781 (legacy_value_to_register): New function.
6782 (legacy_convert_register_p): New function.
6783
6784 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6785 (VALUE_TO_REGISTER): Define.
6786 (CONVERT_REGISTER_P): Define.
6787 * gdbarch.h, gdbarch.c: Regenerate.
6788
6789 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6790 VALUE_TO_REGISTER.
6791 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6792 CONVERT_REGISTER_P.
6793
6794 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
6795 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6796
6797 * Makefile.in: Update dependencies for valops.c.
6798 * valops.c: Include "gdb_assert.h".
6799 (typecmp): Skip THIS parameter to methods.
6800 (find_method_list): Remove static_memfuncp argument,
6801 update callers. Check for stub methods.
6802 (find_value_oload_method_list): Don't set *static_memfuncp.
6803 (find_overload_match): Don't check for stub methods. Assert
6804 that methods are not stubbed. Handle static methods.
6805 (value_find_oload_method_list): Remove static_memfuncp argument.
6806 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6807 to the argument list for static stub methods.
6808 * value.h (value_find_oload_method_list): Update prototype.
6809
6810 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6811
6812 * arch-utils.h (generic_register_size): Declare.
6813 (generic_register_raw_size, generic_register_virtual_size): Delete
6814 declarations.
6815 * arch-utils.c (generic_register_raw_size): Delete.
6816 (generic_register_size): New function.
6817 (generic_register_virtual_size): Delete.
6818
6819 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6820 default generic_register_size.
6821 * gdbarch.h, gdbarch.c: Re-generate.
6822
6823 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6824 register_virtual_size.
6825 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6826 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6827
6828 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6829
6830 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6831 * gdbarch.h, gdbarch.c: Regenerate.
6832 * gnu-v3-abi.c: Update copyright.
6833 (vtable_address_point_offset): Update.
6834 (gnuv3_rtti_type): Update.
6835 (gnuv3_baseclass_offset): Update.
6836 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6837 (init_fetch_link_map_offsets): Update.
6838 * remote.c (get_remote_state): Update.
6839
6840 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6841
6842 * TODO: Remove value_headof/value_from_vtable_info comment.
6843 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6844 * values.c (value_headof, value_from_vtable_info): Delete.
6845 * value.h (value_from_vtable_info): Delete prototype.
6846
6847 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6848
6849 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6850 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6851 $(gdb_regex_h).
6852 (gdb_assert_h): Define.
6853 (gdb_wait_h): Define.
6854 (gdb_regex_h): Define.
6855
6856 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6857
6858 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6859 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6860
6861 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6862
6863 * nbsd-tdep.c: Fix comment.
6864
6865 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6866
6867 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6868 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6869 (nbsd-tdep.o): New dependency list.
6870 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6871 nbsd-tdep.h.
6872 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6873 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6874 * nbsd-tdep.c: New file.
6875 * nbsd-tdep.h: New file.
6876 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6877 nbsd-tdep.h.
6878 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6879 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6880 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6881 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6882
6883 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6884
6885 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6886 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6887 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6888 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6889 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6890 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6891
6892 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6893
6894 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6895 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6896 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6897 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6898 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6899 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6900 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6901
6902 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6903
6904 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6905 fetch_elfcore_registers to...
6906 * i386nbsd-tdep.c: ...here.
6907 (i386nbsd_use_struct_convention): Rename to...
6908 (i386nbsd_aout_use_struct_convention): ...this.
6909 (i386nbsd_supply_reg): New function.
6910 (i386nbsd_fill_reg): New function.
6911 (fetch_core_registers): Use i386nbsd_supply_reg.
6912 (fetch_elfcore_registers): Likewise.
6913 (_initialize_i386nbsd_tdep): New function.
6914 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6915 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6916 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6917 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6918 (i386nbsd_aout_use_struct_convention): ...this.
6919
6920 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6921
6922 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6923 (store_inferior_registers): Use shnbsd_fill_reg.
6924 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6925 sh_nbsd_supply_register): Collapse into...
6926 (shnbsd_supply_reg): ...this.
6927 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6928 (shnbsd_fill_reg): ...this.
6929 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6930 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6931 (fetch_core_registers): Use shnbsd_supply_reg.
6932 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6933 (sh_nbsd_core_fns): Rename to...
6934 (shnbsd_core_fns): ...this.
6935 (sh_nbsd_elfcore_fns): Rename to...
6936 (shnbsd_elfcore_fns): ...this.
6937 (sh_nbsd_init_abi): Rename to...
6938 (shnbsd_init_abi): ...this.
6939 (_initialize_sh_nbsd_tdep): Rename to...
6940 (_initialize_shnbsd_tdep): ...this.
6941 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6942 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6943 sh_nbsd_fill_register): Remove prototypes.
6944 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6945
6946 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6947
6948 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6949 (i387-nat.o): Delete dependency list.
6950 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6951 (x86-64-linux-nat.o): Likewise.
6952 * i387-nat.c: Delete file, moving contents to...
6953 * i387-tdep.c: ...here.
6954 * i387-nat.h: Rename...
6955 * i387-tdep.h: ...to this.
6956 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6957 * i386-linux-nat.c: Likewise.
6958 * i386bsd-nat.c: Likewise.
6959 * i386gnu-nat.c: Likewise.
6960 * i386nbsd-nat.c: Likewise.
6961 * i386v4-nat.c: Likewise.
6962 * x86-64-linux-nat.c: Likewise.
6963 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6964 * config/i386/go32.mh (NATDEPFILES): Likewise.
6965 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6966 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6967 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6968 * config/i386/linux.mh (NATDEPFILES): Likewise.
6969 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6970 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6971 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6972 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6973
6974 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6975
6976 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6977 (alphanbsd-nat.o): Remove dependency list.
6978 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6979 * alphanbsd-nat.c: Delete. Contents moved to...
6980 * alphanbsd-tdep.c: ...here.
6981 (_initialize_alphanbsd_tdep): Register core functions.
6982 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6983
6984 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6985
6986 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6987 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6988 (alphanbsd-nat.o): Likewise.
6989 (alphabsd-tdep.o): New dependency list.
6990 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6991 (fill_gregset): Use alphabsd_fill_reg.
6992 (supply_fpregset): Use alphabsd_supply_fpreg.
6993 (fill_fpregset): Use alphabsd_fill_fpreg.
6994 (fetch_inferior_registers): Use struct reg and struct fpreg
6995 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6996 and alphabsd_supply_fpreg.
6997 (store_inferior_registers): Use struct reg and struct fpreg
6998 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6999 and alphabsd_fill_fpreg.
7000 * alphabsd-tdep.c: New file.
7001 * alphabsd-tdep.h: New file.
7002 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
7003 (fetch_elfcore_registers): Use alphabsd_supply_reg and
7004 alphabsd_supply_fpreg.
7005 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
7006 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7007
7008 2002-05-11 Eric Christopher <echristo@redhat.com>
7009
7010 * mips-tdep.c (mips_double_register_type): Fix thinko.
7011 (mips_single_register_type): Ditto.
7012 * MAINTAINERS: Add self.
7013
7014 2002-05-11 Mark Kettenis <kettenis@gnu.org>
7015
7016 * i387-nat.c (i387_supply_register, i387_fill_fsave,
7017 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
7018 right thing on architectures with different endianness and/or
7019 integer sizes.
7020
7021 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
7022
7023 From Christian Limpach <chris@Pin.LU>
7024 * configure.in: Change sed expression which comments out
7025 NATDEPFILES to also comment out continuation lines.
7026 * configure: Regenerate.
7027
7028 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7029
7030 * sh-tdep.c: Clean up code erroneously reintroduced by previous
7031 big patch.
7032
7033 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7034
7035 * sh-tdep.c: Include correct file.
7036
7037 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7038
7039 New support for sh64-elf (sh5) target.
7040
7041 * configure.tgt: For sh64-elf target, default to sh-elf.
7042
7043 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
7044 (struct gdbarch_tdep): Add new fields for new registers and ABI
7045 info.
7046
7047 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
7048 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
7049 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
7050 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
7051 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
7052 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
7053 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
7054 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
7055 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
7056 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
7057 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
7058 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
7059 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
7060 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
7061 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
7062 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
7063 sh64_get_gdb_regnum, sh64_media_reg_base_num,
7064 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
7065 sign_extend, sh64_nofp_frame_init_saved_regs,
7066 sh64_init_extra_frame_info, sh64_get_saved_register,
7067 sh64_extract_struct_value_address, sh64_pop_frame,
7068 sh64_push_arguments, sh64_extract_return_value,
7069 sh64_store_return_value, sh64_show_media_regs,
7070 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
7071 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
7072 sh_sh64_register_virtual_type,
7073 sh_sh64_register_convert_to_virtual,
7074 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
7075 sh64_register_read, sh64_pseudo_register_write,
7076 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
7077 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
7078 sh64_do_pseudo_register, sh_compact_do_registers_info,
7079 sh64_do_registers_info, sh_gdbarch_init): New functions.
7080
7081 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7082
7083 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
7084
7085 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
7086
7087 * linespec.c (decode_line_1): Check for a double quote after
7088 a filename correctly.
7089
7090 2002-05-10 Jim Blandy <jimb@redhat.com>
7091
7092 Properly track the size of the current objfile's .debug_line section.
7093 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
7094 (DWARF_LINE_SIZE): New macro.
7095 (dwarf2_build_psymtabs_hard): Record the line section's size in
7096 the partial symbol table.
7097 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
7098 symbol table.
7099
7100 2002-05-10 Petr Sorfa <petrs@caldera.com>
7101
7102 * ia64-tdep.c: Handle breakpoints on L instruction type
7103 in MLX instruction bundle by moving the breakpoint to
7104 the third slot (X instruction type) as L holds only data.
7105
7106 2002-05-10 Kevin Buettner <kevinb@redhat.com>
7107
7108 * dbxread.c (discarding_local_symbols_complaint): New complaint.
7109 (process_one_symbol): Complain about discarding local symbols
7110 due to a misplaced N_LBRAC entry.
7111
7112 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
7113
7114 From Daniel Berlin <dan@cgsoftware.com>
7115 * linespec.c (find_toplevel_char): '<' and '>' also increase and
7116 decrease the depth we are at, in the case of templates.
7117
7118 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7119
7120 * mips-tdep.c (mips_float_register_type): New function.
7121 (mips_double_register_type): New function.
7122 (mips_print_register): Use them.
7123 (do_fp_register_row): Likewise.
7124
7125 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7126
7127 * signals/signals.c (signals): Remove conditional compilation around
7128 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
7129 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
7130
7131 2002-05-09 Michael Snyder <msnyder@redhat.com>
7132
7133 * remote-rdp.c (remote_rdp_can_run): Remove.
7134
7135 2002-05-09 Tom Tromey <tromey@redhat.com>
7136
7137 * jv-valprint.c (java_val_print): Handle `char' as a special case
7138 of TYPE_CODE_INT.
7139
7140 2002-05-09 Michael Snyder <msnyder@redhat.com>
7141
7142 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
7143 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
7144 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
7145 str r(0123),[sp,#nn].
7146 (arm_skip_prologue): Ditto. Also make disassembly
7147 order-independent by placing it in a loop.
7148
7149 2002-05-06 Michael Snyder <msnyder@redhat.com>
7150
7151 * stabsread.c (read_type): Add recognition for new attribute:
7152 "@V;" means that an array type is actually a vector.
7153 This is analogous to the vector flag that's been added to dwarf2.
7154
7155 2002-05-09 Mark Kettenis <kettenis@gnu.org>
7156
7157 * i386-tdep.h (i386_abi): New enum.
7158 (struct gdbarch_tdep): Replace os_ident member with abi.
7159 (i386_gdbarch_register_os_abi): New prototype.
7160 * i386-tdep.c (i386_abi_names): New array.
7161 (process_note_abi_tag_sections): Removed.
7162 (process_note_sections): New function.
7163 (i386_elf_abi_from_note, i386_elf_abi): New functions.
7164 (struct i386_abi_handler): New struct.
7165 (i386_abi_handler_list): New variable.
7166 (i386_gdbarch_register_os_abi): New function.
7167 (i386_gdbarch_init): Adapt for the changes given above.
7168
7169 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
7170
7171 * gregset.h: Say "GNU/Linux".
7172
7173 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
7174
7175 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7176 (build_gdbtypes): Build builtin_type_v2_float.
7177 (_initialize_gdbtypes): Register new builtin type.
7178
7179 2002-05-08 Andrew Cagney <ac131313@redhat.com>
7180
7181 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7182 (clear_gdbarch_swap): New function.
7183 (initialize_non_multiarch): Call.
7184 (gdbarch_update_p): Before calling init(), swap out and clear the
7185 existing architecture.
7186 * gdbarch.c: Regenerate.
7187
7188 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7189
7190 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7191 alphanbsd-tdep.c.
7192
7193 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7194
7195 * sh-nbsd-nat.c: Rename to...
7196 * shnbsd-nat.c: ...this.
7197 * sh-nbsd-tdep.c: Rename to...
7198 * shnbsd-tdep.c: ...this.
7199 * sh-nbsd-tdep.h: Rename to...
7200 * shnbsd-tdep.h: ...this.
7201 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7202 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7203
7204 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
7205
7206 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7207 concatenation for command help messages.
7208
7209 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7210
7211 * NEWS: Note new sh*-*-netbsdelf* configuration.
7212 * configure.host: Set gdb_host_cpu to sh for all sh*.
7213 (sh*-*-netbsdelf*): New host.
7214 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7215 (sh*-*-netbsdelf*): New target.
7216 * sh-nbsd-nat.c: New file.
7217 * sh-nbsd-tdep.c: New file.
7218 * sh-nbsd-tdep.h: New file.
7219 * config/sh/nbsd.mh: New file.
7220 * config/sh/nbsd.mt: New file.
7221 * config/sh/nm-nbsd.h: New file.
7222 * config/sh/tm-nbsd.h: New file.
7223
7224 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7225
7226 * sh-tdep.c (sh_osabi_names): Declare.
7227 (process_note_abi_tag_sections): New function.
7228 (get_elfosabi): Ditto.
7229 (sh_gdbarch_register_os_abi): Ditto.
7230 (sh_dump_tdep): Ditto.
7231 _initialize_sh_tdep): Use gdbarch_register to register
7232 sh_gdbarch_init and sh_dump_tdep.
7233 * config/sh/tm-sh.h (sh_osabi): Declare.
7234 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7235
7236 2002-05-07 Andrew Cagney <ac131313@redhat.com>
7237
7238 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7239 (thumb_scan_prologue): Ditto.
7240 (arm_find_callers_reg): Ditto.
7241 (arm_frame_chain): Ditto.
7242 (arm_init_extra_frame_info): Ditto.
7243 (arm_frame_saved_pc): Ditto.
7244 (arm_pop_frame): Ditto.
7245 (arm_push_return_address): New function.
7246 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7247 call_dummy_location, call_dummy_breakpoint_offset_p,
7248 call_dummy_breakpoint_offset, call_dummy_p,
7249 call_dummy_stack_adjust_p, call_dummy_words,
7250 sizeof_call_dummy_words, call_dummy_start_offset,
7251 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7252 call_dummy_address, push_return_address and push_dummy_frame for
7253 generic dummy frames.
7254
7255 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7256
7257 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7258 size computation for alloca.
7259 (sh_fp_frame_init_saved_regs): Likewise.
7260
7261 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
7262
7263 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7264 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
7265 * arm-tdep.c (arm_store_return_value): Use them.
7266 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7267 * remote-rdp.c (remote_rdp_fetch_register): Use
7268 ARM_MAX_REGISTER_RAW_SIZE.
7269 (remote_rdp_store_register): Likewise.
7270
7271 2002-05-07 Michal Ludvig <mludvig@suse.cz>
7272
7273 * dwarf2cfi.c: Code cleanup, removed unused variables,
7274 added default labels to switch {} statements.
7275 * x86-64-tdep.c: Ditto.
7276 * x86-64-linux-nat.c: Ditto.
7277
7278 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7279
7280 * solib.h: Protect against multiple inclusion.
7281
7282 2002-05-06 Jim Blandy <jimb@redhat.com>
7283
7284 Add first preprocessor macro-expansion files.
7285 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7286 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7287 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7288 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7289 (COMMON_OBS): Add macrotab.o, macroexp.o.
7290 (macroexp.o, macrotab.o): New rules.
7291
7292 Separate the job of reading the line number info statement program
7293 header (...expialidocious) out into its own function.
7294 * dwarf2read.c (struct line_head, struct filenames, struct
7295 directories): Replace with...
7296 (struct line_header): New structure, containing the full
7297 contents of the statement program header, including the
7298 include directory and file name tables.
7299 (read_file_scope): If we have line number info, instead of just
7300 calling dwarf_decode_lines to do all the work, call
7301 dwarf_decode_line_header first to get a `struct line_header'
7302 containing the data in the statement program header, and then
7303 pass that to dwarf_decode_lines, which will pick up where that
7304 left off. Be sure to clean up the `struct line_header' object.
7305 (dwarf_decode_line_header, free_line_header, add_include_dir,
7306 add_file_name): New functions.
7307 (dwarf_decode_lines): Move all the code to read the statement
7308 program header into dwarf_decode_line_header. Take the line
7309 header it built as the first argument, instead of the offset to
7310 the compilation unit's line number info. Use the new `struct
7311 line_header' type instead of the old structures. No need to do
7312 cleanups here now, since we don't allocate anything.
7313 (dwarf2_statement_list_fits_in_line_number_section,
7314 dwarf2_line_header_too_long): New complaints.
7315
7316 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
7317
7318 * gdbtypes.c (init_vector_type): New function.
7319 (build_builtin_type_vec128): Simplify the representation of SIMD
7320 registers.
7321 (build_gdbtypes): Initialize new builtin vector types.
7322 (_initialize_gdbtypes): Register new vector types with gdbarch.
7323 (builtin_type_v4_float, builtin_type_v4_int32,
7324 builtin_type_v8_int16, builtin_type_v16_int8,
7325 builtin_type_v2_int32, builtin_type_v4_int16,
7326 builtin_type_v8_int8): New (renamed) SIMD types.
7327
7328 2002-05-06 Mark Kettenis <kettenis@gnu.org>
7329
7330 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7331 (i387_fill_fxsave): Likewise.
7332
7333 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
7334
7335 * alpha-tdep.c (alpha_extract_return_value): Don't use
7336 non-constant array size in prototype.
7337
7338 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7339
7340 From Brian Taylor <briant at model dot com>:
7341 * ui-out.c (ui_out_field_core_addr): Use the function
7342 longest_local_hex_string_custom'to format addresses > 32 bits
7343 wide.
7344
7345 * ui-out.c (ui_out_field_core_addr): Update comment.
7346
7347 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7348
7349 * stack.c (select_and_print_frame): Make static. Delete the
7350 parameter `level'.
7351 (func_command): Update call.
7352 (select_frame_command): Delete code computing the frame level.
7353 * frame.h (select_and_print_frame): Delete declaration.
7354
7355 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7356
7357 * sparc-tdep.c (sparc_get_saved_register): Comment why
7358 get_prev_frame call is safe.
7359
7360 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7361
7362 * frame.h (select_frame): Delete level parameter.
7363 * stack.c (select_frame): Update. Use frame_relative_level to
7364 obtain the frame's level.
7365 (select_and_print_frame): Update call.
7366 (select_frame_command): Ditto.
7367 (up_silently_base): Ditto.
7368 (down_silently_base): Ditto.
7369 * ocd.c (ocd_start_remote): Ditto.
7370 * remote-rdp.c (remote_rdp_open): Ditto.
7371 * remote-mips.c (mips_initialize): Ditto.
7372 (common_open): Ditto.
7373 * remote-e7000.c (e7000_start_remote): Ditto.
7374 * m3-nat.c (select_thread): Ditto.
7375 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7376 (child_get_current_exception_event): Ditto.
7377 * varobj.c (varobj_create): Ditto.
7378 (varobj_update): Ditto.
7379 (c_value_of_root): Ditto.
7380 * tracepoint.c (finish_tfind_command): Ditto.
7381 * corelow.c (core_open): Ditto.
7382 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7383 * thread.c (info_threads_command): Ditto.
7384 (switch_to_thread): Ditto.
7385 * infrun.c (normal_stop): Ditto.
7386 (restore_selected_frame): Ditto.
7387 (restore_inferior_status): Ditto.
7388 * breakpoint.c (insert_breakpoints): Ditto.
7389 (watchpoint_check): Ditto.
7390 (bpstat_stop_status): Ditto.
7391 (do_enable_breakpoint): Ditto.
7392 * blockframe.c (flush_cached_frames): Ditto.
7393 (reinit_frame_cache): Ditto.
7394
7395 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7396
7397 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7398 maintainer.
7399
7400 2002-05-04 Jim Blandy <jimb@redhat.com>
7401
7402 * gdbtypes.c (replace_type): Doc fix.
7403
7404 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7405
7406 * valprint.c (strcat_longest): Delete commented out function.
7407 Update copyright.
7408
7409 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7410
7411 * MAINTAINERS: Mark a29k as deleted.
7412 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7413 Move new configurations to the top.
7414 * configure.tgt: Remove a29k.
7415 * config/a29k/tm-vx29k.h: Delete.
7416 * config/a29k/vx29k.mt: Delete.
7417 * config/a29k/tm-a29k.h: Delete.
7418 * config/a29k/a29k-udi.mt: Delete.
7419 * config/a29k/a29k.mt: Delete.
7420 * a29k-tdep.c: Delete.
7421 * remote-udi.c: Delete.
7422 * remote-mm.c: Delete.
7423 * remote-eb.c: Delete.
7424 * remote-adapt.c: Delete.
7425 * Makefile.in: Remove obsolete code.
7426 * config/s390/s390x.mt: Ditto.
7427 * config/s390/s390.mt: Ditto.
7428 * config/sparc/sparclynx.mh: Ditto.
7429 * config/sparc/linux.mh: Ditto.
7430 * config/pa/hppaosf.mh: Ditto.
7431 * config/pa/hppabsd.mh: Ditto.
7432 * config/ns32k/nbsd.mt: Ditto.
7433 * config/mips/vr5000.mt: Ditto.
7434 * config/m68k/sun3os4.mh: Ditto.
7435 * config/m68k/nbsd.mt: Ditto.
7436 * config/m68k/m68klynx.mh: Ditto.
7437 * config/m32r/m32r.mt: Ditto.
7438 * config/i386/x86-64linux.mt: Ditto.
7439 * config/i386/nbsdelf.mt: Ditto.
7440 * config/i386/nbsd.mt: Ditto.
7441 * config/i386/i386lynx.mh: Ditto.
7442
7443 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7444
7445 * target.c (debug_print_register): New function. Handle oversize
7446 registers.
7447 (debug_to_fetch_registers): Call.
7448 (debug_to_store_registers): Call.
7449
7450 2002-05-03 Jim Blandy <jimb@redhat.com>
7451
7452 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7453 (read_type): Doc fix.
7454 * gdbtypes.c (replace_type): Doc fix.
7455
7456 * stabsread.c (multiply_defined_struct): New complaint.
7457 (read_struct_type): If the type we were passed isn't empty, or
7458 incomplete, don't read the new struct type into it; complain,
7459 and return the original type unchanged. Take a new `type_code'
7460 argument, which is the type code for the new type.
7461 (read_type): Rather than storing the type's type code here, pass
7462 it as an argument to read_struct_type, and let that take care of
7463 storing it. That way, we don't overwrite the original type code,
7464 so read_struct_type can use it to decide whether we're overwriting
7465 something we shouldn't.
7466 (complain_about_struct_wipeout): New function.
7467
7468 2002-05-03 Andrew Cagney <ac131313@redhat.com>
7469
7470 * gdbarch.sh: Assert that gdbarch is non-NULL.
7471 * gdbarch.c: Regenerate.
7472
7473 2002-05-03 Jason Merrill <jason@redhat.com>
7474
7475 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7476 and return NULL.
7477
7478 2002-05-03 Michal Ludvig <mludvig@suse.cz>
7479
7480 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7481 (x86_64_dwarf2gdb_regno_map_length),
7482 (x86_64_dwarf2_reg_to_regnum): Added.
7483 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7484 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7485 (_initialize_x86_64_tdep): Synced with the change above.
7486 (x86_64_skip_prologue): Reformulated message.
7487
7488 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7489
7490 * f-exp.y: Also use new prev_lexptr variable
7491 to improve error reporting. Based on Michael Snyder
7492 2002-04-24 dated patch to c-exp.y.
7493 * jv-exp.y: Likewise.
7494 * m2-exp.y: Likewise.
7495
7496 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
7497
7498 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7499 we are dealing with vectors.
7500
7501 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7502
7503 * config/m68k/tm-nbsd.h: Obvious fix,
7504 correct machine name.
7505
7506 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7507
7508 * p-typeprint.c (pascal_type_print_base): Add support
7509 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7510
7511 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7512
7513 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7514 for fondamental pascal 'char' type.
7515
7516 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7517
7518 * p-lang.h (is_pascal_string_type): Declaration changed,
7519 new sixth argument of type char ** added.
7520 * p-lang.c (is_pascal_string_type): Implementation
7521 changed. Args length_pos, length_size, string_pos, char_size
7522 can now be NULL. New argument arrayname set to the field
7523 name of the char array. Return value set to char array
7524 field index plus one.
7525 * p-valprint.c (pascal_val_print): Adapt to new declaration of
7526 is_pascal_string_type function.
7527
7528 2002-05-02 Andrew Cagney <cagney@redhat.com>
7529
7530 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7531 <cagney@redhat.com> change.
7532 * gdbarch.c: Regenerate.
7533
7534 2002-05-02 Andrew Cagney <cagney@redhat.com>
7535
7536 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7537 before probing for a new one. Detect errorenous gdbarch_init
7538 functions.
7539 * gdbarch.c: Regenerate.
7540
7541 2002-05-01 Andrew Cagney <cagney@redhat.com>
7542
7543 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7544 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7545 * config/v850/tm-v850.h: Ditto. Update copyright.
7546
7547 2002-04-30 Andrew Cagney <ac131313@redhat.com>
7548
7549 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7550 current_gdbarch.
7551
7552 2002-04-30 Michael Snyder <msnyder@redhat.com>
7553
7554 * arm-tdep.c: Whitespace clean-ups.
7555 (arm_skip_prologue): Fix thinko; two lines
7556 should have been removed as part of 4/24 change.
7557
7558 2002-04-30 Kevin Buettner <kevinb@redhat.com>
7559
7560 * rs6000-tdep.c: Added comment describing how fpscr register
7561 numbers were chosen.
7562
7563 2002-04-30 Michael Snyder <msnyder@redhat.com>
7564
7565 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7566
7567 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7568
7569 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7570 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7571 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7572
7573 2002-04-29 Kevin Buettner <kevinb@redhat.com>
7574
7575 From Louis Hamilton <hamilton@redhat.com>:
7576 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7577 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7578 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7579 not bfd-private xcoff data, to determine wordsize.
7580 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7581
7582 2002-04-29 Andrew Cagney <ac131313@redhat.com>
7583
7584 GDB 5.2 released from 5.2 branch.
7585
7586 2002-04-29 Michal Ludvig <mludvig@suse.cz>
7587
7588 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7589 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7590 (x86_64_register_info_table): Added comments with register numbers.
7591
7592 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7593
7594 * rs6000-tdep.c (rs6000_extract_return_value,
7595 rs6000_store_return_value): Handle returning vectors.
7596 (rs6000_gdbarch_init): Use
7597 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7598 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7599 New function.
7600 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7601 vectors.
7602 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7603 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7604
7605 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7606
7607 * hpread.c (hpread_psymtab_to_symtab_1,
7608 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7609 with fprintf_unfiltered (gdb_stderr,...).
7610
7611 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7612
7613 * remote-array.c (printf_monitor, write_monitor,
7614 array_insert_breakpoint, array_remove_breakpoint ):
7615 Replace fprintf (stderr,...
7616 with fprintf_unfiltered (gdb_stderr,....
7617 * remote-es.c: Likewise.
7618 * remote-os9k.c: Likewise.
7619 * remote-st.c: Likewise.
7620
7621 2002-04-28 Andreas Schwab <schwab@suse.de>
7622
7623 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7624 linux-proc.o and gcore.o.
7625
7626 2002-04-26 Michal Ludvig <mludvig@suse.cz>
7627
7628 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7629 code without frame pointers.
7630
7631 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7632
7633 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7634 ON_STACK is needed.
7635
7636 2002-04-26 Ben Elliston <bje@redhat.com>
7637
7638 * target.c (do_xfer_memory): Correct reference to the new option
7639 "trust-readonly-sections".
7640
7641 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
7642
7643 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7644 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7645 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7646 vectors.
7647 (read_array_type): Record the fact that this array type is really a
7648 vector (i.e. are passed in by value).
7649
7650 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7651
7652 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7653 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7654 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7655 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7656 * alpha-linux-tdep.c: Include frame.h.
7657 (alpha_linux_sigcontext_addr): New function.
7658 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7659 alpha_linux_sigcontext_addr.
7660 * alpha-osf1-tdep.c: Include gdbcore.h.
7661 (alpha_osf1_sigcontext_addr): New function.
7662 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7663 alpha_osf1_sigcontext_addr.
7664 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7665 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7666
7667 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7668
7669 * stack.c (selected_frame_level):
7670 (select_frame): Do not set selected_frame_level.
7671 * frame.h (selected_frame_level): Delete declaration.
7672
7673 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7674
7675 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7676 convert_from_func_ptr-addr when AIX / PowerOpen.
7677
7678 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7679
7680 * valops.c (hand_function_call): Call
7681 generic_save_call_dummy_addr.
7682 * frame.h (generic_save_call_dummy_addr): Declare.
7683 * blockframe.c (struct dummy_frame): Add fields call_lo and
7684 call_hi.
7685 (generic_find_dummy_frame): Check for PC in range call_lo to
7686 call_hi instead of entry_point_address.
7687 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7688 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7689 (generic_save_call_dummy_addr): New function.
7690
7691 2002-04-24 David S. Miller <davem@redhat.com>
7692
7693 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7694 sparc_skip_prologue.
7695 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7696 information to find prologue when possible.
7697 (sparc_prologue_frameless_p): Call examine_prologue directly.
7698 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7699 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7700 second argument.
7701 (SKIP_PROLOGUE): Likewise.
7702
7703 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7704
7705 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7706 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7707 indicate that the condition it was testing is always true.
7708 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7709 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7710 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7711
7712 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7713
7714 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7715 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7716 tdep->jb_pc and tdep->jb_elt_size.
7717 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7718 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7719 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7720 * alpha-nat.c (get_longjmp_target): Remove.
7721 (JB_ELEMENT_SIZE): Ditto.
7722 (JB_PC): Ditto.
7723 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7724 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7725 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7726 to alpha_get_longjmp_target.
7727 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7728 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7729 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7730
7731 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7732
7733 * README: Update to GDB 5.2.
7734
7735 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7736
7737 * gdbarch.sh (LC_ALL): Set to `c'.
7738
7739 2002-04-25 Theodore A. Roth <troth@verinet.com>
7740
7741 * avr-tdep.c: Ran through gdb_indent.sh.
7742
7743 2002-04-25 Theodore A. Roth <troth@verinet.com>
7744
7745 * MAINTAINERS: Add myself as AVR maintainer.
7746 * NEWS: Note new target avr.
7747
7748 2002-04-25 Theodore A. Roth <troth@verinet.com>
7749
7750 * Makefile.in: Add support for AVR target.
7751 * configure.tgt: Add support for AVR target.
7752 * avr-tdep.c: New file
7753 * config/avr/avr.mt: New file.
7754
7755 2002-04-25 Theodore A. Roth <troth@verinet.com>
7756
7757 * MAINTAINERS: Add myself to write-after-approval.
7758
7759 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7760
7761 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7762 with fprintf_unfiltered (gdb_stderr,....
7763
7764 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7765
7766 Fix PR gdb/508.
7767 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7768
7769 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7770
7771 * p-exp.y: Also use new prev_lexptr variable
7772 to improve error reporting. Based on Michael Snyder
7773 2002-04-24 dated patch to c-exp.y.
7774
7775 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7776
7777 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7778 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7779 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7780 to 0.
7781 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7782 and struct value.
7783 (FUNCTION_START_OFFSET): Remove.
7784 (BREAKPOINT): Ditto.
7785
7786 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7787
7788 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7789 * NEWS: Ditto.
7790
7791 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7792
7793 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7794 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7795 alpha_linux_pc_in_sigtramp.
7796 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7797 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7798 alpha_osf1_pc_in_sigtramp.
7799 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7800 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7801 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7802 alphafbsd_pc_in_sigtramp.
7803 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7804 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7805 alphanbsd_pc_in_sigtramp.
7806 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7807 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7808
7809 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7810
7811 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7812
7813 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7814
7815 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7816 alphanbsd-tdep.c.
7817 (alphanbsd-nat.o): New dependency list.
7818 (alphanbsd-tdep.o): Ditto.
7819 * NEWS: Note new native NetBSD/alpha configuration.
7820 * alphanbsd-nat.c: New file.
7821 * alphanbsd-tdep.c: Ditto.
7822 * configure.host (alpha*-*-netbsd*): New host.
7823 * configure.tgt (alpha*-*-netbsd*): New target.
7824 * config/alpha/nbsd.mh: New file.
7825 * config/alpha/nbsd.mt: Ditto.
7826 * config/alpha/nm-nbsd.h: Ditto.
7827 * config/alpha/tm-nbsd.h: Ditto.
7828
7829 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7830
7831 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7832 (alpha-osf1-tdep.o): New dependency list.
7833 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7834 and skip_sigtramp_frame members.
7835 * alpha-linux-tdep.c: Include gdbcore.h.
7836 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7837 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7838 * alpha-osf1-tdep.c: New file.
7839 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7840 alpha-osf1-dep.c.
7841 (alpha_frame_past_sigtramp_frame): New function.
7842 (alpha_dynamic_sigtramp_offset): Ditto.
7843 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7844 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7845 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7846 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7847 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7848 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7849 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7850 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7851 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7852 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7853 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7854 to find_solib_trampoline_target.
7855 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7856 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7857 (SKIP_TRAMPOLINE_CODE): Remove.
7858 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7859 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7860 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7861 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7862 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7863 (PROC_SIGTRAMP_MAGIC): Ditto.
7864 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7865 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7866 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7867 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7868 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7869
7870 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7871
7872 * NEWS: Note that Alpha targets are now multi-arch.
7873
7874 2002-04-24 Michael Snyder <msnyder@redhat.com>
7875
7876 * parser-defs.h (prev_lexptr): New external variable.
7877 * parse.c (parse_exp_1): Set prev_lexptr to null before
7878 calling the language-specific parser.
7879 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7880 (yyerror): Use prev_lexptr in error reporting.
7881
7882 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
7883
7884 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7885 * gregset.h: If FILL_FPXREGSET is defined, provide
7886 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7887 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7888 is defined, call fill_fpxregset.
7889
7890 2002-04-24 Roland McGrath <roland@frob.com>
7891
7892 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7893 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7894 (supply_gregset, supply_fpregset): New functions.
7895
7896 * gnu-nat.c (gnu_find_memory_regions): New function.
7897 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7898 (gnu_xfer_memory): Add a cast.
7899
7900 2002-04-24 Michael Snyder <msnyder@redhat.com>
7901
7902 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
7903 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7904 of argument regs ("str r(0123), [r11, #-nn"]).
7905 (arm_skip_prologue): Better handling for frameless functions.
7906 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7907 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7908
7909 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7910
7911 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7912 NUM_PSEUDO_REGS can be used.
7913
7914 2002-04-24 Andrew Cagney <ac131313@redhat.com>
7915
7916 * arch-utils.h: Update copyright.
7917
7918 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7919 * gdbarch.h, gdbarch.c: Re-generate.
7920
7921 * inferior.h (IN_SIGTRAMP): Delete definition.
7922 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7923 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7924
7925 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7926 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7927 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7928 (find_proc_framesize): Ditto.
7929 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7930 (alpha_init_extra_frame_info): Ditto.
7931 * infrun.c (handle_inferior_event): Ditto.
7932 (handle_inferior_event): Ditto.
7933 (check_sigtramp2): Ditto.
7934 * blockframe.c (create_new_frame): Ditto.
7935 (get_prev_frame): Ditto.
7936 * ppc-linux-tdep.c: Update comments.
7937 * i386-linux-tdep.c: Update comments.
7938 * breakpoint.c (bpstat_what): Update comment.
7939
7940 2002-04-24 David S. Miller <davem@redhat.com>
7941
7942 * i960-tdep.c (register_in_window_p): New function.
7943 (i960_find_saved_register): Use it instead of
7944 REGISTER_IN_WINDOW_P.
7945 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7946
7947 * symtab.h (find_stab_function_addr): Kill extern.
7948 * minsyms.c (find_stab_function_addr): Remove from here...
7949 * dbxread.c: ... to here, and mark it static.
7950
7951 2002-04-20 David S. Miller <davem@redhat.com>
7952
7953 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7954 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7955
7956 2002-04-21 David S. Miller <davem@redhat.com>
7957
7958 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7959 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7960 (vx_write_register): Likewise.
7961
7962 2002-04-23 J. Brobecker <brobecker@gnat.com>
7963
7964 * source.c (is_regular_file): New function.
7965 (openp): Check wether file to open is a regular file
7966 to avoid opening directories.
7967
7968 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7969
7970 * findvar.c (extract_signed_integer): Cast printf argument
7971 to suppress format warning.
7972 (extract_unsigned_integer): Likewise.
7973 * infcmd.c (registers_info): Likewise.
7974 * top.c (get_prompt_1): Likewise.
7975 * valops.c (value_assign): Likewise.
7976 * valprint.c (print_decimal): Likewise.
7977
7978 2002-04-22 H.J. Lu (hjl@gnu.org)
7979
7980 * c-exp.y (typebase): Support
7981
7982 [long|long long|short] [signed|unsigned] [int|]
7983
7984 and
7985
7986 signed [long|long long|short] int
7987
7988 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7989
7990 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7991 and vax-tdep.h.
7992 * vax-tdep.h: New file.
7993 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7994 Make several routines static.
7995 (vax_get_saved_register): New function.
7996 (vax_gdbarch_init): New function.
7997 (_initialize_vax_tdep): Register vax_gdbarch_init.
7998 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7999 Remove macros now under the control of gdbarch.
8000
8001 2002-04-22 Michael Snyder <msnyder@redhat.com>
8002
8003 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
8004 Some whitespace and coding standards tweaks.
8005
8006 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8007
8008 * vax-tdep.c: Include regcache.h.
8009 (vax_call_dummy_words): New.
8010 (sizeof_vax_call_dummy_words): New.
8011 (vax_fix_call_dummy): New function.
8012 (vax_saved_pc_after_call): Ditto.
8013 * config/vax/tm-vax.h: Don't include regcache.h.
8014 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
8015 (CALL_DUMMY): Remove.
8016 (CALL_DUMMY_WORDS): Define.
8017 (SIZEOF_CALL_DUMMY_WORDS): Define.
8018 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
8019
8020 2002-04-18 Michael Snyder <msnyder@redhat.com>
8021
8022 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
8023
8024 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8025
8026 * vax-tdep.c (vax_frame_chain): New function.
8027 (vax_push_dummy_frame): Ditto.
8028 (vax_pop_frame): Ditto.
8029 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
8030 (FRAMELESS_FUNCTION_INVOCATION): Use
8031 generic_frameless_function_invocation_not.
8032 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
8033 (POP_FRAME): Use vax_pop_frame.
8034
8035 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8036
8037 * vax-tdep.c (vax_store_struct_return): New function.
8038 (vax_extract_return_value): Ditto.
8039 (vax_store_return_value): Ditto.
8040 (vax_extract_struct_value_address): Ditto.
8041 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
8042 vax_store_struct_return.
8043 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
8044 (STORE_RETURN_VALUE): Use vax_store_return_value.
8045 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
8046
8047 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8048
8049 * vax-tdep.c (vax_frame_saved_pc): New function.
8050 (vax_frame_args_address_correct): Ditto.
8051 (vax_frame_args_address): Ditto.
8052 (vax_frame_locals_address): Ditto.
8053 (vax_frame_num_args): Move code to be in proximity to
8054 other frame-related functions.
8055 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
8056 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
8057 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
8058 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
8059 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
8060
8061 2002-04-22 H.J. Lu (hjl@gnu.org)
8062
8063 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
8064 includedir.
8065
8066 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8067
8068 * vax-tdep.c (vax_frame_init_saved_regs): New function.
8069 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
8070 (FRAME_INIT_SAVED_REGS): New macro.
8071
8072 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8073
8074 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
8075
8076 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8077
8078 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
8079 where needed.
8080 (fetch_osf_core_registers): Likewise.
8081 (supply_gregset): Likewise.
8082
8083 2002-04-22 J. Brobecker <brobecker@gnat.com>
8084
8085 * symfile.h (get_section_index): Define.
8086 * symfile.c (get_section_index): New function.
8087 * mdebugread.c (SC_IS_SBSS): New macro.
8088 (SC_IS_BSS): Return true for the scBss storage class only, as
8089 the scSBss storage class refers to the .sbss section.
8090 (parse_partial_symbols): Discard the symbols which associated
8091 section does not exist.
8092 Make sure to use the .sbss section index for symbols which
8093 storage class is scBss, rather than using the .bss section index.
8094
8095 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8096
8097 * vax-tdep.c: Update copyright years.
8098 (vax_register_name): New function.
8099 (vax_register_byte): Ditto.
8100 (vax_register_raw_size): Ditto.
8101 (vax_register_virtual_size): Ditto.
8102 (vax_register_virtual_type): Ditto.
8103 * config/vax/tm-vax.h: Update copyright years.
8104 (REGISTER_NAMES): Remove.
8105 (REGISTER_NAME): Define.
8106 (REGISTER_BYTE): Use vax_register_byte.
8107 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
8108 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
8109 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
8110
8111 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8112
8113 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
8114 declaration
8115 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
8116
8117 2002-04-21 David S. Miller <davem@redhat.com>
8118
8119 * arch-utils.c (generic_prologue_frameless_p): Kill
8120 SKIP_PROLOGUE_FRAMELESS_P code.
8121 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8122 references.
8123 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
8124 * arc-tdep.c (arc_prologue_frameless_p): Implement.
8125 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8126 references.
8127 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
8128 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
8129 (sparc_gdbarch_init): Pass it to
8130 set_gdbarch_prologue_frameless_p.
8131
8132 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8133
8134 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
8135 (alphabsd-nat.o): New dependency list.
8136
8137 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8138
8139 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8140 alphafbsd-tdep.c.
8141 (alpha-linux-tdep.o): New dependency list.
8142 (alphafbsd-tdep.o): Likewise.
8143
8144 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8145
8146 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
8147 to here...
8148 * alpha-tdep.c: ...from here.
8149 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8150
8151 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8152
8153 * config/alpha/tm-alpha.h: Move alpha_software_single_step
8154 prototype from here...
8155 * alpha-tdep.h: ...to here.
8156
8157 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8158
8159 * frame.h (selected_frame_level): Document as deprecated.
8160 (frame_relative_level): Declare.
8161 * stack.c (frame_relative_level): New function.
8162 (selected_frame_level): Document as deprecated.
8163 (select_frame): Do not set the selected_frame_level.
8164
8165 * stack.c (frame_info, record_selected_frame): Update.
8166 (frame_command, current_frame_command): Update.
8167 (up_silently_base, up_command, down_silently_base): Update.
8168 (down_command): Update.
8169 * inflow.c (kill_command): Update.
8170 * tracepoint.c (finish_tfind_command): Update.
8171 * corelow.c (core_open): Update.
8172 * thread.c (info_threads_command): Update.
8173 (do_captured_thread_select): Update.
8174 * infcmd.c (finish_command): Update.
8175 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8176
8177 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8178
8179 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8180
8181 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8182
8183 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8184 type const.
8185
8186 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8187
8188 * alphafbsd-tdep.c: Update copyright years. Include
8189 alpha-tdep.h.
8190 (alphafbsd_use_struct_convention): Make static.
8191 (alphafbsd_init_abi): New function.
8192 (_initialize_alphafbsd_tdep): New function.
8193 * config/alpha/tm-fbsd.h: Update copyright years.
8194 (USE_STRUCT_CONVENTION): Remove.
8195
8196 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8197
8198 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8199 an Alpha ABI variant.
8200 (alpha_abi_handler_list): Declare.
8201 (alpha_gdbarch_register_os_abi): New function.
8202 (alpha_gdbarch_init): Give registered ABI variant handlers a
8203 chance to tweak the gdbarch once we have set up defaults.
8204 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8205
8206 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8207
8208 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8209 to standard_coerce_float_to_double.
8210 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8211
8212 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8213
8214 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8215 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8216 from gdbarch_tdep rather than a constant.
8217 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8218 the default text address for all Alpha Unix ABIs.
8219 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8220 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8221
8222 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8223
8224 * alpha-tdep.h: New file. Includes several Alpha target constants
8225 taken from...
8226 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8227 let gdbarch deal with.
8228 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8229 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8230 to dependency list.
8231 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8232 Alpha target register names.
8233 * alphabsd-nat.c: Likewise.
8234 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8235 Alpha target register names. Make serveral routines static.
8236 (alpha_get_saved_register): New function.
8237 (alpha_abi_names): New.
8238 (process_note_abi_tag_sections): New function.
8239 (get_elfosabi): New function.
8240 (alpha_gdbarch_init): New function.
8241 (alpha_dump_tdep): New function.
8242 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8243
8244 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8245
8246 * frame.c (find_saved_register): Delete #ifdef
8247 HAVE_REGISTER_WINDOWS code.
8248 * config/sparc/tm-sparc.h: Update comments.
8249 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8250
8251 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8252
8253 * i960-tdep.c (i960_find_saved_register): New function.
8254 (i960_get_saved_register): New function.
8255 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8256 (i960_get_saved_register): Declare.
8257 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8258
8259 2002-04-20 David S. Miller <davem@redhat.com>
8260
8261 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8262
8263 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8264
8265 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8266 instead of NUM_PSEUDO_REGS.
8267
8268 2002-04-20 David S. Miller <davem@redhat.com>
8269
8270 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8271 GDB_MULTI_ARCH_PARTIAL
8272 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8273 define, let tm-sp64.h do it.
8274
8275 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8276
8277 * frame.c (find_saved_register): Avoid a NULL pointer
8278 dereference and actually walk the frame list.
8279
8280 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8281
8282 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8283 sorted in most most-recent-used order. Document.
8284 * gdbarch.h, gdbarch.c: Regenerate.
8285
8286 2002-04-19 Andrew Cagney <ac131313@redhat.com>
8287
8288 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8289 instead of ->prev.
8290 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8291 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8292 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8293 instead of ->prev.
8294
8295 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
8296
8297 Fix PR gdb/471.
8298 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8299 (build_builtin_type_vec128): Ditto.
8300 (append_composite_type_field): Fix calculation of type length in
8301 union case.
8302
8303 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8304
8305 * config/djgpp/README: Update.
8306
8307 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8308 compiler warnings.
8309
8310 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8311
8312 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8313 (alpha_setup_arbitrary_frame): ...to this.
8314 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8315 for alpha_setup_arbitrary_frame.
8316
8317 2002-04-18 Andrew Cagney <cagney@redhat.com>
8318
8319 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8320 * gdbarch.h, gdbarch.c: Regenerate.
8321
8322 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8323 * target.h (memory_breakpoint_from_pc): Update declaration.
8324 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8325
8326 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8327 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8328 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8329 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8330 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8331 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8332 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8333 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8334 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8335 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8336 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8337 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8338
8339 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8340 const pointer.
8341 * monitor.c (monitor_insert_breakpoint): Ditto.
8342 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8343
8344 * config/mcore/tm-mcore.h: Update copyright.
8345 * mem-break.c: Ditto.
8346 * xstormy16-tdep.c: Ditto.
8347
8348 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8349
8350 * p-exp.y: Add precedence rule for '^' token.
8351 This removes the shift/reduce conflicts.
8352 Remove the comment concerning these shift/reduce conflicts.
8353
8354 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
8355
8356 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8357 (registers_powerpc_nofp): New register set for processors
8358 without floating point unit.
8359
8360 2002-04-18 David S. Miller <davem@redhat.com>
8361
8362 * MAINTAINERS: Add myself to write-after-approval.
8363
8364 2002-04-17 Michael Snyder <msnyder@redhat.com>
8365
8366 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8367
8368 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8369
8370 * rs6000-tdep.c (frame_initial_stack_address): Use
8371 frame_register_read to read the alloca_reg.
8372
8373 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8374
8375 * frame.c (find_saved_register): Find saved registers in the next
8376 not prev frame.
8377 Fix PR gdb/365.
8378
8379 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8380
8381 * gdbarch.sh (LANG): Set to ``c''.
8382
8383 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8384
8385 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8386
8387 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8388
8389 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8390 Update copyright.
8391
8392 * hpread.c (hpread_get_lntt): Add declaration.
8393 Also fix PR gdb/391.
8394
8395 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8396
8397 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8398 * aclocal.m4, configure: Re-generate.
8399 Fix PR gdb/391.
8400
8401 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8402
8403 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8404 instead of tm_print_insn.
8405
8406 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8407
8408 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8409
8410 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8411
8412 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8413 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8414 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8415
8416 2002-04-12 Don Howard <dhoward@redhat.com>
8417
8418 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8419 max_user_call_depth.
8420 (init_cmd_lists): Initialize the new value;
8421 * cli/cli-script.c (execute_user_command): Limit the call depth of
8422 user defined commands. This avoids a core-dump when user commands
8423 are infinitly recursive.
8424
8425 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8426
8427 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8428 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8429 from tdep struct instead of DEFAULT_LR_SAVE.
8430 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8431 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8432 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8433
8434 2002-04-12 Michael Snyder <msnyder@redhat.com>
8435
8436 * Remote.c: Spelling fix.
8437 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8438 If no symbol found for "sbrk", try "_sbrk".
8439 (make_output_phdrs): Use bfd_section_name.
8440 (gcore_copy_callback): Use bfd_section_name.
8441 * eval.c: Indentation fix-ups.
8442 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8443 in case it gets applied to an address that is already
8444 in the instruction space.
8445 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8446 * symfile.c: Fix indentation, long lines.
8447 * source.c: White space fix-up.
8448
8449 2002-04-12 Andrew Cagney <cagney@redhat.com>
8450
8451 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8452 * frame.c (frame_register_read): New function. Return non-zero on
8453 success.
8454 (read_relative_register_raw_bytes_for_frame): Delete.
8455 (read_relative_register_raw_bytes): Delete.
8456 * frame.h (frame_register_read): Declare.
8457 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8458 * sh-tdep.c: Ditto.
8459 * infcmd.c (do_registers_info): Ditto.
8460 * hppa-tdep.c: Ditto.
8461 * rs6000-tdep.c: Ditto.
8462 * h8500-tdep.c: Ditto.
8463 * mips-tdep.c: Ditto.
8464 * h8300-tdep.c: Ditto.
8465 * z8k-tdep.c: Ditto.
8466
8467 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8468
8469 From Jimi X <jimix@watson.ibm.com>:
8470 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8471 64-bit SysV ABI.
8472
8473 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8474
8475 From Jimi X <jimix@watson.ibm.com>:
8476 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8477 bfd info.
8478
8479 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8480
8481 From Jimi X <jimix@watson.ibm.com>:
8482 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8483 register sets for these processor variants.
8484
8485 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
8486
8487 * regformats/reg-ppc.dat: Support FPSCR.
8488
8489 2002-04-11 Kevin Buettner <kevinb@redhat.com>
8490
8491 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8492 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8493 Add fpscr as an invalid/unfetchable register.
8494 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8495 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8496 (fill_fpregset): Add support for register fpscr.
8497 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8498 (fill_gregset): Account for the fact that register ``mq'' might
8499 not exist.
8500 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8501 (registers_power): Add fpscr to register set at slot 71.
8502 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8503 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8504
8505 2002-04-11 Michael Snyder <msnyder@redhat.com>
8506
8507 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8508 * configure: Regenerate.
8509 * config.in: Regenerate.
8510 * acconfig.h: Add define for _SYSCALL32.
8511 * core-sol2.c: Remove #define _SYSCALL32.
8512 * solib-legacy.c: Remove #define _SYSCALL32.
8513
8514 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8515
8516 * stack.c (select_frame): Cleanup internal error message, do not
8517 use %p.
8518
8519 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8520
8521 * stack.c (select_frame): Check that selected_frame and the
8522 specified level are as expected.
8523 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8524 Update copyright.
8525 * frame.h (struct frame_info): Add field `level'. Update
8526 copyright.
8527 Work-in-progress PR gdb/464.
8528
8529 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8530
8531 * maint.c (maint_print_section_info): Rename print_section_info.
8532 (print_bfd_section_info, print_objfile_section_info): Update.
8533 * inferior.h (struct gdbarch): Add opaque declaration.
8534 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8535 * gdbarch.h: Regenerate.
8536
8537 2002-04-10 Michal Ludvig <mludvig@suse.cz>
8538
8539 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8540 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8541 (kernel_u_size): Added.
8542 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8543 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8544
8545 2002-04-04 Jim Ingham <jingham@apple.com>
8546
8547 * valarith.c (find_size_for_pointer_math): New function, either returns
8548 the size for a pointer's target, returns 1 for void *, or errors for
8549 incomplete types.
8550 (value_add, value_sub): use find_size_for_pointer_math.
8551
8552 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8553
8554 * linux-low.c (linux_look_up_symbols): New hook.
8555 (linux_target_ops): Add linux_look_up_symbols.
8556 * remote-utils.c (decode_address): New function.
8557 (look_up_one_symbol): New function.
8558 * server.c (handle_query): Call target look_up_symbols hook.
8559 * server.h (look_up_one_symbol): Add prototype.
8560 * target.h (struct target_ops): Add look_up_symbols hook.
8561
8562 2002-04-09 Andrew Cagney <ac131313@redhat.com>
8563
8564 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8565 override FP_REGNUM with frame->fp. Update copyright.
8566 * parse.c (num_std_regs, std_regs): Delete.
8567 (target_map_name_to_register): Do not search std_regs. Update
8568 function description.
8569 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8570 declarations. Update copyright.
8571 Fix PR gdb/251.
8572
8573 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8574
8575 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8576 after the last symbol in a block.
8577
8578 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8579
8580 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8581 is non zero as a found symbol.
8582
8583 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8584
8585 * findvar.c: Include "builtin-regs.h".
8586 (value_of_register): Call value_of_builtin_reg when applicable.
8587 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8588 (target_map_name_to_register): Call
8589 builtin_reg_map_name_to_regnum.
8590 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8591 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8592 (builtin_regs_h): Define.
8593 (builtin-regs.o): New target.
8594 (findvar.o): Add $(builtin_regs_h).
8595 * builtin-regs.c, builtin-regs.h: New files.
8596 * std-regs.c: New file.
8597 Partial fix for PR gdb/251.
8598
8599 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8600
8601 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8602 it's no longer required.
8603
8604 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8605
8606 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8607
8608 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8609
8610 From Jimi X <jimix@watson.ibm.com>:
8611 * rs6000-tdep.c (rs6000_software_single_step): Use
8612 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8613 and size. Use target_insert_breakpoint() and
8614 target_remove_breakpoint() to insert and remove breakpoints
8615 instead of explicit memory reads and writes.
8616
8617 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8618
8619 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8620 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8621 ELF_OBJECT_FORMAT ifdef.
8622
8623 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8624
8625 From Jimi X <jimix@watson.ibm.com>:
8626 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8627
8628 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8629
8630 From Jimi X <jimix@watson.ibm.com>:
8631 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8632 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8633
8634 2002-04-07 Mark Kettenis <kettenis@gnu.org>
8635
8636 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8637 s/asprintf/xasprintf/.
8638 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8639
8640 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8641
8642 I believe Jeff Law denies responsability for this one:
8643 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8644 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8645 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8646 Work-around for PR gdb/366.
8647
8648 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8649
8650 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8651 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8652 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8653
8654 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8655
8656 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8657 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8658 information.
8659
8660 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8661
8662 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8663 maintainer.
8664
8665 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8666
8667 * README (Reporting Bugs in GDB): Document the bug web page as the
8668 prefered way of submitting bugs.
8669 Fix PR gdb/402.
8670
8671 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8672
8673 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8674 -1. Update comment.
8675 * gdbarch.h, gdbarch.c: Re-generate.
8676
8677 2002-04-07 Andreas Schwab <schwab@suse.de>
8678
8679 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8680 buffer to regcache_collect.
8681
8682 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8683
8684 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8685 * gdbarch.c, gdbarch.h: Re-generate.
8686
8687 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8688
8689 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8690 declaration. Fix -Werror.
8691
8692 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
8693
8694 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8695 * gdbarch.c: Regenerate.
8696
8697 2002-04-05 Michael Snyder <msnyder@redhat.com>
8698
8699 * breakpoint.c (clear_command): Rewrite middle section to
8700 combine two loops with identical control conditions.
8701 Add a cleanup to eliminate a memory leak.
8702 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8703
8704 2002-04-05 H.J. Lu (hjl@gnu.org)
8705
8706 * solib-svr4.c (bkpt_names): Add "__start".
8707
8708 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8709
8710 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8711 as test for 64 bit target.
8712
8713 2002-04-05 Andrew Cagney <ac131313@redhat.com>
8714
8715 * h8500-tdep.c (h8500_write_fp): Delete function.
8716 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8717 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8718 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8719 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8720 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8721 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8722 (s390_write_fp):
8723 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8724 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8725 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8726 (d10v_write_fp): Delete function.
8727 * inferior.h (write_fp, generic_target_write_fp): Delete
8728 declarations.
8729 * regcache.c (generic_target_write_fp): Delete function.
8730 (write_fp): Delete function.
8731 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8732 * gdbarch.h, gdbarch.c: Regenerate.
8733 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8734 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8735 (sparc64_write_fp): Delete declaration.
8736 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8737 (h8500_write_fp): Delete declaration.
8738
8739 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8740
8741 * sparc-tdep.c (sparc64_write_fp): Delete.
8742 (sparc_push_dummy_frame): Replace write_fp call with code to store
8743 the FP directly.
8744 (sparc_gdbarch_init): Do not initialize write_fp.
8745
8746 2002-04-05 Kevin Buettner <kevinb@redhat.com>
8747
8748 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8749 clause.
8750
8751 2002-03-29 Jim Blandy <jimb@redhat.com>
8752
8753 * stack.c (get_selected_block): Add new argument `addr_in_block',
8754 used to return the exact code address we used to select the block,
8755 not just the block.
8756 * blockframe.c (get_frame_block, get_current_block): Same.
8757 * frame.h (get_frame_block, get_current_block,
8758 get_selected_block): Update declarations.
8759 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8760 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8761
8762 2002-04-05 Michael Snyder <msnyder@redhat.com>
8763
8764 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8765 warning message.
8766
8767 2002-04-05 J. Brobecker <brobecker@gnat.com>
8768
8769 * utils.c (xfullpath): New function.
8770 * defs.h (xfullpath): Add declaration.
8771 * source.c (openp): Use xfullpath in place of gdb_realpath to
8772 avoid resolving the basename part of filenames when the
8773 associated file is a symbolic link. This fixes a potential
8774 inconsistency between the filenames known to GDB and the
8775 filenames it prints in the annotations.
8776 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8777 to be able to match a filename with either the real filename, or
8778 the name of any symbolic link to this file.
8779 (lookup_partial_symtab): Ditto.
8780
8781 2002-04-04 Michael Snyder <msnyder@redhat.com>
8782
8783 * breakpoint.c: Add support for hardware breakpoints in overlays.
8784 (overlay_events_enabled): New state variable.
8785 (insert_breakpoints): Use overlay_events_enabled to decide
8786 whether to attempt to set a breakpoint at the overlay load addr.
8787 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8788 (remove_breakpoint): Use overlay_events_enabled to decide
8789 whether breakpoints need to be removed from overlay load addr.
8790 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8791 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8792 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8793 disable_overlay_breakpoints): Update overlay_events_enabled.
8794
8795 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
8796
8797 * dwarf2read.c (struct function_range): New.
8798 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8799 (check_cu_functions): New.
8800 (read_file_scope): Initialize global function lists.
8801 Call dwarf_decode_line after processing children.
8802 (read_func_scope): Add to global function list.
8803 (dwarf_decode_lines): Call check_cu_functions everywhere
8804 record_line is called. Call record_line with a linenumber
8805 of 0 to mark sequence ends.
8806
8807 2002-04-04 Michal Ludvig <mludvig@suse.cz>
8808
8809 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8810 change sync with glibc.
8811
8812 2002-04-03 Jim Blandy <jimb@redhat.com>
8813
8814 * configure.in: Call AC_C_INLINE.
8815 * configure: Regenerated.
8816
8817 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
8818
8819 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8820 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8821
8822 2002-03-31 Mark Kettenis <kettenis@gnu.org>
8823
8824 * NEWS: Mention gcore support on FreeBSD/i386.
8825
8826 * fbsd-proc.c: New file.
8827 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8828 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8829
8830 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8831 while statement.
8832
8833 2002-03-29 Jim Blandy <jimb@redhat.com>
8834
8835 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8836 unescaped newlines in string literals, but newer ones don't. So
8837 escape them.
8838
8839 2002-03-26 Michael Snyder <msnyder@redhat.com>
8840 Andrew Cagney <cagney@redhat.com>
8841
8842 * cli/cli-dump.c: New file. Dump memory to file,
8843 restore file to memory.
8844 * cli/cli-dump.h: New file.
8845 * Makefile.in: Add rules, dependencies for cli-dump.o.
8846 * NEWS: Mention new commands.
8847
8848 2002-03-28 Michael Snyder <msnyder@redhat.com>
8849
8850 * symfile.c (symbol_file_add): Move test for null symbols to later.
8851
8852 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8853
8854 From veksler at il.ibm.com:
8855 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8856 the xstrduped original path.
8857 Fix PR gdb/417.
8858
8859 2002-03-27 Michael Snyder <msnyder@redhat.com>
8860
8861 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8862 * infcmd.c (_initialize_infcmd): Ditto.
8863 * language.c (_initialize_language): Ditto.
8864 * symfile.c (_initialize_symfile): Ditto.
8865 * top.c (_init_main): Ditto.
8866 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8867
8868 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
8869
8870 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8871 vector registers handling.
8872 (skip_prologue): Handle new AltiVec instructions. Fill in new
8873 fields of frame data.
8874 (frame_get_saved_regs): Fill in information for AltiVec registers.
8875
8876 2002-03-27 Jim Blandy <jimb@redhat.com>
8877
8878 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8879 a function; leave this macro here to invoke that function.
8880 (symbol_init_mangled_name): Declaration for that function.
8881 * symtab.c (symbol_init_mangled_name): New function.
8882
8883 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8884
8885 * valarith.c: Replace strerror with safe_strerror.
8886 * tracepoint.c: Ditto.
8887 * lin-lwp.c: Ditto.
8888 * go32-nat.c: Ditto.
8889 * inflow.c: Ditto.
8890 * gnu-nat.c: Ditto.
8891
8892 2002-03-27 Andreas Schwab <schwab@suse.de>
8893
8894 * event-top.c (command_line_handler): Remove useless if.
8895
8896 2002-03-27 Andreas Jaeger <aj@suse.de>
8897
8898 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8899 comment.
8900
8901 2002-03-27 Michal Ludvig <mludvig@suse.cz>
8902
8903 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8904 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8905 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8906 (x86_64_linux_dr_get_status, supply_gregset),
8907 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8908 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8909 (x86_64_register_info_table): Add.
8910 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8911 (x86_64_register_raw_size, x86_64_register_virtual_type),
8912 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8913 general x86_64_register_info_table.
8914 (i386_gdbarch_init): gdbarch_register_bytes is now set
8915 dynamicaly during initialization.
8916 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8917 * gdbserver/linux-x86-64-low.c: Ditto.
8918
8919 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8920
8921 * gdbserver/server.c (main): Call target_signal_to_host_p
8922 and target_signal_to_host on signals received from the remote.
8923 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8924 target_signal_from_host on signals sent to the remote.
8925 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8926 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8927
8928 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8929
8930 * signals/signals.c: Include "server.h" in gdbserver build.
8931 (target_signal_from_name): Don't use STREQ.
8932 (_initialize_signals): Likewise. Don't include function in
8933 gdbserver build.
8934
8935 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8936
8937 * signals.c: Moved to...
8938 * signals/signals.c: Here.
8939 * Makefile (signals.o): Update.
8940
8941 2002-03-26 Jeff Law (law@redhat.com)
8942
8943 * somread.c (som_symtab_read): Remove some commented out code and
8944 updated related comments. Do not set the minimal symbol table to
8945 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8946 in a dynamic executable.
8947 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8948 where we are unable to find the minimal symbol for the given
8949 PC value.
8950
8951 2002-03-25 Jeff Law (law@redhat.com)
8952
8953 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8954
8955 2002-03-25 Michal Ludvig <mludvig@suse.cz>
8956
8957 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8958
8959 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8960
8961 * command.h: Update copyright.
8962 (struct cmd_list_element): Replace definition with opaque
8963 declaration.
8964 (enum cmd_types): Document that it will eventually be moved to
8965 cli/cli-decode.h
8966 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8967 (MALLOCED_REPLACEMENT): Delete macro.
8968 * Makefile.in (cli_decode_h): Add $(command_h).
8969 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8970 * top.c: Include "cli/cli-decode.h".
8971 * completer.c: Include "cli/cli-decode.h".
8972 * maint.c: Include "cli/cli-decode.h".
8973 * cli/cli-decode.h: Include "command.h".
8974 (enum command_class): Delete.
8975 (enum cmd_types): Comment out.
8976 (enum cmd_auto_boolean): Delete.
8977 (enum var_types): Delete.
8978
8979 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8980
8981 * cli/cli-decode.c: Include "gdb_assert.h".
8982 (add_set_or_show_cmd): New static function.
8983 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8984 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8985 all fields, such as func, from the set command.
8986
8987 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8988
8989 * MAINTAINERS (sh-elf): Change warning flag to -w.
8990
8991 2002-03-23 Andrew Cagney <cagney@redhat.com>
8992
8993 * defs.h (error): Add printf format attribute.
8994 * thread-db.c (thread_from_lwp): Fix error format string.
8995 * stack.c (parse_frame_specification): Ditto.
8996 * cli/cli-decode.c (undef_cmd_error): Ditto.
8997 * scm-lang.c (scm_lookup_name): Ditto.
8998 * tracepoint.c (trace_error): Ditto.
8999 * remote-utils.c (usage): Ditto.
9000 * remote.c (compare_sections_command): Ditto.
9001 Fix PR gdb/328.
9002
9003 2002-03-22 Andrew Cagney <ac131313@redhat.com>
9004
9005 * gdbtypes.c (append_composite_type_field): New function.
9006 (init_composite_type): New function.
9007 * gdbtypes.h (append_composite_type_field): Declare.
9008 (init_composite_type): Ditto.
9009
9010 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
9011
9012 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
9013 function.
9014 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
9015 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
9016 structure returning convention for SYSV ABI case, but not
9017 for GNU/Linux, FreeBSD, or NetBSD.
9018
9019 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
9020
9021 * symtab.h (lookup_block_symbol): Add mangled_name argument
9022 to prototype.
9023
9024 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
9025 with new mangled_name argument.
9026 * linespec.c (decode_line_1): Likewise.
9027 * valops (value_of_this): Likewise.
9028 * symtab.c (lookup_transparent_type): Likewise.
9029 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
9030 (lookup_symbol): If we are given a mangled name, pass it down
9031 to lookup_symbol_aux.
9032 (lookup_block_symbol): If we are given a mangled name to check
9033 against, only return symbols which match it.
9034
9035 2002-03-22 Christopher Faylor <cgf@redhat.com>
9036
9037 * win32-nat.c (child_create_inferior): Check for proper shell to use
9038 here, in case the user changes it on the fly.
9039 (_initialize_inftarg): Remove shell path considerations.
9040
9041 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
9042
9043 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
9044 for gdbarch_max_register_raw_size and max_register_virtual_size.
9045 Adjust copyright year.
9046
9047 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
9048
9049 * dbxread.c (process_one_symbol): Extend the first N_SLINE
9050 in a function to cover the entire beginning of the function
9051 as well if it does not already.
9052
9053 2002-03-21 Tom Rix <trix@redhat.com>
9054
9055 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
9056 (rs6000_ptrace64): Renamed from ptrace64.
9057
9058 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9059
9060 * gdbserver/remote-utils.c (remote_open): Don't call
9061 getprotobyname, we're all using TCP here so just use
9062 IPPROTO_TCP.
9063 * gdbserver/gdbreplay.c (remote_open): Ditto.
9064
9065 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9066
9067 * regcache.c (_initialize_regcache): No need to call
9068 build_regcache() at this time; it gets called whenever
9069 the gdbarch changes.
9070
9071 2002-03-20 David O'Brien <obrien@FreeBSD.org>
9072
9073 * sparc-nat.c: Include sys/param.h where possible.
9074
9075 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
9076
9077 Fix PR gdb/422.
9078 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
9079 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
9080 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
9081 complex types.
9082 * stabsread.c (rs6000_builtin_type): Likewise.
9083 (read_sun_floating_type): Likewise.
9084
9085 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9086
9087 * stabsread.c (read_member_functions): Remove skip code for duplicate
9088 constructor/destructor methods. Use standard parsing for these
9089 methods and just do not chain them to the list of methods after
9090 parsing.
9091
9092 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
9093
9094 * coffread.c: Remove redundant static declarations. Replace
9095 occurrences of `PTR' with `void *'.
9096 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
9097 * top.h (quit_cover): Likewise.
9098 * defs.h (catch_errors): Likewise.
9099
9100 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9101
9102 * defs.h (XMALLOC): Define.
9103 * gdb-events.sh (XMALLOC): Delete macro.
9104 * gdb-events.c, gdb-events.h: Regenerate.
9105 * gdbarch.sh (XMALLOC): Delete macro.
9106 * gdbarch.c: Regenerate.
9107 * serial.c (XMALLOC): Delete macro.
9108 * ui-file.c (XMALLOC): Ditto.
9109 * ser-unix.h (XMALLOC): Ditto.
9110 * sh-tdep.c (XMALLOC): Ditto.
9111 * ui-out.c (XMALLOC): Ditto.
9112 * utils.c (XMALLOC): Ditto.
9113 * i386-tdep.c (XMALLOC): Ditto.
9114 * gdb-events.c (XMALLOC): Ditto.
9115 * d10v-tdep.c (XMALLOC): Ditto.
9116 * cli-out.c (XMALLOC): Ditto.
9117
9118 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
9119 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
9120 * ui-file.c, ui-out.c: Ditto.
9121
9122 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9123
9124 * command.h (struct cmd_list_element): Add field context.
9125 (set_cmd_context, get_cmd_context): Declare.
9126 * cli/cli-decode.h: Ditto.
9127 * cli/cli-decode.c (get_cmd_context): New function.
9128 (set_cmd_context): New function.
9129 (add_cmd): Initialize context.
9130 Part of fixing PR gdb/145 and PR gdb/146.
9131
9132 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9133
9134 * cli/cli-decode.c (cmd_type): New function.
9135 * command.h (cmd_type): Declare.
9136 * infrun.c (set_schedlock_func): Call function cmd_type.
9137 * kod.c (kod_set_os): Call cmd_type.
9138 * cris-tdep.c (cris_version_update): Use function cmd_type.
9139 (cris_mode_update, cris_abi_update): Ditto.
9140
9141 * command.h: (execute_cmd_post_hook): Declare.
9142 (execute_cmd_pre_hook): Declare.
9143 * cli/cli-script.c (clear_hook_in_cleanup): New function.
9144 (execute_cmd_post_hook, execute_cmd_pre_hook): New
9145 functions. Execute pre/post hook while ensuring that afterwords
9146 hook_in is cleared.
9147 * top.c (execute_command): Use execute_cmd_post_hook, and
9148 execute_cmd_pre_hook to execute pre/post commands.
9149 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
9150 hook_stop_stub.
9151 (hook_stop_stub): Call execute_cmd_pre_hook.
9152
9153 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9154
9155 * kod.c (kod_set_os): Revert previous change. Is called by ``info
9156 set'' and this leads to a core dump. Move xstrdup of
9157 operating_system to after check that it is not NULL.
9158
9159 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9160
9161 * kod.c (kod_set_os): Remove unnecessary check that
9162 ``command->type'' is set_cmd.
9163
9164 * valprint.c (set_input_radix): Use input_radix.
9165 (set_output_radix): Use output_radix.
9166 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9167 isn't reverted.
9168
9169 2002-03-16 Andrew Cagney <ac131313@redhat.com>
9170
9171 * value.h (struct value): Delete field ``substring_addr''. Change
9172 aligner fields to force_doublest_align, force_longest_align,
9173 force_core_addr_align and force_pointer_aligh.
9174
9175 * value.h (struct value): Fix typo in above change.
9176
9177 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9178
9179 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9180 to fix internal_error from ``maintenance print architecture''.
9181
9182 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9183
9184 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9185 for gcc versions after gcc-2.8.1.
9186
9187 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9188
9189 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9190 for method resolution. Restore adjustment of ``this'' pointer after
9191 calling value_struct_elt, which was accidentally removed during the
9192 HP merge.
9193
9194 2002-03-15 Andrew Cagney <ac131313@redhat.com>
9195
9196 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9197 value_of_register.
9198 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9199 get_saved_register.
9200 * value.h (value_of_register): Update.
9201
9202 2002-03-14 Richard Henderson <rth@redhat.com>
9203
9204 * configure.in: Detect declaration for canonicalize_file_name.
9205 * utils.c (canonicalize_file_name): Declare, if needed.
9206 (gdb_realpath): Prefer realpath if available and usable.
9207 * config.in, configure: Rebuild.
9208
9209 2002-03-14 Richard Henderson <rth@redhat.com>
9210
9211 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9212 a constant array bound.
9213
9214 * MAINTAINERS: Add myself to write-after-approval.
9215
9216 2002-03-14 Michael Snyder <msnyder@redhat.com>
9217
9218 * symfile.c (syms_from_objfile): Return immediately if no syms.
9219 (symbol_file_add): Return immediately if no syms.
9220 (find_sym_fns): Return immediately if no syms.
9221
9222 2002-03-13 Michal Ludvig <mludvig@suse.cz>
9223
9224 * gdbserver/remote-util.c (remote_open): Print remote-side's
9225 IP address when remote debugging over the network.
9226
9227 2002-03-12 David O'Brien <obrien@FreeBSD.org>
9228
9229 * config/sparc/fbsd.mh: Fix copyright.
9230 * config/sparc/fbsd.mt: Likewise.
9231
9232 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
9233
9234 * MAINTAINERS: Fix typo in name of gdb warnings option.
9235 (x86-64): Fix formating so that this can be parsed by awk.
9236
9237 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9238
9239 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9240 * defs.h: Include "gdb/signals.h".
9241 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9242
9243 2002-03-10 Michal Ludvig <mludvig@suse.cz>
9244
9245 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
9246 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
9247 from x86-64-tdep.h
9248
9249 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9250 Don Howard <dhoward@redhat.com>
9251
9252 * mips-tdep.c (ST0_FR): Define.
9253 (mips2_fp_compat): New function, temporarily disabled.
9254 (mips_read_fp_register_single): New function.
9255 (mips_read_fp_register_double): New function.
9256 (mips_print_register): Use them.
9257 (do_fp_register_row): Likewise.
9258
9259 2002-03-09 Andrew Cagney <ac131313@redhat.com>
9260
9261 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9262 approval''.
9263
9264 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9265
9266 * stabsread.c (read_member_functions): Fix is_stub test for
9267 static member functions, improve comment.
9268
9269 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
9270
9271 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9272 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9273 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9274 commands that set boolean values.
9275 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9276 (arm_rdi_resume): Always initialize PC.
9277 (arm_rdi_open): Don't use rslt as a boolean.
9278 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9279 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9280 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9281 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9282
9283 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
9284
9285 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9286 * configure: Rebuilt.
9287
9288 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9289
9290 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9291 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9292
9293 2002-03-06 Andrew Cagney <ac131313@redhat.com>
9294
9295 * cli/cli-decode.c (set_cmd_completer): New function.
9296 * command.h (set_cmd_completer): Declare.
9297 * cli/cli-decode.h (set_cmd_completer): Ditto.
9298
9299 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9300 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9301 * win32-nat.c (_initialize_inftarg): Ditto.
9302 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9303 * proc-api.c (_initialize_proc_api): Ditto.
9304 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9305 * source.c (_initialize_source): Ditto.
9306 * exec.c (_initialize_exec): Ditto.
9307 * solib.c (_initialize_solib): Ditto.
9308 * top.c (init_main): Ditto.
9309 * tracepoint.c (_initialize_tracepoint): Ditto.
9310 * symfile.c (_initialize_symfile): Ditto.
9311 * printcmd.c (_initialize_printcmd): Ditto.
9312 * infcmd.c (_initialize_infcmd): Ditto.
9313 * corefile.c (_initialize_core): Ditto.
9314
9315 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9316
9317 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9318
9319 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9320
9321 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9322
9323 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9324
9325 * NEWS: Update headings, 5.2 has branched.
9326
9327 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
9328
9329 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9330 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9331 (register_addr, REGISTER_RAW_SIZE): Likewise.
9332 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9333 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9334
9335 2002-03-03 Michal Ludvig <mludvig@suse.cz>
9336
9337 * MAINTAINERS (x86-64): Add myself.
9338 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9339 changed value_ptr -> struct value *
9340
9341 2002-03-01 David O'Brien <obrien@FreeBSD.org>
9342
9343 * configure.host (sparc64-*-freebsd): Add.
9344 * configure.tgt: Likewise.
9345 * config/sparc/fbsd.mh: New file.
9346 * config/sparc/fbsd.mt: Likewise.
9347 * config/sparc/nm-fbsd.h: Likewise.
9348 * config/sparc/tm-fbsd.h: Likewise.
9349
9350 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
9351
9352 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9353 regformats/reg-s390x.dat.
9354
9355 2002-03-01 Andrew Cagney <ac131313@redhat.com>
9356
9357 * utils.c: Add FIXME explaining true/false problem.
9358
9359 2002-02-28 Andrew Cagney <ac131313@redhat.com>
9360
9361 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9362
9363 2002-02-28 Michael Chastain <mec@shout.net>
9364
9365 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9366
9367 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
9368
9369 * gdbserver/linux-s390-low.c: New file.
9370 * regformats/reg-s390.dat: New file.
9371 * regformats/reg-s390x.dat: New file.
9372 * gdbserver/configure.srv: Add S/390.
9373 * gdbserver/Makefile.in: Add S/390.
9374 * configure.tgt: Enable gdbserver for S/390.
9375
9376 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9377
9378 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9379 first line of the doc string for "info dos", except at the end of
9380 the sentence, since the short help stops at the first period.
9381
9382 2002-02-28 Jason Merrill <jason@redhat.com>
9383
9384 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9385
9386 2002-02-27 Fred Fish <fnf@redhat.com>
9387
9388 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9389 comment (dumy -> dummy).
9390
9391 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9392
9393 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9394
9395 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
9396
9397 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9398
9399 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9400
9401 * gdbserver/acconfig.h: New file.
9402 * gdbserver/i387-fp.c: New file.
9403 * gdbserver/i387-fp.h: New file.
9404 * gdbserver/linux-x86-64.c: New file.
9405 * regformats/reg-x86-64.dat: New file.
9406 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9407 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9408 * gdbserver/configure.in: Add support for regsets.
9409 * gdbserver/config.in: Regenerate.
9410 * gdbserver/configure: Regenerate.
9411 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9412 * gdbserver/linux-low.h: New file.
9413 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9414 for regsets.
9415 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9416 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9417 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9418 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9419 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9420 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9421 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9422 "i387-fp.h". Add PTRACE_GETREGS and friends.
9423 * gdbserver/regcache.c (supply_register): New function.
9424 (supply_register_by_name): New function.
9425 (collect_register): New function.
9426 (collect_register_by_name): New function.
9427
9428 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9429
9430 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9431 (config.status): Add configure.srv dependency.
9432 (server_h): Add config.h dependency.
9433
9434 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9435
9436 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9437 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9438 * gdbserver/configure.srv: Change i386-*-linux* to use
9439 reg-i386-linux.o.
9440
9441 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9442
9443 * x86-64-tdep.c: Re-indent. Update copyright date.
9444
9445 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9446
9447 From Michal Ludvig <mludvig@suse.cz>:
9448 * x86-64-tdep.c (value.h): Delete.
9449 (gdb_assert.h): Include.
9450 (x86_64_register_convert_to_virtual,
9451 x86_64_register_convert_to_raw ): Add check which lets only
9452 floating-point values to be converted.
9453 (value_push): Delete.
9454 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9455 (i386_gdbarch_init): Number of register_bytes fixed.
9456
9457 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9458
9459 * MAINTAINERS: Add x86-64 target.
9460
9461 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9462
9463 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9464 * osfsolib.c (solib_map_sections): Ditto.
9465 * irix5-nat.c (solib_map_sections): Ditto.
9466 * corelow.c (gdb_check_format): Ditto.
9467 * symfile.c (symfile_bfd_open): Ditto.
9468 * solib.c (solib_map_sections): Ditto.
9469 Fix PR gdb/354.
9470
9471 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9472
9473 * remote.c (_initialize_remote): By default, disable ``e'' and
9474 ``E'' step out-of-range packets.
9475
9476 2002-02-26 Andreas Schwab <schwab@suse.de>
9477
9478 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9479 m68k_linux_frame_saved_pc.
9480 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9481 in_sigtramp.
9482 (SIGCONTEXT_PC_OFFSET): Remove.
9483 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9484 m68k_linux_sigtramp_saved_pc): New functions.
9485 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9486 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9487 (UCONTEXT_PC_OFFSET): Define.
9488 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9489 non-RT and RT signal trampolines.
9490
9491 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
9492
9493 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9494 (TARGET_NBPG, STACK_END_ADDR): Delete
9495 (VARIABLES_INSIDE_BLOCK): Delete.
9496
9497 2002-02-25 Andrew Cagney <ac131313@redhat.com>
9498
9499 * utils.c (perror_with_name): Make string parameter constant.
9500 (print_sys_errmsg): Ditto.
9501 (query): Ditto.
9502 * defs.h (perror_with_name): Update.
9503 (print_sys_errmsg): Update.
9504 (query): Update.
9505
9506 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
9507
9508 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9509 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9510
9511 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9512
9513 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9514 if it already matches the current architecture from the exec file.
9515 Include arch-utils.h for gdbarch_info_init prototype.
9516 * Makefile.in (rs6000-nat.o): Update dependencies.
9517
9518 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9519
9520 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9521 list of exported variables.
9522
9523 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
9524
9525 * gdbserver/configure.srv: New file.
9526 * gdbserver/configure.in: Use configure.srv instead
9527 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9528 from it.
9529 * gdbserver/configure: Regenerated.
9530 * gdbserver/terminal.h: New file.
9531 * gdbserver/Makefile.in: Update for configure changes. Remove
9532 more unneeded include paths.
9533
9534 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9535
9536 From wiz at danbala:
9537 * config/sparc/tm-sp64.h: Fix grammar and typos.
9538 Fix PR gdb/287.
9539
9540 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9541
9542 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9543 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9544 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9545 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9546 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9547 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9548 * s390-tdep.c: Ditto.
9549 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9550 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9551 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9552 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9553 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9554 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9555 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9556 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9557 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9558 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9559 Fix PR gdb/378.
9560
9561 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9562
9563 * lin-thread.c: Delete file.
9564 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9565 to gdb_proc_service.h.
9566 * configure: Re-generate.
9567
9568 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9569 * serial.c (serial_open): Delete check for "ocd".
9570 Fix PR gdb/349.
9571
9572 * Makefile.in (linux-thread.o): Delete target.
9573 * linux-thread.c: Delete file.
9574
9575 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9576 renamed SH files to be consistent.
9577
9578 * symtab.c (sort_search_symbols): Use xfree.
9579
9580 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9581
9582 * arm-linux-tdep.c (arm_linux_init_abi): Register
9583 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9584 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9585 definition with undef, since we don't want the sysvr4 definition.
9586 (SKIP_TRAMPOLINE_CODE): Likewise.
9587
9588 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9589
9590 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9591
9592 * configure.in: (AC_CHECK_FUNCS) Added test for
9593 canonicalize_file_name Regenerated.
9594 * config.in, configure: Regenerated.
9595 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9596 defined use canonicalize_file_name.
9597
9598 2002-02-23 Michael Chastain <mec@shout.net>
9599
9600 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9601
9602 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9603
9604 * README: Remove references to cygnus.com.
9605 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9606 dot com'' form. Remove references to cygnus.com and sourceware.
9607
9608 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9609
9610 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9611 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9612 1003.1-2001 no longer allows "head -1".
9613 * gdb/Makefile.in (version.c): Likewise.
9614 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9615 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9616 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9617
9618 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9619
9620 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9621 * command.h (cmd_cfunc_eq): Declare.
9622 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9623
9624 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9625 ``struct cmd_list_element *''.
9626 * cli/cli-cmds.c (is_complete_command): Update. Use
9627 cmd_cfunc_eq.
9628 * top.c (execute_command): Pass the command to
9629 is_complete_command.
9630 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9631
9632 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9633
9634 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9635 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9636 architecture defines.
9637 * s390-tdep.c (s390_gdbarch_init): Likewise.
9638
9639 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9640
9641 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9642 (arm_linux_push_arguments): Likewise.
9643 (arm_linux_init_abi): Register them. Also register linux-specific
9644 call_dummy_words.
9645 (find_minsym_and_objfile): Use strcmp, not STREQ.
9646 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9647 (arm_linux_call_dummy_words): Delete declaration.
9648 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9649 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9650 declarations.
9651 (LOWEST_PC): Delete.
9652
9653 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9654
9655 * maint.c (print_section_info): Do not prepend `0x' to filepos
9656 output, it will be handled by local_hex_string_custom.
9657
9658 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9659
9660 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9661 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9662 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9663
9664 2002-02-22 Jim Blandy <jimb@redhat.com>
9665
9666 Indicate that the bcache functions don't change the strings
9667 they're passed.
9668 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9669 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9670
9671 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9672
9673 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9674
9675 2002-02-21 Christopher Faylor <cgf@redhat.com>
9676
9677 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9678 find the complete path to a loaded DLL.
9679
9680 2002-02-21 Fred Fish <fnf@redhat.com>
9681
9682 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9683 that marks the end of the range of a function, enter a line number
9684 entry that has a line number of zero and a PC offset that matches
9685 the end of the function. This starts a range of PC's for which no
9686 line number information is known.
9687 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9688 PC's for which no line number info is found (line number is zero)
9689 then we didn't find any valid line information.
9690 * symtab.h: Document use of zero line number entry.
9691
9692 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
9693
9694 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9695 (have_ptrace_getvrregs): Define for run time checks.
9696 (gdb_vrregset_t): New type for Altivec register handling.
9697 (fetch_register, store_register): Fetch/store altivec register
9698 when needed.
9699 (fetch_altivec_register, store_altivec_register): New functions.
9700 (supply_vrregset, fill_vrregset): New functions.
9701 (fetch_altivec_registers, store_altivec_registers): New functions.
9702 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9703 registers as well.
9704
9705 2002-02-21 Jiri Smid <smid@suse.cz>
9706
9707 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9708
9709 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9710
9711 * Makefile.in (armnbsd-nat.o): Update dependencies.
9712 * armnbsd-nat.c (supply_gregset): New function. Common code to
9713 supply the integer register set.
9714 (supply_fparegset): New function. Similar for FPA registers.
9715 (fetch_regs, fetch_fp_regs): Use them.
9716 (fetch_core_registers): Likewise.
9717 (fetch_elfcore_registers): New function.
9718 (arm_netbsd_elfcore_fns): New core-file type specification.
9719 (_initialize_arm_netbsd_nat): Register it.
9720
9721 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9722
9723 * armnbsd-nat.c: Include gdbcore.h.
9724 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9725 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9726 'void' to declaration, to shut up ARI.
9727 (fetch_core_registers): Make static. Rewrite using supply_register.
9728 (arm_netbsd_core_fns): New core-file type specification.
9729 (_initialize_arm_netbsd_nat): New function.
9730
9731 2002-02-21 Christopher Faylor <cgf@redhat.com>
9732
9733 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9734 value.
9735
9736 2002-02-20 Christopher Faylor <cgf@redhat.com>
9737
9738 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9739 fails.
9740
9741 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9742
9743 * jv-exp.y (parse_number): Change type of implicit longs
9744 to builtin_type_uint64.
9745
9746 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9747
9748 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9749 to be an integer instead of a `union wait'.
9750
9751 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9752
9753 * mips-linux-nat.c: Call the operating system GNU/Linux.
9754 * mips-linux-tdep.c: Likewise.
9755 * mips-tdep.c: Likewise.
9756
9757 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9758
9759 Fix PR gdb/265.
9760 * jv-exp.y (parse_number): Handle 64-bit integers.
9761
9762 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9763
9764 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9765 AC_STDC_HEADERS to AC_HEADER_STDC.
9766 * gdbserver/configure: Regenerated.
9767
9768 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9769
9770 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9771 is defined.
9772 * sparc-tdep.c (get_longjmp_target): Likewise.
9773
9774 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9775
9776 * News: Add news about ARM and Multi-arch. Mention the new target
9777 arm*-*-netbsd*.
9778
9779 2002-02-19 Jim Blandy <jimb@redhat.com>
9780
9781 * stabsread.c (error_type_complaint): Improve error message.
9782
9783 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
9784
9785 * gdbserver/README: Update documentation.
9786 * gdbserver/configure.in: Update configury to match documentation.
9787 * gdbserver/Makefile.in: Likewise.
9788 * gdbserver/configure: Regenerated.
9789 * gdbserver/aclocal.m4: New file, generated by aclocal.
9790 * gdbserver/config.in: New file, generated by autoheader.
9791
9792 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9793
9794 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9795 armnbsd-nat.c.
9796
9797 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9798
9799 * arm-tdep.h (enum arm_float_model): New enum.
9800 (struct gdbarch_tdep): Add fp_model.
9801 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9802 up floating-point conversions until we know the floating-point model
9803 in use by the inferior. Don't complain about being unable to
9804 determine the ABI of the inferior when we don't have one.
9805 (arm_extract_return_value): Support different floating-point models.
9806 (arm_store_return_value): Likewise.
9807 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9808 ARM_FLOAT_SOFT.
9809 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9810
9811 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9812
9813 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9814 of ``current_gdbarch''.
9815
9816 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9817
9818 * armnbsd-nat.c : ANSIfy all function declarations.
9819 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9820 (fetch_inferior_registers): Re-implement in terms of above.
9821 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9822 (store_inferior_registers): Re-implement in terms of above.
9823
9824 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9825
9826 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9827 kernel.
9828 * arm-linux-tdep.c: Likewise.
9829 * config/arm/tm-linux.h: Likewise.
9830
9831 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9832
9833 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9834 * config/arm/nbsd.mt (TM_FILE): Delete.
9835 * config/arm/tm-nbsd.h: Delete.
9836
9837 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9838
9839 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9840 Initialize CALL_DUMMY_LENGTH.
9841
9842 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9843
9844 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9845 function.
9846 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
9847 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
9848 defines one thing and that is incorrect for this port.
9849 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9850
9851 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9852
9853 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9854
9855 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9856
9857 * win32-nat.c (display_selector): New function. Displays information
9858 about the information returned by GetThreadSelectorEntry API function.
9859 (display_selectors): New function. Displays the infomation of
9860 the selector given as argument, or of CS, DS ans FS selectors
9861 if no argument is given.
9862 ( _initialize_inftarg): Add "w32" as info prefix command.
9863 Add "info w32 selector" as command calling display_selectors.
9864
9865 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9866
9867 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9868 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9869 if not defined.
9870
9871 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9872
9873 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9874
9875 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9876
9877 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9878 (arm_fix_call_dummy): Call it.
9879 (arm_call_dummy_breakpoint_offset): Delete.
9880 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9881 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9882
9883 2002-02-18 Andrew Cagney <ac131313@redhat.com>
9884
9885 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9886 Default to func_frame_chain_valid.
9887 * gdbarch.h, gdbarch.c: Re-generate.
9888 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9889
9890 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
9891
9892 * ppc-linux-nat.c: Update copyright.
9893 (fetch_register, store_register): Add tid parameter, don't compute
9894 tid here.
9895 (fetch_ppc_registers, store_ppc_registers): Add tid
9896 parameter. Pass it along to callees.
9897 (fetch_inferior_registers, store_inferior_registers): Compute tid
9898 here, and pass it to calleed functions.
9899 (fill_gregset, supply_fpregset): Clean up formatting.
9900
9901 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9902
9903 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9904 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9905
9906 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9907
9908 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9909 * gdbarch.c gdbarch.h: Regenerate.
9910 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9911 function.
9912 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9913 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9914 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9915
9916 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9917 * arm-tdep.c (arm_get_longjmp_target): New function.
9918 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9919 this to a positive value register arm_get_longjmp_target as the
9920 longjmp handler.
9921 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9922 (arm_linux_init_abi): Set up longjmp description in tdep.
9923 * armnbsd-nat.c (get_longjmp_target): Delete.
9924 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9925 description in tdep.
9926 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9927 (get_longjmp_target): Delete declaration.
9928 (GET_LONGJMP_TARGET): Delete.
9929 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9930 (GET_LONGJMP_TARGET): Delete.
9931
9932 2002-02-17 Kevin Buettner <kevinb@redhat.com>
9933
9934 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9935 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9936 of ``current_gdbarch''.
9937
9938 2002-02-17 Tom Tromey <tromey@redhat.com>
9939
9940 * cli/cli-cmds.c (compare_strings): New function.
9941 (complete_command): Only print each unique item once.
9942 * completer.h (complete_line): Declare.
9943 * completer.c (complete_line): New function.
9944 (line_completion_function): Use it.
9945
9946 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9947
9948 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9949 * gdbarch.h, gdbarch.c: Re-generate.
9950
9951 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9952
9953 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9954
9955 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9956
9957 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9958 * valops.c (value_arg_coerce): Don't take the address of a reference
9959 to convert an argument to a reference.
9960
9961 2002-02-15 Christopher Faylor <cgf@redhat.com>
9962
9963 * win32-nat.c (get_image_name): New function.
9964 (handle_load_dll): Use get_image_name function.
9965 (get_child_debug_event): Avoid registering debug events until possibly
9966 execed process is started.
9967 (child_create_inferior): Allow invocation via shell so that command
9968 line redirection, etc. works ok.
9969 (_initialize_inftarg): Add new command: "set shell" to control whether
9970 a shell is used to start a process.
9971
9972 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9973
9974 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9975 instead of find_register_by_number.
9976 (cannot_store_register): Likewise.
9977
9978 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9979
9980 * dwarf2read.c: Replace fprintf (stderr, ...) by
9981 fprintf_unfiltered (gdb_stderr, ...).
9982
9983 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9984
9985 * gdbserver/gdbserver.1: Document --attach.
9986
9987 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9988
9989 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9990 descriptions.
9991 * arm-tdep.c (arm_default_arm_le_breakpoint)
9992 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9993 (arm_default_thumb_be_breakpoint): New. Initialize them from
9994 traditional breakpoint defines.
9995 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9996 (arm_gdbarch_init): Initialize new breakpoint variables.
9997 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9998 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9999 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
10000 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
10001 code out to ...
10002 (arm_netbsd_init_abi_common): ... here; new function.
10003 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
10004 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
10005 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
10006 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
10007
10008 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
10009
10010 * arm-tdep.h (enum arm_abi): New enum.
10011 (struct gdbarch_tdep): New structure.
10012 (LOWEST_PC): Provide a default.
10013 (arm_gdbarch_register_os_abi): Declare new function.
10014 * arm-tdep.c (arm_abi_names): New array.
10015 (process_note_abi_tag_sections): New function.
10016 (get_elfosabi): New function.
10017 (arm_gdbarch_register_os_abi): New function.
10018 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
10019 support for that ABI has been built in, then call the appropriate
10020 configuration routine. Use gdbarch_num_regs() to get the number
10021 of registers.
10022 (arm_dump_tdep): New function.
10023 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
10024 place-holder functions.
10025 (_initialize_arm_tdep): Register them.
10026 * config/arm/tm-arm.h (LOWEST_PC): Delete.
10027
10028 * armnbsd-tdep.c: New file.
10029 * Makefile.in (armnbsd-tdep.o): Add dependencies.
10030 * config/arm/nbsd.mt (TDEPFILES): Add it.
10031 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
10032
10033 * armnbsd-nat.c: Include regcache.h.
10034 * Makefile.in (armnbsd-nat.o): Update dependency list.
10035
10036 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
10037
10038 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10039
10040 * gdbserver/Makefile.in: Fix typos in target rules.
10041
10042 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10043
10044 Fix part of PR gdb/267.
10045 * linespec.c (find_methods): Handle constructors specially for now.
10046
10047 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
10048
10049 * arm-tdep.c (arm_push_arguments): Eliminate special float type
10050 handling.
10051 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
10052 standard_coerce_float_to_double().
10053
10054 2002-02-14 Christopher Faylor <cgf@redhat.com>
10055
10056 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
10057 GDBINIT_FILENAME.
10058
10059 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
10060
10061 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
10062 find_variant_by_name, because it confuses the multiarch
10063 framework. Return NULL if there isn't an architecture with the
10064 user supplied name, instead of forcing a different one without
10065 recording the change with the multiarch machinery.
10066 (find_variant_by_name): Delete.
10067
10068 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10069
10070 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
10071 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
10072
10073 2002-02-13 Martin M. Hunt <hunt@redhat.com>
10074
10075 * stack.c (print_frame_info_base): When calling
10076 print_frame_info_listing_hook, set current_source_symtab.
10077
10078 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10079
10080 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
10081 and remove unused $(INCLUDE_DIR).
10082 Add regcache.c to OBS.
10083 Add generated register protocol files to clean target.
10084 Update dependencies for new objects, obsolete old target code.
10085
10086 * gdbserver/linux-low.c: Remove all platform-specific code to
10087 new files. Remove various dead code. Update to use regcache
10088 functionality.
10089 * gdbserver/remote-utils.c (fromhex): Add return statement
10090 to quiet warning.
10091 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
10092 constant.
10093 (input_interrupt): Add integer parameter to match prototype
10094 of a signal handler.
10095 (outreg): Use register_data ().
10096 (prepare_resume_reply): Use gdbserver_expedite_regs.
10097 * gdbserver/server.c (main): Dynamically allocate own_buf because
10098 PBUFSIZ is no longer constant. Use registers_to_string () and
10099 registers_from_string ().
10100 * gdbserver/server.h: No longer include "defs.h". Add prototypes
10101 for error (), fatal (), and warning (). Update definition of
10102 PBUFSIZ to use regcache functionality. Add include guard.
10103 * gdbserver/utils.c (fatal): Add missing ``const''.
10104 (warning): New function.
10105
10106 * regformats/regdat.sh: Include "regcache.h" in generated files.
10107 Provide init_registers () function.
10108 * regformats/regdef.h: Add prototype for set_register_cache ().
10109 Add include guard.
10110
10111 * gdbserver/linux-arm-low.c: New file.
10112 * gdbserver/linux-i386-low.c: New file.
10113 * gdbserver/linux-ia64-low.c: New file.
10114 * gdbserver/linux-m68k-low.c: New file.
10115 * gdbserver/linux-mips-low.c: New file.
10116 * gdbserver/linux-ppc-low.c: New file.
10117 * gdbserver/linux-sh-low.c: New file.
10118
10119 * gdbserver/regcache.c: New file.
10120 * gdbserver/regcache.h: New file.
10121
10122 * gdbserver/low-linux.c: Removed obsolete file.
10123
10124 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10125
10126 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
10127 * config/i386/linux.mt: Likewise.
10128 * config/ia64/linux.mt: Likewise.
10129 * config/m68k/linux.mh: Likewise.
10130 * config/powerpc/linux.mh: Likewise.
10131 * config/mips/linux.mt: Likewise.
10132
10133 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
10134
10135 * config/i386/i386lynx.mh: Mark gdbserver variables
10136 as (currently) obsolete for this target.
10137 * config/i386/nbsd.mt: Likewise.
10138 * config/i386/nbsdelf.mt: Likewise.
10139 * config/m32r/m32r.mt: Likewise.
10140 * config/m68k/m68klynx.mh: Likewise.
10141 * config/m68k/nbsd.mt: Likewise.
10142 * config/m68k/sun3os4.mh: Likewise.
10143 * config/mips/vr5000.mt: Likewise.
10144 * config/ns32k/nbsd.mt: Likewise.
10145 * config/pa/hppabsd.mh: Likewise.
10146 * config/pa/hppaosf.mh: Likewise.
10147 * config/powerpc/nbsd.mt: Likewise.
10148 * config/rs6000/rs6000lynx.mh: Likewise.
10149 * config/s390/s390.mt: Likewise.
10150 * config/s390/s390x.mt: Likewise.
10151 * config/sparc/sparclynx.mh: Likewise.
10152 * config/sparc/sun4os4.mh: Likewise.
10153 * config/i386/x86-64linux.mt: Likewise.
10154 * config/sparc/linux.mh: Likewise.
10155
10156 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10157
10158 * configure.tgt: Configure gdbserver only for known working
10159 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
10160 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
10161 SUBDIRS if it is configured. Update comment for ${nativefile}.
10162 * configure: Regenerated.
10163
10164 2002-02-13 Michael Snyder <msnyder@redhat.com>
10165
10166 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10167
10168 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10169 (default_gcore_mach): Just return 0, work around a problem in bfd.
10170 (default_gcore_target): OK to return NULL if exec_bfd is null.
10171 (make_mem_sec): Use a cast, avoid a warning.
10172
10173 * procfs.c (find_memory_regions_callback): Use a cast instead of
10174 calling host_pointer_to_address (which complains if
10175 sizeof (host pointer) != sizeof (target pointer)).
10176 (procfs_make_note_section): Avoid overflow in psargs string.
10177
10178 * procfs.c (procfs_make_note_section): Make the default
10179 implementation return an error.
10180
10181 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
10182
10183 * procfs.c (procfs_make_note_section): Provide a default definition
10184 (for alpha-dec-osf4.0f). Fix typos.
10185
10186 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
10187
10188 * linux-proc.c: Add include of regcache.h.
10189 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10190
10191 2002-02-13 Andrew Cagney <ac131313@redhat.com>
10192
10193 From 2002-01-18 Greg McGary <greg@mcgary.org>:
10194 * memattr.c (create_mem_region): Disallow useless empty region.
10195 Regions are half-open intervals, so allow [A..B) [B..C) as
10196 non-overlapping.
10197
10198 2002-02-13 Michael Chastain <mec@shout.net>
10199
10200 * defs.h: Kill CONST_PTR.
10201 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10202 * c-lang.c (c_builtin_types): Likewise.
10203 * ch-lang.c (ch_builtin_types): Likewise.
10204 * f-lang.c (f_builtin_types): Likewise.
10205 * language.c (unknown_builtin_types): Likewise.
10206 * m2-lang.c (m2_builtin_types): Likewise.
10207 * p-lang.c (pascal_builtin_types): Likewise.
10208 * scm-lang.c (c_builtin_types): Likewise.
10209
10210 2002-02-13 Keith Seitz <keiths@redhat.com>
10211
10212 * arm-tdep.h (arm_get_next_pc): Add declaration.
10213
10214 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
10215
10216 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10217 with other related struct-returning functions.
10218 (arm_extract_struct_value_address): New function.
10219 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10220 initialize float_format, double_format and long_double_format as
10221 appropriate to the endianness of the target.
10222 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10223 (arm_use_struct_convention): Delete declaration.
10224 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10225
10226 2002-02-13 Keith Seitz <keiths@redhat.com>
10227
10228 * defs.h (core_addr_to_string_nz): New function.
10229
10230 2002-02-13 Mark Kettenis <kettenis@gnu.org>
10231
10232 Apply missing bits of 2002-01-15 patch.
10233 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10234 (fill_fpregset): Use i387_fill_fsave.
10235
10236 2002-02-12 Keith Seitz <keiths@redhat.com>
10237
10238 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10239 (core_addr_to_string_nz): New function.
10240
10241 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10242
10243 * arm-linux-nat.c: Really include arm-tdep.h.
10244 * config/arm/tm-linux.h (struct type, struct value): Declare.
10245
10246 2002-02-11 Michael Snyder <msnyder@redhat.com>
10247
10248 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10249 (gcore section): Ifdef for Solaris and Unixware only.
10250 (procfs_do_thread_registers): Unixware needs one lwpstatus
10251 per thread (not one prstatus or pstatus).
10252 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10253 not over all gdb threads. For unixware, call elfcore_write_pstatus
10254 once before iterating over threads.
10255
10256 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10257
10258 * arm-tdep.h: New file.
10259 * arm-tdep.c: Include arm-tdep.h.
10260 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10261 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10262 (arm_print_float_info, arm_register_type, convert_to_extended)
10263 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10264 (arm_extract_return_value, arm_register_name): Make static.
10265 (arm_software_single_step): Similarly. Fix types in declaration.
10266 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10267 (arm_store_return_value, arm_store_struct_return): New functions.
10268 (arm_gdbarch_init): Register the above functions. Also register
10269 call_dummy_start_offset, sizeof_call_dummy_words,
10270 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10271 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
10272 max_register_virtual_size, register_size. Set up
10273 prologue_cache.saved_regs here, rather than ...
10274 (_initialize_arm_tdep): ... here.
10275 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10276 declarations.
10277 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10278 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10279 (arm_print_float_info, arm_register_type, convert_to_extended)
10280 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10281 (arm_extract_return_value, arm_register_name): Delete declarations.
10282 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10283 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10284 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10285 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10286 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10287 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10288 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10289 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10290 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10291 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10292 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10293 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10294 interface.
10295 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10296 * remote-rdi.c remote-rdp.c: Likewise.
10297 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10298 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10299 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10300 definition.
10301
10302 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10303 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10304 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10305 from non-ARM_ prefixed definitions.
10306 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10307 all uses of above.
10308 * remote-rdi.c remote-rdp.c: Likewise.
10309 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10310
10311 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10312
10313 * arm-tdep.c (arm_frameless_function_invocation)
10314 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10315 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10316 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10317 (arm_pop_frame, arm_get_next_pc): Make static.
10318 (arm_gdbarch_init): Register above in gdbarch structure.
10319 (arm_read_fp): Renamed from arm_target_read_fp.
10320 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10321 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10322 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10323 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10324 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10325 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10326 (arm_pc_is_thumb_dummy): Delete declarations.
10327 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10328 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10329 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10330 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
10331
10332 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
10333
10334 * symtab.c (compare_search_syms): New function.
10335 (sort_search_symbols): New function.
10336 (search_symbols): Sort symbols after searching rather than
10337 before.
10338
10339 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10340
10341 * NEWS: Linux -> GNU/Linux.
10342
10343 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10344
10345 * gdbarch.sh: For for level one methods, disallow a definition
10346 when partially multi-arched. Add comments explaining rationale.
10347 * gdbarch.h: Re-generate.
10348
10349 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10350
10351 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10352 multi-arch partial.
10353
10354 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10355
10356 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10357 field. Use diff -u.
10358 * gdbarch.c: Re-generate.
10359
10360 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10361
10362 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
10363 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10364 partial.
10365
10366 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10367
10368 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10369 multi-arch partial.
10370 (PUSH_ARGUMENTS): Switch to using predefault.
10371 * gdbarch.c: Regenerate.
10372
10373 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10374
10375 * valops.c (PUSH_ARGUMENTS): Delete definition.
10376 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10377 partial. Default to default_push_arguments.
10378 * gdbarch.h, gdbarch.c: Regenerate.
10379
10380 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10381
10382 * defs.h (throw_exception): Rename return_to_top_level. Update
10383 comments.
10384 * utils.c (error_stream, internal_verror, quit): Ditto.
10385 * top.c (throw_exception, catcher): Ditto.
10386 * sparclet-rom.c (sparclet_load): Ditto.
10387 * remote.c (interrupt_query, minitelnet): Ditto.
10388 * remote-sds.c (interrupt_query): Ditto.
10389 * remote-mips.c (mips_error, mips_kill): Ditto.
10390 * ocd.c (interrupt_query): Ditto.
10391 * monitor.c (monitor_interrupt_query): Ditto.
10392 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10393 * target.h: Update comment.
10394
10395 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10396
10397 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10398
10399 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10400 default_double_format.
10401 * gdbarch.h, gdbarch.c: Re-generate.
10402 * findvar.c (floatformat_unknown): Delete variable definition.
10403 * doublest.h (floatformat_unknown): Delete variable declaration.
10404
10405 2002-02-09 Jim Blandy <jimb@redhat.com>
10406
10407 * stabsread.c (read_type): Add code to parse Sun's syntax for
10408 prototyped function types.
10409
10410 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10411
10412 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10413 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10414
10415 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10416
10417 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10418 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10419 now _initialize_xcoffsolib gets called again and overrides the
10420 commands from solib.c in a native configuration.
10421
10422 2002-02-09 Mark Kettenis <kettenis@gnu.org>
10423
10424 * doublest.c (store_typed_floating): Don't try to return a value.
10425 Fixes PR gdb/290.
10426
10427 2002-02-08 Jim Blandy <jimb@redhat.com>
10428
10429 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10430 is prototyped and has no arguments, print its argument list as
10431 `(void)'.
10432
10433 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10434
10435 * MAINTAINERS (write-after-approval): Add myself.
10436 (paper-trail): I've escaped!
10437
10438 2002-02-08 Christopher Faylor <cgf@redhat.com>
10439
10440 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10441 changes.
10442 (_initialize_check_for_gdb_ini): Ditto.
10443
10444 2002-02-08 Martin M. Hunt <hunt@redhat.com>
10445
10446 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10447 xaprintf -> xasprintf.
10448
10449 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10450
10451 * win32-nat.c: Remove use of printf and sprintf functions.
10452
10453 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
10454
10455 * arm-tdep.c (arm_frame_chain_valid): Make static.
10456 (arm_push_arguments): Likewise.
10457 (arm_gdbarch_init): New function.
10458 (_initialize_arm_tdep): Call it.
10459 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10460 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10461 (FRAME_CHAIN_VALID): Delete.
10462 (arm_frame_chain_valid): Delete declaration.
10463 (PUSH_ARGUMENTS): Delete.
10464 (arm_push_arguments): Delete declaration.
10465 (CALL_DUMMY_P): Delete.
10466
10467 2002-02-08 Andrew Cagney <ac131313@redhat.com>
10468 Corinna Vinschen <vinschen@redhat.com>
10469
10470 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10471 on builtin float types.
10472
10473 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
10474
10475 * utils.c: Include <curses.h> before "bfd.h".
10476 * tui/tui-hooks.c: Likewise.
10477 * tui/tui.c: Likewise.
10478 * tui/tuiCommand.c: Likewise.
10479 * tui/tuiData.c: Likewise.
10480 * tui/tuiDataWin.c: Likewise.
10481 * tui/tuiDisassem.c: Likewise.
10482 * tui/tuiGeneralWin.c: Likewise.
10483 * tui/tuiIO.c: Likewise.
10484 * tui/tuiLayout.c: Likewise.
10485 * tui/tuiRegs.c: Likewise.
10486 * tui/tuiSource.c: Likewise.
10487 * tui/tuiSourceWin.c: Likewise.
10488 * tui/tuiStack.c: Likewise.
10489 * tui/tuiWin.c: Likewise.
10490
10491 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
10492
10493 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10494 to include space for pseudoregs as well. Update loops accordingly.
10495 (sh_fp_frame_init_saved_regs): Ditto.
10496 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10497
10498 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10499
10500 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10501 Add Richard Earnshaw to Arm maintainers.
10502
10503 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10504
10505 * defs.h (warning_begin): Delete declaration.
10506
10507 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10508 Delete macro.
10509
10510 2002-02-07 Michael Snyder <msnyder@redhat.com>
10511
10512 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10513 Logic bug, remove misplaced else.
10514
10515 2002-02-07 Klee Dienes <klee@apple.com>
10516
10517 * fork-inferior.c (fork_inferior): Add '!' to the list of
10518 characters that need to be quoted when building a string for the
10519 shell. Quote '!' specifically with a backslash, since CSH chokes
10520 when trying to evaluate "str!str".
10521
10522 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10523
10524 * rdi-share/host.h: Only provide a typedef for bool if it is not
10525 defined.
10526
10527 2002-02-04 Michael Snyder <msnyder@redhat.com>
10528
10529 * breakpoint.h (enum bptype): Add new overlay event bp type.
10530 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10531
10532 * breakpoint.c (create_internal_breakpoint): New function.
10533 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10534 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10535 (create_thread_event_breakpoint): Ditto.
10536 (create_solib_event_breakpoint): Ditto.
10537 (create_overlay_event_breakpoint): New function.
10538 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10539 (update_breakpoints_after_exec): Delete and re-initialize
10540 overlay event breakpoints after an exec. Add FIXME comment
10541 about longjmp breakpoint.
10542 (print_it_typical): Ignore overlay event breakpoints.
10543 (print_one_breakpoint): Ditto.
10544 (mention): Ditto.
10545 (bpstat_what): Do not stop for overlay event breakpoints.
10546 (delete_breakpoint): Don't delete overlay event breakpoints.
10547 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10548 (breakpoint_re_set): Re-create overlay event breakpoint.
10549
10550 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10551 (overlay_manual_command): Disable overlay breakpoints.
10552 (overlay_off_command): Disable overlay breakpoints.
10553
10554 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10555
10556 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10557 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10558 to here from config/tm-arm.h.
10559 (coff_sym_is_thumb): Make static.
10560 (arm_elf_make_msymbol_special): New function.
10561 (arm_coff_make_msymbol_special): New function.
10562 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10563 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10564 (coff_sym_is_thumb): Delete declaration.
10565 (arm_elf_make_msymbol_special): Declare.
10566 (arm_coff_make_msymbol_special): Declare.
10567 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10568 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10569
10570 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10571
10572 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10573
10574 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10575
10576 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10577 * gdbarch.c gdbarch.h: Regenerate.
10578 * arch-utils.c (default_print_float_info): New function.
10579 * arch-utils.h (default_print_float_info): Prototype it.
10580 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10581 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10582 (PRINT_FLOAT_INFO): Document it.
10583
10584 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10585 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10586 (PRINT_FLOAT_INFO): Define.
10587
10588 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10589
10590 * win32-nat.c (_initialize_check_for_gdb_ini):
10591 Add typecast to sprintf argument to suppress a warning.
10592
10593 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10594
10595 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10596 to allow easier handling of pass state.
10597 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10598 that gives exception name and address.
10599 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10600 and set last_sig value to ourstatus->value.sig. Some missing
10601 exceptions added.
10602 (child_continue): Correctly report continue_status.
10603 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10604 TARGET_SIGNAL_0 (new default value).
10605 (child_resume): consider sig argument passed to decide if
10606 the exception should be passed to debuggee or not.
10607
10608 2002-02-05 Michael Snyder <msnyder@redhat.com>
10609
10610 * regcache.c (fetch_register): Call target_fetch_register
10611 only if we don't call FETCH_PSEUDO_REGISTER.
10612 (store_register): Call target_store_register only if we
10613 don't call STORE_PSEUDO_REGISTER.
10614
10615 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
10616
10617 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10618 ELF_MAKE_MSYMBOL_SPECIAL.
10619 * gdbarch.c, gdbarch.h: Regenerate.
10620 * arch-utils.c (default_make_msymbol_special): New function.
10621 * arch-utils.h (default_make_msymbol_special): Export.
10622 * elfread.c (elf_symtab_read): Compile use of
10623 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10624 multiarched.
10625 * coffread.c (coff_symtab_read): Ditto, for
10626 COFF_MAKE_MSYMBOL_SPECIAL.
10627
10628 2002-02-05 Jim Blandy <jimb@redhat.com>
10629
10630 * solib-svr4.c (svr4_truncate_ptr): New function.
10631 (svr4_relocate_section_addresses): Do the address arithmetic with
10632 the appropriate truncation for target addresses, even when
10633 CORE_ADDR is larger than a target address.
10634
10635 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10636
10637 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10638 to (int *).
10639
10640 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10641
10642 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10643 code.
10644
10645 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10646
10647 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10648
10649 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10650
10651 * gdbserver/linux-low.c: Remove unused include files.
10652
10653 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10654
10655 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10656 (read_inferior_memory): Use it.
10657 (write_inferior_memory): Likewise.
10658
10659 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10660
10661 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10662 grubbing through sys_errlist.
10663
10664 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10665
10666 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10667
10668 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10669 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10670
10671 2002-02-04 Andrew Cagney <ac131313@redhat.com>
10672
10673 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10674 (do_sfunc, set_cmd_sfunc): New functions.
10675
10676 * command.h (struct cmd_list_element): Add field func.
10677 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10678 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10679 * cli/cli-decode.h: Ditto.
10680
10681 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10682 (help_all, help_cmd_list): Ditto.
10683 (find_cmd, complete_on_cmdlist): Ditto.
10684 * top.c (execute_command): Ditto.
10685
10686 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10687 function.sfunc.
10688
10689 * infcmd.c (notice_args_read): Fix function signature.
10690
10691 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10692 * cli/cli-decode.c (add_set_cmd): Ditto.
10693 * utils.c (initialize_utils): Ditto.
10694 * maint.c (_initialize_maint_cmds): Ditto.
10695 * infrun.c (_initialize_infrun): Ditto.
10696 * demangle.c (_initialize_demangler): Ditto.
10697 * remote.c (add_packet_config_cmd): Ditto.
10698 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10699 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10700 * proc-api.c (_initialize_proc_api): Ditto.
10701 * kod.c (_initialize_kod): Ditto.
10702 * valprint.c (_initialize_valprint): Ditto.
10703 * top.c (init_main): Ditto.
10704 * infcmd.c (_initialize_infcmd): Ditto.
10705 * corefile.c (_initialize_core): Ditto.
10706 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10707 * arch-utils.c (initialize_current_architecture): Ditto.
10708 (_initialize_gdbarch_utils): Ditto.
10709 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10710
10711 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10712 * wince.c (_initialize_inftarg): Ditto.
10713 * symfile.c (_initialize_symfile): Ditto.
10714 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10715 * language.c (_initialize_language): Ditto.
10716 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10717
10718 2002-02-04 Michael Snyder <msnyder@redhat.com>
10719
10720 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10721
10722 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10723
10724 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10725 Add rules for building the register data files.
10726
10727 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10728
10729 * regformats/regdat.sh: Add braces to the definition of
10730 expedite_regs_${arch}.
10731
10732 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10733
10734 * regformats/regdef.h (struct reg): Add comment describing the
10735 requirements for offset and size fields.
10736
10737 2002-02-04 Andreas Schwab <schwab@suse.de>
10738
10739 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10740 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10741
10742 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
10743
10744 * gdbarch.sh (copyright): Update years in generated header.
10745 (SMASH_TEXT_ADDRESS): Add rule.
10746 * gdbarch.h, gdbarch.c: Re-generate.
10747 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10748 * dbxread.c: Likewise.
10749 * dwarfread.c: Likewise.
10750 * elfread.c: Likewise.
10751 * somread.c: Likewise.
10752
10753 * arm-tdep.c (arm_smash_text_address): New function.
10754 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10755
10756 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10757
10758 Add support for hardware watchpoints on win32 native.
10759 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10760 CONTEXT_DEBUG_REGISTERS.
10761 (dr variable): New variable. Static array containing a local copy
10762 of debug registers.
10763 (debug_registers_changed): New variable. Reflects when debug registers
10764 are changed and need to be written to inferior.
10765 (debug_registers_used): New variable. Reflects when any debug register
10766 was set, used when new threads are created.
10767 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10768 i386-nat code.
10769 (thread_rec): Set dr array if id is the thread of current_event .
10770 (child_continue, child_resume): Change the debug registers for all
10771 threads if debug_registers_changed.
10772 (child_add_thread): Change the debug registers if debug_registers_used.
10773 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10774 Link nm.h to new nm-cygwin.h file.
10775 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10776 of hardware registers.
10777
10778 2002-02-03 Andrew Cagney <ac131313@redhat.com>
10779
10780 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10781 Restore behavour broken by 2002-01-20 Andrew Cagney
10782 <ac131313@redhat.com> IEEE_FLOAT removal.
10783
10784 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10785
10786 * c-valprint.c (c_val_print): Pass a proper valaddr to
10787 cp_print_class_method.
10788 * valops.c (search_struct_method): If there is only one method
10789 and args is NULL, return that method.
10790
10791 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10792
10793 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10794 accessing tag_name directly.
10795
10796 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10797
10798 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10799 of accessing tag_name directly.
10800
10801 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10802
10803 PR gdb/280
10804 * gdbtypes.c (replace_type): New function.
10805 * gdbtypes.h (replace_type): Add prototype.
10806 * stabsread.c (read_type): Use replace_type.
10807
10808 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
10809
10810 * Makefile.in (memattr.o): Add missing dependencies rule.
10811
10812 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10813
10814 * breakpoint.c (break_at_finish_command): Really export.
10815 (break_at_finish_at_depth_command): Ditto.
10816 (tbreak_at_finish_command): Ditto.
10817 * hppa-tdep.c: Include completer.h.
10818 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10819 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10820
10821 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10822
10823 * utils.c (do_write): New function.
10824 (error_stream): Rewrite combining the code from error_begin and
10825 verror.
10826 (verror): Rewrite using error_stream.
10827 (error_begin): Delete function.
10828
10829 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10830
10831 * utils.c (error_begin): Make static.
10832 * defs.h (error_begin): Delete declaration.
10833
10834 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10835 (decode_line_1): Use cplusplus_error instead of error_begin,
10836 cplusplus_hint and return_to_top_level.
10837 * coffread.c (coff_symfile_read): Use error instead of error_begin
10838 and return_to_top_level.
10839 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10840
10841 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10842
10843 * language.h (type_error, range_error): Make string parameter
10844 constant.
10845 * language.c (warning_pre_print): Delete extern declaration.
10846 * dwarfread.c (warning_pre_print): Ditto.
10847 * language.c (type_error, range_error): Rewrite to use verror and
10848 vwarning instead of warning_begin.
10849
10850 2002-02-01 Michael Snyder <msnyder@redhat.com>
10851
10852 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10853 (set_ignore_count): Move misplaced comment back where it belongs.
10854
10855 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10856
10857 * command.h (NO_FUNCTION): Delete macro.
10858 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10859 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10860 * tracepoint.c (_initialize_tracepoint): Ditto.
10861 * cli/cli-decode.c (add_set_cmd): Ditto.
10862 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10863
10864 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10865
10866 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10867 Update ``this'' pointer when calling virtual functions.
10868
10869 2002-02-01 Michael Snyder <msnyder@redhat.com>
10870
10871 * breakpoint.c (create_temp_exception_breakpoint): Delete.
10872 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10873
10874 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10875
10876 * regformats/reg-arm.dat: New file.
10877 * regformats/reg-i386.dat: New file.
10878 * regformats/reg-ia64.dat: New file.
10879 * regformats/reg-m68k.dat: New file.
10880 * regformats/reg-mips.dat: New file.
10881 * regformats/reg-ppc.dat: New file.
10882 * regformats/reg-sh.dat: New file.
10883 * regformats/regdef.h: New file.
10884 * regformats/regdat.sh: New file.
10885
10886 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
10887
10888 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10889 (arm_frame_args_address, arm_frame_locals_address): New functions.
10890 (arm_frame_num_args): New function.
10891 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10892 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10893 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10894
10895 2002-01-31 Michael Snyder <msnyder@redhat.com>
10896
10897 * breakpoint.c (break_at_finish_command): Export.
10898 (break_at_finish_at_depth_command): Export.
10899 (tbreak_at_finish_command): Export.
10900 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
10901 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10902 "txbreak" commands, which are HPPA specific.
10903
10904 * printcmd.c (disassemble_command): Remove an ancient
10905 artifact of an old merge.
10906
10907 * symfile.h (enum overlay_debugging_state):
10908 Define enum constant values for overlay mode.
10909 * symfile.c (overlay_debugging): Use enums instead of literals.
10910 (overlay_is_mapped, overlay_auto_command,
10911 overlay_manual_command): Ditto.
10912
10913 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10914 breakpoint_here_p, breakpoint_inserted_here_p,
10915 breakpoint_thread_match, bpstat_stop_status,
10916 describe_other_breakpoints, check_duplicates, clear_command):
10917 Coding standard fixes.
10918
10919 * target.c (target_xfer_memory): Add spaces, coding standard.
10920 (do_xfer_memory): Add missing line to trust-readonly
10921 code: check bfd SEC_READONLY flag for section.
10922
10923 2002-01-31 Andrew Cagney <ac131313@redhat.com>
10924
10925 * PROBLEMS: Fix typo, 5.1->5.1.1.
10926
10927 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
10928
10929 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10930 data symbols, since we search based on textlow and texthigh.
10931 (find_pc_sect_symtab): Likewise.
10932
10933 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10934
10935 * defs.h (vwarning): Declare.
10936 * utils.c (vwarning): New function.
10937 (warning): Call vwarning.
10938 (warning_begin): Delete function.
10939
10940 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10941 the warning message.
10942 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10943 warning_begin.
10944
10945 2002-01-30 Michael Snyder <msnyder@redhat.com>
10946
10947 * NEWS: Mention "set trust-readonly-sections" command.
10948 Mention generate-core-file command.
10949
10950 2002-01-15 Michael Snyder <msnyder@redhat.com>
10951
10952 * target.c: New command, "set trust-readonly-sections on".
10953 (do_xfer_memory): Honor the suggestion to trust readonly sections
10954 by reading them from the object file instead of from the target.
10955 (initialize_targets): Register command "set trust-readonly-sections".
10956
10957 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10958
10959 * parse.c (target_map_name_to_register): Simplify, search regs and
10960 pseudo-regs using a single loop.
10961
10962 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10963
10964 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10965
10966 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
10967
10968 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10969 * config/i386/i386v42mp.mh: Add i387-nat.o .
10970 * i386v4-nat.c: Include i387-nat.h.
10971 (supply_fpregset): Use i387_supply_fsave.
10972 (fill_fpregset): Use i387_fill_fsave.
10973
10974 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
10975
10976 * arm-tdep.c (arm_call_dummy_words): Define.
10977 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10978 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10979 (CALL_DUMMY_WORDS): Define.
10980 (arm_call_dummy_words): Declare.
10981 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10982 (arm_linux_call_dummy_words): Declare.
10983
10984 2002-01-30 Andreas Schwab <schwab@suse.de>
10985
10986 * m68klinux-nat.c: Fix last change to use regcache_collect
10987 instead of referencing registers[] directly.
10988
10989 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10990
10991 * parse.c (target_map_name_to_register): Delete code wrapped in
10992 #ifdef REGISTER_NAME_ALIAS_HOOK.
10993
10994 2002-01-28 Michael Snyder <msnyder@redhat.com>
10995
10996 * regcache.c (legacy_read_register_gen): Need to be able to
10997 read pseudo-register as well as real register.
10998 (legacy_write_register_gen): Ditto.
10999
11000 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11001
11002 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11003 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
11004 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
11005 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
11006 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
11007 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
11008 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
11009 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
11010 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
11011 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11012 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
11013 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
11014 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
11015 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
11016 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
11017 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
11018 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
11019 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
11020 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
11021 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
11022
11023 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11024
11025 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
11026 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
11027 (initialize_current_architecture): Update target_byte_order using
11028 information from BFD.
11029 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
11030 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
11031
11032 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11033
11034 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
11035 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
11036
11037 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
11038 #ifdef INVALID_FLOAT.
11039 * infcmd.c (do_registers_info): Ditto.
11040 * values.c (unpack_double): Ditto. Add comment.
11041
11042 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
11043 already commented out.
11044
11045 2002-01-26 Andreas Schwab <schwab@suse.de>
11046
11047 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
11048 * m68klinux-nat.c: Update ptrace interface for fetching/storing
11049 registers and add support for PTRACE_GETREGS.
11050
11051 2002-01-24 Andrew Cagney <ac131313@redhat.com>
11052
11053 GDB 5.1.1 released from 5.1 branch.
11054 * NEWS: Add 5.1.1 news.
11055 * README: Sync with 5.1 branch.
11056
11057 2002-01-23 Fred Fish <fnf@redhat.com>
11058
11059 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
11060 stabstring on initial malloc. Reallocing will copy it for us,
11061 if necessary.
11062
11063 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11064
11065 * Makefile.in (hpread_h): Delete.
11066 (HFILES_NO_SRCDIR): Remove hpread.h.
11067 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
11068 (hpread.o): Update dependencies.
11069 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
11070
11071 * hp-psymtab-read.c: Remove file.
11072 * hp-symtab-read.c: Remove file.
11073 * hpread.h: Remove file.
11074
11075 * hpread.c: Merge all contents of hp-psymtab-read.c,
11076 hp-symtab-read.c and hpread.h into this file, as it was prior to
11077 January 1999.
11078
11079 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
11080 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
11081 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
11082 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
11083
11084 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11085
11086 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
11087 fill_gregset): Call gdbarch_tdep() just once, assign result to
11088 variable and use that, instead of calling the function several
11089 times.
11090
11091 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11092
11093 * configure.host: Accept sparcv9 as alias for sparc64.
11094 * configure.tgt: Likewise.
11095
11096 2002-01-22 Kevin Buettner <kevinb@redhat.com>
11097
11098 * solib-aix5.c (build_so_list_from_mapfile)
11099 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
11100 arguments is not reversed.
11101 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
11102 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
11103
11104 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
11105
11106 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
11107 modified version of obsolete sh_fetch_pseudo_register.
11108 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
11109 (sh4_register_read): New function.
11110 (sh_pseudo_register_write): New function. Renamed and modified
11111 version of obsolete sh_store_pseudo_register.
11112 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
11113 (sh4_register_write): New function.
11114 (sh_gdbarch_init): Remove setting of gdbarch function
11115 fetch_pseudo_register and store_pseudo_register. Remove setting of
11116 register_convert_to_raw, register_convert_to_virtual,
11117 register_convertible.
11118 (sh_sh4_register_convertible): Delete. No longer needed. All is
11119 taken care by architecture specific functions
11120 register_read/register_write.
11121 (sh_sh4_register_convert_to_virtual): Make static.
11122 (sh_sh4_register_convert_to_raw): Ditto.
11123
11124 2002-01-22 Andrew Cagney <ac131313@redhat.com>
11125
11126 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
11127 (floatformat_is_nan, floatformat_mantissa): Ditto.
11128
11129 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
11130 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
11131 builtin_type_ieee_double_little,
11132 builtin_type_ieee_double_littlebyte_bigword,
11133 builtin_type_m68881_ext, builtin_type_i960_ext,
11134 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
11135 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
11136 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
11137 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
11138
11139 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
11140
11141 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
11142 parameter. Set frameless flag if it exists and depended of
11143 whether the scanned function is frameless or not.
11144 (xstormy16_skip_prologue): If function is frameless, return
11145 result of xstormy16_scan_prologue().
11146 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
11147 call.
11148
11149 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
11150
11151 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11152 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11153 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11154 sh_sh4_register_byte, sh_sh4_register_raw_size,
11155 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11156 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11157 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11158 sh_store_pseudo_register, sh_do_pseudo_register): Call
11159 gdbarch_tdep() just once, assign result to variable and use that,
11160 instead of calling the function several times.
11161
11162 2002-01-20 Mark Kettenis <kettenis@gnu.org>
11163
11164 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11165 macros instead of LAST_FPU_CTRL_REGNUM.
11166 (store_register): Likewise.
11167
11168 2002-01-21 Jim Blandy <jimb@redhat.com>
11169
11170 * infcmd.c (run_command): Check that the `exec' target layer's BFD
11171 is up-to-date before running the program, not just when a program
11172 exits.
11173
11174 2002-01-21 Fred Fish <fnf@redhat.com>
11175
11176 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11177 when we have found all instructions we are looking for.
11178
11179 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11180
11181 * arm-tdep.c (arm_register_name): New function.
11182 (arm_registers_names): Make static.
11183 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11184 (arm_register_name): Declare.
11185 (REGISTER_NAME): Use it.
11186
11187 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11188 Kevin Buettner <kevinb@redhat.com>
11189
11190 Convert arm targets to new FRAME interface.
11191 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11192 (arm_frame_find_save_regs): Delete.
11193 (arm_frame_init_saved_regs): New.
11194 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11195 Allocate extra_info as required. Convert all uses of fsr.regs
11196 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11197 to use extra_info.
11198 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11199 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11200 (check_prologue_cache, save_prologue_cache): Likewise.
11201 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11202 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11203 (FRAME_FIND_SAVED_REGS): Delete.
11204 (arm_frame_find_saved_regs): Delete prototype.
11205 (arm_frame_init_saved_regs): New prototype.
11206 (FRAME_INIT_SAVED_REGS): Define.
11207
11208 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11209
11210 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11211
11212 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11213
11214 From Jeff Law <law@redhat.com>:
11215 * infttrace.c: Include <sys/pstat.h>.
11216 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11217 exec file if the ttrace equivalent fails.
11218
11219 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11220
11221 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11222 (closeLogFile): Ditto.
11223
11224 2002-01-20 Michael Chastain <mec@shout.net>
11225
11226 * top.c (print_gdb_version): Bump copyright year to 2002.
11227
11228 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11229
11230 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11231 Zannoni and Eli Zaretskii.
11232
11233 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11234
11235 * buildsym.c: Update copyright years.
11236 * c-typeprint.c: Likewise.
11237 * dwarf2read.c: Likewise.
11238 * f-typeprint.c: Likewise.
11239 * gdbtypes.c: Likewise.
11240 * gdbtypes.h: Likewise.
11241 * hp-symtab-read.c: Likewise.
11242 * hpread.c: Likewise.
11243 * mdebugread.c: Likewise.
11244 * p-typeprint.c: Likewise.
11245
11246 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11247
11248 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11249 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11250 byte-order selectable.
11251 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11252 * arch-utils.c: Ditto.
11253 (set_endian): Ditto.
11254 (set_endian_from_file): Ditto.
11255 * gdbserver/low-sim.c (create_inferior): Ditto.
11256 * gdbarch.sh: Ditto.
11257 * gdbarch.h: Re-generate.
11258 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11259 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11260 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11261 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11262 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11263 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11264 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
11265 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11266 macro definition.
11267 * config/mips/tm-wince.h: Remove #undef of macro
11268 TARGET_BYTE_ORDER_SELECTABLE.
11269 * config/sh/tm-wince.h: Ditto.
11270
11271 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11272
11273 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11274 member function fields. Add accessor macro
11275 TYPE_FN_FIELD_ARTIFICIAL.
11276 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11277 * c-typeprint.c (c_type_print_base): Skip artificial member
11278 functions.
11279
11280 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11281
11282 * f-typeprint.c: Delete unused function f_type_print_args.
11283 * p-typeprint.c: Delete unused function pascal_type_print_args.
11284
11285 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11286
11287 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11288 comment. Add ``artificial'' to ``union field_location''.
11289
11290 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11291
11292 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11293 * mdebugread.c (parse_symbol): Likewise.
11294 * stabsread.c (define_symbol): Likewise.
11295 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11296 initializing TYPE_FIELD_BITPOS to n (obsolete).
11297 (hpread_doc_function_type): Likewise.
11298 * hpread.c (hpread_function_type): Likewise.
11299
11300 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11301
11302 * configure.in (host_makefile_frag): Only require a host makefile
11303 fragment when a native build.
11304 * configure: Re-generate.
11305
11306 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11307
11308 * doublest.h (floatformat_from_type): Declare.
11309 * doublest.c (floatformat_from_type): New function.
11310 (convert_typed_floating): Use.
11311
11312 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11313 call to function floatformat_from_type.
11314
11315 * gdbarch.sh (IEEE_FLOAT): Delete.
11316 * gdbarch.h, gdbarch.c: Re-generate.
11317 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11318 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11319 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11320 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11321 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11322 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11323 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11324 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11325 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11326 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11327 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
11328 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11329
11330 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11331 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11332 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11333 * sh-tdep.c (sh_gdbarch_init): Ditto.
11334 * mips-tdep.c (mips_gdbarch_init): Ditto.
11335 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11336 * cris-tdep.c (cris_gdbarch_init): Ditto.
11337
11338 2002-01-20 Jiri Smid <smid@suse.cz>
11339
11340 * configure.host, configure.tgt: Support x86-64.
11341 * NEWS: Note new target x86-64.
11342
11343 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11344 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11345 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11346 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11347 x86-64-linux-nat.o): Fix dependencies.
11348
11349 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11350
11351 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11352 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11353 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11354 * config/sparc/xm-sun4os4.h: Delete file.
11355 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
11356
11357 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11358
11359 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11360 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11361 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11362 * config/i386/i386lynx.mh (XM_FILE): Delete.
11363 * config/rs6000/xm-rs6000ly.h: Delete file.
11364 * config/sparc/xm-sparclynx.h: Delete file.
11365 * config/m68k/xm-m68klynx.h: Delete file.
11366 * config/i386/xm-i386lynx.h: Delete file.
11367 * config/xm-lynx.h: Delete file.
11368 * config/djgpp/fnchange.lst: Update.
11369
11370 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11371
11372 * alpha-tdep.c (alpha_register_byte): New function.
11373 (alpha_register_raw_size): Ditto.
11374 (alpha_register_virtual_size): Ditto.
11375 (alpha_skip_prologue_internal): Renamed from
11376 alpha_skip_prologue.
11377 (alpha_skip_prologue): New version that calls
11378 alpha_skip_prologue_internal.
11379 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11380 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11381 second argument from alpha_skip_prologue.
11382 (REGISTER_BYTE): Use alpha_register_byte.
11383 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11384 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11385 (FRAMELESS_FUNCTION_INVOCATION): Use
11386 generic_frameless_function_invocation_not.
11387 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11388 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11389
11390 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11391
11392 * config/mips/xm-news-mips.h: Delete file.
11393 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11394
11395 * config/m88k/xm-m88k.h: Delete file.
11396 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11397 * config/m88k/xm-delta88v4.h: Ditto.
11398 * config/m88k/xm-delta88.h: Ditto.
11399
11400 * config/alpha/xm-fbsd.h: Delete file.
11401 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11402
11403 * config/sparc/xm-sparc.h: Delete file.
11404 * Makefile.in (xm-sun4os4.h): Delete dependency.
11405 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11406 * config/sparc/xm-sun4os4.h: Ditto.
11407 * config/sparc/xm-linux.h: Ditto.
11408
11409 * config/i386/xm-windows.h: Delete file.
11410
11411 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11412
11413 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11414 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11415
11416 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11417
11418 * alpha-tdep.c (alpha_call_dummy_words): New.
11419 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11420 (CALL_DUMMY_P): Define.
11421 (CALL_DUMMY_WORDS): Define.
11422 (SIZEOF_CALL_DUMMY_WORDS): Define.
11423
11424 2002-01-19 Per Bothner <per@bothner.com>
11425
11426 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11427 isn't NULL, which can happen with some gcj-3.x-produced code.
11428
11429 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11430
11431 * alpha-tdep.c (alpha_register_virtual_type): New function.
11432 (alpha_init_frame_pc_first): Ditto.
11433 (alpha_fix_call_dummy): Ditto.
11434 (alpha_store_struct_return): Ditto.
11435 (alpha_extract_struct_value_address): Ditto.
11436 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11437 alpha_register_virtual_type.
11438 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11439 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11440 alpha_extract_struct_value_address.
11441 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11442 (INIT_FRAME_PC): Use init_frame_pc_noop.
11443 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11444
11445 2002-01-19 Mark Kettenis <kettenis@gnu.org>
11446
11447 * i386gnu-nat.c: Include "i386-tdep.h".
11448 (fetch_fpregs): Simplify code dealing with uninitialized floating
11449 point states such that it doesn't require FP7_REGNUM.
11450
11451 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11452
11453 * alpha-tdep.c (frame_extra_info): New.
11454 (alpha_find_saved_regs): Make static. Use
11455 frame->extra_info.
11456 (alpha_frame_init_saved_regs): New function.
11457 (alpha_frame_saved_pc): Use frame->extra_info.
11458 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11459 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11460 (init_extra_frame_info): Rename to...
11461 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
11462 (alpha_print_extra_frame_info): New function.
11463 (alpha_frame_locals_address): Ditto.
11464 (alpha_frame_args_address): Ditto.
11465 (alpha_pop_frame): Use frame->extra_info.
11466 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11467 alpha_frame_args_address.
11468 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11469 (alpha_find_saved_regs): Remove prototype.
11470 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11471 (EXTRA_FRAME_INFO): Remove.
11472 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11473 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11474
11475 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11476
11477 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11478 (alpha_cannot_fetch_register): Ditto.
11479 (alpha_cannot_store_register): Ditto.
11480 (alpha_register_convertible): Ditto.
11481 (alpha_use_struct_convention): Ditto.
11482 * config/alpha/tm-alpha.h: Update copyright years.
11483 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11484 (INNER_THAN): Use core_addr_lessthan.
11485 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11486 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11487 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11488 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11489 (FRAME_CHAIN): Remove unnecessary cast.
11490
11491 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11492
11493 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11494 obsolete.
11495
11496 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11497
11498 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11499 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11500 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11501 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11502 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11503 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11504 * x86-64-linux-nat.c: Ditto.
11505
11506 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11507
11508 * alpha-tdep.c (alpha_register_name): New function.
11509 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11510 (REGISTER_NAME): Define.
11511
11512 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11513
11514 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11515
11516 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11517
11518 * alpha-tdep.c: Update copyright years.
11519 (alpha_next_pc): New function.
11520 (alpha_software_single_step): Ditto.
11521 * config/alpha/tm-alpha.h: Add prototype for
11522 alpha_software_single_step.
11523
11524 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11525
11526 * alphabsd-nat.c: Update copyright years.
11527 (fill_gregset): Use regcache_collect.
11528 (fill_fpregset): Likewise.
11529 (fetch_inferior_registers): Only fetch integer registers
11530 if requested to do so.
11531 (store_inferior_registers): Only store integer registers
11532 if requested to do so.
11533
11534 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11535
11536 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11537 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11538 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11539 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11540 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11541 * config/arm/linux.mh (XDEPFILES): Delete.
11542 * config/arm/nbsd.mh (XDEPFILES): Delete.
11543 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11544 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11545 * config/i386/i386m3.mh (XDEPFILES): Delete.
11546 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11547 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11548 * config/i386/fbsd.mh (XDEPFILES): Delete.
11549 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11550 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11551 * config/i386/i386v4.mh (XDEPFILES): Delete.
11552 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11553 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11554 * config/i386/i386aix.mh (XDEPFILES): Delete.
11555 * config/i386/go32.mh (XDEPFILES): Delete.
11556 * config/i386/cygwin.mh (XDEPFILES): Delete.
11557 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11558 * config/i386/i386mach.mh (XDEPFILES): Delete.
11559 * config/i386/i386v32.mh (XDEPFILES): Delete.
11560 * config/i386/linux.mh (XDEPFILES): Delete.
11561 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11562 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11563 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11564 * config/i386/i386sco.mh (XDEPFILES): Delete.
11565 * config/i386/i386v.mh (XDEPFILES): Delete.
11566 * config/i386/nbsd.mh (XDEPFILES): Delete.
11567 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11568 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11569 * config/i386/symmetry.mh (XDEPFILES): Delete.
11570 * config/i386/obsd.mh (XDEPFILES): Delete.
11571 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11572 * config/ia64/linux.mh (XDEPFILES): Delete.
11573 * config/ia64/aix.mh (XDEPFILES): Delete.
11574 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11575 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11576 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11577 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11578 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11579 * config/m68k/linux.mh (XDEPFILES): Delete.
11580 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11581 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11582 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11583 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11584 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11585 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11586 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11587 * config/m88k/delta88.mh (XDEPFILES): Delete.
11588 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11589 * config/m88k/m88k.mh (XDEPFILES): Delete.
11590 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11591 * config/mips/linux.mh (XDEPFILES): Delete.
11592 * config/mips/irix6.mh (XDEPFILES): Delete.
11593 * config/mips/irix5.mh (XDEPFILES): Delete.
11594 * config/mips/irix4.mh (XDEPFILES): Delete.
11595 * config/mips/irix3.mh (XDEPFILES): Delete.
11596 * config/mips/decstation.mh (XDEPFILES): Delete.
11597 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11598 (NATDEPFILES): Move core-aout.o to here.
11599 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11600 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11601 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11602 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11603 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11604 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11605 * config/pa/hpux11.mh (XDEPFILES): Delete.
11606 * config/powerpc/aix.mh (XDEPFILES): Delete.
11607 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11608 * config/powerpc/linux.mh (XDEPFILES): Delete.
11609 * config/romp/rtbsd.mh: Rename XDEPFILES.
11610 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11611 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11612 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11613 * config/s390/s390.mh (XDEPFILES): Delete.
11614 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11615 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11616 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11617 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11618 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11619 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11620 * config/sparc/linux.mh (XDEPFILES): Delete.
11621 * config/vax/vaxult.mh (XDEPFILES): Delete.
11622 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11623 * Makefile.in (DEPFILES): Remove XDEPFILES.
11624
11625 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11626
11627 * utils.c (internal_verror): Fix comments, default is yes not no.
11628 Update queries to match. Default to quit and dump core.
11629
11630 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11631
11632 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11633 copyright.
11634 * defs.h, event-top.c, gdbcmd.h: Ditto.
11635 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11636 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11637 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11638 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11639 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11640 * mi/mi-main.c:Ditto.
11641
11642 * stack.c, symfile.c: Update copyright.
11643
11644 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11645
11646 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11647 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11648 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11649 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11650
11651 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11652
11653 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11654 * gdbserver/low-lynx.c (myattach): Likewise.
11655 * gdbserver/low-nbsd.c (myattach): Likewise.
11656 * gdbserver/low-sim.c (myattach): Likewise.
11657 * gdbserver/low-sparc.c (myattach): Likewise.
11658 * gdbserver/low-sun3.c (myattach): Likewise.
11659
11660 * gdbserver/low-linux.c (myattach): New function.
11661
11662 * gdbserver/server.c (attach_inferior): New function.
11663 (main): Handle "--attach".
11664
11665 2002-01-16 Andrew Cagney <ac131313@redhat.com>
11666
11667 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11668 maintainer.
11669
11670 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
11671
11672 * c-typeprint.c (is_type_conversion_operator): Add additional
11673 check for non-conversion operators.
11674
11675 2002-01-15 Michael Snyder <msnyder@redhat.com>
11676
11677 * linux-proc.c: Add "info proc" command, a la procfs.c.
11678 (read_mapping): New function, abstract and re-use code.
11679 (linux_find_memory_regions): Use new func read_mapping.
11680 (linux_info_proc_cmd): New function, implement "info proc".
11681 (_initialize_linux_proc): Add new command "info proc".
11682
11683 2002-01-15 Michael Snyder <msnyder@redhat.com>
11684
11685 * symfile.c (generic_load): Use bfd_map_over_sections method
11686 instead of manipulating bfd structure members directly.
11687 (add_section_size_callback): New function, bfd sections callback
11688 used by generic_load.
11689 (load_sections_callback): New function, bfd sections callback
11690 used by generic_load.
11691
11692 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
11693
11694 [Based on work by Jim Blandy]
11695 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11696 (builtin_type_vec128): Export.
11697 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11698 types.
11699 (builtin_type_vec128): New builtin type for 128 bit vector
11700 registers.
11701 (build_gdbtypes): Initialize builtin_type_v16qi and
11702 builtin_type_v8hi. Create the vec128 register builtin type
11703 structure.
11704 (build_builtin_type_vec128): New function.
11705 (_initialize_gdbtypes): Register builtin_type_v16qi and
11706 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11707 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11708 AltiVec register to new builtin type.
11709
11710 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
11711
11712 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11713 to make_cv_type.
11714
11715 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11716
11717 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11718 CLEAN_UP_REGISTER_VALUE.
11719 * regcache.c (supply_register): Update only call.
11720
11721 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11722
11723 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11724 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11725 a29k-*-vxworks* targets as obsolete.
11726
11727 2002-01-14 Michael Snyder <msnyder@redhat.com>
11728
11729 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11730 until we can resolve portability issues.
11731 * gregset.h: Remove references to fpxregs.
11732 * gcore.c (gcore_command): Initialize note_sec to NULL.
11733
11734 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11735
11736 * signals.c (target_signal_to_name): Rewrite. Only use
11737 signals[].name when in bounds and non-NULL.
11738
11739 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11740
11741 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11742 * signals.c (target_signal_to_name): Verify that SIG is within the
11743 bounds of the signals array.
11744
11745 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11746
11747 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11748
11749 2002-01-13 Keith Seitz <keiths@redhat.com>
11750
11751 * stack.c (print_frame_info_base): Print the frame's pc
11752 only if when print_frame_info_listing_hook is not defined.
11753
11754 2002-01-13 Keith Seitz <keiths@redhat.com>
11755
11756 * varobj.c (varobj_set_value): Make sure that there were no
11757 errors evaluating the object before attempting to set its
11758 value.
11759 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11760 so this offset adjustment is no longer necessary.
11761 (create_child): Don't set the error flag if the child is
11762 a CPLUS_FAKE_CHILD.
11763 (value_of_child): If value_fetch_lazy fails, return NULL
11764 so that callers will be notified that an error occurred.
11765 (c_value_of_variable): Delay check of variable's validity
11766 until later. We actually want all structs and unions to have
11767 the value "{...}".
11768 Do not return "???" for variables which could not be evaluated.
11769 This error condition must be returned to the caller so that it
11770 can get the error condition from gdb.
11771 (cplus_name_of_child): Adjust index for vptr before figuring
11772 out the name of the child.
11773 (cplus_value_of_child): If a child's (real) parent is not valid,
11774 don't even bother trying to give a value for it. Just return
11775 an error. Change all instances in this function.
11776 (cplus_type_of_child): If our parent is one of the "fake"
11777 parents, we need to get at the type of the real parent, and
11778 derive the child's true type using this information.
11779
11780 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11781
11782 From 2002-01-09 John Marshall <johnm@falch.net>:
11783 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11784 sources.redhat.com, and tweak some related URLs which had
11785 suffered from linkrot.
11786
11787 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11788
11789 From Jeff law:
11790 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11791 structures passed in registers.
11792
11793 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11794
11795 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11796 white space which prevented compilation. Reported by DSK
11797 <dsk@student.unsw.edu.au>.
11798
11799 2002-01-11 Michael Snyder <msnyder@redhat.com>
11800
11801 * symfile.c (build_section_addr_info_from_section_tab):
11802 Use bfd access method instead of manipulating bfd directly.
11803 (syms_from_objfile): Ditto.
11804 (simple_overlay_update_1): Ditto.
11805 (simple_overlay_update): Ditto.
11806 (generic_load): Ditto.
11807 (overlay_unmapped_address): FIXME comment, bfd access methods.
11808 (sections_overlap): FIXME comment, bfd access methods.
11809 (pc_in_mapped_range): FIXME comment, bfd access methods.
11810 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11811 (section_is_mapped): FIXME comment, bfd access methods.
11812 (section_is_overlay): FIXME comment, bfd access methods.
11813
11814 * symfile.c (generic_load): Whitespace and long line cleanups.
11815 Remove duplicate variable, change several local variables to
11816 more appropriate data types.
11817 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11818
11819 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11820
11821 From Peter Schauer:
11822 * language.c (longest_local_hex_string_custom): Use phex_nz to
11823 convert NUM to a hex string.
11824
11825 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
11826
11827 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11828 the function.
11829 Update Copyright year.
11830
11831 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11832
11833 * language.c (longest_raw_hex_string): Delete unused function.
11834
11835 2002-01-11 Petr Sorfa <petrs@caldera.com>
11836
11837 * MAINTAINERS (write-after-approval): Add myself.
11838 * dwarf2read.c (read_tag_string_type): Handling of
11839 DW_AT_byte_size.
11840 (read_tag_string_type): FORTRAN fix to prevent propagation of
11841 first string size.
11842 (set_cu_language): Handling of DW_LANG_Fortran95
11843
11844 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
11845
11846 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11847 GETPID(inferior_ptid).
11848 (store_inferior_registers): Likewise.
11849
11850 2002-01-10 Jason Merrill <jason@redhat.com>
11851
11852 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11853 Fix DW_OP_minus.
11854
11855 2002-01-10 Andrew Cagney <ac131313@redhat.com>
11856
11857 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11858 and bfd/elf32-sh-nbsd.c.
11859
11860 2002-01-10 Michael Snyder <msnyder@redhat.com>
11861
11862 * NEWS: Mention --pid and corefile/proc-id behavior change.
11863
11864 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11865 * gcore.c: Include cli/cli-decode.h instead of command.h.
11866
11867 * main.c (captured_main): Add new command line option "--pid".
11868 If the second command line argument (following the symbol-file)
11869 begins with a digit, try to attach to it before trying to open
11870 it as a corefile.
11871 (print_gdb_help): Document the "--pid" argument.
11872
11873 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11874
11875 * completer.c (command_completer): New function.
11876
11877 * completer.h <command_completer>: Add prototype.
11878
11879 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11880 completer for the "help" command.
11881
11882 2002-01-09 Jason Merrill <jason@redhat.com>
11883
11884 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11885
11886 2002-01-09 Michael Snyder <msnyder@redhat.com>
11887
11888 * i386-linux-nat.c (fill_fpxregset): Make global.
11889 (store_fpxregset): Ditto.
11890
11891 * gregset.h (gdb_fpxregset_t): Define.
11892 (supply_fpxregset): Prototype.
11893 (fill_fpxregset): Prototype.
11894
11895 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11896
11897 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11898
11899 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11900 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11901 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11902
11903 2002-01-09 Andrew Cagney <ac131313@redhat.com>
11904
11905 * MAINTAINERS: Update target maintainer rules so that any
11906 Maintainer can approve a tested patch for a maintenance-only
11907 target.
11908
11909 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11910
11911 * MAINTAINERS (write-after-approval): Add myself.
11912
11913 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
11914 IN_SIGTRAMP.
11915
11916 2002-01-08 Michael Snyder <msnyder@redhat.com>
11917
11918 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11919 real name of the executable, rather than the /proc name.
11920
11921 2002-01-03 Michael Snyder <msnyder@redhat.com>
11922
11923 Implement a "generate-core-file" command in gdb, save target state.
11924 * gcore.c: New file. Implement new command 'generate-core-file'.
11925 Save a corefile image of the current state of the inferior.
11926 * linux-proc.c: Add linux-specific code for saving corefiles.
11927 * target.h (struct target_ops): Add new target vectors for saving
11928 corefiles; to_find_memory_regions and to_make_corefile_notes.
11929 (target_find_memory_regions): New macro.
11930 (target_make_corefile_notes): New macro.
11931 * target.c (update_current_target): Inherit new target methods.
11932 (dummy_find_memory_regions): New place-holder method.
11933 (dummy_make_corefile_notes): New place-holder method.
11934 (init_dummy_target): Initialize new dummy target vectors.
11935 * exec.c (exec_set_find_memory_regions): New function.
11936 Allow the exec_ops vector for memory regions to be taken over.
11937 (exec_make_note_section): New function, target vector method.
11938 * defs.h (exec_set_find_memory_regions): Export prototype.
11939 * procfs.c (proc_find_memory_regions): New function, corefile method.
11940 (procfs_make_note_section): New function, corefile method.
11941 (init_procfs_ops): Set new target vector pointers.
11942 (find_memory_regions_callback): New function.
11943 (procfs_do_thread_registers): New function.
11944 (procfs_corefile_thread_callback): New function.
11945 * sol-thread.c (sol_find_memory_regions): New function.
11946 (sol_make_note_section): New function.
11947 (init_sol_thread_ops): Initialize new target vectors.
11948 * inftarg.c (inftarg_set_find_memory_regions): New function.
11949 Allow to_find_memory_regions vector to be taken over.
11950 (inftarg_set_make_corefile_notes): New function.
11951 Allow to_make_corefile_notes vector to be taken over.
11952 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11953 interface layer if not target_has_execution (may be a corefile).
11954 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11955 * config/sparc/sun4sol2.mh: Ditto.
11956 * config/alpha/alpha-linux.mh: Ditto.
11957 * config/arm/linux.mh: Ditto.
11958 * config/i386/x86-64linux.mh: Ditto.
11959 * config/ia64/linux.mh: Ditto.
11960 * config/m68k/linux.mh: Ditto.
11961 * config/mips/linux.mh: Ditto.
11962 * config/powerpc/linux.mh: Ditto.
11963 * config/sparc/linux.mh: Ditto.
11964
11965 2002-01-07 Michael Snyder <msnyder@redhat.com>
11966
11967 * arm-linux-nat.c: Remove references to regcache.c internal data
11968 (registers[] and register_valid[]).
11969
11970 2002-01-07 Michael Snyder <msnyder@redhat.com>
11971
11972 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11973 so that attaching to a pid will automatically read the process's
11974 symbol file and shlibs.
11975 * Makefile.in: Add rule for linux-proc.o.
11976 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11977 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11978 * config/arm/linux.mh: Ditto.
11979 * config/i386/linux.mh: Ditto.
11980 * config/i386/x86-64linux.mh: Ditto.
11981 * config/ia64/linux.mh: Ditto.
11982 * config/m68k/linux.mh: Ditto.
11983 * config/mips/linux.mh: Ditto.
11984 * config/powerpc/linux.mh: Ditto.
11985 * config/sparc/linux.mh: Ditto.
11986
11987 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11988
11989 * win32-nat.c: Add i386-tdep.h dependency.
11990
11991 2002-01-07 Michael Snyder <msnyder@redhat.com>
11992
11993 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11994 instead of bfd_get_arch_size. Don't bail out just because
11995 there's no exec_bfd.
11996
11997 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11998 * p-valprint.c (pascal_object_print_value): Ditto.
11999 * somread.c (som_symtab_read): Ditto.
12000 * symfile.c (simple_free_overlay_region_table): Ditto.
12001 * valops.c (value_assign): Ditto.
12002
12003 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
12004 use tilde_expand and strerror for opening save-tracepoints file.
12005
12006 * thread-db.c (thread_db_new_objfile): Indendation fix.
12007
12008 * infptrace.c (GDB_MAX_ALLOCA): New define.
12009 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
12010 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
12011 can be overridden with whatever value is appropriate to the host).
12012 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
12013 alloca to allocate potentially large buffer.
12014 * rs6000-nat.c (child_xfer_memory): Ditto.
12015 * symm-nat.c (child_xfer_memory): Ditto.
12016 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
12017
12018 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
12019
12020 From Nick Clifton <nickc@redhat.com>
12021 * d10v-tdep.c: Set STACK_START to 0x200bffe.
12022
12023 2002-01-07 Michael Snyder <msnyder@redhat.com>
12024
12025 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12026 Don't use exec_bfd if it's NULL.
12027
12028 2002-01-06 Mark Kettenis <kettenis@gnu.org>
12029
12030 * valops.c (value_arg_coerce): Fix formatting.
12031
12032 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12033
12034 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
12035 * gnu-nat.c: Ditto.
12036
12037 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12038
12039 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
12040 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
12041 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
12042 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
12043 z8k-coff have not been multi-arched. Update z8k-coff build
12044 status.
12045
12046 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12047
12048 * MAINTAINERS: Mark a29k target as obsolete.
12049 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
12050 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
12051 comments.
12052 * NEWS: Note that a29k targets are obsolete.
12053 * a29k-tdep.c: Mark as obsolete.
12054 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12055 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12056 a29k-*-vxworks* targets as obsolete.
12057 * remote-adapt.c: Obsolete.
12058 * remote-eb.c: Obsolete.
12059 * remote-mm.c: Obsolete.
12060 * remote-udi.c: Obsolete.
12061 * config/a29k/a29k-udi.mt: Obsolete.
12062 * config/a29k/a29k.mt: Obsolete.
12063 * config/a29k/tm-a29k.h: Obsolete.
12064 * config/a29k/tm-vx29k.h: Obsolete.
12065 * config/a29k/vx29k.mt: Obsolete.
12066
12067 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12068
12069 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
12070 with BFD_ENDIAN_BIG.
12071
12072 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12073
12074 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
12075 * configure, config.in: Re-generate.
12076 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
12077 * defs.h: Do not include <endian.h>.
12078
12079 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
12080
12081 * acconfig.h (HAVE_PT_GETXMMREGS): New.
12082 * config.in: Regenerate.
12083 * configure.in: Update copyright years.
12084 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
12085 * configure: Regenerate.
12086 * i386bsd-nat.c: Update copyright years.
12087 (fill_gregset): Use regcache_collect.
12088 (fetch_inferior_registers): Only fetch integer registers
12089 if requested to do so. Add support for XMM registers
12090 using PT_GETXMMREGS.
12091 (store_inferior_registers): Only store integer registers
12092 if requested to do so. Add support for XMM registers
12093 using PT_SETXMMREGS.
12094 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
12095 (store_inferior_registers): Remove.
12096 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
12097 (fetch_elfcore_registers): New function.
12098 (i386nbsd_elfcore_fns): New.
12099 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
12100 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
12101 i386bsd-nat.o.
12102 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
12103 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
12104 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
12105 * config/i386/tm-nbsd.h: Update copyright years.
12106 (HAVE_SSE_REGS): Define.
12107 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
12108 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
12109 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
12110 (SIGCONTEXT_PC_OFFSET): Remove.
12111 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
12112
12113 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12114
12115 * configure.tgt: Remove powerpc-*-macos* target.
12116 * config/m68k/xm-mpw.h: Delete file.
12117 * config/xm-mpw.h: Delete file.
12118 * ser-mac.c: Delete file.
12119 * mpw-make.sed: Delete file.
12120 * mpw-config.in: Delete file.
12121 * mac-xdep.c: Delete file.
12122 * mac-gdb.r: Delete file.
12123 * mac-defs.h: Delete file.
12124 * mac-nat.c: Delete file.
12125 * config/powerpc/macos.mh: Delete file.
12126 * config/powerpc/macos.mt: Delete file.
12127 * config/powerpc/nm-macos.h: Delete file.
12128 * config/powerpc/tm-macos.h: Delete file.
12129 * source.c (openp, open_source_file): Remove obsolete code.
12130 * top.c (gdb_readline): Ditto.
12131 * utils.c (query): Ditto.
12132 * event-top.c (display_gdb_prompt): Ditto.
12133 * Makefile.in (ser-mac.o): Delete obsolete target.
12134 * NEWS: Update.
12135
12136 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12137
12138 * defs.h (BIG_ENDIAN): Delete macro definition.
12139 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
12140 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
12141 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
12142 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
12143 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
12144 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
12145 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
12146 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
12147 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
12148 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
12149 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
12150 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12151 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12152 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12153 * gdbarch.c: Re-generate.
12154
12155 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12156
12157 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12158 for core files.
12159
12160 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12161
12162 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12163
12164 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12165
12166 * value.h (value_ptr): Delete typedef.
12167
12168 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12169
12170 * i386nbsd-nat.c: Update copyright years.
12171 Include i386-tdep.h.
12172
12173 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
12174
12175 * stabsread.c: Update copyright years.
12176
12177 From Debashis Mahata <debashis.mahata@wipro.com>:
12178 (read_struct_fields): Deal with Sun C compiler erroneous stab
12179 output for structs and unions.
12180 Fix PR gdb/269.
12181
12182 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12183
12184 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12185 prototype.
12186
12187 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12188
12189 * cp-abi.c: Fix whitespace.
12190 (baseclass_offset): New wrapper function.
12191 * cp-abi.h (baseclass_offset): Add prototype.
12192 (struct cp_abi_ops): Add baseclass_offset pointer.
12193
12194 * valops.c (vb_match): Move to...
12195 * gnu-v2-abi.c (vb_match): here.
12196 * valops.c (baseclass_offset): Move to...
12197 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12198
12199 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12200
12201 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12202 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12203 * hpacc-abi.c (init_hpacc_ops): Likewise.
12204
12205 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12206
12207 * valops.c (find_overload_match): Accept obj as a
12208 reference parameter. Update it before returning.
12209 * value.h (find_overload_match): Update prototype.
12210 * eval.c (evaluate_subexp_standard): Pass object to
12211 find_overload_match by reference.
12212
12213 2002-01-03 Andrew Cagney <ac131313@redhat.com>
12214
12215 * valarith.c: Replace value_ptr with struct value pointer. Remove
12216 register attribute from value declarations.
12217 * valops.c: Ditto.
12218 * value.h: Ditto.
12219 * scm-lang.c (scm_lookup_name): Ditto.
12220
12221 2002-01-03 Michael Snyder <msnyder@redhat.com>
12222
12223 Abstract the functionality of iterating over mapped memory
12224 regions into a general purpose iterator function.
12225 * procfs.c (iterate_over_mappings): New function, general purpose
12226 iterator for memory sections.
12227 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12228 (solib_mappings_callback): New function, callback for above.
12229 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12230 (info_mappings_callback): New function, callback for above.
12231
12232 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12233
12234 2002-01-01 Mark Kettenis <kettenis@gnu.org>
12235
12236 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12237 * i386-tdep.c: Include "elf-bfd.h".
12238 (process_note_abi_tag_sections): New function.
12239 (i386_gdbarch_init): Add code to recognize various OS/ABI
12240 combinations.
12241
12242 * maint.c (_initialize_maint_cmds): Add missing \ in
12243 string-literal.
12244
12245 For older changes see ChangeLog-2001
12246 \f
12247 Local Variables:
12248 mode: change-log
12249 left-margin: 8
12250 fill-column: 74
12251 version-control: never
12252 End: