* x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
[binutils-gdb.git] / gdb / ChangeLog
1 2002-10-26 Mark Kettenis <kettenis@gnu.org>
2
3 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
4 target where necessary. Add more comments and remove the ones
5 that don't provide any useful information.
6
7 * i386-tdep.c (i386_frame_saved_pc): Replace call to
8 deprecated_read_register_dummy with
9 frame_unwind_unsigned_register.
10
11 * i386-tdep.c (i386_extract_struct_value_address): Use
12 regcache_raw_read_unsigned instead of
13 regcache_cooked_read_unsigned since we know that the register
14 we're reading isn't a pseudo register. Rename variable 'val' into
15 the more descriptive 'addr'.
16
17 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
18 (x86_64_push_return_address): Add comment.
19 (x86_64_pop_frame): Make static.
20 (examine_argument): Clarify comment.
21 (x86_64_skip_prologue): Make prolog_expact variable static.
22
23 * dwarf2cfi.c: Fix some formatting problems.
24 (context_cpy, read_encoded_pointer): Clarify comments.
25
26 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
27 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
28 i386 target back into x86_64_gdbarch_init. Add some comments and
29 remove meaningless ones.
30
31 2002-10-25 Andrew Cagney <cagney@redhat.com>
32
33 * complaints.h (struct deprecated_complaint): Rename `struct
34 complaint'.
35 * complaints.c (complain): Update.
36 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
37 incorrect comment indicating that "symfile.h" was being included
38 for the `struct complaint' definition.
39 * remote-vx.c: Update.
40 * objc-lang.c: Update.
41 * xcoffread.c: Update.
42 * hpread.c: Update.
43 * mdebugread.c: Update.
44 * stabsread.c: Update.
45 * dwarf2read.c: Update.
46 * dwarfread.c: Update.
47 * elfread.c: Update.
48 * coffread.c: Update.
49 * stabsread.h: Update.
50 * dbxread.c: Update.
51 * buildsym.c: Update.
52 * gdbtypes.c: Update.
53 * macrotab.c: Update.
54
55 2002-10-25 Mark Kettenis <kettenis@gnu.org>
56
57 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
58 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
59 (x86_64_init_abi): ...new function.
60
61 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
62 * i386v-nat.c: Include "i386-tdep.h".
63
64 2002-10-25 Andrew Cagney <cagney@redhat.com>
65
66 * gdbtypes.c (address_space_name_to_int): Update.
67 (address_space_int_to_name): Update.
68 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
69 multi-arch predicate.
70 (address_class_name_to_type_flags): Ditto.
71 * gdbarch.h, gdbarch.c: Re-generate.
72
73 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
74
75 2002-10-24 Martin M. Hunt <hunt@redhat.com>
76
77 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
78
79 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
80
81 * symtab.h (INIT_SAL): Delete macro.
82 (init_sal): Export.
83 * symtab.c (init_sal): New function.
84
85 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
86 to init_sal function call.
87 (find_sal_from_funcs_and_line): Ditto.
88 (all_sals_for_line): Ditto.
89 * breakpoint.c (create_internal_breakpoint): Ditto.
90 (create_fork_vfork_event_catchpoint): Ditto.
91 (create_exec_event_catchpoint): Ditto.
92 (parse_breakpoint_sals): Ditto.
93 (watch_command_1): Ditto.
94 (handle_gnu_4_16_catch_command): Ditto.
95 (clear_command): Ditto.
96 * hppa-tdep.c (child_enable_exception_callback): Ditto.
97 * infcmd.c (run_stack_dummy): Ditto.
98 * infrun.c (process_event_stop_test): Ditto.
99 (check_sigtramp2): Ditto.
100 (step_over_function): Ditto.
101 * linespec.c (decode_line_2): Ditto.
102 (decode_line_1): Ditto.
103 * source.c (line_info): Ditto.
104 * symtab.c (find_pc_sect_line): Ditto.
105
106 2002-10-24 Michal Ludvig <mludvig@suse.cz>
107
108 * dwarf2cfi.c (struct context)
109 (struct context_reg): Moved to dwarf2cfi.h
110 (context_alloc, frame_state_alloc, context_cpy):
111 Made extern instead of static, removed prototypes.
112 * dwarf2cfi.h (struct context)
113 (struct context_reg): New, moved from dwarf2cfi.c
114 (context_alloc, frame_state_alloc, context_cpy):
115 New prototypes.
116 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
117 Changed from static to extern.
118 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
119 (LINUX_SIGCONTEXT_FP_OFFSET)
120 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
121 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
122 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
123 * x86-64-tdep.c (x86_64_gdbarch_init): Several
124 set_gdbarch_*() calls now use x86-64 specific functions
125 instead of DWARF2 CFI ones.
126 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
127 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
128 (x86_64_init_extra_frame_info): New prototypes.
129
130 2002-10-23 David Carlton <carlton@math.stanford.edu>
131
132 * linespec.c: #include "parser-defs.h".
133 Delete prototype for find_template_name_end.
134 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
135
136 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
137
138 * NEWS: add recent mi fixes.
139 * varobj.c (struct varobj): Add new "updated" flag.
140 (new_variable): Default "updated" flag to 0.
141 (varobj_set_value): Set "updated" flag to 1 if value
142 changes.
143 (varobj_update): Check varobj "updated" flag before
144 comparing old and refreshed values. Fix for
145 PR gdb/702.
146
147 2002-10-23 David Carlton <carlton@math.stanford.edu>
148
149 * parse.c (parse_exp_1): Use BLOCK_START.
150 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
151 SYMBOL_BLOCK_VALUE.
152 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
153
154 2002-10-23 David Carlton <carlton@math.stanford.edu>
155
156 * symtab.c: Delete cplusplus_hint.
157 Delete prototype for find_template_name_end.
158
159 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
160
161 * symtab.h: Update comment.
162
163 2002-10-23 Michael Snyder <msnyder@redhat.com>
164
165 * printcmd.c (address_info): Restore quotes in output.
166 * valops.c (value_of_local): Restore quotes in error message.
167
168 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
169
170 * symtab.c (symbol_demangled_name): New function.
171 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
172 turning most of it into a function.
173 (symbol_demangled_name): Export.
174
175 2002-10-23 Michael Snyder <msnyder@redhat.com>
176
177 * valops.c (value_of_local): Restore quotes in error message.
178
179 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
180
181 * symtab.c (symbol_init_language_specific): New function.
182 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
183 turning most of it into a function.
184 (symbol_init_language_specific): Export.
185
186 2002-10-23 David Carlton <carlton@math.stanford.edu>
187
188 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
189 (dwarf_attr_name): Ditto.
190 (dwarf_type_encoding_name): Ditto.
191 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
192 (process_die): Handle DW_TAG_namespace,
193 DW_TAG_imported_declaration, DW_TAG_imported_module.
194 (read_namespace): New function.
195
196 2002-10-22 Joel Brobecker <brobecker@gnat.com>
197
198 * configure.in: Define NEW_PROC_API on Interix too.
199 * configure: Regenerate.
200
201 2002-10-21 Joel Brobecker <brobecker@gnat.com>
202
203 * configure: Regenerate using the proper version of autoconf.
204
205 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
206
207 * findvar.c (read_var_value): Temporarily disable TLS code, until
208 complete TLS support is added.
209
210 2002-10-21 Jim Blandy <jimb@redhat.com>
211 Elena Zannoni <ezannoni@redhat.com>
212
213 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
214 for thread local storage locations.
215 (struct symbol): Add objfile field.
216 (SYMBOL_OBJFILE): Define.
217 * dwarf2read.c (is_thread_local): New static variable.
218 (new_symbol): If variable is in thread local fill in address class
219 and objfile appropriately.
220 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
221 stack operation.
222 * printcmd.c (address_info): Print the information for thread
223 local storage variable.
224 * findvar.c (read_var_value): In case of thread local variable,
225 defer to the target vector code to compute address.
226
227 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
228
229 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
230 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
231
232 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
233
234 * symtab.h (address_class): Rename
235 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
236 * hpread.c (hpread_process_one_debug_symbol): Ditto.
237 * printcmd.c (address_info): Ditto.
238 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
239
240 2002-10-20 Mark Kettenis <kettenis@gnu.org>
241
242 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
243 DBREG_DRX macro to acces debug registers.
244
245 * Makefile.in (i386obsd-tdep.o): New target.
246
247 * solib-sunos.c: Include "bcache.h" and "regcache.h".
248 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
249
250 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
251 * config/i386/obsd.mt: New file.
252 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
253 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
254 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
255 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
256 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
257 * i386obsd-tdep.c: New file.
258
259 2002-10-19 Adam Fedor <fedor@gnu.org>
260
261 * objc-exp.y (name_not_typename): Fix invalid comment.
262
263 2002-10-20 Mark Kettenis <kettenis@gnu.org>
264
265 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
266 to allocate partial syms and macro byte caches.
267
268 2002-10-18 David Carlton <carlton@math.stanford.edu>
269
270 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
271
272 2002-10-18 Adam Fedor <fedor@gnu.org>
273
274 * stabsread.c (find_name_end): New function.
275 (define_symbol): Use it.
276
277 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
278
279 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
280 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
281 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
282 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
283
284 2002-10-17 David Carlton <carlton@math.stanford.edu>
285
286 * symfile.h: Add opaque declaration for struct obstack.
287 Declare obsavestring to take a const char *.
288 * symfile.c (obsavestring): Make first argument a const char *.
289
290 2002-10-16 Adam Fedor <fedor@gnu.org>
291
292 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
293 names when matching breakpoints in current file.
294
295 2002-10-16 Kevin Buettner <kevinb@redhat.com>
296
297 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
298 (read_tag_pointer_type): Add address class support.
299 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
300 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
301 New methods.
302 * gdbarch.h, gdbarch.c: Regenerate.
303 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
304 (make_type_with_address_space, recursive_type_dump): Add address
305 class support.
306 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
307 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
308 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
309
310 2002-10-16 Klee Dienes <kdienes@apple.com>
311
312 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
313 to get the last character of a char[] buffer, not
314 name[sizeof(vptr_name)-1].
315
316 2002-10-14 Adam Fedor <fedor@gnu.org>
317
318 * symtab.h: New objc_specific struct.
319 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
320 (SYMBOL_DEMANGLED_NAME): Likewise.
321
322 2002-10-14 Adam Fedor <fedor@gnu.org>
323
324 * symfile.c (init_filename_language_table): Add ObjC file extension.
325
326 2002-10-14 Adam Fedor <fedor@gnu.org>
327
328 * utils.c (puts_filtered_tabular): New function.
329 (fprintf_symbol_filtered): Get ObjC demangled name.
330 * defs.h (puts_filtered_tabular): Declared.
331
332 2002-10-14 Kevin Buettner <kevinb@redhat.com>
333
334 * c-lang.h (c_type_print_varspec_prefix): Delete.
335 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
336 ``need_post_space'' parameter. Adjust all callers.
337
338 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
339
340 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
341 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
342 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
343 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
344
345 2002-10-13 Adam Fedor <fedor@gnu.org>
346
347 * source.c (print_source_lines): Update comments.
348
349 2002-10-13 Adam Fedor <fedor@gnu.org>
350
351 * valops.c (value_of_local): New function.
352 (value_of_this): Use it.
353 * value.h (value_of_local): Declared.
354
355 2002-10-13 Adam Fedor <fedor@gnu.org>
356
357 * parse.c: (length_of_subexp, prefixify_subexp): Handle
358 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
359
360 2002-10-12 Adam Fedor <fedor@gnu.org>
361
362 * language.c (binop_result_type): Add language_objc to case.
363 (integral_type): Likewise.
364 (character_type): Likewise.
365 (string_type): Likewise.
366 (boolean_type): Likewise.
367 (structured_type): Likewise.
368 (binop_type_check): Likewise.
369
370 2002-10-11 Adam Fedor <fedor@gnu.org>
371
372 * printcmd.c (address_info): Print 'self' for ObjC.
373
374 2002-10-11 Adam Fedor <fedor@gnu.org>
375
376 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
377 OP_SELF.
378
379 2002-10-11 Adam Fedor <fedor@gnu.org>
380
381 * language.h (CAST_IS_CONVERSION): Add language_objc.
382
383 2002-10-11 Adam Fedor <fedor@gnu.org>
384
385 * defs.h (enum language): Add language_objc.
386
387 2002-10-11 Klee Dienes <kdienes@apple.com>
388
389 * findvar.c (read_memory_typed_address): New function.
390 * gdbcore.h (read_memory_typed_address): Add prototype.
391 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
392 to read a value destined for a CORE_ADDR, not read_memory_integer.
393 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
394 (f77_get_dynamic_lowerbound): Ditto.
395
396 2002-10-11 Martin M. Hunt <hunt@redhat.com>
397
398 * utils.c (string_to_core_addr): After turning string into
399 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
400 which will do necessary sign-extension, etc.
401
402 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
403
404 * c-exp.y (THIS): Delete token and grammar rule.
405 (yylex): Don't return THIS.
406 * cp-valprint.c (vtbl_ptr_name_old): Delete.
407 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
408 * demangle.c (cplus_markers): Update comment. Put '$'
409 first. Remove CPLUS_MARKER.
410 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
411 * jv-exp.y (THIS): Delete token and grammar rule.
412 (yylex): Don't return THIS.
413 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
414 * objc-exp.y (THIS): Delete token and grammar rule.
415 (yylex): Don't return THIS.
416 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
417 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
418 (read_member_functions): Likewise for opname.
419 (read_tilde_fields): Use is_cplus_marker.
420
421 * defs.h (CPLUS_MARKER): Don't define.
422 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
423 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
424 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
425 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
426 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
427
428 * config/i386/tm-i386v4.h: Delete file.
429 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
430 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
431 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
432 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
433 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
434 * config/i386/i386sco5.mt (TM_FILE): Likewise.
435 * config/i386/i386v4.mt (TM_FILE): Likewise.
436 * config/i386/ncr3000.mt (TM_FILE): Likewise.
437
438 2002-10-10 Marko Mlinar <markom@opencores.org>
439
440 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
441 accidentially not commited 2002-10-09
442 * gdbarch.h, gdbarch.c: Re-generate.
443
444 2002-10-09 Marko Mlinar <markom@opencores.org>
445
446 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
447 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
448 * gdbarch.h, gdbarch.c: Re-generate.
449
450 2002-10-08 Petr Sorfa <petrs@caldera.com>
451
452 Revised and re-submitted by John Wolfe <jlw@caldera.com>
453
454 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
455 so we can work on more than one compilation unit at a time. This
456 helps prepare GDB to handle inter-CU die references.
457 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
458 the code to be defined before struct comp_unit_head.
459 (comp_unit_head): Added new members - offset, cu_head,
460 begin_die, next and dwarf2_abbrevs.
461 (dwarf2_abbrevs): Removed single static var; now member of
462 struct comp_unit_head.
463 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
464 members.
465 (psymtab_to_symtab_1): Changed to work with the new
466 struct comp_unit_head.
467 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
468 constructs the dwarf2_abbrevs[] inside the cu_header.
469 (dwarf2_empty_abbrev_table): Now expects a ptr to a
470 dwarf2_abbrev table to clean up.
471 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
472 handling of dwarf2_abbrevs inside the cu_header.
473 (read_partial_die): Now supports the call to the new
474 dwarf2_lookup_abbrev.
475 (read_full_die): Now supports the call to the new
476 dwarf2_lookup_abbrev.
477
478 2002-10-06 Christopher Faylor <cgf@redhat.com>
479
480 * Makefile.in (install-gdbtk): Add missing continuation backslash to
481 insure that shell variables, such as "transformed_name" are propagated
482 to later shell statements in rule.
483
484 2002-10-06 Mark Kettenis <kettenis@gnu.org>
485
486 * config/i386/nm-i386sco.h: Add protection against
487 multiple-inclusion. Include "i386/nm-i386v.h".
488 (REGISTER_U_ADDR): Remove define.
489 (i386_register_u_addr): Remove prototype.
490
491 2002-10-04 Michael Snyder <msnyder@redhat.com>
492
493 * m32r-stub.c (handle_exception): Make sure exception is "trap"
494 before treating it as a single-step event.
495
496 2002-10-03 Adam Fedor <fedor@gnu.org>
497
498 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
499 (objc_demangle): Remove assignment in if statements, Replace
500 free with xfree.
501 (add_msglist): Likewise.
502 (end_msglist): Likewise.
503 (complare_selectors): Likewise.
504 (selectors_info): Likewise.
505 (compare_classes): Likewise.
506 (classes_info): Likewise.
507 (print_object_command): Likewise.
508 (find_objc_msgcall_submethod): Replace PTR with void *.
509 * objc-lang.h: Remove check for __STDC__.
510
511 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
512
513 * ui-out.h (ui_out_field_fmt_int): New prototype.
514 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
515 of field width and alignment.
516 * stack.c (print_frame_info_base): When printing frame level, use
517 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
518 PR gdb/192
519
520 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
521
522 * MAINTAINERS: Add self to Write After Approval list.
523
524 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
525
526 * infcmd.c (interrupt_target_command_wrapper): Delete.
527 (interrupt_target_command): Make non static.
528 (nofp_registers_info): Make static.
529 * stack.c (return_command_wrapper): Delete.
530 (return_command): Make non static.
531
532 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
533
534 * event-top.c (gdb_setup_readline): New function. Code moved from
535 _initialize_event_loop().
536 (_initialize_event_loop): Call gdb_setup_readline().
537
538 2002-10-02 Andrew Cagney <ac131313@redhat.com>
539
540 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
541 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
542 * gdbarch.h, gdbarch.c: Re-generate.
543
544 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
545
546 Fix PR gdb/778
547 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
548 before recursing.
549 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
550 of fill_in_vptr_fieldno.
551
552 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
553
554 * inferior.h (registers_info, stepi_command, nexti_command,
555 continue_command, interrupt_target_command): Export from infcmd.c.
556 * frame.h (args_info, selected_frame_level_changed_hook,
557 return_command): Export from stack.c.
558 * v850ice.c (stepi_command, nexti_command, continue_command): use
559 prototypes from inferior.h.
560 * tracepoint.c (registers_info, args_info, locals_info): Use
561 prototypes from frame.h and inferior.h.
562 * Makefile.in (mi-main.o): Add dependency on frame.h.
563
564 2002-10-02 Andrew Cagney <ac131313@redhat.com>
565
566 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
567 value in register 3 adjusted by ppc_gp0_regnum.
568
569 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
570
571 2002-10-02 Marko Mlinar <markom@opencores.org>
572
573 * MAINTAINERS: Add myself to the Write After Approval list.
574
575 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
576
577 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
578 of the section for the N64 ABI, fixed.
579
580 * config/mips/tm-irix6.h: Include solib.h.
581
582 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
583
584 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
585 GNU operators.
586
587 2002-10-01 Andrew Cagney <ac131313@redhat.com>
588
589 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
590 and that "mi0" syntax has been removed.
591
592 2002-09-30 David Carlton <carlton@math.stanford.edu>
593
594 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
595 * ppc-sysv-tdep.c: #include "gdb_string.h".
596 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
597 pacify GCC.
598
599 2002-10-01 Andrew Cagney <ac131313@redhat.com>
600
601 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
602 "vrsave"'s register number.
603
604 2002-09-30 Andrew Cagney <ac131313@redhat.com>
605
606 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
607 use frame_unwind_signed_register to obtain the PC.
608 (mips_frame_chain): Handle a generic dummy frame.
609 (mips_init_extra_frame_info): When a generic dummy frame, don't
610 re-compute the frame base.
611 (mips_pop_frame): Handle generic dummy frames.
612 (mips_gdbarch_init): When generic dummy frames, set
613 use_generic_dummy_frames, push_dummy_frame to
614 generic_push_dummy_frame, pc_in_call_dummy to
615 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
616 generic_save_dummy_frame_tos.
617
618 2002-09-30 Andrew Cagney <ac131313@redhat.com>
619
620 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
621 against TOP when TOP was explictly set.
622 (generic_push_dummy_frame): Set TOP to zero.
623
624 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
625
626 * event-loop.c (start_event_loop): Rename variable 'result' to
627 'gdb_result', to avoid conflicts with upcoming intepreters changes.
628
629 2002-09-30 Keith Seitz <keiths@redhat.com>
630
631 * gdb-events.sh (selected_thread_changed): New event.
632 * gdb-events.c: Regenerated.
633 * gdb-events.h: Regenerated.
634
635 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
636
637 * MAINTAINERS: Add self to Write After Approval list.
638
639 2002-09-30 Fernando Nasser <fnasser@redhat.com>
640
641 * disasm.c: New file.
642 * disasm.h: New file.
643 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
644 (compare_lines): Ditto.
645 (dump_insns): Ditto.
646 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
647 argument.
648 (do_assembly_only): Ditto.
649 (do_disassembly): Renamed to gdb_disassembly and moved to
650 disasm.c. Sdded uiout argument.
651 * Makefile.in: Add new files. Reorder SFILES list. Update
652 dependencies. Include libgdb.a later in the insight executable.
653
654 2002-09-29 Andrew Cagney <ac131313@redhat.com>
655
656 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
657 bfd/elf64-alpha-fbsd.c.
658
659 2002-09-29 Andrew Cagney <ac131313@redhat.com>
660
661 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
662 i386gnu-tdep.c.
663
664 2002-09-29 Andrew Cagney <ac131313@redhat.com>
665
666 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
667 __FUNCTION__.
668 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
669 function name.
670 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
671 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
672 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
673 (S_msg_sig_post_reply): Ditto.
674
675 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
676
677 * sh-tdep.c (sh_use_struct_convention): Use definition according
678 to ABI.
679 (sh_push_arguments): Store in register with correct endianess.
680 (sh_default_store_return_value): Ditto.
681 (sh_gdbarch_init): Set sizeof long double to 8.
682
683 2002-09-27 Mark Kettenis <kettenis@gnu.org>
684
685 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
686 Fix some whitespace problems.
687
688 2002-09-27 David Carlton <carlton@math.stanford.edu>
689
690 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
691 (mcore-tdep.o): Ditto.
692 (ns32k-tdep.o): Ditto.
693 (ns32knbsd-tdep.o): Ditto.
694 (sh3-rom.o): Ditto.
695 (vax-tdep.o): Ditto.
696 * cris-tdep.c: #include "gdb_string.h"
697 * mcore-tdep.c: Ditto.
698 * ns32k-tdep.c: Ditto.
699 * ns32knbsd-tdep.c: Ditto.
700 * sh3-rom.c: Ditto.
701 * vax-tdep.c: Ditto.
702
703 2002-09-27 David Carlton <carlton@math.stanford.edu>
704
705 * config/djgpp/fnchange.lst: Add entries for
706 gdb/testsuite/gdb.c++/m-static files.
707
708 2002-09-27 Jim Wilson <wilson@redhat.com>
709
710 * MAINTAINERS: Add myself to the Write After Approval list.
711
712 2002-09-26 Martin M. Hunt <hunt@redhat.com>
713
714 * mips-tdep.c (find_proc_desc): Initialize startaddr.
715
716
717 2002-09-26 Andrew Cagney <ac131313@redhat.com>
718
719 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
720 frame.
721
722 2002-09-26 Andrew Cagney <ac131313@redhat.com>
723
724 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
725 (rs6000_struct_return_address): Delete variable.
726 (rs6000_store_struct_return): Update.
727 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
728 deprecated_extract_struct_value_address.
729 (rs6000_frame_align): New function.
730 (rs6000_gdbarch_init): Set frame_align.
731
732 2002-09-26 Andrew Cagney <ac131313@redhat.com>
733
734 From Grace Sainsbury <graces@redhat.com>:
735 * Makefile.in (gdbtk-main.o): New target.
736 (gdb.o): New target.
737 (main_h): Define.
738 (main.o): Update dependencies.
739 (gdb$(EXEEXT)): Add gdb.o.
740 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
741 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
742 (SUBDIR_GDBTK_CLEAN): Set.
743 (install-gdbtk): Install the insight binary.
744 (uninstall-gdbtk): New target.
745 (all-gdbtk, clean-gdbtk): New rule.
746 * top.c (use_windows): Default to zero.
747 * main.c: Include "main.h".
748 (main): Delete.
749 (struct captured_main_args): Delete.
750 (gdb_main): New function.
751 * main.h: New file.
752 * gdb.c: New File.
753
754 2002-09-25 Andrew Cagney <cagney@redhat.com>
755
756 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
757 (frame_map_regnum_to_name): New function.
758 (frame_map_name_to_regnum): New function.
759 * frame.h (frame_map_name_to_regnum): Declare.
760 (frame_map_regnum_to_name): Declare.
761 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
762 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
763 * parse.c: Do not include "builtin-regs.h".
764 (target_map_name_to_register): Delete function.
765 (write_dollar_variable): Use frame_map_name_to_regnum.
766 * parser-defs.h (target_map_name_to_register): Delete declaration.
767 * expprint.c: Include "frame.h".
768 (print_subexp): Use frame_map_regnum_to_name.
769 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
770 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
771
772 2002-09-25 Andrew Cagney <ac131313@redhat.com>
773
774 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
775 wasn't saved, and the next innermost frame is a dummy, return the
776 dummy frame's link register.
777
778 2002-09-24 Jim Blandy <jimb@redhat.com>
779
780 Fix from Paul Breed:
781 * main.c (captured_main): Add a `break' after the case for 'b'.
782
783 2002-09-24 Keith Seitz <keiths@redhat.com>
784
785 * varobj.c (c_type_of_child): Use get_target_type instead
786 of TYPE_TARGET_TYPE.
787
788 2002-09-22 Fernando Nasser <fnasser@redhat.com>
789
790 * source.c (get_current_or_default_source_symtab_and_line): Remove
791 function.
792 (set_default_source_symtab_and_line): New function. Attempts to
793 determine a source file to list lines from if one is not currently
794 defined.
795 (get_current_source_symtab_and_line): Initialize sal.pc and
796 sal.end fields.
797 (set_current_source_symtab_and_line): Mark argument as const.
798 * source.h: Update declarations and comments.
799 * linespec.c (decode_line_1): Replace call to removed routine above.
800 * stack.c (print_frame_info_base): Ditto.
801 * cli/cli-cmds.c (edit_command): Ditto.
802 (list_command): Ditto.
803
804 2002-09-22 Fernando Nasser <fnasser@redhat.com>
805
806 * source.c (get_current_or_default_source_symtab_and_line): Initialize
807 sal.pc and sal.end fields.
808 (get_current_or_default_source_symtab_and_line): Ditto.
809 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
810 so we do not cause a new source symtab to be searched for (reverting an
811 unintentional change from the 2002-09-20 patch).
812 * scm-lang.c (scm_unpac): Ditto.
813
814 2002-09-21 Andrew Cagney <cagney@redhat.com>
815
816 * complaints.c (symfile_explanations): Remove new-line from
817 ``isolated_message''.
818 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
819 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
820
821 2002-09-20 Nick Clifton <nickc@redhat.com>
822
823 * NEWS: Announce that V850EA ISA is no longer supported.
824 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
825
826 2002-09-20 David Carlton <carlton@math.stanford.edu>
827
828 * Makefile.in (c-lang.o): Correct dependencies.
829 (utils.o): Gather dependencies.
830 (charset.o): Move.
831 * c-lang.c: #include "gdb_string.h"
832
833 2002-09-20 Fernando Nasser <fnasser@redhat.com>
834
835 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
836 * cli/cli-cmds.c (list_command): New function. Implements the new
837 cli edit command.
838 (_init_cli_cmds): Add new command definition.
839 * gdb.1: Document edit command.
840 * doc/gdb.texinfo: Document edit command.
841
842 2002-09-20 Fernando Nasser <fnasser@redhat.com>
843
844 * source.c: Make global variables current_source_symtab and
845 current_source_line static.
846 (list_command): Moved to cli/cli-cmds.c.
847 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
848 (get_first_line_listed): New accessor function.
849 (get_lines_to_list): New accessor function.
850 (get_current_source_symtab_and_line): New function. Retrieves the
851 position in the source code that we consider current.
852 (get_current_or_default_source_symtab_and_line): New function.
853 Like the above but attempts to determine a default position if one
854 is not currently defined.
855 (set_current_source_symtab_and_line): New function. Sets the source
856 code position considered current and returns the previously set one.
857 (clear_current_source_symtab_and_line): Reset stored information about
858 a current source line.
859 (_initialize_source): Remove registration for the "list" command and
860 its alias.
861 * source.h: Add declarations for the new functions above.
862 * symtab.h: Remove declarations for the global variables mentioned
863 above.
864 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
865 obtain current source line.
866 * linespec.c (decode_line_1): Ditto.
867 * macroscope.c (default_macro_scope): Ditto.
868 * scm-lang.c (scm_unpac): Ditto.
869 * stack.c (print_frame_info_base): Ditto.
870 * symfile.c (clear_symtab_users): Ditto.
871 * symtab.c (decode_line_spec): Ditto.
872 * cli/cli-cmds.c (list_command): Moved here from source.c.
873 (ambiguous_line_spec): Moved here from source.c.
874 (_init_cli_cmds): Add definition for "list" and its alias.
875 * Makefile.in: Update dependencies.
876
877 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
878
879 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
880 with what gcc thinks is correct.
881
882 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
883
884 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
885 multiple register push instruction.
886
887 2002-09-19 Jim Blandy <jimb@redhat.com>
888
889 Add support for distinct host and target character sets.
890 * charset.c, charset.h: New files.
891 * c-exp.y: #include "charset.h".
892 (yylex): Convert character and string literals to the target
893 character set, before returning them as the semantic value of the
894 token.
895 * c-lang.c: #include "charset.h".
896 (c_emit_char): Use charset-specific methods to recognize
897 characters with backslash escape forms, to decide which characters
898 to print literally and which to print using numeric escape
899 sequences, and to convert target characters to host characters
900 before printing.
901 * utils.c: #include "charset.h".
902 (no_control_char_error): New function.
903 (parse_escape): Use charset-specific methods to recognize
904 backslash escapes, parse `control character' notation, and convert
905 characters from the host character set to the target character set.
906 * configure.in: Set the default host character set.
907 Check where to find iconv, and what its argument types might be.
908 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
909 * Makefile.in (SFILES): List charset.c.
910 (COMMON_OBS): List charset.o.
911 (charset.o): New rule.
912 (charset_h): New header dependency variable.
913 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
914 (LIBICONV): New variable, set by configure.
915 (CLIBS): Include $(LIBICONV) here.
916 * aclocal.m4, config.in, configure: Regenerated.
917
918 2002-09-19 Joel Brobecker <brobecker@gnat.com>
919
920 * ada-exp.y: Add missing semicolons to end rules. Fixes a
921 bison 1.35 warning.
922
923 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
924
925 * gdb_mbuild.sh: New file.
926
927 2002-09-19 Andrew Cagney <ac131313@redhat.com>
928
929 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
930
931 2002-09-18 Andrew Cagney <ac131313@redhat.com>
932
933 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
934 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
935 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
936 valops.c, value.h: Revert previous change.
937
938 2002-09-18 Michael Snyder <msnyder@redhat.com>
939
940 Preliminary support for Objective-C:
941 * defs.h (language_objc): New enum value.
942 (puts_filtered_tabular): Declaration only, exported from utils.c.
943 (skip_quoted): Delete, declared in completer.h.
944 * c-exp.y: Include completer.h.
945 * p-exp.y: Ditto.
946 * jv-exp.y: Ditto.
947 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
948 New operator enum values.
949 * language.h (CAST_IS_CONVERSION): Test for language_objc.
950 * language.c (binop_result_type): Handle language_objc case.
951 (integral_type, character_type, string_type, boolean_type,
952 structured_type, binop_type_check): Ditto.
953 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
954 (struct objc_specific): Add to general_symbol_info.
955 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
956 (SYMBOL_DEMANGLED_NAME): Handle objc case.
957 * parser-defs.h (struct objc_class_str): New struct type.
958 (start_msglist, end_msglist, add_msglist): Declaration only,
959 exported from objc-lang.c.
960 * value.h (value_of_local, value_nsstring,
961 call_function_by_hand_expecting_type): Exported from valops.c.
962 * valops.c (find_function_addr): Export.
963 (call_function_by_hand_expecting_type): New function.
964 (value_of_local): New function.
965 * symfile.c (init_filename_language_table): Add ".m" extension
966 for Objective-C.
967 * utils.c (puts_filtered_tabular): New function.
968 (fprintf_symbol_filtered): Add objc demangling support (disabled).
969 (set/show demangle): Extend help-string to refer to ObjC.
970 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
971 * stabsread.c (symbol_reference_defined): Objective-C symbols
972 may contain colons: make allowances when scanning stabs strings
973 for colons.
974 (objc_find_colon): New function.
975 * printcmd.c (address_info): If language == objc then print
976 "self" instead of "this".
977 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
978 OP_NSSTRING, and OP_SELF.
979 (prefixify_subexp): Ditto.
980 * source.c (print_source_lines): Mention objc in comment.
981 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
982 method names.
983
984 2002-09-18 Andrew Cagney <ac131313@redhat.com>
985
986 * complaints.h: Update copyright.
987 (struct complaints): Declare.
988 (struct complaint): Make `message' constant.
989 (internal_complaint): Declare.
990 (complaint): Declare.
991 (complaint_root): Delete declaration.
992 (symfile_complaints): Delete declaration.
993 (struct complaints): Add opaque declaration.
994 (clear_complaints): Add a complaints parameter.
995 * complaints.c: Update copyright.
996 (enum complaint_series): Define.
997 (complaint_root): Delete.
998 (struct complaints): Define.
999 (complaint_sentinel, symfile_complaint_book): New variables.
1000 (symfile_explanations, symfile_complaints): New variables.
1001 New variables.
1002 (get_complaints): New function.
1003 (vcomplaint): New function.
1004 (complaint): New function.
1005 (internal_complaint): New function.
1006 (complain): Call vcomplain with symfile_complaint.
1007 (clear_complaints): Rewrite.
1008 (_initialize_complaints): Use add_setshow_command.
1009 * Makefile.in (complaints.o): Update dependencies.
1010 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
1011 to call to clear_complaints.
1012 (new_symfile_objfile, reread_symbols): Ditto.
1013 (oldsyms_complaint): Delete.
1014 (empty_symtab_complaint, unknown_option_complaint): Delete.
1015 (free_named_symtabs): Use complaint instead of complain.
1016
1017 2002-09-18 Michael Snyder <msnyder@redhat.com>
1018
1019 Contributed by Apple Computer, Inc. Merged with current sources
1020 by Adam Fedor <fedor@doc.com> [cagney].
1021
1022 * objc-lang.c: First clean-up round: comments, indentation.
1023 * objc-lang.h: Ditto.
1024 * objc-lang.y: Ditto.
1025
1026 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1027
1028 * maint.c (maintenance_internal_error): Print the parameter as the
1029 error message.
1030 (maintenance_internal_warning): New function.
1031 (_initialize_maint_cmds): Add command `maint internal-warning'.
1032
1033 * defs.h (internal_warning, internal_vwarning): Declare.
1034 * utils.c (struct internal_problem): Define.
1035 (internal_vproblem): New function.
1036 (internal_warning): New function.
1037 (internal_vwarning): New function.
1038 (internal_warning_problem, internal_error_problem): New variables.
1039 (internal_verror): Just call internal_vproblem.
1040
1041 2002-09-18 Michael Snyder <msnyder@redhat.com>
1042
1043 * objc-lang.c: New file, support for Objective-C.
1044 Preliminary check-in, not yet integrated into gdb.
1045 * objc-lang.h: New file.
1046 * objc-exp.y: New file.
1047
1048 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1049
1050 * infrun.c (signal_stop_update): Convert definition to ISO C.
1051 (signal_print_update): Ditto.
1052 (signal_pass_update): Ditto.
1053 * inflow.c (terminal_save_ours): Ditto.
1054
1055 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
1056 comments.
1057
1058 * config/djgpp/fnchange.lst: Handle name clashes between
1059 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
1060 bfd/coff-tic80.c.
1061
1062 * i386-linux-tdep.h: Fix tipo.
1063
1064 2002-09-18 Adam Fedor <fedor@gnu.org>
1065
1066 * MAINTAINERS: Add myself to the Write After Approval list.
1067
1068 2002-09-18 Jim Blandy <jimb@redhat.com>
1069
1070 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
1071 texthigh and textlow to reader-specific structs caused
1072 objfile_relocate to miss them. This is fixable, but the work that
1073 the change was supposed to prepare GDB for never got done anyway.
1074
1075 2002-09-18 David Carlton <carlton@math.stanford.edu>
1076
1077 * MAINTAINERS: Alphabetize Write After Approval list.
1078
1079 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
1080
1081 Fix PR gdb/709
1082 * values.c (value_static_field): Call read_var_value.
1083
1084 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1085
1086 * valops.c (hand_function_call): Align the initial stack pointer
1087 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
1088 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
1089 return value.
1090 * mips-tdep.c (mips_frame_align): New function.
1091 (mips_gdbarch_init): Set frame_align.
1092 * gdbarch.sh (FRAME_ALIGN): New method.
1093 * gdbarch.h, gdbarch.c: Re-generate.
1094
1095 2002-09-18 Michal Ludvig <mludvig@suse.cz>
1096
1097 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
1098 registers.
1099
1100 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1101
1102 * NEWS: Mention that MIPS $fp behavior changed.
1103 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
1104 reference to FP_REGNUM.
1105 (mipsnbsd_cannot_store_register): Ditto.
1106 * mips-linux-nat.c: Update copyright.
1107 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
1108 (mips_linux_cannot_store_register): Ditto.
1109 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
1110 * config/mips/tm-mips.h: Update copyright.
1111 (FP_REGNUM): Delete macro.
1112 (MIPS_REGISTER_NAMES): Replace "fp" with "".
1113 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
1114 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
1115 (mips_r3041_reg_names, mips_r3051_reg_names)
1116 (mips_r3081_reg_names): Replace "fp" with "".
1117 Fix PR gdb/480.
1118
1119 2002-09-17 Theodore A. Roth <troth@verinet.com>
1120
1121 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
1122 generic_read_register_dummy() (PR gdb/703).
1123 (avr_push_return_address): #if 0 out unused vars.
1124 (avr_gdbarch_init): Enable use of avr_push_return_address().
1125
1126 2002-09-17 Michael Snyder <msnyder@redhat.com>
1127
1128 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
1129 RTE will take care of it.
1130
1131 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1132
1133 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
1134 invalid, return SP_REGNUM.
1135
1136 2002-09-17 Michael Snyder <msnyder@redhat.com>
1137
1138 * mips-tdep.c (mips_pop_frame): Read saved values of floating
1139 point registers without sign extension.
1140
1141 2002-09-17 Andrew Cagney <cagney@redhat.com>
1142
1143 * blockframe.c (deprecated_read_register_dummy): Rename
1144 generic_read_register_dummy.
1145 * frame.c (frame_unwind_signed_register): New function.
1146 (frame_unwind_unsigned_register): New function.
1147 * frame.h (frame_unwind_signed_register): Declare.
1148 (frame_unwind_unsigned_register): Declare.
1149 (deprecated_read_register_dummy): Rename
1150 generic_read_register_dummy.
1151
1152 * h8300-tdep.c (h8300_frame_chain): Update.
1153 (h8300_frame_saved_pc): Update.
1154 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1155 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1156 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1157 (s390_frame_chain): Update.
1158 * v850-tdep.c (v850_find_callers_reg): Update.
1159 (v850_frame_saved_pc): Update.
1160 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1161 (m32r_find_callers_reg): Update.
1162 (m32r_frame_saved_pc): Update.
1163 * sh-tdep.c (sh_find_callers_reg): Update.
1164 (sh64_get_saved_pr): Update.
1165 (sh_init_extra_frame_info): Update.
1166 (sh_init_extra_frame_info): Update.
1167 (sh64_init_extra_frame_info): Update.
1168 (sh64_init_extra_frame_info): Update.
1169 * mcore-tdep.c (mcore_find_callers_reg): Update.
1170 (mcore_frame_saved_pc): Update.
1171 (mcore_init_extra_frame_info): Update.
1172 * i386-tdep.c (i386_frame_saved_pc): Update.
1173 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1174 (ia64_init_extra_frame_info): Update.
1175 (ia64_init_extra_frame_info): Update.
1176 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1177 * cris-tdep.c (cris_init_extra_frame_info): Update.
1178 * avr-tdep.c (avr_frame_chain): Update.
1179 (avr_init_extra_frame_info): Update.
1180 (avr_frame_saved_pc): Update.
1181 * arm-tdep.c (arm_find_callers_reg): Update.
1182 (arm_init_extra_frame_info): Update.
1183 (arm_frame_saved_pc): Update.
1184
1185 2002-09-17 Tom Tromey <tromey@redhat.com>
1186
1187 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1188 is "'".
1189
1190 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
1191
1192 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1193 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1194 NEXT_PROLOGUE_INSN.
1195 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1196 NEXT_PROLOGUE_INSN.
1197
1198 2002-09-16 Joel Brobecker <brobecker@gnat.com>
1199
1200 * osfsolib.c: Remove file, replaced by solib-osf.c.
1201 * Makefile.in: Remove compilation rules for osfsolib.c.
1202
1203 2002-09-16 David Carlton <carlton@math.stanford.edu>
1204
1205 * cp-valprint.c (cp_print_class_method): Correct args to
1206 check_stub_method_group.
1207
1208 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
1209
1210 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1211 `set architecture'. Unify naming convention of functions.
1212 (h8300_skip_prologue): Improve prologue analysis.
1213 (h8300_push_arguments): Rewritten to more closely match GCC's
1214 bizarre argument-passing behavior, along with the comment describing
1215 said behavior.
1216 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1217 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1218 sim, remote-e7000.c, remote-hms.c and remote.c
1219
1220 2002-09-15 Mark Kettenis <kettenis@gnu.org>
1221
1222 * i386-tdep.c (gdb_print_insn_i386): Removed.
1223 (i386_print_insn): New function.
1224 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1225 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1226 tm_print_insn_info.
1227
1228 2002-09-14 Mark Kettenis <kettenis@gnu.org>
1229
1230 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1231 zero.
1232
1233 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
1234
1235 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1236 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1237 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1238
1239 2002-09-13 Christopher Faylor <cgf@redhat.com>
1240
1241 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1242
1243 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
1244
1245 * gdbtypes.c (check_stub_method): Make static.
1246 (check_stub_method_group): New function.
1247 * gdbtypes.h: Update prototypes.
1248 * cp-support.c: New file.
1249 * cp-support.h: New file.
1250
1251 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1252 (update_method_name_from_physname): New function.
1253 (read_member_functions): Correct method names for operators
1254 and v3 constructors/destructors. Separate v2 constructors and
1255 destructors.
1256 * Makefile.in (stabsread.o): Update dependencies.
1257 (SFILES): Add cp-support.c.
1258 (COMMON_OBS): Add cp-support.o.
1259 (cp_support_h, cp-support.o): Add.
1260
1261 * cp-valprint.c (cp_print_class_method): Call
1262 check_stub_method_group instead of check_stub_method. Remove
1263 extraneous QUITs.
1264 * p-valprint.c (pascal_object_print_class_method): Likewise.
1265 * valops.c (search_struct_method): Likewise.
1266 (find_method_list, value_struct_elt_for_reference): Likewise.
1267
1268 2002-09-13 Andrew Cagney <cagney@redhat.com>
1269
1270 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1271 * gdbarch.h, gdbarch.c: Regenerate.
1272
1273 2002-09-13 Andrew Cagney <ac131313@redhat.com>
1274
1275 * frame.c (find_saved_register): Delete function.
1276 * frame.h (find_saved_register): Delete declaration.
1277 Fix PR gdb/631.
1278
1279 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1280
1281 * mips-tdep.c (read_next_frame_reg): Re-hack using
1282 frame_register_unwind.
1283
1284 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1285
1286 * mips-tdep.c (mips_get_saved_register): Re-hack using
1287 frame_register_unwind.
1288
1289 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1290
1291 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1292 vector. Will be useful for Interix.
1293 * gdbarch.h, gdbarch.c: Regenerate.
1294
1295 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1296 name of the malloc function by NAME_OF_MALLOC.
1297
1298 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1299
1300 * value.h (find_function_in_inferior): Add const keyword to
1301 one of the parameters. Allows us to invoke this function with
1302 a const char *.
1303 * valops.c (find_function_in_inferior): Likewise.
1304
1305 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1306
1307 * exec.c (xfer_memory): Fix compilation warning with old versions
1308 of GCC.
1309 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1310
1311 2002-09-12 David Carlton <carlton@math.stanford.edu>
1312
1313 * symtab.h: Run through gdb_indent.h.
1314 Add 2002 to Copyright year list.
1315
1316 2002-09-12 Alan Modra <amodra@bigpond.net.au>
1317
1318 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1319 mach constants.
1320 * MAINTAINERS: Add myself to write after approval list.
1321
1322 2002-09-11 J. Brobecker <brobecker@gnat.com>
1323
1324 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1325
1326 2002-09-11 J. Brobecker <brobecker@gnat.com>
1327
1328 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1329 Interix.
1330
1331 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1332
1333 * procfs.c (do_detach): Clear current signal, not just fault.
1334 Corrects problem with breakpoint trap signal leaking to detached
1335 process on Tru64.
1336
1337 2002-09-10 Michael Snyder <msnyder@redhat.com>
1338
1339 * buildsym.c (finish_block): Protect against null pointer.
1340
1341 2002-09-10 Andrew Cagney <cagney@redhat.com>
1342
1343 * infcmd.c (default_print_registers_info): Send all output to
1344 ``file'' instead of ``gdb_stdout''.
1345
1346 2002-09-10 Michael Snyder <msnyder@redhat.com>
1347
1348 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1349 LONGEST, and use signed register read (addresses are sign-
1350 extended for mips).
1351
1352 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1353
1354 * event-loop.c (gdb_do_one_event): Make public.
1355 * event-loop.h (gdb_do_one_event): Declare.
1356
1357 2002-09-10 Jeff Law <law@redhat.com>
1358
1359 * infttrace.c (child_resume): Simplify and rework to avoid
1360 TT_PROC_CONTINUE.
1361
1362 2002-09-09 Fred Fish <fnf@intrinsity.com>
1363
1364 * printcmd.c (print_scalar_formatted): "len" is the number of
1365 target bytes, NOT the number of target bits.
1366
1367 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
1368
1369 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1370 * top.c (init_main): Set rl_terminal_name.
1371
1372 2002-09-08 Aidan Skinner <aidan@velvet.net>
1373
1374 * ada-lang.c (ada_array_bound, ada_type_match,
1375 _initialize_ada_language): Fix K&R definitions.
1376 * ada-tasks.c (get_current_task): Fix K&R definitions.
1377 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1378
1379 2002-09-07 Christopher Faylor <cgf@redhat.com>
1380
1381 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1382 Add XP.
1383
1384 2002-09-06 Mark Kettenis <kettenis@gnu.org>
1385
1386 * i386-tdep.c (i386_register_virtual_type,
1387 i386_register_convertible, i386_register_convert_to_virtual,
1388 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1389 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1390 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1391 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1392 Don't set push_arguments twice.
1393
1394 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1395 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1396 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1397 sigtramp_end to NULL.
1398 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1399 defines.
1400 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1401
1402 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1403 whitespace.
1404
1405 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1406 * gdbarch.h, gdbarch.c: Re-generate.
1407 * blockframe.c (find_pc_sect_partial_function): Convert to use
1408 SIGTRAMP_START_P predicate.
1409
1410 2002-09-05 Michael Snyder <msnyder@redhat.com>
1411
1412 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1413 generic_dummy_frame method and old method. Also distinguish
1414 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1415 (arm_extract_return_value): Use new regcache method.
1416
1417 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1418 adjustment that doesn't conform to the ABI.
1419 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1420 saved regcache, not from current regcache.
1421
1422 2002-09-05 Andrew Cagney <ac131313@redhat.com>
1423
1424 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1425 * README: Update.
1426
1427 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1428
1429 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1430 if arm_apcs_32 is false.
1431
1432 2002-09-04 Andrew Cagney <ac131313@redhat.com>
1433
1434 GDB 5.3 branch created.
1435
1436 2002-09-03 Theodore A. Roth <troth@verinet.com>
1437
1438 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1439 generic_unwind_get_saved_register.
1440
1441 2002-09-03 David Carlton <carlton@math.stanford.edu>
1442
1443 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1444 argument (PR gdb/653). Update call to smash_to_method_type.
1445 (read_structure_scope): Update call to dwarf2_add_member_fn.
1446
1447 2002-09-03 Michal Ludvig <mludvig@suse.cz>
1448
1449 * x86-64-linux-tdep.c: Include gdb_string.h
1450 * x86-64-linux-nat.c: Ditto.
1451
1452 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1453
1454 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1455 when YYDEBUG is set to 1.
1456 * c-exp.y: Likewise.
1457 * f-exp.y: Likewise.
1458 * jv-exp.y: Likewise.
1459 * m2-exp.y: Likewise.
1460 * p-exp.y: Likewise.
1461
1462 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1463
1464 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1465 dependency list.
1466 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1467 solib_svr4_fetch_link_map_offsets to
1468 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1469 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1470 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1471 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1472 solib-svr4.o, and solib-legacy.o.
1473 * config/i386/tm-nbsd.h: Include solib.h.
1474
1475 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1476
1477 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1478 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1479 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1480 comment noting that this needs its own target configuration.
1481 * config/i386/nbsd.mt: New file.
1482 * config/i386/nbsdaout.mt: Remove.
1483 * config/i386/nbsdelf.mt: Ditto.
1484 * config/i386/tm-nbsdaout.h: Ditto.
1485
1486 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1487
1488 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1489 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1490 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1491 tdep->sigtramp_end.
1492 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1493 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1494 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1495
1496 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1497
1498 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1499 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1500 * i386-tdep.h (i386bsd_init_abi): New prototype.
1501 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1502 function declaration.
1503 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1504 for NetBSD-a.out or NetBSD-ELF.
1505 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1506 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1507 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1508 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1509 and nbsd-tdep.h.
1510 (i386nbsd_pc_in_sigtramp): New function.
1511 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1512 i386nbsd_pc_in_sigtramp.
1513 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1514 and i386nbsdelf_init_abi OS ABI handlers.
1515 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1516 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1517
1518 2002-09-02 Mark Kettenis <kettenis@gnu.org>
1519
1520 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1521 registers if the target really has them.
1522
1523 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1524
1525 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1526 than nbsd-tdep.h.
1527
1528 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1529
1530 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1531 list.
1532 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1533 (alphanbsd_skip_sigtramp_frame): New functions.
1534 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1535 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1536 to alphanbsd_sigcontext_addr.
1537
1538 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1539
1540 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1541 list.
1542 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1543 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1544 nbsd_pc_in_sigtramp.
1545 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1546 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1547 * nbsd-tdep.c: Include gdb_string.h.
1548 (nbsd_pc_in_sigtramp): New function.
1549 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1550 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1551 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1552 ppcnbsd_pc_in_sigtramp.
1553 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1554 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1555 shnbsd_pc_in_sigtramp.
1556 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1557 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1558 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1559
1560 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1561
1562 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1563 watchpoints to NULL.
1564 (insert_breakpoints): set val field of watchpoints if NULL.
1565
1566
1567 2002-08-29 Jim Blandy <jimb@redhat.com>
1568
1569 * symtab.c (lookup_symbol_aux): In the cases where we find a
1570 minimal symbol of an appropriate name and use its address to
1571 select a symtab to read and search, use `name' (as passed to us)
1572 as the demangled name when searching the symtab's global and
1573 static blocks, not the minsym's name.
1574
1575 2002-08-29 Keith Seitz <keiths@redhat.com>
1576
1577 * stack.c (print_frame_info_base): Always set current_source_symtab
1578 and current_source_line.
1579
1580 2002-08-29 Donn Terry <donnte@microsoft.com>
1581
1582 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1583
1584 2002-08-28 Keith Seitz <keiths@redhat.com>
1585
1586 * stack.c (select_frame): Add FIXME concerning selected-frame
1587 events.
1588 (select_frame_command): Send selected-frame-level-changed
1589 event notification, but only if the level actually changed.
1590 (up_silently_base): Add selected-frame-level-changed event
1591 notification.
1592 (down_silently_base): Likewise.
1593
1594 2002-08-28 Andrew Cagney <ac131313@redhat.com>
1595
1596 * Makefile.in: Update dependencies for all gdb/*.c files.
1597
1598 2002-08-27 Tom Tromey <tromey@redhat.com>
1599
1600 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1601 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1602 Update dependencies.
1603 * i387-tdep.c: Include gdb_string.h.
1604 * osabi.c: Likewise.
1605 * i386-linux-nat.c: Likewise.
1606 * lin-lwp.c: Likewise.
1607 * ax-gdb.c: Likewise.
1608 * signals/signals.c: Likewise.
1609 * jv-valprint.c: Likewise.
1610 * p-lang.c: Likewise.
1611 * c-valprint.c: Likewise.
1612 * cp-abi.c: Likewise.
1613
1614 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
1615
1616 * cli/cli-script.h (copy_command_lines): Export.
1617 * breakpoint.c: Include cli/cli-script.h.
1618 * Makefile.in (breakpoint.o): Update dependencies.
1619
1620 2002-08-26 Michael Snyder <msnyder@redhat.com>
1621
1622 * breakpoint.c (insert_breakpoints): Protect all references
1623 to 'process_warning'. Shorten long lines.
1624
1625 2002-08-26 Joel Brobecker <brobecker@gnat.com>
1626
1627 * cli/cli-script.c (copy_command_lines): New function.
1628 * defs.h (copy_command_lines): Export.
1629 * testsuite/gdb.base/commands.exp: New tests for commands
1630 attached to a temporary breakpoint, and for commands that
1631 delete the breakpoint they are attached to.
1632
1633 2002-08-26 Michael Snyder <msnyder@redhat.com>
1634
1635 * breakpoint.c (bpstat_stop_status): Instead of copying the
1636 pointer to the breakpoint commands struct, make a new copy
1637 of the struct and point to that.
1638 (bpstat_clear): Free the commands struct.
1639 (bpstat_clear_actions): Free the commands struct.
1640 (bpstat_do_actions): Free the command actions. Also execute
1641 the local cleanups, instead of deleting them.
1642 (delete_breakpoint): Leave the commands field of the bpstat
1643 chain alone -- it will be freed later.
1644
1645 2002-08-26 Kevin Buettner <kevinb@redhat.com>
1646
1647 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1648 deleted in 2002-08-20 commit. This function is still used by
1649 ppc-linux-nat.c.
1650
1651 2002-08-26 Keith Seitz <keiths@redhat.com>
1652
1653 * gdb-events.sh: Add selected-frame-level-changed event.
1654 * gdb-events.c: Regenerated.
1655 * gdb-events.h: Regenerated.
1656
1657 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1658
1659 Fix PR gdb/393:
1660 * inflow.c (terminal_save_ours): New function to save terminal
1661 settings.
1662 * inferior.h (terminal_save_ours): Declare.
1663 * target.c (debug_to_terminal_save_ours): New function.
1664 (cleanup_target): Defaults to_terminal_save_ours.
1665 (update_current_target): Inherit to_terminal_save_ours.
1666 (setup_target_debug): Set to_terminal_save_ours.
1667 * target.h (target_terminal_save_ours): New to save terminal settings.
1668 (target_ops): New member to_terminal_save_ours.
1669 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1670 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1671 * inftarg.c (init_child_ops): Likewise.
1672 * m3-nat.c (init_m3_ops): Likewise.
1673 * procfs.c (init_procfs_ops): Likewise.
1674 * wince.c (init_child_ops): Likewise.
1675 * win32-nat.c (init_child_ops): Likewise.
1676 * sol-thread.c (init_sol_thread_ops): Likewise.
1677
1678 2002-08-26 Mark Kettenis <kettenis@gnu.org>
1679
1680 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1681 use regcache_* functions.
1682 (i386_gdbarch_init): Set store_return_value instead of
1683 deprecated_store_return_value.
1684
1685 * regcache.c (regcache_raw_write_signed,
1686 regcache_raw_write_unsigned): New functions.
1687 * regcache.h (regcache_raw_write_signed,
1688 regcache_raw_write_unsigned): New prototypes.
1689
1690 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1691
1692 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1693 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1694 source file dependencies. Cleanup corresponding generator rules.
1695
1696 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1697
1698 * regcache.h (register_offset_hack): Declare.
1699 (regcache_cooked_read_using_offset_hack): Declare.
1700 (regcache_cooked_write_using_offset_hack): Declare.
1701
1702 * regcache.c (register_offset_hack): New function.
1703 (regcache_cooked_read_using_offset_hack): New function.
1704 (regcache_cooked_write_using_offset_hack): New function.
1705 (regcache_dump): Check that the registers, according to their
1706 offset, are packed hard against each other.
1707 (cooked_xfer_using_offset_hack): New function.
1708
1709 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1710
1711 * regcache.c (struct regcache_descr): Add field register_type.
1712 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1713 in as a parameter
1714 (init_regcache_descr): Initialize register_type. Pass the descr
1715 to init_legacy_regcache_descr. Use register_type instead of
1716 REGISTER_VIRTUAL_TYPE.
1717 (register_type): New function.
1718 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1719 * regcache.h (register_type): Declare.
1720
1721 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1722
1723 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1724 instead of deprecated_store_return_value. Fix fallout from
1725 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1726
1727 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1728
1729 * regcache.c (max_register_size): New function.
1730 (init_legacy_regcache_descr): Ensure that max_register_size is
1731 large enough for REGISTER_VIRTUAL_SIZE.
1732 * regcache.h (max_register_size): Declare.
1733
1734 2002-08-24 Andrew Cagney <ac131313@redhat.com>
1735
1736 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1737 store_return_value.
1738 (e500_extract_return_value): Change type of valbuf pointer to
1739 void.
1740
1741 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1742
1743 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1744 workaround.
1745
1746 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1747 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1748 long long) to prevent compiler warning on 64-bit systems.
1749
1750 2002-08-23 Andrew Cagney <cagney@redhat.com>
1751
1752 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1753 (DEPRECATED_STORE_RETURN_VALUE): New method.
1754 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1755 * gdbarch.h, gdbarch.c: Re-generate.
1756
1757 * values.c (set_return_value): Pass current_regcache to
1758 STORE_RETURN_VALUE.
1759 * arch-utils.h (legacy_store_return_value): Declare.
1760 * arch-utils.c (legacy_store_return_value): New function.
1761 (legacy_extract_return_value): Update parameters.
1762
1763 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1764 STORE_RETURN_VALUE.
1765 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1766 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1767 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1768 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1769 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1770 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1771 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1772 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1773 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1774 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1775
1776 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1777 * i386-tdep.c (i386_extract_return_value): Update.
1778 * arch-utils.c (legacy_extract_return_value): Update.
1779 * frv-tdep.c (frv_gdbarch_init): Update.
1780 * cris-tdep.c (cris_gdbarch_init): Update.
1781 * d10v-tdep.c (d10v_gdbarch_init): Update.
1782 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1783 * m68k-tdep.c (m68k_gdbarch_init): Update.
1784 * mcore-tdep.c (mcore_gdbarch_init): Update.
1785 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1786 * s390-tdep.c (s390_gdbarch_init): Update.
1787 * sparc-tdep.c (sparc_gdbarch_init): Update.
1788 * sh-tdep.c (sh_gdbarch_init): Update.
1789 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1790 * v850-tdep.c (v850_gdbarch_init): Update.
1791 * avr-tdep.c (avr_gdbarch_init): Update.
1792 * ia64-tdep.c (ia64_gdbarch_init): Update.
1793 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1794 * vax-tdep.c (vax_gdbarch_init): Update.
1795 * alpha-tdep.c (alpha_gdbarch_init): Update.
1796 * arm-tdep.c (arm_gdbarch_init): Update.
1797 * mips-tdep.c (mips_gdbarch_init): Update.
1798 * i386-tdep.c (i386_gdbarch_init): Update.
1799
1800 2002-08-23 Andrew Cagney <ac131313@redhat.com>
1801
1802 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1803 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1804
1805 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1806
1807 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1808 problems.
1809
1810 2002-08-23 Joel Brobecker <brobecker@gnat.com>
1811
1812 * infrun.c (handle_inferior_event): Move a comment outside of a
1813 function call, in order to avoid indent reformatting this part
1814 of the code in an unreadable way.
1815
1816 2002-08-23 Grace Sainsbury <graces@redhat.com>
1817
1818 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1819 when breakpoints fail. Move general breakpoint error messages to
1820 insert_breakpoints.
1821 * breakpoint.c (insert_breakpoints): Change warnings when
1822 breakpoints are nto inserted to specify the type. Remove call to
1823 memory_error when hardware breakpoints can't be inserted. Remove
1824 multiple calls to warning so all messages are sent to the user at
1825 once.
1826 (delete_breakpoints): Make insert error messsages more explicit.
1827
1828 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
1829
1830 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1831 gdbserver/ChangeLog.
1832
1833 2002-08-23 Mark Kettenis <kettenis@gnu.org>
1834
1835 * i386-tdep.c: Include "objfiles.h".
1836 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1837 skip_trampoline_code.
1838 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1839 (CPLUS_MARKER): Define to '.'.
1840
1841 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1842 member.
1843 (linux_corefile_thread_callback): Increase args->num_notes.
1844 (linux_make_note_section): Initialize thread_args.num_notes, and
1845 use it to determine whether notes for any threads were created.
1846
1847 2002-08-23 Donn Terry <donnte@microsoft.com>
1848
1849 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1850 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1851 and PCUNKILL.
1852 (write_with_trace): Conditionalize out the switch branch handling
1853 PCSHOLD if the corresponding macro is not defined. Likewise for
1854 PRSABORT and PRSTOP.
1855 This change will be needed by the Interix port.
1856
1857 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1858
1859 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1860 write_register wherever possible instead of manipulating the
1861 register bytes directly.
1862 Assign VALUE_CONTENTS to a variable and use that.
1863 The GPR numbers are now dependent on the architecture.
1864
1865 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1866
1867 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1868 ev_offset fields.
1869 (skip_prologue): Add support for BookE/e500 instructions.
1870 (e500_extract_return_value): New function.
1871 (frame_get_saved_regs): Add support for saving ev registers and
1872 pseudo gpr's.
1873 (e500_store_return_value): New function.
1874 (rs6000_gdbarch_init): Move up default intializations of
1875 deprecated_extract_return_value and store_return_value. Overwrite
1876 init of store_return_value with e500 specific version.
1877 Set extract_return_value for e500.
1878
1879 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1880
1881 * blockframe.c (generic_call_dummy_register_unwind): Use
1882 regcache_cooked_read to catch cases in which the variable is
1883 stored in a pseudo register.
1884
1885 2002-08-22 Andrew Cagney <cagney@redhat.com>
1886
1887 * NEWS: Mention that the i960 has been made obsolete.
1888 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1889 i960-tdep.c
1890 (remote-nrom.o): Obsolete target.
1891 (remote-nindy.o, i960-tdep.o): Ditto.
1892 * remote-nrom.c: Make file obsolete.
1893 * remote-nindy.c, remote-vx960.c: Ditto.
1894 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1895 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1896 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1897 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1898 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1899 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1900 i960-*-vxworks* obsolete.
1901 * MAINTAINERS: Note that the i960 is obsolete.
1902
1903 2002-08-21 Corinna Vinschen <vinschen@redhat.com
1904
1905 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1906 detach to allow reinitialization.
1907
1908 2002-08-22 Andrew Cagney <ac131313@redhat.com>
1909
1910 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1911 attempt).
1912
1913 2002-08-22 Jim Blandy <jimb@redhat.com>
1914
1915 * coffread.c (coff_symfile_read): Don't try to read the line
1916 number table from disk if the image file doesn't have a symbol
1917 table; we'll never actually look at the info anyway, and Windows
1918 ships DLL's with bogus file offsets for the line number data.
1919
1920 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1921
1922 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1923 an e500 executable.
1924
1925 2002-08-21 Michael Snyder <msnyder@redhat.com>
1926
1927 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1928 (MSYMBOL_SIZE): Replace macro with function.
1929 (DEFAULT_MIPS_TYPE): Delete unused macro.
1930 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1931 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1932
1933 2002-08-21 Jim Blandy <jimb@redhat.com>
1934
1935 * valops.c (value_cast): Simplify and correct logic for doing a
1936 static cast from a pointer to a base class to a pointer to a
1937 derived class.
1938
1939 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1940
1941 * infcmd.c (default_print_registers_info): Replace
1942 do_registers_info.
1943 (registers_info): Use gdbarch_print_registers_info instead of
1944 DO_REGISTERS_INFO.
1945 * inferior.h (default_print_registers_info): Replace
1946 do_registers_info.
1947 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1948 (DO_REGISTERS_INFO): Change to a predicate function.
1949 * gdbarch.h, gdbarch.c: Regenerate.
1950
1951 2002-08-21 Keith Seitz <keiths@redhat.com>
1952
1953 * gdb-events.sh: Add target-changed event.
1954 * gdb-events.c: Regenerated.
1955 * gdb-events.c: Regenerated.
1956 * valops.c (value_assign): Add target-changed event notification
1957 to inlval_register, lval_memory, and lval_reg_frame_relative.
1958
1959 2002-08-21 Joel Brobecker <brobecker@gnat.com>
1960
1961 * NEWS: Add an entry regarding the improvement of the next/step
1962 operation on Alpha Tru64 multi-processor machines.
1963
1964 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1965
1966 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1967 directores.
1968 * Makefile.in: Update all _h macro definitions.
1969 * Makefile.in (install-gdbtk): Move to install section.
1970 (rdi-share/libangsd.a): Move to end of file.
1971
1972 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1973
1974 * frame.c (frame_register_unwind): When a register, set addrp to
1975 the register's byte.
1976
1977 2002-08-20 Michael Snyder <msnyder@redhat.com>
1978
1979 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1980 used locally, so move them from the target machine header to here.
1981 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1982 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1983 Make static.
1984 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1985
1986 2002-08-20 Andrew Cagney <cagney@redhat.com>
1987
1988 * NEWS: Mention that the Apollo line was made obsolete.
1989 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1990 m68*-hp-hpux* obsolete.
1991 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1992 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1993 * buildsym.c (make_blockvector): Make static.
1994 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1995 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1996 (ALLDEPFILES): Remove dstread.c.
1997 (dstread.o): Obsolete make rule.
1998 * dstread.c: Makefile obsolete.
1999 * dst.h: Ditto.
2000 * config/m68k/hp300hpux.mt: Ditto.
2001 * config/m68k/hp300hpux.mh: Ditto.
2002 * config/m68k/hp300bsd.mt: Ditto.
2003 * config/m68k/hp300bsd.mh: Ditto.
2004 * config/m68k/apollo68b.mt: Ditto.
2005 * config/m68k/apollo68v.mh: Ditto.
2006 * config/m68k/apollo68b.mh: Ditto.
2007
2008 2002-08-20 Michael Snyder <msnyder@redhat.com>
2009
2010 * mips-tdep.c (mips_in_return_stub): Make static.
2011 (mips_gdbarch_init): Set in_solib_return_trampoline.
2012 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
2013
2014 2002-08-20 Michael Snyder <msnyder@redhat.com>
2015
2016 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
2017 * gdbarch.c, gdbarch.h: Regenerate.
2018 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
2019 Add.
2020 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
2021
2022 2002-08-20 Michael Snyder <msnyder@redhat.com>
2023
2024 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
2025 (mips_gdbarch_init): Set skip_trampoline_code,
2026 in_solib_call_trampoline.
2027 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
2028 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
2029
2030 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2031
2032 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
2033
2034 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
2035 vector type for ev registers.
2036 (e500_pseudo_register_read): New function.
2037 (e500_pseudo_register_write): New function.
2038 (e500_dwarf2_reg_to_regnum): New function.
2039 (PPC_UISA_NOFP_SPRS): New macro.
2040 (PPC_EV_REGS): New macro.
2041 (PPC_GPRS_PSEUDO_REGS): New macro.
2042 (registers_e500): New register set for e500.
2043 (variants): Add e500 variant.
2044 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
2045 before setting architectural dependent variations. Initialize ev
2046 registers numbers. Add case for e500 architecture. Set the
2047 number of pseudo registers.
2048
2049 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2050
2051 * rs6000-tdep.c: Clean up comments.
2052
2053 2002-08-20 Andrew Cagney <cagney@redhat.com>
2054
2055 * h8300-tdep.c: Re-indent file.
2056
2057 2002-08-20 Jim Blandy <jimb@redhat.com>
2058
2059 * Makefile.in (LDFLAGS): Allow the configure script to establish a
2060 default for this.
2061
2062 2002-08-20 Keith Seitz <keiths@redhat.com>
2063
2064 * breakpoints.c (watch_command_1): Use internal breakpoint
2065 when setting a watchpoint_scope breakpoint.
2066
2067 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2068
2069 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
2070 (build_builtin_type_vec64i): Ditto.
2071 (build_builtin_type_vec128): Ditto.
2072 (build_builtin_type_vec128i): Ditto.
2073
2074 2002-08-19 Michael Snyder <msnyder@redhat.com>
2075
2076 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
2077 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
2078 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
2079 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
2080 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
2081 CALL_DUMMY_ADDRESS): Delete.
2082 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
2083 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
2084 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
2085 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
2086 push_return_address.
2087 (mips_register_raw_size, mips_eabi_use_struct_convention,
2088 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
2089 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
2090 mips_init_extra_frame_info, mips_eabi_push_arguments,
2091 mips_n32n64_push_arguments, mips_push_return_address,
2092 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
2093 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
2094
2095 2002-08-19 Michael Snyder <msnyder@redhat.com>
2096
2097 * mips-tdep.c (mips_frame_num_args): New function.
2098 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
2099 frame_saved_pc, frame_args_address, frame_locals_address,
2100 frame_num_args, and frame_args_skip.
2101 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
2102 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
2103 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
2104 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
2105
2106 2002-08-20 Michael Snyder <msnyder@redhat.com>
2107
2108 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
2109 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2110 * mips-tdep.c (mips_store_struct_return): New function.
2111 (mips_extract_struct_value_address): New function.
2112 (mips_gdbarch_init): Set store_struct_return and
2113 extract_struct_value_address.
2114
2115 2002-08-20 David Carlton <carlton@math.stanford.edu>
2116
2117 * dwarf2read.c (dwarf2_build_psymtabs): Check that
2118 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
2119 (read_file_scope): Check that line_header is nonzero before
2120 decoding macro information.
2121
2122 2002-08-20 Mark Kettenis <kettenis@gnu.org>
2123
2124 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
2125 flag the general-purpose registers as floating-point on targets
2126 that don't support the floating-point registers.
2127
2128 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2129
2130 * rs6000-tdep.c (altivec_register_p): Delete.
2131 (rs6000_do_altivec_registers): Delete.
2132 (rs6000_altivec_registers_info): Delete.
2133 (rs6000_do_registers_info): Delete.
2134 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
2135 (rs6000_gdbarch_init): Remove setting of do_registers_info.
2136
2137 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2138
2139 * infcmd.c (do_registers_info): Print vector registers in hex
2140 format only.
2141 (print_vector_info): Check that printing registers
2142 makes sense.
2143 (print_float_info): Ditto.
2144
2145 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2146
2147 * mips-tdep.c (mips_gdbarch_init): Update.
2148 (mips_o32_extract_return_value): Rewrite.
2149 (mips_o32_store_return_value): Rewrite.
2150 (mips_o32_xfer_return_value): New function.
2151 (mips_xfer_register): Tweak debug print message. Allow for
2152 buf_offset when dumping the value transfered.
2153
2154 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2155
2156 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2157 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2158 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2159 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2160 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2161
2162 2002-08-14 Michael Snyder <msnyder@redhat.com>
2163
2164 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2165
2166 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2167
2168 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2169 register.
2170 (P): New macro to define a register as a pseudo register.
2171 (R, R4, R8, R16, FR32, R64, R0): Updated.
2172 (struct variant): Add new fields for number of pseudo registers
2173 and number of total registers.
2174 (tot_num_registers): New macro replacing....
2175 (num_registers): ...deleted macro.
2176 (num_registers): New function.
2177 (num_pseudo_registers): New function.
2178 (variants): Update all variants to intialize new fields correctly.
2179 Postpone initialization of number of pseudo regs and real regs.
2180 (init_variants): New function.
2181 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2182 registers offsets.
2183
2184 2002-08-19 David Carlton <carlton@math.stanford.edu>
2185
2186 * valops.c (search_struct_field): Change error message to treat
2187 return value of 0 from value_static_field as meaning that field is
2188 optimized out.
2189 (value_struct_elt_for_reference): Ditto.
2190 * values.c (value_static_field): Treat an unresolved location the
2191 same as a nonexistent symbol. Fix PR gdb/635.
2192 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2193 enclosed. Fix PR gdb/574.
2194 * MAINTAINERS: Add self to Write After Approval list.
2195
2196 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2197
2198 * mips-tdep.c (mips_xfer_register): New function.
2199 (mips_n32n64_extract_return_value): Rewrite.
2200 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2201 instead of deprecated_extract_return_value.
2202
2203 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2204
2205 * rs6000-tdep.c (TDEP): Delete macro.
2206 (branch_dest): Replace use of TDEP macro with its body.
2207 (rs6000_pop_frame): Ditto.
2208 (rs6000_push_arguments): Ditto.
2209 (rs6000_skip_trampoline_code): Ditto.
2210 (rs6000_frame_saved_pc): Ditto.
2211 (rs6000_frame_chain): Ditto.
2212 (rs6000_register_name): Ditto.
2213 (rs6000_register_byte): Ditto.
2214 (rs6000_register_raw_size): Ditto.
2215 (rs6000_register_virtual_type): Ditto.
2216 (rs6000_register_convertible): Ditto.
2217 (rs6000_convert_from_func_ptr_addr): Ditto.
2218
2219 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
2220
2221 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2222 conditionally.
2223 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2224 MIPS_LINUX_JB_ELEMENT_SIZE.
2225 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2226 for MAX_REGISTER_RAW_SIZE arrays.
2227 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2228 MIPS_LINUX_JB_ELEMENT_SIZE.
2229
2230 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2231
2232 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2233
2234 2002-08-19 Aidan Skinner <aidan@velvet.net>
2235
2236 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2237 ada-valprint.c ada-tasks.c.
2238 (YYFILES): Add ada-exp.y.
2239 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2240 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2241 (ada-exp.tab.o): New target.
2242
2243 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2244
2245 * regcache.c (regcache_xfer_part): New function.
2246 (regcache_raw_read_part): New function.
2247 (regcache_raw_write_part): New function.
2248 (regcache_cooked_read_part): New function.
2249 (regcache_cooked_write_part): New function.
2250 * regcache.h (regcache_raw_read_part): Declare.
2251 (regcache_raw_write_part): Declare.
2252 (regcache_cooked_read_part): Declare.
2253 (regcache_cooked_write_part): Declare.
2254
2255 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
2256
2257 * remote.c (remote_open_1): Add async_p.
2258 (remote_async_open_1): Delete.
2259 (open_remote_target): Delete.
2260 (remote_open, extended_remote_open): Update calls to remote_open_1.
2261 (remote_async_open, extended_remote_async_open): Call
2262 remote_open_1 instead of remote_async_open_1.
2263
2264 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2265
2266 * blockframe.c: Fix a few coding standard violations.
2267
2268 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2269
2270 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2271 here from ...
2272 * config/i386/tm-i386sco5.h: ... here. File removed.
2273 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2274
2275 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
2276 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2277 (TM_FILE): Set to tm-i386.h.
2278 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2279 * config/i386/tm-i386v.h: Remove file.
2280 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2281 instead of "i386/tm-i386v.h".
2282 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2283 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2284 "i386/tm-i386v.h".
2285 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2286 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2287 "i386/tm-i386.h".
2288
2289 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2290
2291 * config/i386/nm-i386v.h: Add protection against
2292 multiple-inclusion.
2293 (i386_register_u_addr): Remove prototype.
2294 (register_u_addr): New prototype.
2295 (REGISTER_U_ADDR): Redefine accordingly.
2296 * i386v-nat.c: Improve several comments.
2297 (i386_register_u_addr): Change signature and rename to
2298 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2299 ubase variable.
2300
2301 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2302
2303 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2304 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2305 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2306 deprecated_extract_return_value.
2307 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2308 rename mips_o32o64_push_arguments.
2309 (mips_gdbarch_init): Update.
2310 (mips_extract_return_value): Delete.
2311 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2312 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2313 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2314 (mips_n32n64_extract_return_value): Clone
2315 mips_extract_return_value.
2316 (mips_store_return_value): Delete.
2317 (mips_o32_store_return_value): Clone mips_store_return_value.
2318 (mips_o64_store_return_value): Clone mips_store_return_value.
2319 (mips_eabi_store_return_value): Clone mips_store_return_value.
2320 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2321
2322 2002-08-18 Aidan Skinner <aidan@velvet.net>
2323
2324 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2325 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2326
2327 2002-08-18 Aidan Skinner <aidan@velvet.net>
2328
2329 * ada-lang.c: Run through gdb_indent.sh.
2330 * ada-lang.h: Run through gdb_indent.sh.
2331 * ada-tasks.c: Run through gdb_indent.sh.
2332 * ada-typeprint.c: Run through gdb_indent.sh.
2333 * ada-valprint.c: Run through gdb_indent.sh.
2334
2335 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2336
2337 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2338 ABI.
2339
2340 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2341
2342 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2343
2344 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2345 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2346
2347 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2348 write_register_gen instead of write_register_bytes.
2349
2350 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2351 i[3456]-*-osf1mk* configurations have been made obsolete.
2352 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2353 i[3456]86-*-osf1mk* hosts obsolete.
2354 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2355 targets obsolete.
2356 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2357 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2358 config/i386/i386m3.mt, config/i386/nm-m3.h,
2359 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2360 config/i386/i386mk.mh, config/i386/i386mk.mt,
2361 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2362 obsolete.
2363 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2364 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2365 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2366
2367 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2368
2369 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2370 (hppa_value_returned_from_stack): Declare.
2371 (hppa_extract_return_value): Declare.
2372 * config/pa/hppa.mt: New file.
2373 * configure.tgt: Recognize hppa*-*-*.
2374 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2375
2376 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2377
2378 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2379 comment.
2380
2381 2002-08-17 Mark Kettenis <kettenis@gnu.org>
2382
2383 * top.c (gdb_rl_operate_and_get_next): Make sure
2384 operate-and-get-next functions correctly even when the history
2385 list is completely filled.
2386
2387 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2388
2389 * MAINTAINERS (Target Instruction Set Architectures): Rename
2390 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2391 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2392 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2393 already listed under Host/Native.
2394
2395 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2396 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2397 mips*-*-*.
2398
2399 2002-08-17 Andrew Cagney <ac131313@redhat.com>
2400
2401 * config/ia64/ia64.mt: New file.
2402 * config/alpha/alpha.mt: New file.
2403 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2404 ia64-linux-gnu. Mention that ia64-elf is broken.
2405 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2406
2407 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2408
2409 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2410 generic_func_frame_valid instead of func_frame_valid.
2411
2412 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2413
2414 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2415 procfs appears to be broken when debugging on multi-processor
2416 machines. So enable software single stepping in order to avoid
2417 using the procfs interface to do next/step operations, using
2418 internal breakpoints instead.
2419
2420 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2421 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2422 make this pc address equal to the value it would have if the
2423 system stepping capability was used. Also set a new flag used
2424 to ensure that we don't readjust the PC one more time later.
2425
2426 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2427 address by DECR_PC_AFTER_BREAK when software single step is
2428 in use for this architecture, as this has already been taken
2429 care of in handle_inferior_event().
2430
2431 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2432
2433 * infrun.c (handle_inferior_event): Minor reformatting, to make
2434 a rather long condition expression easier to read.
2435
2436 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2437
2438 * Makefile.in (gdbtk.o): Move to end of file.
2439 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2440 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2441 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2442 (gdbtk-wrapper.o, gdbres.o): Ditto.
2443
2444 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2445
2446 * Makefile.in (copying.o): Separate out compile rule.
2447 (hpux-thread.o, procfs.o, signals.o): Ditto.
2448 (v850ice.o, z8k-tdep.o): Ditto.
2449 (tui-file.o): Move to TUI section.
2450 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2451 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2452
2453 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2454
2455 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2456 skip_trampoline_code, for better namespace-proofing.
2457
2458 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2459
2460 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2461
2462 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2463
2464 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2465
2466 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2467 signal, check whether we hit a breakpoint before checking for a
2468 single step breakpoint. Otherwise, GDB fails to notice that a
2469 breakpoint has been hit when stepping onto a breakpoint.
2470
2471 2002-08-16 Keith Seitz <keiths@redhat.com>
2472
2473 * gdb-events.sh (clear_gdb_event_hooks): New function.
2474 * gdb-events.c: Regenerate.
2475 * gdb-events.h: Regenerate.
2476
2477 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2478
2479 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2480 not_a_sw_breakpoint.
2481 * breakpoint.h (bpstat_stop_status): Add parameter names.
2482
2483 2002-08-16 Grace Sainsbury <graces@redhat.com>
2484
2485 * remote.c (remote_insert_hw_breakpoint)
2486 (remote_remove_hw_breakpoint): Fix calculation of length field
2487 for Z-packet.
2488
2489 2002-08-15 Michael Snyder <msnyder@redhat.com>
2490
2491 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2492 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2493 (supply_fpregset): Ditto.
2494
2495 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2496 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2497 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2498 (TARGET_READ_SP): Delete.
2499 (DO_REGISTERS_INFO): Delete.
2500 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2501 Delete.
2502 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2503 from macros to functions.
2504
2505 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2506 (mips_register_convertible, mips_register_convert_to_virtual,
2507 mips_register_convert_to_raw): Make static.
2508 (mips_read_sp): New function.
2509 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2510 (mips_do_registers_info): Make static.
2511 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2512 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2513 (mips_register_convert_from_type, mips_register_convert_to_type):
2514 New functions.
2515 (mips_gdbarch_init): Set up function_start_offset,
2516 register_virtual_size, pc_in_sigtramp.
2517
2518 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2519
2520 * infcmd.c (vector_info): New function.
2521 (_initialize_infcmd): Add command "info vector".
2522 (print_vector_info): New function.
2523
2524 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2525 * gdbarch.h, gdbarch.c: Regenerate.
2526
2527 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2528
2529 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2530 ``print_all''. Only print vector registers when ``print_all''.
2531
2532 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2533
2534 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2535 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2536
2537 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2538 Add `args' parameter.
2539 * gdbarch.h, gdbarch.c: Regenerate.
2540
2541 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2542
2543 * infcmd.c (float_info): Call print_float_info.
2544 (print_float_info): New function. By default, print the
2545 floating-point registers.
2546
2547 * arch-utils.h (default_print_float_info): Delete declaration.
2548 * arch-utils.c (default_print_float_info): Delete function.
2549
2550 2002-08-16 Mark Kettenis <kettenis@gnu.org>
2551
2552 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2553 out define.
2554
2555 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2556 FRAME.
2557
2558 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2559 * configure.host: Make i[3456]86-*-aix host obsolete.
2560 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2561 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2562 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2563 config/i386/xm-i386aix.h: Make files obsolete.
2564 * i386aix-nat.c: Make file obsolete.
2565 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2566 (i386aix-nat.o): Make target obsolete.
2567
2568 * config/i386/nm-gnu.h: Removed.
2569 * config/i386/nm-i386gnu.h: New file.
2570 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2571 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2572 Moved here from ...
2573 * config/i386/tm-i386gnu.h: ... here. Removed.
2574 * config/i386/xm-i386gnu.h: Removed.
2575 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2576 (NAT_FILE): Set to nm-i386gnu.h.
2577 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2578 * i386-tdep.c: New file.
2579 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2580 (i386gnu-tdep.o): Specify dependencies.
2581
2582 2002-08-15 Mark Kettenis <kettenis@gnu.org>
2583
2584 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2585 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2586 Adjust a few comments to reflect reality a bit closer.
2587 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2588 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2589 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2590 target_insert_watchpoint, target_remove_watchpoint):
2591 Move defines to ...
2592 * config/i386/nm-i386sco5.h: ... here.
2593 (kernel_u_size): Add prototype. Improve a few comments and add
2594 protection against multiple inclusion.
2595
2596 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2597 out define.
2598
2599 * uw-thread.c (SP_ARG0): Define if not already defined.
2600 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2601
2602 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2603
2604 * config/i386/tm-i386.h: Don't include "regcache.h".
2605
2606 * i387-tdep.h (i387_print_float_info): New prototype.
2607 * i387-tdep.c (print_i387_value, print_i387_ext,
2608 print_i387_status_word, print_i387_control_word): Add `struct
2609 ui_file *' argument and use it for output.
2610 (i387_print_float_info): Renamed from i387_float_info. Add
2611 `struct gdbarch *' and `struct ui_file *' arguments and use the
2612 latter for output.
2613 * i386-tdep.c: Include "i387-tdep.h".
2614 (i386_gdbarch_init): Set print_float_info.
2615 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2616 (FLOAT_INFO): Remove define.
2617
2618 2002-08-13 Michael Snyder <msnyder@redhat.com>
2619
2620 * mips-tdep.c (mips_push_arguments): Rename to
2621 mips_eabi_push_arguments, and tune for EABI.
2622 (MIPS_REGS_HAVE_HOME_P): Delete.
2623 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2624 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2625 Delete references to mips_regs_have_home_p.
2626
2627 2002-08-14 Keith Seitz <keiths@redhat.com>
2628
2629 * Makefile.in (install-gdbtk): Create insight plugin directory.
2630 Install plugins.tcl file.
2631
2632 2002-08-14 Keith Seitz <keiths@redhat.com>
2633
2634 * configure.in: Move SUBDIRS to near top of the file so that
2635 --enable options may add things to it.
2636 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2637 * configure: Regenerate.
2638
2639 2002-08-13 Michael Snyder <msnyder@redhat.com>
2640
2641 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2642 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2643 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2644
2645 2002-08-13 Andrew Cagney <ac131313@redhat.com>
2646
2647 * vax-tdep.c (vax_get_saved_register): Delete function.
2648 (vax_gdbarch_init): Update.
2649 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2650 (ns32k_gdbarch_init): Update.
2651 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2652 (alpha_gdbarch_init): Update.
2653
2654 2002-08-13 Andrew Cagney <cagney@redhat.com>
2655
2656 * regcache.c (init_regcache_descr): Overallocate the
2657 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2658 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2659 nr_raw_registers.
2660 (set_register_cached): Add range checking assertions. Use
2661 current_regcache.
2662
2663 2002-08-13 Mark Kettenis <kettenis@gnu.org>
2664
2665 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2666 numbers for MMX registers.
2667
2668 2002-08-13 Andrew Cagney <cagney@redhat.com>
2669
2670 * i386-tdep.c (i386_gdbarch_init): Use
2671 generic_unwind_get_saved_register.
2672
2673 2002-08-13 Kevin Buettner <kevinb@redhat.com>
2674
2675 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2676 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2677 target vector.
2678 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2679 Delete. Add comment regarding this now-deleted target method.
2680
2681 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2682
2683 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2684 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2685 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2686 real PC and the page number (if it's within the memory bank window).
2687 (m68hc11_pseudo_register_write): Likewise when saving.
2688 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2689 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2690 (m68hc11_register_raw_size): And use 32-bit for it.
2691 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2692 16K memory bank is used by the prog; also use the virtual pc.
2693
2694 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2695
2696 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2697 (m68hc11_gdbarch_init): Install it in gdbarch.
2698 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2699 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2700 (MSYMBOL_SIZE): New for documentation.
2701 (insn_return_kind): Enum to specify how a function returns.
2702 (frame_extra_info): Cleanup and record the return mode.
2703 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2704 register in address computation.
2705 (m68hc11_get_return_insn): New to obtain the return instruction used
2706 by the function.
2707 (m68hc11_frame_init_saved_regs): Take into account the return
2708 instruction used by the function for far and interrupt functions.
2709 (m68hc11_init_extra_frame_info): Take into account page register.
2710 (m68hc11_frame_args_address): Adjust according to the return mode.
2711 (show_regs): Print page register only when it's used.
2712
2713 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2714
2715 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2716 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2717 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2718 registers.
2719 (m68hc11_register_raw_size): Likewise.
2720
2721 2002-08-13 Andrew Cagney <cagney@redhat.com>
2722
2723 * i386-tdep.c (i386_register_name): Handle mmx registers.
2724 (mmx_regnum_p): New function.
2725 (i386_mmx_names): New array.
2726 (mmx_num_regs): New variable.
2727 (i386_pseudo_register_read): New function.
2728 (i386_pseudo_register_write): New function.
2729 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2730
2731 * regcache.c (regcache_raw_read_unsigned): New function.
2732 (regcache_raw_read_signed): New function.
2733 * regcache.h (regcache_raw_read_unsigned): Declare.
2734 (regcache_raw_read_signed): Declare.
2735
2736 2002-08-13 Andrew Cagney <cagney@redhat.com>
2737
2738 * regcache.c (regcache_raw_read_as_address): Delete function.
2739 (regcache_cooked_read_signed): New function.
2740 (regcache_cooked_read_unsigned): New function.
2741 * regcache.h (regcache_cooked_read_signed): Declare.
2742 (regcache_cooked_read_unsigned): Declare.
2743 (regcache_raw_read_as_address): Delete declaration.
2744
2745 * blockframe.c (generic_read_register_dummy): Use
2746 regcache_cooked_read_unsigned.
2747 * i386-tdep.c (i386_extract_struct_value_address): Use
2748 regcache_cooked_read_unsigned.
2749
2750 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2751
2752 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2753 double sizes according to ELF ABI flags.
2754 (gdbarch_tdep): Record elf_flags.
2755
2756 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2757
2758 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2759 (m6812_prolog): They can appear in 68HC12 function prologue.
2760 (m68hc11_frame_chain): Cleanup.
2761
2762 2002-08-12 Andrew Cagney <cagney@redhat.com>
2763
2764 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2765 declarations.
2766 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2767 (i386_linux_register_raw_size): Delete function.
2768 (i386_linux_init_abi): Update.
2769 * i386-tdep.c (i386_register_raw_size): Delete function.
2770 (i386_register_byte): Delete function.
2771 (i386_gdbarch_init): Update.
2772 (i386_register_size): Delete array.
2773 (i386_register_offset): Delete array.
2774
2775 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2776 (REGISTER_RAW_SIZE): Delete macro.
2777 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2778 (REGISTER_BYTE): Delete macro.
2779
2780 2002-08-11 Aidan Skinner <aidan@velvet.net>
2781
2782 * ada-lang.c (ada_lookup_partial_symbol)
2783 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2784 prototype names so that grep ^func works properly.
2785
2786 * ada-lang.c (ada_array_element_type)
2787 (ada_lookup_partial_symbol): Fix typos in parameter list.
2788
2789 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2790 Fix prototype names so that grep ^func works properly.
2791
2792 2002-08-10 Andrew Cagney <cagney@redhat.com>
2793 Elena Zannoni <ezannoni@redhat.com>
2794 Martin M. Hunt <hunt@redhat.com>
2795
2796 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2797 (build_builtin_type_vec128i): Set the vector bit.
2798 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2799 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2800 (build_builtin_type_vec64): New function.
2801 (build_builtin_type_vec64i): New function.
2802 (build_gdbtypes): Initialize builtin_type_vec64 and
2803 builtin_type_vec64i.
2804
2805 2002-08-09 Andrew Cagney <cagney@redhat.com>
2806
2807 * regcache.c (regcache_dump): Compare the register offset
2808 with REGISTER_BYTE.
2809 * arch-utils.c (generic_register_byte): New function.
2810 * arch-utils.h (generic_register_byte): Declare.
2811 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2812 * gdbarch.h, gdbarch.c: Regenerate.
2813
2814 2002-08-09 Andrew Cagney <cagney@redhat.com>
2815
2816 * regcache.c: Include "gdbcmd.h"
2817 (_initialize_regcache): Add commands "maintenance print
2818 registers", "maintenance print raw-registers" and "maintenance
2819 print cooked-registers".
2820 (enum regcache_dump_what): Define.
2821 (dump_endian_bytes): New function.
2822 (regcache_dump): New function.
2823 (regcache_print): New function.
2824 (maintenance_print_registers): New function.
2825 (maintenance_print_raw_registers): New function.
2826 (maintenance_print_cooked_registers): New function.
2827 * Makefile.in (regcache.o): Update dependencies.
2828
2829 2002-08-09 Michael Snyder <msnyder@redhat.com>
2830
2831 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2832 (mips_push_arguments): Correct some comments. Use paddr_nz
2833 for printing addresses in debug output. Replace static
2834 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2835 (mips_n32n64_push_arguments): New function, cloned from
2836 mips_push_arguments and tuned for the n32/n64 ABI.
2837 (mips_push_register): Buffer needs dynamic allocation.
2838 (mips_print_register): Ditto.
2839 (do_gp_register_row): Ditto.
2840 (mips_store_return_value): Ditto.
2841 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2842
2843 2002-08-09 Don Howard <dhoward@redhat.com>
2844
2845 * memattr.c (mem_info_command): Print special case of upper bound
2846 as max CORE_ADDR + 1.
2847
2848 2002-08-08 Michael Snyder <msnyder@redhat.com>
2849
2850 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2851 returns structs by ref if they're too big to fit in two registers.
2852
2853 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2854
2855 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2856 saved regs value.
2857 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2858 mips_find_saved_regs().
2859 (mips_pop_frame): Likewise.
2860
2861 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2862
2863 * blockframe.c (frame_saved_regs_register_unwind): Revise
2864 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2865 frames are in use.
2866
2867 2002-08-09 Grace Sainsbury <graces@redhat.com>
2868
2869 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2870 T-packets; the 'a' is not taken as a register number.
2871 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2872 (remote_stopped_data_address): New functions; add to target
2873 vector.
2874 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2875 prototypes to match other implementations of this
2876 function. replace integer argument with pointer -- the length
2877 field in the Z-packet is the length of what is pointed to or 1 if
2878 pointer is null. Add to target vector.
2879 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2880 target vector.
2881
2882 From Mark Salter:
2883 * remote.c (remote_wait): Add support to extract optional
2884 watchpoint information from T-packet. Ignore unrecognized
2885 optional info in T-packet.
2886 (remote_async_wait): Ditto.
2887
2888 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
2889
2890 * cli/cli-dump.c: Change fopen modes to use binary open modes
2891 as defined in include/fopen-bin.h throughout.
2892
2893 2002-08-08 Michael Snyder <msnyder@redhat.com>
2894
2895 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2896
2897 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2898
2899 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2900 assertion failure by returning early after a warning.
2901
2902 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2903
2904 * mips-tdep.c (mips_find_saved_regs): Make static.
2905 (mips_frame_init_saved_regs): New function.
2906 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2907 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2908 (mips_find_saved_regs): Delete declaration.
2909
2910 2002-08-08 Grace Sainsbury <graces@redhat.com>
2911
2912 * remote.c (remote_wait, remote_async_wait): Change
2913 thread_num from int to ULONGEST.
2914 (unpack_varlen_hex): Change result parameter from
2915 int * to ULONGEST *.
2916
2917 2002-08-08 Andrew Cagney <ac131313@redhat.com>
2918
2919 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2920 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2921 powerpc*-*-*.
2922 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2923
2924 2002-08-08 Andrew Cagney <cagney@redhat.com>
2925
2926 * gcore.c (override_derive_stack_segment): Delete variable.
2927 (preempt_derive_stack_segment): Delete function.
2928 (derive_stack_segment): Delete function.
2929 (default_derive_stack_segment): Renamed to derive_stack_segment.
2930 (override_derive_heap_segment): Delete variable.
2931 (preempt_derive_heap_segment): Delete function.
2932 (derive_heap_segment): Delete function.
2933 (default_derive_heap_segment): Rename to derive_heap_segment.
2934
2935 2002-08-06 Michael Snyder <msnyder@redhat.com>
2936
2937 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2938 * mips-tdep.c (mips_EABI_use_struct_convention,
2939 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2940 New functions. (mips_use_struct_convention): Delete.
2941 (mips_gdbarch_init): set use_gdbarch_convention.
2942
2943 2002-08-06 Michael Snyder <msnyder@redhat.com>
2944
2945 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2946 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2947 mips_o32_reg_struct_has_addr): New functions.
2948 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2949
2950 2002-08-07 Andrew Cagney <ac131313@redhat.com>
2951
2952 * regcache.c (pseudo_register): Delete function.
2953 (fetch_register): Delete function.
2954 (store_register): Delete function.
2955 (regcache_raw_read, legacy_read_register_gen): Use
2956 target_fetch_registers instead of fetch_register.
2957 (legacy_write_register_gen, regcache_raw_write): Use
2958 target_store_register instead of store_register.
2959 (write_register_bytes): Ditto.
2960
2961 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2962 (STORE_PSEUDO_REGISTER): Delete.
2963 * gdbarch.h, gdbarch.c: Regenerate.
2964
2965 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
2966
2967 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2968 write dump file binary.
2969
2970 2002-08-05 Michael Snyder <msnyder@redhat.com>
2971
2972 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2973 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2974 (mips_gdbarch_init): Set N32 target to be mips64.
2975
2976 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2977
2978 * frame.c (find_saved_register): Break out of loop once saved
2979 register address is found. Don't mention sparc in loop comment
2980 anymore.
2981
2982 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2983
2984 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2985 mips_default_saved_regsize to 8.
2986
2987 2002-08-06 Andrew Cagney <ac131313@redhat.com>
2988
2989 * gcore.c: Do not include <sys/procfs.h>.
2990 * Makefile.in (gcore.o): Update dependencies.
2991
2992 2002-08-06 Andrew Cagney <cagney@redhat.com>
2993
2994 * configure.tgt: Make arc-*-* obsolete.
2995 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2996 * MAINTAINERS: Make arc-elf obsolete.
2997 * arc-tdep.c: Make file obsolete.
2998 * config/arc/arc.mt: Ditto.
2999 * config/arc/tm-arc.h: Ditto.
3000
3001 2002-08-05 Theodore A. Roth <troth@verinet.com>
3002
3003 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
3004
3005 2002-08-05 Andrew Cagney <ac131313@redhat.com>
3006
3007 * mcore-tdep.c (mcore_gdbarch_init): Use
3008 generic_unwind_get_saved_register instead of
3009 generic_get_saved_register.
3010 * v850-tdep.c (v850_gdbarch_init): Ditto.
3011 * frv-tdep.c (frv_gdbarch_init): Ditto.
3012 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3013 * s390-tdep.c (s390_gdbarch_init): Ditto.
3014 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3015 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
3016 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
3017
3018 2002-08-05 Joel Brobecker <brobecker@gnat.com>
3019
3020 * objfiles.h: Add missing #include "symfile.h"
3021
3022 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
3023
3024 2002-08-04 Andrew Cagney <ac131313@redhat.com>
3025
3026 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
3027 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
3028 of FIELD_BITSIZE.
3029
3030 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
3031
3032 * NEWS: Cleanup and nitpick.
3033
3034 2002-08-03 Andrew Cagney <ac131313@redhat.com>
3035
3036 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
3037
3038 2002-08-03 Andrew Cagney <ac131313@redhat.com>
3039
3040 * Makefile.in (gdbtk-bp.o): Update dependencies.
3041 (gdbtk-register.o): Ditto.
3042 (gdbtk-varobj.o): Ditto.
3043
3044 2002-08-03 Andrew Cagney <cagney@redhat.com>
3045
3046 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
3047 m68hc11_fetch_pseudo_register.
3048 (m68hc11_pseudo_register_write): Replace
3049 m68hc11_store_pseudo_register.
3050 (m68hc11_gdbarch_init): Update.
3051
3052 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
3053
3054 * gdbarch.sh: Include "gdb_string.h".
3055 * gdbarch.c: Regenerate.
3056
3057 * regcache.c: Include "gdb_string.h".
3058 * ax-general.c: Ditto.
3059 * varobj.c: Ditto.
3060 * std-regs.c: Ditto.
3061 * fbsd-proc.c: Ditto.
3062 * thread.c: Ditto.
3063
3064 * Makefile.in (regcache.o): Update dependencies.
3065 (thread.o, gdbarch.o): Ditto.
3066 (ax-general.o, gdbarch.o): Ditto.
3067 (varobj.o, std-regs.o): Ditto.
3068 (fbsd-proc.o): Specify dependencies.
3069
3070 2002-08-02 Andrew Cagney <cagney@redhat.com>
3071
3072 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
3073 regnum.
3074 (regcache_cooked_write): Ditto.
3075
3076 2002-08-02 Andrew Cagney <ac131313@redhat.com>
3077
3078 * regcache.c (regcache_cooked_read): New function.
3079 (regcache_cooked_write): New function.
3080 (read_register_gen): Rewrite using regcache_cooked_read.
3081 (write_register_gen): Rewrite using regcache_cooked_write.
3082
3083 * regcache.h (regcache_cooked_read, regcache_cooked_write):
3084 Declare.
3085
3086 2002-08-02 Andrew Cagney <cagney@redhat.com>
3087
3088 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
3089 Replace the architecture methods register_read and register_write.
3090 * gdbarch.h, gdbarch.c: Regenerate.
3091 * regcache.c (init_regcache_descr): Update.
3092 (read_register_gen): Update.
3093 (write_register_gen): Update.
3094 (supply_register): Update comment.
3095
3096 * sh-tdep.c (sh_gdbarch_init): Update.
3097 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
3098 `regcache' and `gdbarch' parameters. Make `buffer' a void
3099 pointer. Update code.
3100 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
3101 `regcache' and `gdbarch' parameters. Make `buffer' a constant
3102 void pointer. Update code.
3103 (sh64_register_write): Delete.
3104 (sh4_register_read): Delete.
3105 (sh64_register_read): Delete.
3106 (sh4_register_write): Delete.
3107 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
3108 void pointer, `to' parameter a void pointer.
3109 (sh_sh64_register_convert_to_raw): Ditto.
3110
3111 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3112
3113 * mips-tdep.c (mips_register_virtual_type): Use architecture
3114 invariant return values.
3115
3116 2002-08-01 Andrew Cagney <cagney@redhat.com>
3117
3118 * linux-proc.c: Include "gdb_string.h".
3119 * Makefile.in (linux-proc.o): Update dependency list.
3120
3121 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3122
3123 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
3124 comment.
3125
3126 2002-08-01 Grace Sainsbury <graces@redhat.com>
3127
3128 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3129 to_insert_watchpoint, to_remove_watchpoint,
3130 to_stopped_by_watchpoint, to_stopped_data_address,
3131 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
3132 target vecctor. Define their corresponding macros so they call
3133 them.
3134
3135 * target.c: Add default and debug versions of for
3136 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3137 to_insert_watchpoint, to_remove_watchpoint,
3138 to_stopped_by_watchpoint, to_stopped_data_address,
3139 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
3140
3141 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3142
3143 * mips-tdep.c (mips_register_virtual_type): New function.
3144 (mips_gdbarch_init): Register mips_register_virtual_type()
3145 with gdbarch machinery.
3146 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3147 this file instead of tm-bigmips.h.
3148 (MIPS_REGSIZE): Delete this macro.
3149 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
3150 multiarch version in mips-tdep.c will be found.
3151
3152 2002-08-01 Andrew Cagney <cagney@redhat.com>
3153
3154 * NEWS: Menion that CHILL has been made obsolete.
3155
3156 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
3157 * stabsread.c (read_range_type): Ditto.
3158 * gdbtypes.h: Ditto.
3159 * language.c (binop_type_check): Ditto.
3160 (binop_result_type): Ditto.
3161 (integral_type): Ditto.
3162 (character_type): Ditto.
3163 (string_type): Ditto.
3164 (boolean_type): Ditto.
3165 (structured_type): Ditto.
3166 (lang_bool_type): Ditto.
3167 (binop_type_check): Ditto.
3168 * language.h (_LANG_chill): Ditto.
3169 * dwarfread.c (set_cu_language): Ditto.
3170 * dwarfread.c (CHILL_PRODUCER): Ditto.
3171 * dwarfread.c (handle_producer): Ditto.
3172 * expression.h (enum exp_opcode): Ditto.
3173 * eval.c: Ditto for comments.
3174 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3175 * expprint.c (print_subexp): Ditto.
3176 (print_subexp): Ditto.
3177 * valops.c (value_cast): Ditto.
3178 (search_struct_field): Ditto.
3179 * value.h (COERCE_VARYING_ARRAY): Ditto.
3180 * symfile.c (init_filename_language_table): Ditto.
3181 (add_psymbol_with_dem_name_to_list): Ditto.
3182 * valarith.c (value_binop): Ditto.
3183 (value_neg): Ditto.
3184 * valops.c (value_slice): Ditto.
3185 * symtab.h (union language_specific): Ditto.
3186 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3187 (SYMBOL_DEMANGLED_NAME): Ditto.
3188 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3189 * defs.h (enum language): Ditto.
3190 * symtab.c (got_symtab): Ditto.
3191 * utils.c (fprintf_symbol_filtered): Ditto.
3192
3193 * ch-typeprint.c: Make file obsolete.
3194 * ch-valprint.c: Make file obsolete.
3195 * ch-lang.h: Make file obsolete.
3196 * ch-exp.c: Make file obsolete.
3197 * ch-lang.c: Make file obsolete.
3198
3199 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3200 CHILL_LIB.
3201 (TARGET_FLAGS_TO_PASS): Ditto.
3202 (CHILLFLAGS): Obsolete.
3203 (CHILL): Obsolete.
3204 (CHILL_FOR_TARGET): Obsolete.
3205 (CHILL_LIB): Obsolete.
3206 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3207 ch-valprint.c.
3208 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3209 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3210 ch-lang.o.
3211 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3212 targets.
3213
3214 2002-07-31 Joel Brobecker <brobecker@gnat.com>
3215
3216 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3217 This does not change anything at the moment, but will be helpful
3218 later when full Ada support is integrated.
3219
3220 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3221
3222 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3223 help message.
3224
3225 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3226
3227 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3228 and save it in a local variable. Use variable in later test.
3229
3230 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3231
3232 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3233 test. (Thanks to Daniel Jacobowitz.)
3234
3235 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3236
3237 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3238 (mips_abi_strings): Add "n64".
3239 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3240
3241 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3242
3243 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3244 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3245
3246 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3247
3248 * utils.c (host_pointer_to_address, address_to_host_pointer):
3249 Use gdb_assert() instead of explicit call to internal_error().
3250
3251 2002-07-30 Kevin Buettner <kevinb@redhat.com>
3252
3253 * Makefile.in (rs6000-nat.o): Update dependencies.
3254
3255 From Nicholas Duffek:
3256 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3257 (aix-thread.o): New rule.
3258 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3259 * config/powerpc/aix432.mh: New file.
3260
3261 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3262
3263 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3264 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3265 (fetch_core_registers, ppc_linux_supply_gregset)
3266 (ppc_linux_supply_fpregset): New functions.
3267 (ppc_linux_regset_core_fns): New.
3268 (_initialize_ppc_linux_tdep): Call add_core_fns.
3269 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3270 and ppc_linux_supply_gregset.
3271 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3272 (supply_fpregset): Call ppc_linux_supply_fpregset.
3273 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3274 corelow.o.
3275 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3276
3277 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3278
3279 * symtab.c (lookup_symbol): Demangle before lowercasing.
3280
3281 2002-07-30 Andrew Cagney <ac131313@redhat.com>
3282
3283 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3284 declaration.
3285 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3286 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3287 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3288 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3289 "gdb_string.h".
3290 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3291 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3292 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3293 (avr-tdep.o, mon960-rom.o): Ditto.
3294 (aout_stabs_gnu_h): Define.
3295 (symtab_h): Remove $(gdb_obstack_h).
3296
3297 2002-07-30 Jim Blandy <jimb@redhat.com>
3298
3299 Patch from David Carlton <carlton@math.stanford.edu>:
3300 * gdbinit.in: Move the `dir' commands that add GDB's own source
3301 directory to the search path to the end, so that the `gdb' source
3302 directory will be searched first.
3303
3304 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3305
3306 * gdb_obstack.h: New file.
3307 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3308 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3309 * objfiles.h: Include "gdb_obstack.h".
3310 * Makefile.in (gdb_obstack_h): Define.
3311 (symtab_h): Add $(gdb_obstack_h).
3312 (objfiles_h): Add $(gdb_obstack_h).
3313
3314 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3315 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3316 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3317 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3318 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3319 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3320 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3321 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3322
3323 * Makefile.in (bcache.o): Update dependencies.
3324 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3325 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3326 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3327 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3328 (stabsread.o, symfile.o, symmisc.o): Ditto.
3329 (symtab.o, typeprint.o, macroexp.o): Ditto.
3330 (macrotab.o, mdebugread.o): Ditto.
3331 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3332 (coff_ecoff_h, aout_aout64_h): Define.
3333 (aout_stabs_gnu_h, libaout_h): Define.
3334
3335 2002-07-29 Andrew Cagney <cagney@redhat.com>
3336
3337 * regcache.c (struct regcache_descr): Rename nr_registers to
3338 nr_cooked_registers. Revise comments describing the structure
3339 member fields.
3340 (init_regcache_descr): Update.
3341 (init_legacy_regcache_descr): Update.
3342 (read_register_gen, write_register_gen): When a cooked register in
3343 the raw register range, directly access the value from the raw
3344 register cache.
3345
3346 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3347
3348 * z8k-tdep.c: Do not include "obstack.h".
3349 * h8300-tdep.c, h8500-tdep.c: Ditto.
3350 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3351 * valprint.c, v850-tdep.c: Ditto.
3352 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3353 * mn10200-tdep.c: Ditto.
3354
3355 * Makefile.in (z8k-tdep.o): Update dependencies.
3356 (m68hc11-tdep.o, valprint.o): Ditto.
3357 (v850-tdep.o, d10v-tdep.o): Ditto.
3358 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3359 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3360 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3361 (sh_opc_h, gdb_sim_sh_h): Define.
3362 (elf_sh_h, elf_bfd_h): Define.
3363 (opcode_m68hc11_h): Define.
3364 (OPCODES_SRC, OPCODES_DIR): define.
3365 (OPCODES): Use $(OPCODES_DIR).
3366 (gdb_sim_d10v_h): Rename sim_d10v_h.
3367 (gdb_sim_arm_h): Rename sim_arm_h.
3368
3369 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3370
3371 * utils.c (host_pointer_to_address, address_to_host_pointer):
3372 Change internal_error() message to indicate function responsible
3373 for the error.
3374
3375 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3376
3377 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3378 calls to local_hex_string_custom().
3379
3380 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3381
3382 * irix5-nat.c: Move IRIX shared library support from here...
3383 * solib-irix.c: ...to here. Revised substantially to work with
3384 generic solib framework.
3385
3386 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3387 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3388 * mips-irix-tdep.c: New file.
3389
3390 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3391 (mips-irix-tdep.o, solib-irix.o): New rules.
3392 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3393 solib-irix.o.
3394 * config/mips/irix6.mt (TDEPFILES): Likewise.
3395 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3396
3397 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3398
3399 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3400 disabled (via ``#if 0'') includes.
3401
3402 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3403
3404 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3405 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3406 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3407 Add support for the fpscr register.
3408 * rs6000-nat.c (regmap, fetch_inferior_registers)
3409 (store_inferior_registers, fetch_core_registers): Likewise.
3410
3411 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3412
3413 * rs6000-nat.c (language.h): Include.
3414 (special_regs): Delete this array.
3415 (regmap): New function.
3416 (fetch_register, store_register): Use regmap() to map gdb
3417 register numbers to ptrace register numbers. Also, use
3418 outputs from regmap() to make decisions regarding type of
3419 ptrace() call to make. In particular, don't compare against
3420 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3421 (fetch_inferior_registers, store_inferior_registers): Where
3422 possible, obtain register numbers from tdep struct. Don't
3423 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3424 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3425 (LAST_UISA_SP_REGNUM): Delete.
3426
3427 2002-07-25 Kevin Buettner <kevinb@redhat.com>
3428
3429 * rs6000-nat.c (ppc-tdep.h): Include.
3430 (fetch_registers, store_register, fetch_core_registers): Don't
3431 access registers[] directly. Instead, use supply_register() or
3432 regcache_collect() as appropriate.
3433 (find_toc_address): Format hex address with local_hex_string().
3434
3435 2002-07-25 Andrew Cagney <ac131313@redhat.com>
3436
3437 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3438 bfd/elf32-frv.c.
3439
3440 2002-07-24 Tom Tromey <tromey@redhat.com>
3441
3442 * jv-exp.y: Marked all strings with _().
3443 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3444 internal_error.
3445 (MethodInvocation, CastExpression, parse_number, yyerror,
3446 java_type_from_name, push_expression_name, yylex): Typo fixes.
3447
3448 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
3449
3450 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3451 (tee_file_flush, tee_file_write, tee_file_fputs)
3452 (tee_file_isatty): New.
3453 * ui-file.h (tee_file_new): Add prototype.
3454
3455 2002-07-24 Aidan Skinner <aidan@velvet.net>
3456
3457 * ada-lang.c: Change k&r style function definitions to prototyped
3458 form.
3459 * ada-typeprint.c: Change k&r style function definitions to prototyped
3460 form.
3461 * ada-valprint.c: Change k&r style function definitions to prototyped
3462 form.
3463
3464 2002-07-24 Andrew Cagney <cagney@redhat.com>
3465
3466 * README: Remove reference to remote-bug.
3467 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3468 remote-bug.c.
3469 (m88k-nat.o): Delete rule.
3470 (m88k-tdep.o): Delete rule.
3471 (remote-bug.o): Delete rule.
3472 * MAINTAINERS: Mark as obsolete.
3473 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3474 * m88k-tdep.c: Make file obsolete.
3475 * config/m88k/m88k.mh: Ditto.
3476 * config/m88k/delta88v4.mh: Ditto.
3477 * config/m88k/delta88v4.mt: Ditto.
3478 * config/m88k/delta88.mt: Ditto.
3479 * config/m88k/delta88.mh: Ditto.
3480 * remote-bug.c: Ditto.
3481 * config/m88k/tm-delta88.h: Ditto.
3482 * config/m88k/nm-delta88v4.h: Ditto.
3483 * config/m88k/xm-delta88.h: Ditto.
3484 * config/m88k/xm-dgux.h: Ditto.
3485 * config/m88k/tm-m88k.h: Ditto.
3486 * config/m88k/nm-m88k.h: Ditto.
3487 * config/m88k/tm-delta88v4.h: Ditto.
3488 * m88k-nat.c: Ditto.
3489 * cxux-nat.c: Ditto.
3490 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3491 and m88*-*-* obsolete.
3492 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3493 m88*-*-* obsolete.
3494
3495 2002-07-24 Andrew Cagney <cagney@redhat.com>
3496
3497 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3498 constant. Same for local pointer variables.
3499 (extract_signed_integer): Ditto.
3500 * defs.h (extract_unsigned_integer): Update.
3501 (extract_signed_integer): Update.
3502
3503 2002-07-24 Andrew Cagney <cagney@redhat.com>
3504
3505 * regcache.c (regcache_raw_write): Change buf parameter to a
3506 constant void pointer.
3507 (regcache_raw_read): Change buf parameter to a void pointer.
3508 (legacy_write_register_gen): Change myaddr parameter a constant
3509 void pointer.
3510 (supply_register): Change val parameter to a const void pointer.
3511 * regcache.h (regcache_raw_write): Update declaration.
3512 (regcache_raw_read): Update declaration.
3513 (supply_register): Update declaration.
3514
3515 2002-07-24 Tom Tromey <tromey@redhat.com>
3516
3517 * defs.h (gdb_readline_wrapper): Declare.
3518 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3519 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3520 * top.c (gdb_readline_wrapper): New function.
3521 (command_line_input): Use it.
3522
3523 2002-07-24 Andrew Cagney <cagney@redhat.com>
3524
3525 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3526 regcache_read and regcache_write.
3527 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3528 * regcache.c: Update.
3529 * sh-tdep.c (sh64_push_arguments): Update comment.
3530 (sh_pseudo_register_read): Update.
3531 (sh_pseudo_register_write): Update.
3532 (sh4_register_read): Update.
3533 (sh4_register_write): Update.
3534 (sh64_pseudo_register_read): Update.
3535 (sh64_pseudo_register_write): Update.
3536 (sh64_register_read): Update.
3537 (sh64_register_write): Update.
3538 * i386-tdep.c (i386_extract_return_value): Update.
3539 (i386_extract_struct_value_address): Update.
3540 (i386_extract_return_value): Update.
3541 * blockframe.c (generic_read_register_dummy): Update.
3542 (generic_call_dummy_register_unwind): Update
3543 * infrun.c (write_inferior_status_register): Update.
3544
3545 2002-07-23 Jim Blandy <jimb@redhat.com>
3546
3547 * parser-defs.h (expression_context_pc): Make this extern.
3548 (Thanks to Michael Snyder.)
3549
3550 2002-07-23 Andrew Cagney <ac131313@redhat.com>
3551
3552 GDB 5.2.1 released from 5.2 branch.
3553 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3554 * README: Update to mention 5.2.1.
3555
3556 2002-07-23 Mark Salter <msalter@redhat.com>
3557
3558 * remote.c (remote_read_bytes): Fix check for error.
3559
3560 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3561
3562 * aix-thread.c (language.h): Include.
3563 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3564 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3565 Print newlines at end of debug messages.
3566 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3567 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3568
3569 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3570
3571 * aix-thread.c (ppc-tdep.h): Include.
3572 (special_register_p): New function.
3573 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3574 (store_regs_user_thread): Use register number information from
3575 gdbarch_tdep struct instead of hardcoded offsets relative to
3576 FIRST_UISA_SP_REGNUM.
3577 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3578 special_register_p() instead of using FPLAST_REGNUM and
3579 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3580 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3581 will be MQ's register number.
3582
3583 2002-07-22 Michael Snyder <msnyder@redhat.com>
3584
3585 * aix-thread.c (ops): Rename to aix_thread_ops.
3586 (base_ops): Rename to base_target.
3587 (ops_attach): Rename to aix_thread_attach.
3588 (ops_detach): Rename to aix_thread_detach.
3589 (ops_resume): Rename to aix_thread_detach.
3590 (ops_wait): Rename to aix_thread_wait.
3591 (ops_kill): Rename to aix_thread_kill.
3592 (init_ops): Rename to init_aix_thread_ops.
3593 (ops_fetch_register): Rename to aix_thread_fetch_register.
3594 (ops_store_register): Rename to aix_thread_store_register.
3595 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3596 (ops_thread_alive): Rename to aix_thread_thread_alive.
3597 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3598 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3599 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3600 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3601 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3602 (store_regs_lib): Rename to store_regs_user_thread.
3603 (store_regs_kern): Rename to store_regs_kernel_thread.
3604
3605 2002-07-22 Michael Snyder <msnyder@redhat.com>
3606
3607 * aix-thread.c (ops_prepare_to_store): Eliminate.
3608 (init_ops): Don't initialize ops.prepare_to_store.
3609 (store_regs_kern): Pre-fetch register buffers from child,
3610 because some registers may not be in the cache. Copy
3611 regs from register cache only if they are cached.
3612 (store_regs_lib): Copy regs from register cache only
3613 if they are cached.
3614 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3615 fill_gprs64): Ditto.
3616
3617 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3618
3619 * aix-thread.c (gdb_assert.h): Include.
3620 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3621 register sizes (from register cache) match size of buffer holding
3622 register data.
3623 (fill_sprs32): Change parameter types to match those in the ptrace()
3624 buffer.
3625 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3626 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3627
3628 2002-07-22 Michael Snyder <msnyder@redhat.com>
3629
3630 * aix-thread.c (supply_sprs64): Cosmetic change.
3631 (supply_sprs32): Cosmetic change.
3632 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3633 (fill_sprs64): Use regcache_collect instead of read_register.
3634 (store_regs_lib): Use regcache_collect instead of
3635 read_register. Use fill_sprs32 instead of fill_sprs64,
3636 if debugging a 32-bit architecture.
3637 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3638 out of the register cache, instead of passing a pointer into
3639 the register cache directly to ptrace. Use regcache_collect
3640 insteaad of read_register.
3641 (ops_prepare_to_store): Use target_read_registers instead
3642 of read_register_bytes.
3643
3644 2002-07-20 Aidan Skinner <aidan@velvet.net>
3645
3646 * MAINTAINERS: Add self under write after approval.
3647
3648 2002-07-20 Aidan Skinner <aidan@velvet.net>
3649
3650 * ada-tasks.c: Change k&r style function definitions to prototyped
3651 form.
3652
3653 2002-07-19 Andrew Cagney <ac131313@redhat.com>
3654
3655 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3656 * x86-64-tdep.c: Include "objfiles.h".
3657 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3658 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3659
3660 2002-07-17 Michal Ludvig <michal@suse.cz>
3661
3662 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3663 (update_context): Initialise cfa variable.
3664
3665 2002-07-17 Michael Snyder <msnyder@redhat.com>
3666
3667 * aix-thread.c: Shorten some long lines.
3668 Bring comments into line with code spec.
3669
3670 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3671
3672 * infrun.c: Re-indent using gdb_indent.sh.
3673
3674 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3675
3676 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3677 Leave the indentation temporarily untouched, to minimize the diffs.
3678
3679 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
3680
3681 * stabsread.c: Make os9k sections of the code obsolete,
3682 for real this time.
3683 * stabsread.h: Make os9k sections of the code obsolete.
3684
3685 2002-07-18 Michal Ludvig <mludvig@suse.cz>
3686
3687 * linux-low.c (regsets_store_inferior_registers): Add free()
3688 at the end of a loop to prevent memory leak.
3689 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3690 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3691 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3692 line a comment.
3693 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3694
3695 2002-07-17 Jim Blandy <jimb@redhat.com>
3696
3697 * macrocmd.c (info_macro_command): Remove newline from error
3698 message.
3699
3700 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
3701
3702 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3703 (sh_gdbarch_init): Use it for sh-dsp.
3704
3705 2002-07-16 Kevin Buettner <kevinb@redhat.com>
3706
3707 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3708 64-bit DWARF2 format.
3709
3710 2002-07-16 Joel Brobecker <brobecker@gnat.com>
3711
3712 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3713 <sys/proc.h> when not available.
3714
3715 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3716
3717 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3718 * stabsread.c: Make os9k sections of the code obsolete.
3719 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3720 * config/i386/i386os9k.mt: Make file obsolete.
3721 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3722 (COMMON_OBS): Remove os9kread.o
3723 (SFILES): Remove os9kread.c.
3724 (os9kread.o, remote-os9k.o): Make target obsolete.
3725 * remote-os9k.c: Make file obsolete.
3726 * os9kread.c: Make file obsolete.
3727 * Makefile.in
3728
3729 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3730
3731 * NEWS: Mention that the FR30 has been made obsolete.
3732 * fr30-tdep.c: Make file obsolete.
3733 * config/fr30/tm-fr30.h: Ditto.
3734 * config/fr30/fr30.mt: Ditto.
3735 * configure.tgt: Make fr30-*-elf obsolete.
3736 * MAINTAINERS: Make fr30-elf obsolete.
3737
3738 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3739
3740 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3741 found is not inside a section.
3742
3743 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3744
3745 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3746 strerror().
3747 (pdc_realloc): Use xrealloc() instead of realloc().
3748
3749 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3750
3751 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3752 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3753 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3754 macros.
3755
3756 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3757
3758 * aix-thread.c (ptrace_check): Eliminate goto.
3759 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3760 problem.
3761
3762 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3763
3764 * aix-thread.c (gdbcmd.h): Include.
3765 (DEBUG, DBG, DBG2, dbg): Eliminate.
3766 (debug_aix_thread): New static global.
3767 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3768 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3769 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3770 invocations to DBG and DBG2 macros to test against
3771 ``debug_aix_thread'' and call fprintf_unfiltered().
3772 (_initialize_aix_thread): Add new command "set debug aix-thread".
3773
3774 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3775
3776 From Gerhard Tonn <TON@de.ibm.com>:
3777 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3778 instead of supply_register.
3779
3780 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3781
3782 * dwarf2cfi.c: Include "gdb_assert.h".
3783 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3784 non-NULL.
3785 (update_context): Do not use __func__. Add missing ``break''.
3786 (update_context): Do not use __func__.
3787
3788 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
3789
3790 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3791 and its setting. Set gdbarch instruction printing functions
3792 directly. For non-rs6000 case use new function
3793 gdb_print_insn_powerpc.
3794 (gdb_print_insn_powerpc): New function.
3795
3796 2002-07-13 Andrew Cagney <ac131313@redhat.com>
3797
3798 * NEWS: Mention that the d30v has been marked obsolete.
3799 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3800 * configure.tgt: Mark d30v-*-* as obsolete.
3801 * d30v-tdep.c: Mark file as obsolete.
3802 * config/d30v/d30v.mt: Ditto.
3803 * config/d30v/tm-d30v.h: Ditto.
3804
3805 2002-07-13 Aidan Skinner <aidan@velvet.net>
3806
3807 * ada-tasks.c (add_task_entry): replace calls to
3808 malloc() with xmalloc
3809 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3810
3811 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3812 ada_finish_decode_line_1, all_sals_for_line
3813 ada_breakpoint_rewrite): replace calls to free() with xfree()
3814
3815 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3816
3817 From Nicholas Duffek (with minor changes by Martin Hunt,
3818 Louis Hamilton, and Kevin Buettner):
3819 * aix-thread.c: New file.
3820
3821 2002-07-12 Petr Sorfa <petrs@caldera.com>
3822
3823 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3824 complaint for invalid attribute class or form.
3825 (read_func_scope): DW_AT_frame_base
3826 better handling of DW_AT_block*.
3827 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3828 better handling of DW_AT_block*.
3829 (read_common_block): DW_AT_location
3830 better handling of DW_AT_block*.
3831 (read_partial_die): DW_AT_location better handling
3832 of DW_AT_block*.
3833 (new_symbol): DW_AT_external better handling of
3834 DW_AT_block*. Proper initialization of variable
3835 "addr".
3836 (attr_form_is_block): New function that returns true
3837 if the attribute's form is of DW_FORM_block*.
3838
3839 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3840
3841 * valops.c (find_method_list): Remove comment about
3842 removed STATIC_MEMFUNCP argument.
3843 (value_find_oload_method_list): Likewise.
3844
3845 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3846
3847 From Nicholas Duffek:
3848 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3849 target_new_objfile_hook.
3850
3851 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3852
3853 From Nicholas Duffek:
3854 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3855 csect.
3856
3857 2002-07-12 Andrew Cagney <cagney@redhat.com>
3858
3859 * MAINTAINERS: Mention --enable-sim-build-warnings.
3860 (m68hc11-elf): Disable sim build warnings.
3861 (m32r-elf): Mark as broken obsolete candidate.
3862 (x86_64-linux-gnu): Mark as buildable with -Werror.
3863 (arm-elf): Change -w to ``,'' which enables warnings but not
3864 -Werror.
3865
3866 2002-07-12 Andrew Cagney <ac131313@redhat.com>
3867
3868 * bcache.h: Update copyright.
3869 (struct bstring, struct bcache): Move definition to "bcache.c".
3870 Replaced by opaque declaration.
3871 (bcache_xfree): Replace free_bcache.
3872 (bcache_xmalloc, bcache_memory_used): Declare.
3873
3874 * bcache.c: Update copyright.
3875 (struct bstring, struct bcache): Moved to here from "bcache.h".
3876 Update comments.
3877 (bcache_xmalloc, bcache_memory_used): New functions.
3878 (bcache_xfree): Replace function free_bcache.
3879
3880 * Makefile.in (objfiles.o): Add $(bcache_h).
3881 (objfiles_h): Remove $(bcache_h).
3882 (symfile.o): Add $(bcache_h).
3883
3884 * symmisc.c: Update copyright.
3885 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3886 (print_objfile_statistics): Use bcache_memory_used.
3887
3888 * symfile.c: Include "bcache.h".
3889 (reread_symbols): Use bcache_xfree.
3890 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3891 (add_psymbol_to_list): Pass psymbol_cache by value.
3892 (add_psymbol_with_dem_name_to_list): Ditto.
3893
3894 * objfiles.h: Update copyright.
3895 (struct bcache): Declare opaque. Do not include "bcache.h".
3896 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3897 bcache'' pointers.
3898 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3899
3900 * objfiles.c: Include "bcache.h". Update copyright.
3901 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3902 macro_cache.
3903 (free_objfile): Use bcache_xfree.
3904
3905 2002-07-11 Grace Sainsbury <graces@redhat.com>
3906
3907 * monitor.c (monitor_fetch_register): Make name a constant.
3908 (monitor_store_register): Same.
3909
3910 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
3911
3912 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3913 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3914 (finish_block) For non-function blocks, hash the symbol table. For
3915 function blocks, mark the symbol table as unhashed.
3916 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3917 (msymbol_hash_iw): Likewise.
3918 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3919 value.
3920 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3921 (lookup_minimal_symbol): Likewise for both.
3922 * symtab.h (struct block): Add `hashtable' flag. Comment the
3923 hashtable.
3924 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3925 (ALL_BLOCK_SYMBOLS): Update.
3926 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3927 (struct symbol): Add `hash_next' pointer.
3928 * symtab.c (lookup_block_symbol): Search using the hash table when
3929 possible.
3930 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3931 (search_symbols, find_addr_symbol): Likewise.
3932
3933 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3934 (read_dst_symtab): Likewise.
3935 * jv-lang.c (get_java_class_symtab): Likewise.
3936 * mdebugread.c: Include "gdb_assert.h".
3937 (shrink_block): Assert that the block being modified is not hashed.
3938 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3939 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3940 symbols.
3941 (dump_symtab): Recognize hashed blocks.
3942 * printcmd.c (print_frame_args): Assert that function blocks do not
3943 have hashed symbol tables.
3944 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3945 (fill_in_ada_prototype, debug_print_block): Likewise.
3946 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3947
3948 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
3949
3950 * stack.c (print_frame): Use result of frame_address_in_block()
3951 instead of fi->pc when evaluating symbols.
3952 (backtrace_command_1): Ditto.
3953
3954 2002-07-11 Andrew Cagney <cagney@redhat.com>
3955
3956 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3957 Make static.
3958
3959 * arm-tdep.c (arm_register_name): Make return type constant.
3960
3961 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3962
3963 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3964 prototype.
3965 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3966 * s390-tdep.c (s390_fp_regnum): Ditto.
3967 (s390_read_fp): Ditto.
3968 (s390_pop_frame): Ditto.
3969 (_initialize_s390_tdep): Ditto.
3970 * remote.c (get_remote_state): Ditto.
3971 * procfs.c (mappingflags): Ditto.
3972 * memattr.c (_initialize_mem): Ditto.
3973 * mcore-tdep.c (mcore_pop_frame): Ditto.
3974 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3975 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3976 * language.c (set_case_str): Ditto.
3977 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3978 * frv-tdep.c (new_variant): Ditto.
3979 (frv_stopped_data_address): Ditto.
3980 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3981 (context_alloc): Ditto.
3982 (frame_state_alloc): Ditto.
3983 (unwind_tmp_obstack_init): Ditto.
3984 (unwind_tmp_obstack_free): Ditto.
3985 (cfi_read_fp): Ditto.
3986 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3987 (cris_pop_frame): Ditto.
3988 * c-lang.c (scanning_macro_expansion): Ditto.
3989 (finished_macro_expansion): Ditto.
3990 (c_preprocess_and_parse): Ditto.
3991 * gdbarch.sh: Ditto.
3992 * gdbarch.h, gdbarch.c: Regenerate.
3993 * config/mn10200/tm-mn10200.h: Adjust indentation.
3994 * target.c: Adjust indentation.
3995 * symtab.h: Adjust indentation.
3996 * stabsread.h: Adjust indentation.
3997 * remote-es.c: Adjust indentation.
3998 * os9kread.c: Adjust indentation.
3999
4000 2002-07-10 Andrew Cagney <ac131313@redhat.com>
4001
4002 * wince.c (_initialize_wince): Rename _initialize_inftarg.
4003 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
4004
4005 2002-07-10 Grace Sainsbury <graces@redhat.com>
4006
4007 * NEWS: Mention m68k, mcore multi-arching.
4008 * MAINTAINERS: Change status of m68k, mcore to reflect
4009 multi-arching.
4010
4011 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
4012
4013 * valops.c (find_overload_match): Free oload_syms.
4014
4015 2002-07-09 Joel Brobecker <brobecker@gnat.com>
4016
4017 Define HAVE_SYS_PROC_H if sys/proc.h exists
4018 * configure.in: Add check for sys/proc.h
4019 * config.in: Regenerate.
4020 * configure: Regenerate.
4021
4022 2002-07-09 Grace Sainsbury <graces@redhat.com>
4023
4024 * config/m68k/tm-m68k.h: Remove macros wrapped in
4025 #if !GDB_MULTI_ARCH.
4026
4027 2002-07-08 Andrew Cagney <ac131313@redhat.com>
4028
4029 * config.in, configure: Regenerate.
4030
4031 2002-07-08 Mark Kettenis <kettenis@gnu.org>
4032
4033 * dwarf2cfi.c: Include "gcore.h".
4034 (execute_stack_op): Fix implementation of the
4035 DW_OP_deref and DW_OP_deref_size operators by letting do their
4036 lookup in the target.
4037
4038 2002-07-07 Mark Kettenis <kettenis@gnu.org>
4039
4040 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
4041 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
4042 tdep->sc_sp_offset.
4043
4044 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
4045
4046 Fix PR gdb/595, gdb/602
4047 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
4048 Don't call value_cast, just read the vtable pointer; update comments
4049 to match.
4050
4051 2002-07-05 Grace Sainsbury <graces@redhat.com>
4052
4053 * config/mcore/tm-mcore.h: Remove file.
4054 * config/mcore/mcore.mt: Remove definition of TM_FILE
4055 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
4056
4057 2002-07-05 Mark Kettenis <kettenis@gnu.org>
4058
4059 * i386bsd-tdep.c: Include "gdb_string.h".
4060
4061 2002-07-04 Grace Sainsbury <graces@redhat.com>
4062
4063 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
4064 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
4065 mcore-tdep.
4066 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
4067 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
4068 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
4069 (RETVAL_REGNUM): Move macros from tm-mcore.h
4070 (mcore_reg_struct_has_addr): New function.
4071 (mcore_gdbarch_init): Added initializations for the macros removed
4072 from tm-mcore.h.
4073
4074 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4075
4076 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
4077 traditonal string branding within the ELF header.
4078
4079 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
4080
4081 * symtab.c (remove_params): New function.
4082 (make_symbol_overload_list): Use it instead of cplus_demangle.
4083 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
4084
4085 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4086
4087 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
4088
4089 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
4090 New variables.
4091 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
4092 and tdep->sigtramp_end.
4093 * i386obsd-nat.c: New file.
4094 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
4095
4096 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
4097 Don't call get_current_frame().
4098
4099 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
4100
4101 * i386-nat.c (child_post_startup_inferior): New function
4102 calling i386_cleanup_dregs if
4103 I386_USE_GENERIC_WATCHPOINTS is defined.
4104 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
4105 conditional to acknowledge that i386-nat.c has its
4106 own child_post_startup_inferior function.
4107
4108 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4109
4110 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
4111 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
4112 instead of MAX_REGISTER_RAW_SIZE.
4113 (i386_extract_return_value, i386_extract_struct_value_address):
4114 Convert to use regcache.
4115 (i386_gdbarch_init): Set max_register_raw_size and
4116 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
4117 Set extract_return_value and extract_struct_value_address instead
4118 of their deprecated variants.
4119
4120 Convert i386 target to generic dummy frames.
4121 * i386-tdep.c: Include "symfile.h".
4122 (i386_frameless_signal_p): Consider a function to be frameless if
4123 the pc points at the first instruction of the function.
4124 (i386_frame_chain): Handle (generic) call dummies.
4125 (i386_frame_saved_pc): Likewise.
4126 (i386_frame_init_saved_regs): Remove code dealing with call
4127 dummies on the stack.
4128 (i386_push_dummy_frame): Removed.
4129 (i386_call_dummy_words): Removed.
4130 (i386_fix_call_dummy): Removed.
4131 (i386_push_return_address): New function.
4132 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
4133 parameter, and don't call get_current_frame.
4134 (i386_pop_frame): New function.
4135 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
4136 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
4137 entry_point_address, set call_dummy_breakpoint_offset to 0, set
4138 call_dummy_length to 0, set call_dummy_words to NULL, set
4139 sizeof_call_dummy_words to 0, set fix_call_dummy to
4140 generic_fix_call_dummy, set pc_in_call_dummy to
4141 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
4142 generic_push_dummy_frame, set push_return_address to
4143 i386_push_return_address and set frame_chain_valid to
4144 generic_file_frame_chain_valid.
4145
4146 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4147
4148 * gdbarch.sh (struct regcache): Add opaque declaration.
4149 (EXTRACT_RETURN_VALUE): New architecture method.
4150 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4151 * gdbarch.h, gdbarch.c: Regenerate.
4152 * arch-utils.c (legacy_extract_return_value): New function.
4153 * arch-utils.h (legacy_extract_return_value): Declare.
4154 * values.c (value_being_returned): Re-enable code handling
4155 EXTRACT_STRUCT_VALUE_ADDRESS. Move
4156 deprecated_grub_regcache_for_registers call to block handling
4157 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4158 (EXTRACT_RETURN_VALUE): Do not define.
4159
4160 2002-07-03 Grace Sainsbury <graces@redhat.com>
4161
4162 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4163 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4164 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4165 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4166 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4167 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4168 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4169 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4170 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4171 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4172 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4173 argument so the function fits the prototype in the architecture
4174 vector.
4175 (mcore_pop_frame): Remove argument so the function fits the
4176 prototype. Use get_current_frame instead of the argument.
4177 (mcore_push_arguments): Change type of struct_return so the
4178 function can be used in the architecture vector.
4179 (mcore_store_struct_return): Add.
4180 (mcore_frame_init_saved_regs): Add.
4181 (mcore_gdbarch_init): Add function calls to replace the macros
4182 removed from tm-mcore.h
4183
4184 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4185
4186 * infcmd.c (print_return_value): Remove compatibility code calling
4187 deprecated_grub_regcache_for_registers.
4188
4189 * values.c: Include "regcache.h".
4190 (value_being_returned): Update. Use
4191 deprecated_grub_regcache_for_registers to extract the register
4192 buffer address.
4193 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4194 ``struct regcache''.
4195 * Makefile.in (values.o): Add dependency on $(regcache_h).
4196
4197 * inferior.h (run_stack_dummy): Change type of second parameter to
4198 a ``struct regcache''.
4199 * valops.c (hand_function_call): Change type of retbuf to ``struct
4200 regcache''. Allocate using regcache_xmalloc, clean using
4201 make_cleanup_regcache_xfree.
4202 * infcmd.c (run_stack_dummy): Update. Use
4203 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4204
4205 * regcache.c (do_regcache_xfree): New function.
4206 (make_cleanup_regcache_xfree): New function.
4207 * regcache.h (make_cleanup_regcache_xfree): Declare.
4208
4209 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4210
4211 * event-top.c (command_line_handler): Don't read past
4212 beginning of buffer.
4213
4214 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4215
4216 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4217 struct frame_id.
4218 (varobj_create): Store frame_id for root.
4219 (varobj_gen_name): Use xasprintf.
4220 (varobj_update): Save and restore frame using get_frame_id() and
4221 frame_find_by_id().
4222 (create_child): Use xasprintf.
4223 (new_root_variable): Initialize frame_id.
4224 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4225 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4226 to prevent memory leak.
4227
4228 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4229
4230 * valops.c (hand_function_call): Move declaration of retbuf to
4231 start of function, allocate using malloc, add a cleanup but before
4232 the inf_status cleanup, cleanup the buffer. Rename local variable
4233 old_chain to inf_status_cleanup.
4234
4235 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4236
4237 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4238
4239 * cli/cli-decode.c (cmd_func_p): New function.
4240 (cmd_func): New function.
4241
4242 * command.h: Add cmd_func() and cmd_func_p().
4243
4244 2002-07-03 Grace Sainsbury <graces@redhat.com>
4245
4246 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4247 (REGISTER_SIZE): Remove.
4248 (MAX_REGISTER_RAW_SIZE): Remove.
4249 (REGISTER_VIRTUAL_TYPE): Remove.
4250 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4251 (REGISTER_NAME): Remove.
4252 (USE_GENERIC_DUMMY_FRAMES): Remove.
4253 (CALL_DUMMY): Remove.
4254 (CALL_DUMMY_START_OFFSET): Remove.
4255 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4256 (CALL_DUMMY_LOCATION): Remove.
4257 (FIX_CALL_DUMMY): Remove.
4258 (CALL_DUMMY_ADDRESS): Remove.
4259 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4260 (SAVE_DUMMY_FRAME_TOS): Remove.
4261 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4262 (mcore_register_virtual_type): New function.
4263 (mcore_register_byte): New function.
4264 (mcore_register_size): New function.
4265 (mcore_register_name): New function.
4266 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4267 macros removed from tm-mcore.h.
4268 (mcore_dump_tdep): Add.
4269 (_initialize_mcore_tdep): Add gdbarch_register call.
4270
4271 2002-07-03 Mark Kettenis <kettenis@gnu.org>
4272
4273 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4274 frameless_look_for_prologue, such that we actually call this
4275 function.
4276
4277 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4278
4279 * frame.h (frame_address_in_block): New function.
4280
4281 * blockframe.c (frame_address_in_block): New function extracted
4282 from get_frame_block().
4283 (get_frame_block): Use frame_address_in_block().
4284 (block_innermost_frame): Use frame_address_in_block() to match
4285 the frame pc address against the block boundaries rather than
4286 the frame pc directly. This prevents a failure when a frame pc
4287 is actually a return-address pointing immediately after the end
4288 of the given block.
4289
4290 2002-07-02 Grace Sainsbury <graces@redhat.com>
4291
4292 * MAINTAINERS: Add self under write after approval.
4293
4294 2002-07-02 Grace Sainsbury <graces@redhat.com>
4295
4296 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4297 used in architecture vector. The default is
4298 m68k_local_breakpoint_from_pc.
4299 (m68k_local_breakpoint_from_pc): Add.
4300 (enum): Add register numbers from tm-m68k.h.
4301 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4302 vector.
4303 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4304 GDB_MULTI_ARCH_PARTIAL.
4305 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4306 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4307 m68k-tdep.c.
4308 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4309 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4310 to enum in m68k-tdep.c
4311
4312 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4313
4314 * solib-osf.c (open_map): Compute the list of shared libraries
4315 loaded by the inferior, rather than the list of libraries loaded
4316 by GDB itself. Otherwise, GDB ends up reading the symbols from
4317 the wrong shared libraries...
4318
4319 2002-07-02 Mark Kettenis <kettenis@gnu.org>
4320
4321 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4322 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4323 macros.
4324 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4325 Remove functions.
4326 (FRAMELESS_SIGNAL): Remove function.
4327 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4328 i386_linux_saved_pc_after_call): Removed.
4329 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4330 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4331 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4332
4333 * i386-tdep.c (i386_frameless_signal_p): New function.
4334 (i386_frame_chain): Deal with frameless signals.
4335 (i386_sigtramp_saved_sp): New function.
4336 (i386_frame_saved_pc): Deal with frameless signals.
4337 (i386_saved_pc_after_call): Make sure the correct value is
4338 returned just after entry into a sigtramp.
4339 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4340 i386fbsd4_sc_sp_offset): New variables.
4341 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4342 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4343 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4344 similiar to what we already did for sc_pc_offset.
4345 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4346 tdep->sc_sp_offset.
4347
4348 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4349
4350 2002-07-02 Michal Ludvig <mludvig@suse.cz>
4351
4352 * config/i386/tm-x86-64linux.h: New.
4353 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4354 definitions.
4355 * config/i386/nm-x86-64.h: Rename to ...
4356 * config/i386/nm-x86-64linux.h: ... this one.
4357 * config/i386/x86-64linux.mh: Reflect the above change.
4358
4359 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4360
4361 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4362 with sigcontext_addr. Add sc_sp_offset.
4363 (i386bsd_sigtramp_saved_pc): Remove prototype.
4364 (i386bsd_sicontext_addr): Add prototype.
4365 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4366 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4367 (i386_svr4_sigtramp_saved_pc): Removed.
4368 (i386_svr4_sigcontext_addr): New function.
4369 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4370 Initialize tdep->sigcontext_addr instead. Initialize
4371 tdep->sc_pc_offset and tdep->sc_sp_offset.
4372 (i386_gdbarch_init): Likewise.
4373 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4374 any more.
4375 (i386bsd_sigtramp_saved_pc): Remove function.
4376 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4377 Initialize tdep->sigcontext_addr instead. Initialize
4378 tdep->sc_pc_offset.
4379 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4380 of tdep->sigtramp_saved_pc.
4381 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4382 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4383 instead.
4384
4385 * i386-tdep.c (i386_frameless_function_invocation,
4386 i386_frame_num_args, i386_frame_init_saved_regs,
4387 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4388 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4389 i386_extract_return_value, i386_store_return_value,
4390 i386_extract_struct_value_address, i386_register_virtual_type,
4391 i386_register_convertible, i386_register_convert_to_virtual,
4392 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4393 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4394 static.
4395
4396 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4397
4398 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4399
4400 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4401 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4402 this macro. Include "value.h".
4403
4404 2002-06-30 Aidan Skinner <aidan@velvet.net>
4405
4406 * ada-exp.tab.c: remove as it's a generated file
4407 * ada-lex.c: remove as it's a generated file
4408
4409 2002-06-30 Mark Kettenis <kettenis@gnu.org>
4410
4411 * config/i386/tm-i386.h (struct frame_info, struct
4412 frame_saved_regs, struct value, struct type): Remove forward
4413 declarations.
4414
4415 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4416 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4417 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4418 (FILL_FPXREGSET): Define.
4419
4420 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4421
4422 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4423 i[3456]86-*-netbsd* case.
4424 * config/i386/tm-obsd.h: Removed.
4425 * config/i386/obsd.mt: Removed.
4426 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4427 core-aout.o.
4428 (MH_CFLAGS): Add -DYYDEBUG=0.
4429
4430 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4431 i386nbsd_sc_pc_offset on OpenBSD too.
4432
4433 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4434 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4435 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4436 define.
4437 * i386bsd-tdep.c: Include "arch-utils.h".
4438 (i386bsd_aout_in_solib_call_trampoline): New function.
4439 (i386bsd_init_abi): Set in_solib_call_trampoline to
4440 i386bsd_aout_in_solib_call_trampoline.
4441 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4442 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4443
4444 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4445
4446 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4447 (struct obstack, struct bcache): Add opaque declarations.
4448 * Makefile.in (macrotab_h): Update
4449
4450 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4451
4452 * blockframe.c (generic_find_dummy_frame): Change return type to
4453 ``struct regcache''.
4454 (struct dummy_frame): Replace field ``registers'' with regcache, a
4455 struct regcache object.
4456 (generic_find_dummy_frame): Update.
4457 (generic_push_dummy_frame): Update. Use regcache_xfree,
4458 regcache_xmalloc and regcache_cpy.
4459 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4460 regcache_xfree.
4461 (deprecated_generic_find_dummy_frame): Update.
4462 (generic_read_register_dummy): Update. Use
4463 regcache_read_as_address.
4464 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4465 (generic_get_saved_register): Update. Use regcache_read.
4466
4467 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4468
4469 * Makefile.in (objfiles_h): Add $(bcache_h).
4470 * objfiles.h: Include "bcache.h".
4471
4472 * Makefile.in (symtab_h): Remove $(bcache_h).
4473 * symtab.h: Do not include "bcache.h".
4474
4475 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4476
4477 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4478 generic_func_frame_chain_valid.
4479
4480 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4481
4482 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4483 * config/i386/tm-fbsd.h: Likewise.
4484
4485 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4486
4487 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4488 generic_unwind_get_saved_register.
4489
4490 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4491
4492 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4493 * regcache.c (supply_register): Add missing argument to
4494 register_buffer call.
4495
4496 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4497
4498 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4499 Solaris /bin/grep does not not like it. From Peter Schauer.
4500
4501 2002-06-26 Tom Tromey <tromey@redhat.com>
4502
4503 * command.h (add_setshow_cmd): Declare.
4504 (add_setshow_cmd_full): Declare.
4505 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4506 returns void. Use add_setshow_cmd_full.
4507 (add_setshow_cmd_full): New function.
4508 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4509 (add_setshow_boolean_cmd): Likewise.
4510
4511 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4512
4513 * config/vax/tm-vax.h: Protect from multiple inclusion.
4514 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4515 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4516 * config/vax/tm-vaxbsd.h: ...here. New file.
4517 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4518
4519 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4520
4521 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4522 (BELIEVE_PCC_PROMOTION): Remove.
4523 (AP_REGNUM): Move to...
4524 * config/vax/nm-vax.h: ...here.
4525 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4526 (vax_breakpoint_from_pc): New function.
4527 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4528 and gdbarch_believe_pcc_promotion.
4529
4530 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4531
4532 * Makefile.in (vax_tdep_h): Define.
4533 (vax-tdep.o): Use $(vax_tdep_h).
4534 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4535 (vax_dump_tdep): New function.
4536 (_initialize_vax_tdep): Register vax_dump_tdep.
4537 * vax-tdep.h: Include osabi.h.
4538 (struct gdbarch_tdep): New.
4539
4540 2002-06-26 Andrew Cagney <cagney@redhat.com>
4541
4542 * frame.h (deprecated_generic_find_dummy_frame): Rename
4543 generic_find_dummy_frame.
4544 * blockframe.c (generic_find_dummy_frame): Make static.
4545 (deprecated_generic_find_dummy_frame): New function.
4546 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4547 generic_find_dummy_frame with deprecated_find_dummy_frame.
4548 (sh64_nofp_frame_init_saved_regs): Ditto.
4549 (sh_fp_frame_init_saved_regs): Ditto.
4550 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4551 (s390_frame_chain): Ditto.
4552 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4553
4554 2002-06-26 Grace Sainsbury <graces@redhat.com>
4555
4556 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4557 gdbarch vector are at the top.
4558 (NUM_REGS): Remove.
4559 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4560 (FRAME_ARGS_ADDRESS): Remove.
4561 (FRAME_LOCALS_ADDRESS): Remove.
4562 (FRAME_NUM_ARGS): Remove.
4563 (FRAME_ARGS_SKIP): Remove.
4564 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4565 (m68k_gdbarch_init): Add gdbarch initializations for macros
4566 undefined in tm-m68k.h
4567
4568 2002-06-26 Grace Sainsbury <graces@redhat.com>
4569
4570 * monitor.h: Add the function regname to monitor_ops
4571 structure. This way NUM_REGS does not have to be a constant.
4572 * monitor.c (monitor_fetch_register): Added support for regname
4573 function. The function is called if the array regnames is NULL.
4574 (monitor_store_register): Same.
4575 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4576 regnames array.
4577 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4578 cpu32bug_cmds.regname to point to new function.
4579 * abug-rom.c (abug_regname): Same as above.
4580 (init_abug_cmds): Same.
4581 * dbug-rom.c (dbug_regname): Same as above.
4582 (init_dbug_cmds): Same.
4583 * remote-est.c (est_regname): Same.
4584 (init_est_cmds): Same.
4585 * rom68k-rom.c (rom68k_regname): Same.
4586 (init_rom68k_cmds): Same.
4587
4588 2002-06-25 Tom Tromey <tromey@redhat.com>
4589
4590 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4591
4592 2002-06-25 Andrew Cagney <cagney@redhat.com>
4593
4594 * infrun.c (stop_registers): Change variable's type to ``struct
4595 regcache'''.
4596 (xmalloc_inferior_status): Delete function.
4597 (free_inferior_status): Delete function.
4598 (normal_stop): Use regcache_cpy.
4599 (struct inferior_status): Change type of fields ``stop_registers''
4600 and ``registers'' to ``struct regcache''.
4601 (write_inferior_status_register): Use regcache_write.
4602 (save_inferior_status): Instead of calling
4603 xmalloc_inferior_status, allocate the inf_status buffer directly.
4604 Use regcache_dup_no_passthrough and regcache_dup to save the
4605 buffers.
4606 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4607 Replace the stop_registers regcache instead of overriding it. Use
4608 regcache_xfree. Instead of calling free_inferior_status, xfree
4609 the buffer directly.
4610 (discard_inferior_status): Use regcache_xfree. Instead of calling
4611 free_inferior_status, xfree the buffer directly.
4612 (build_infrun): Use regcache_xmalloc.
4613 (_initialize_infrun): Delete redundant call to build_infrun.
4614
4615 * Makefile.in (infcmd.o): Add $(regcache_h).
4616
4617 * infcmd.c: Include "regcache.h".
4618 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4619 obtain the address of `stop_registers' register buffer.
4620 (print_return_value): Ditto.
4621
4622 * inferior.h (struct regcache): Add opaque declaration.
4623 (stop_registers): Change variable's declared type to ``struct
4624 regcache''.
4625
4626 2002-06-24 Tom Tromey <tromey@redhat.com>
4627
4628 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4629 * target.c (initialize_targets): Fixed typo in
4630 trust-readonly-sections `show' documentation.
4631
4632 * main.c: Marked all strings with _().
4633
4634 2002-06-24 Don Howard <dhoward@redhat.com>
4635
4636 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4637 that means max CORE_ADDR+1.
4638 (lookup_mem_region): Ditto.
4639 (mem_info_command): Ditto.
4640
4641 2002-06-24 Grace Sainsbury <graces@redhat.com>
4642
4643 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4644 (REGISTER_BYTES_OK): Remove.
4645 (REGISTER_BYTES): Remove.
4646 (STORE_STRUCT_RETURN): Remove.
4647 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4648 (STORE_RETURN_VALUE): Remove.
4649 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4650 (FRAME_CHAIN): Remove.
4651 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4652 (FRAME_SAVED_PC): Remove.
4653 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4654 (m68k_store_struct_return): Add.
4655 (m68k_deprecated_extract_return_value): Add.
4656 (m68k_deprecated_extract_struct_value_address): Add.
4657 (m68k_store_return_value): Add.
4658 (m68k_frame_chain): Add.
4659 (m68k_frameless_function_invocation): Add.
4660 (m68k_frame_saved_pc): Add.
4661 (m68k_gdbarch_init): added set_gdbarch calls for new
4662 functions and deleted macros.
4663
4664 2002-06-23 Tom Tromey <tromey@redhat.com>
4665
4666 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4667 (ALLDEPFILES): Likewise.
4668 (udiheaders): Removed.
4669 (udip2soc.o): Likewise.
4670 (udi2go32.o): Likewise.
4671 (udr.o): Likewise.
4672 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4673
4674 2002-06-22 Andrew Cagney <ac131313@redhat.com>
4675
4676 * infrun.c (_initialize_infrun): Delete unnecessary call to
4677 build_infrun.
4678
4679 * regcache.h: Update comments describing the regcache_cpy family
4680 of functions.
4681 (regcache_save, regcache_restore): Delete declaration.
4682 (regcache_save_no_passthrough): Delete declaration.
4683 (regcache_restore_no_passthrough): Delete declaration.
4684 * regcache.c (regcache_save): Delete function.
4685 (regcache_save_no_passthrough): Delete function.
4686 (regcache_restore): Delete function.
4687 (regcache_restore_no_passthrough): Delete function.
4688
4689 2002-06-21 Andrew Cagney <ac131313@redhat.com>
4690
4691 * config/m68k/tm-m68k.h: Fix typo.
4692 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4693 (m68k_frame_init_saved_regs): Declare.
4694
4695 2002-06-21 Jim Blandy <jimb@redhat.com>
4696
4697 Remove some vestiges of Harris 88k support.
4698 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4699 register numbering quirk.
4700 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4701 odd symbols occurring in Harris 88k ELF targets.
4702
4703 2002-06-21 Tom Tromey <tromey@redhat.com>
4704
4705 * gdb_locale.h: New file.
4706 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4707 (defs_h): Added gdb_locale.h.
4708 * configure, config.in: Rebuilt.
4709 * configure.in (PACKAGE): Define.
4710 * defs.h: Include gdb_locale.h.
4711 * main.c (captured_main): Call setlocale, bindtextdomain,
4712 textdomain.
4713
4714 2002-06-21 Dave Brolley <brolley@redhat.com>
4715
4716 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4717 * config/frv/frv.mt: New file.
4718 * config/frv/tm-frv.h: New file.
4719 * configure.tgt: Support frv-*-*.
4720 * Makefile.in (frv-tdep.o): New target.
4721 * frv-tdep.c: New file.
4722 * NEWS: Mention frv.
4723
4724 2002-06-21 Dave Brolley <brolley@redhat.com>
4725
4726 * MAINTAINERS: Add self to "Write After Approval" list.
4727
4728 2002-06-21 Grace Sainsbury <graces@redhat.com>
4729
4730 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4731 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4732 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4733 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4734 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4735
4736 * m68k-tdep.c: Include arch-utils.h
4737 (m68k_register_raw_size): Add.
4738 (m68k_register_virtual_size): Add.
4739 (m68k_register_virtual_type): Add.
4740 (m68k_register_name): Add.
4741 (m68k_stack_align): Add.
4742 (m68k_register_byte): Add.
4743 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4744 tm-m68k.h.
4745
4746 2002-06-21 Grace Sainsbury <graces@redhat.com>
4747
4748 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4749 m68k_find_saved_regs.
4750 (m68k_pop_frame): Removed saved_regs structure, and replaced
4751 references to it with frame->saved_regs.
4752 (m68k_gdbarch_init): Added function calls to initialize the
4753 gdbarch structure.
4754 (m68k_fix_call_dummy): Add.
4755 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4756 (CALL_DUMMY): Remove.
4757 (CALL_DUMMY_LENGTH): Remove.
4758 (CALL_DUMMY_START_OFFSET): Remove.
4759 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4760 (FIX_CALL_DUMMY): Remove.
4761 (PUSH_DUMMY_FRAME): Remove.
4762 (POP_FRAME): Remove.
4763
4764 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4765
4766 * parse.c (parse_fprintf): New function used to avoid calls to
4767 fprintf in bison parser generated debug code.
4768 * parser-defs.h: Declaration of new parse_fprintf function.
4769 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4770 Set YYDEBUG to 1 by default.
4771 Set YYFPRINTF as parse_fprintf.
4772
4773 2002-06-21 Michal Ludvig <mludvig@suse.cz>
4774
4775 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4776 encoding anymore.
4777 (pointer_encoding, enum ptr_encoding): New.
4778 (execute_cfa_program): Take care about pointer encoding.
4779 (dwarf2_build_frame_info): Only call parse_frame_info for
4780 .debug_frame and .eh_frame.
4781 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4782 fixed augmentation handling, added relative addressing,
4783 ignore duplicate FDEs. Added comments.
4784 * dwarf2cfi.c: Reindented.
4785
4786 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
4787
4788 * event-top.c (command_handler): Don't use space_at_cmd_start
4789 unless there is sbrk() on the host. Assign time and space data
4790 to union fields of the appropriate length.
4791
4792 2002-06-20 Michal Ludvig <mludvig@suse.cz>
4793
4794 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4795 x86_64_register_name. Return type changed to 'const char *'.
4796 (x86_64_register_name2nr): Rename to x86_64_register_number.
4797 (x86_64_gdbarch_init): Update to reflect the change.
4798 * x86-64-tdep.h: Ditto.
4799 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4800 (supply_fpregset): Ditto.
4801
4802 2002-06-19 Andrew Cagney <cagney@redhat.com>
4803
4804 * regcache.h: Update copyright.
4805 (struct regcache, struct gdbarch): Add opaque declarations.
4806 (current_regcache): Declare global variable.
4807 (regcache_read, regcache_write): Add gdbarch parameter.
4808 (regcache_save, regcache_save_no_passthrough)
4809 (regcache_restore, regcache_restore_no_passthrough)
4810 (regcache_dup, regcache_dup_no_passthrough)
4811 (regcache_cpy, regcache_cpy_no_passthrough)
4812 (deprecated_grub_regcache_for_registers)
4813 (deprecated_grub_regcache_for_register_valid)
4814 (regcache_valid_p): Add function declarations.
4815
4816 * regcache.c: Update copyright.
4817 (regcache_descr_handle): New global variable.
4818 (struct regcache_descr): Define.
4819 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4820 (regcache_descr, xfree_regcache_descr): New functions.
4821 (struct regcache): Define.
4822 (regcache_xmalloc, regcache_xfree): New functions.
4823 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4824 (regcache_dup, regcache_dup_no_passthrough): New functions.
4825 (regcache_valid_p, regcache_read_as_address): New functions.
4826 (deprecated_grub_regcache_for_registers): New function.
4827 (deprecated_grub_regcache_for_register_valid): New function.
4828 (current_regcache): New global variable.
4829 (register_buffer): Add regcache parameter. Update calls.
4830 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4831 (read_register_gen, write_register_gen): Update register_buffer
4832 call. Test for legacy_p instead of gdbarch_register_read_p or
4833 gdbarch_register_write_p.
4834 (regcache_collect): Update register_buffer call.
4835 (build_regcache): Rewrite. Use deprecated grub functions.
4836 (regcache_save, regcache_save_no_passthrough): New functions.
4837 (regcache_restore, regcache_restore_no_passthrough): New
4838 functions.
4839 (_initialize_regcache): Create the regcache_data_handle. Swap
4840 current_regcache global variable.
4841
4842 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4843 parameter to regcache_read and regcache_write calls.
4844 (sh4_register_read): Ditto.
4845 (sh64_pseudo_register_read): Ditto.
4846 (sh64_register_read): Ditto.
4847 (sh_pseudo_register_write): Ditto.
4848 (sh4_register_write): Ditto.
4849 (sh64_pseudo_register_write): Ditto.
4850 (sh64_register_write): Ditto.
4851
4852 * defs.h (XCALLOC): Define.
4853
4854 2002-06-19 Grace Sainsbury <graces@redhat.com>
4855
4856 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4857 * m68k-tdep.c (m68k_gdbarch_init): Added.
4858 (m68k_dump_tdep): Added.
4859
4860 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4861
4862 * ada-lang.c (fill_in_ada_prototype): Update comment.
4863
4864 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4865
4866 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4867 MIPS_ABI_LAST.
4868 (mips_abi_string, mips_abi_strings): New.
4869 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4870 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4871 tdep->mips_abi_string. Honor mips_abi_string. Default to
4872 O32 if no ABI is found.
4873 (mips_dump_tdep): Use mips_abi_strings.
4874 (mips_abi_update): New function.
4875 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4876 ``set mips abi'' and ``show mips abi''. Check the size of
4877 mips_abi_strings.
4878
4879 2002-06-19 Andrew Cagney <cagney@redhat.com>
4880
4881 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4882 constant.
4883
4884 2002-06-18 Joel Brobecker <brobecker@gnat.com>
4885
4886 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4887 current frame using only the first stack size adjustment. All
4888 subsequent size adjustments are not considered to be part of
4889 the "static" part of the current frame.
4890 Compute the address of the saved registers relative to the
4891 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4892 in use in this frame.
4893
4894 2002-06-18 Don Howard <dhoward@redhat.com>
4895
4896 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4897 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4898 suggesting this solution.
4899
4900 2002-06-18 Andrew Cagney <ac131313@redhat.com>
4901
4902 * config/romp/xm-rtbsd.h: Delete file.
4903 * config/romp/rtbsd.mh: Delete file.
4904
4905 2002-06-18 Keith Seitz <keiths@redhat.com>
4906
4907 * breakpoint.c (condition_command): Post breakpoint_modify
4908 when a condition is added to an existing breakpoint.
4909 (commands_command): Likewise for commands.
4910 (set_ignore_count): Likewise for ignore counts.
4911 If no tty, do not simply return, still need to send event
4912 notification.
4913 (ignore_command): Only print a newline if the command came
4914 from a tty.
4915 Don't call breakpoints_changed, since this is now properly
4916 handled by set_ignore_count.
4917
4918 2002-06-18 Andrew Cagney <cagney@redhat.com>
4919
4920 * MAINTAINERS: Note that cris-elf target can be compiled with
4921 -Werror.
4922 * cris-tdep.c (cris_register_name): Make return type constant.
4923 (cris_breakpoint_from_pc): Ditto.
4924
4925 2002-06-18 Michal Ludvig <mludvig@suse.cz>
4926
4927 * frame.h (struct frame_info): Change type of context to
4928 'struct context'.
4929
4930 2002-06-17 Andrew Cagney <cagney@redhat.com>
4931
4932 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4933 pointer.
4934 * gdbarch.h, gdbarch.c: Regenerate.
4935 * config/mips/tm-mips.h (mips_register_name): Update.
4936 * i386-tdep.h (i386_register_name): Update.
4937 * mips-tdep.c (mips_register_name): Update
4938 * alpha-tdep.c (alpha_register_name): Update.
4939 * arch-utils.c (legacy_register_name): Update.
4940 * arch-utils.h (legacy_register_name): Update.
4941 * avr-tdep.c (avr_register_name): Update.
4942 * ia64-tdep.c (ia64_register_name): Update.
4943 * i386-tdep.c (i386_register_name): Update.
4944 * sparc-tdep.c (sparc32_register_name): Update.
4945 (sparc64_register_name): Update.
4946 (sparclite_register_name): Update.
4947 (sparclet_register_name): Update.
4948 * sh-tdep.c (sh_generic_register_name): Update.
4949 (sh_sh_register_name): Update.
4950 (sh_sh3_register_name): Update.
4951 (sh_sh3e_register_name): Update.
4952 (sh_sh_dsp_register_name): Update.
4953 (sh_sh3_dsp_register_name): Update.
4954 (sh_sh4_register_name): Update.
4955 (sh_sh64_register_name): Update.
4956 * s390-tdep.c (s390_register_name): Update.
4957 * rs6000-tdep.c (rs6000_register_name): Update.
4958 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4959 (ns32k_register_name_32382): Update.
4960 * d10v-tdep.c (d10v_ts2_register_name): Update.
4961 (d10v_ts3_register_name): Update.
4962 * xstormy16-tdep.c (xstormy16_register_name): Update.
4963 * vax-tdep.c (vax_register_name): Update.
4964 * v850-tdep.c (v850_register_name): Update.
4965 * m68hc11-tdep.c (m68hc11_register_name): Update.
4966 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4967 (am33_register_name): Update.
4968
4969 2002-06-17 Grace Sainsbury <graces@redhat.com>
4970
4971 * m68k-tdep.c: Reindented.
4972
4973 2002-06-17 Andrew Cagney <ac131313@redhat.com>
4974
4975 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4976 list of predefined types.
4977
4978 2002-06-16 Mark Kettenis <kettenis@gnu.org>
4979
4980 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4981 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4982 REGISTER_CONVERT_TO_RAW): Remove defines.
4983 (i386_register_virtual_type, i386_register_convertible,
4984 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4985 Remove prototypes.
4986 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4987 macros mentioned above.
4988
4989 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4990 (i386lynx_saved_pc_after_call): Remove prototype.
4991 * i386ly-tdep.c: Include "i386-tdep.h".
4992 (i386lynx_saved_pc_after_call): Make static. Use
4993 read_memory_nobpt instead of read_memory. Use
4994 read_memory_unsigned_integer instead of read_memory_integer.
4995 (i386lynx_init_abi): New function.
4996 (i386lynx_coff_osabi_sniffer): New function.
4997 (_initialize_i386bsd_tdep): New function.
4998
4999 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
5000 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
5001 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
5002 (i386_fix_call_dummy): Remove prototype.
5003 * i386-tdep.c (i386_call_dummy_words): New variable.
5004 (i386_gdbarch_init): Adjust for removal of the
5005 macros mentioned above.
5006
5007 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5008
5009 * command.h (add_setshow_auto_boolean_cmd): Replace
5010 add_set_auto_boolean_cmd.
5011 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
5012 add_set_auto_boolean_cmd.
5013 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
5014 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
5015 mask-address'' command.
5016 (show_mask_address): Add cmd parameter.
5017 * remote.c (add_packet_config_cmd): Update. Change type of
5018 set_func and show_func to cmd_sfunc_ftype.
5019 (_initialize_remote): Update `set remote Z-packet'
5020 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
5021 (show_remote_protocol_e_packet_cmd): Ditto.
5022 (show_remote_protocol_E_packet_cmd): Ditto.
5023 (show_remote_protocol_P_packet_cmd): Ditto.
5024 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
5025 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
5026 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
5027 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
5028 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
5029 (show_remote_protocol_Z_packet_cmd): Ditto.
5030 (show_remote_protocol_binary_download_cmd): Ditto.
5031 (show_remote_cmd): Pass NULL to all of above.
5032
5033 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5034
5035 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
5036 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
5037 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
5038 POP_FRAME): Remove defines.
5039 (i386_push_arguments, i386_store_struct_return,
5040 i386_extract_return_value, i386_store_return_value,
5041 i386_extract_struct_value_address, i386_push_dummy_frame,
5042 i386_pop_frame): Renove prototypes.
5043 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5044 macros mentioned above.
5045
5046 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5047
5048 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
5049 add_set_boolean_cmd.
5050 (add_setshow_cmd): New function.
5051 * command.h (add_setshow_boolean_cmd): Replace
5052 add_set_boolean_cmd.
5053 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
5054 and ``set rdiromatzero''.
5055 * maint.c (_initialize_maint_cmds): Update commented out code.
5056 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
5057 * target.c (initialize_targets): Update `set
5058 trust-readonly-sections'.
5059 * remote.c (_initialize_remote): Update `set remotebreak'.
5060
5061 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5062
5063 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
5064 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
5065 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
5066 fit into multi-arch framework.
5067 (i386_breakpoint_from_pc): New function.
5068 (i386_gdbarch_init): Adjust for removal of the macros mentioned
5069 above.
5070
5071 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
5072 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
5073 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
5074 (i386_frameless_function_invocation, i386_frame_num_args,
5075 i386_frame_init_saved_regs): Remove prototypes.
5076 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5077 macros mentioned above.
5078
5079 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5080
5081 * cli/cli-decode.c (set_cmd_cfunc): Update.
5082 (set_cmd_sfunc): Update.
5083 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
5084 (set_cmd_sfunc, set_cmd_cfunc): Update.
5085 * cli/cli-decode.h: Update.
5086
5087 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5088
5089 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
5090 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
5091
5092 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5093
5094 * defs.h (auto_boolean): Declare enum.
5095 * command.h (cmd_auto_boolean): Delete enum.
5096 * mips-tdep.c (mask_address_var): Update.
5097 (mips_mask_address_p): Update.
5098 (show_mask_address): Update.
5099 * remote.c (struct packet_config): Update.
5100 (update_packet_config): Update.
5101 (show_packet_config_cmd): Update.
5102 (packet_ok): Update.
5103 (add_packet_config_cmd): Update.
5104 (_initialize_remote):
5105 * command.h: Update.
5106 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
5107 (do_setshow_command): Update.
5108 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
5109 * cli/cli-decode.h: Update.
5110
5111 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5112
5113 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
5114 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
5115 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
5116 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
5117 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
5118 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
5119
5120 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
5121 list of DJGPP COFF targets.
5122
5123 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
5124 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
5125 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
5126 (FP0_REGNUM): Remove define.
5127 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5128 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
5129 (i386_register_virtual_size): Remove protoype.
5130 * i386-tdep.c (i386_register_virtual_size): Removed.
5131 (i386_extract_return_value, i386_store_return_value): Use
5132 FP0_REGNUM instead of NUM_FREGS to determine whether the
5133 floating-point registers are available.
5134 (i386_gdbarch_init): Tweak FIXME about FPU registers.
5135 Adjust for removal of macros mentioned above.
5136
5137 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5138
5139 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
5140 comments.
5141 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5142 Remove prototypes.
5143 (supply_gregset, fill_gregset): Remove use of register keyword and
5144 remove declaration for regmap. Use I386_NUM_GREGS instead of
5145 NUM_REGS and NUM_FREGS.
5146 (FPREGSET_FSAVE_OFFSET): Remove.
5147 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5148 NUM_FREGS to determine whether the floating-point registers are
5149 available.
5150
5151 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5152 gnu_store_registers): Replace usage of NUM_GREGS with
5153 I386_NUM_GREGS.
5154
5155 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5156 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5157 usage of NUM_GREGS with I386_NUM_GREGS.
5158
5159 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5160
5161 * i386bsd-nat.c: Include "i386-tdep.h".
5162 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5163 I386_NUM_GREGS.
5164
5165 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5166 and associated comment. They no longer make any sense, since we
5167 don't use this file anymore on Linux.
5168
5169 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5170 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5171 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5172 elements in these arrays.
5173 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5174 MAX_NUM_REGS.
5175
5176 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5177
5178 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5179 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5180
5181 2002-06-14 Andrew Cagney <cagney@redhat.com>
5182
5183 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5184 EXTRACT_RETURN_VALUE.
5185 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5186 EXTRACT_STRUCT_VALUE_ADDRESS.
5187 * gdbarch.h, gdbarch.c: Regenerate.
5188
5189 * values.c (value_being_returned): Handle
5190 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5191 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5192
5193 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5194 * arm-tdep.c (arm_gdbarch_init): Update.
5195 * avr-tdep.c (avr_gdbarch_init): Update.
5196 * cris-tdep.c (cris_gdbarch_init): Update.
5197 * d10v-tdep.c (d10v_gdbarch_init): Update.
5198 * ia64-tdep.c (ia64_gdbarch_init): Update.
5199 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5200 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5201 * s390-tdep.c (s390_gdbarch_init): Update.
5202 * sh-tdep.c (sh_gdbarch_init): Update.
5203 * s390-tdep.c (s390_gdbarch_init): Update.
5204 * sparc-tdep.c (sparc_gdbarch_init): Update.
5205 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5206 * v850-tdep.c (v850_gdbarch_init): Update.
5207 * vax-tdep.c (vax_gdbarch_init): Update.
5208 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5209 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5210
5211 * config/arc/tm-arc.h: Update.
5212 * config/d30v/tm-d30v.h: Update.
5213 * config/fr30/tm-fr30.h: Update.
5214 * config/h8300/tm-h8300.h: Update.
5215 * config/h8500/tm-h8500.h: Update.
5216 * config/i386/tm-i386.h: Update.
5217 * config/i386/tm-ptx.h: Update.
5218 * config/i386/tm-symmetry.h: Update.
5219 * config/i960/tm-i960.h: Update.
5220 * config/m32r/tm-m32r.h: Update.
5221 * config/m68k/tm-delta68.h: Update.
5222 * config/m68k/tm-linux.h: Update.
5223 * config/m68k/tm-m68k.h: Update.
5224 * config/m88k/tm-m88k.h: Update.
5225 * config/mcore/tm-mcore.h: Update.
5226 * config/mips/tm-mips.h: Update.
5227 * config/mn10200/tm-mn10200.h: Update.
5228 * config/pa/tm-hppa.h: Update.
5229 * config/pa/tm-hppa64.h: Update.
5230 * config/sparc/tm-sp64.h: Update.
5231 * config/sparc/tm-sparc.h: Update.
5232 * config/sparc/tm-sparclet.h: Update.
5233 * config/z8k/tm-z8k.h: Update.
5234
5235 2002-06-14 Andrew Cagney <cagney@redhat.com>
5236
5237 * Makefile.in (i386_linux_tdep_h): Define.
5238 (i386_tdep_h, i387_tdep_h): Define.
5239 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5240 $(i386_tdep_h) and $(i387_tdep_h).
5241 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5242
5243 2002-06-14 Mark Kettenis <kettenis@gnu.org>
5244
5245 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5246 Already covered by the default.
5247
5248 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5249 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5250 (i386_gdbarch_init): Initialize long_double_format and long_double
5251 bit.
5252
5253 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5254 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5255 Move these to ...
5256 * config/i386/i386sol2.mh: ... here.
5257 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5258 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5259 (SIGCONTEXT_PC_OFFSET): Remove define.
5260 (IN_SIGTRAMP): Remove define.
5261 * i386-sol2-tdep.c: New file.
5262
5263 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5264 * config/i386/tm-i386nw.h: Removed.
5265
5266 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5267 USE_STRUCT_CONVENTION): Remove defines.
5268 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5269 (get_longjmp_target): Remove prototype.
5270 (IN_SIGTRAMP): Remove define.
5271 (i386bsd_in_sigtramp): Remove prototype.
5272 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5273 function. Update comment accordingly
5274 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5275 (FRAME_SAVED_PC): Remove define.
5276 (i386bsd_frame_saved_pc): Remove prototype.
5277 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5278 GET_LONGJMP_TARGET): Remove defines.
5279 (get_longjmp_target): Remove prototype.
5280 (IN_SIGTRAMP): Remove define.
5281 (i386bsd_in_sigtramp): Remove prototype.
5282 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5283 function. Update comment accordingly
5284 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5285 (FRAME_SAVED_PC): Remove define.
5286 (i386bsd_frame_saved_pc): Remove prototype.
5287 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5288 Remove prototype.
5289 (USE_STRUCT_CONVENTION): Remove prototype.
5290 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5291 declaration.
5292 (_initialize_i386bsd_nat): Revise logic to determine some
5293 constants at compile time when compiling a native GDB. Warn if
5294 things don't match up with what we expect.
5295 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5296 Remove variables.
5297 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5298 to use date stored in `struct gdbarch_tdep'.
5299 (i386bsd_sigcontext_offset): Remove varaible.
5300 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5301 stored in `struct gdbarch_tdep'.
5302 (i386bsd_frame_saved_pc): Make static.
5303 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5304 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5305 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5306 i386fbsd4_sc_pc_offset): New variables.
5307 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5308 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5309 functions.
5310 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5311 functions.
5312 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5313 Modify the value of i386fbsd_sigtramp_start and
5314 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5315 i386fbsd_sigtramp_end.
5316 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5317 function.
5318
5319 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5320 define to i386-linux-tdep.h.
5321 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5322 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5323 defines.
5324 (i386_linux_register_name, i386_linux_register_byte,
5325 i386_linux_register_raw_size): Remove prototypes.
5326 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5327 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5328 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5329 TARGET_WRITE_PC): Remove defines.
5330 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5331 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5332 i386_linux_write_pc): Remove prototypes.
5333 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5334 (get_longjmp_target): Remove prototype.
5335 * i386-linux-tdep.h: New file.
5336 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5337 * i386-linux-tdep.c: Include "i386-tdep.h" and
5338 "i386-linux-tdep.h".
5339 (i386_linux_register_name, i386_linux_register_byte,
5340 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5341 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5342 Make static.
5343 (i386_linux_init_abi): New function.
5344 (_initialize_i386_linux_tdep): New function.
5345
5346 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5347 (i386_saved_pc_after_call): Remove prototype.
5348 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5349 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5350 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5351 (i386_register_name, i386_stab_reg_to_regnum,
5352 i386_dwarf_reg_to_regnum): Remove prototypes.
5353 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5354 SIZEOF_SSE_REGS): Remove defines.
5355 (REGISTER_BYTES): Remove define.
5356 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5357 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5358 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5359 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5360 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5361 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5362 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5363 (get_longjmp_target): Remove prototype.
5364 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5365 (sigtramp_saved_pc): Remove define.
5366 (i386v4_sigtramp_saved_pc): Remove prototype.
5367 * config/i386/tm-go32.h (FRAME_CHAIN,
5368 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5369 (i386go32_frame_saved_pc): Remove prototype.
5370 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5371 (get_longjmp_target): Remove prototype.
5372 * i386-tdep.h: Include "osabi.h".
5373 (enum i386_abi): Removed.
5374 (enum struct_return): New enum.
5375 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5376 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5377 sc_pc_offset members.
5378 (i386_gdbarch_register_os_abi): Remove prototype.
5379 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5380 I386_SSE_NUM_REGS): New defines.
5381 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5382 I386_SSE_SIZEOF_REGS): New defines.
5383 (i386_register_name, i386_register_byte, i386_register_raw_size):
5384 New prototypes.
5385 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5386 (i386bsd_sigtramp_saved_pc): New prototype.
5387 * i386-tdep.c: Don't include "elf-bfd.h".
5388 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5389 i386_frame_chain, i386_saved_pc_after_call): Make static.
5390 (i386_frame_saved_pc): Rewrite to call architecture dependent
5391 function to deal with signal handlers. Make static.
5392 (i386go32_frame_saved_pc): Removed.
5393 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5394 Removed.
5395 (i386_get_longjmp_target): New function.
5396 (default_struct_convention, pcc_struct_convention,
5397 reg_struct_convention, valid_conventions, struct_convention): New
5398 variables.
5399 (i386_use_struct_convention): New function.
5400 (i386v4_sigtramp_saved_pc): Renamed to
5401 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5402 (i386_pc_in_sigtramp): New function.
5403 (i386_abi_names): Removed.
5404 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5405 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5406 Removed.
5407 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5408 i386_gdbarch_register_os_abi): Removed.
5409 (struct i386_abi_handler): Removed.
5410 (i386_abi_handler_list): Removed.
5411 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5412 functions.
5413 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5414 i386_nw_init_abi): New functions.
5415 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5416 Use set_gdbarch_xxx() calls instead of relying on macros for a
5417 number of calls.
5418 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5419 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5420 Register the various architecture variants defined in this file.
5421
5422 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
5423
5424 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5425 (struct main_type): Remove arg_types member. Update comments for
5426 struct field.
5427 (TYPE_ARG_TYPES): Remove.
5428 (TYPE_FN_FIELD_ARGS): Update.
5429 (smash_to_method_type): Update prototype.
5430
5431 * c-typeprint.c (cp_type_print_method_args): Take method type
5432 instead of argument list. Use new argument layout. Simplify.
5433 (c_type_print_args): Use new argument layout. Simplify.
5434 (c_type_print_base): Update call to cp_type_print_method_args.
5435 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5436 argument; use die->type instead. Update call to
5437 smash_to_method_type.
5438 (read_structure_scope): Update call to dwarf2_add_member_fn.
5439 * gdbtypes.c (allocate_stub_method): Update comment.
5440 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5441 Use new argument layout.
5442 (check_stub_method): Use new argument layout. Don't count
5443 void as an argument.
5444 (print_arg_types): Update comments. Use new argument layout.
5445 (recursive_dump_type): Don't print arg_types member.
5446 * hpread.c (hpread_read_struct_type): Use new argument layout.
5447 (fixup_class_method_type): Likewise.
5448 (hpread_type_lookup): Likewise.
5449 * stabsread.c (read_type): Update calls to read_args and
5450 smash_to_method_type.
5451 (read_args): Use new argument layout. Simplify.
5452 * valops.c (typecmp): Use new argument layout. Update parameters
5453 and comments. Simplify.
5454 (hand_function_call): Use new argument layout.
5455 (search_struct_method): Update call to typecmp.
5456 (find_overload_match): Use new argument layout.
5457
5458 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5459
5460 * NEWS: Mention multithreaded debug support for gdbserver.
5461
5462 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5463
5464 * MAINTAINERS: Mention NEWS.
5465
5466 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5467
5468 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5469 (struct mips_objfile_private, compare_pdr_entries): New.
5470 (non_heuristic_proc_desc): Read the ".pdr" section if it
5471 is present.
5472
5473 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5474
5475 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5476 (arm_debug): New static variable.
5477 (_initialize_arm_tdep): Add ``set debug arm'' command.
5478
5479 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5480
5481 * Makefile.in (sim_arm_h): Define.
5482 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5483 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5484 (arm_register_sim_regno): New function, map an internal REGNUM
5485 onto a simulator register number.
5486 (arm_gdbarch_init): Set register_sim_regno.
5487
5488 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
5489
5490 * MAINTAINERS: Add self.
5491
5492 2002-06-11 Jim Blandy <jimb@redhat.com>
5493
5494 * source.c (source_info): Mention whether the symtab has
5495 information about preprocessor macros.
5496
5497 Call the command `info macro', not `show macro'.
5498 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5499 Fix error message.
5500 (_initialize_macrocmd): Register `info_macro_command' in
5501 `infolist', not `showlist'.
5502
5503 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
5504
5505 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5506 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5507 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5508 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5509 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5510 unconditionally.
5511 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5512 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5513 (_initialize_mips_tdep): Remove dead code.
5514 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5515 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5516 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5517 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5518 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5519 MIPS_LAST_FP_ARG_REGNUM): Remove.
5520
5521 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5522
5523 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5524 (unwind_tmp_obstack_free, parse_frame_info)
5525 (update_context, cfi_read_fp, cfi_write_fp)
5526 (cfi_frame_chain, cfi_init_extra_frame_info)
5527 (cfi_virtual_frame_pointer): Use the above function.
5528 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5529
5530 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
5531
5532 * v850-tdep.c (v850_type_is_scalar): New function.
5533 (v850_use_struct_convention): Match current gcc implementation
5534 as close as possible.
5535 (v850_push_arguments): Fix stack_offset handling. Don't write
5536 struct_addr into register. This is done by v850_store_struct_return.
5537 (v850_extract_return_value): Care for structs.
5538 (v850_store_return_value): Ditto.
5539 (v850_store_struct_return): Actually write address.
5540
5541 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5542
5543 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5544 without debug information too.
5545
5546 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5547
5548 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5549 Make multi-arch pure.
5550 * gdbarch.h, gdbarch.c: Re-generate.
5551 * arm-tdep.c (arm_print_float_info): Update.
5552 * arch-utils.h (default_print_float_info): Update.
5553 * arch-utils.c (default_print_float_info): Update.
5554 * infcmd.c (float_info): Update call.
5555
5556 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5557
5558 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5559 the front of the initialize list.
5560
5561 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5562
5563 * infrun.c (struct inferior_status): Replace fields
5564 selected_frame_address and selected_level with field
5565 selected_frame_id.
5566 (save_inferior_status): Update. Use get_frame_id.
5567 (struct restore_selected_frame_args): Delete.
5568 (restore_selected_frame): Update. Use frame_find_by_id.
5569 (restore_inferior_status): Update.
5570
5571 * breakpoint.h (struct breakpoint): Change type of
5572 watchpoint_frame to frame_id.
5573 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5574 call to get_current_frame.
5575 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5576 get_current_frame.
5577 (watchpoint_check): Use frame_find_by_id.
5578
5579 * frame.h (record_selected_frame): Delete declaration.
5580 * stack.c (record_selected_frame): Delete function.
5581
5582 * frame.h (struct frame_id): Define.
5583 (get_frame_id): Declare.
5584 (frame_find_by_id): Declare.
5585 * frame.c (frame_find_by_id): New function.
5586 (get_frame_id): New function.
5587
5588 2002-06-10 Andrey Volkov <avolkov@transas.com>
5589
5590 * ser-e7kpc.c: Fix duplicated define and call of
5591 _initialize_ser_e7000pc
5592
5593 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5594
5595 * signals/signals.c (target_signal_from_host): Fix #ifdef
5596 SIGRTMIN case.
5597 (do_target_signal_to_host): Likewise.
5598
5599 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5600
5601 * mips-tdep.c (mips_find_abi_section): New function.
5602 (mips_gdbarch_init): Call it.
5603
5604 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5605
5606 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5607 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5608 after Andrew's 2002-06-08 gdbarch change.
5609
5610 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5611
5612 * i386-linux-nat.c (suppy_gregset): Don't supply
5613 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5614 register cache.
5615 (fill_gregset): Don't fetch it under the same circumstances.
5616
5617 2002-06-09 Andrew Cagney <cagney@redhat.com>
5618
5619 * Makefile.in (callback_h): Define.
5620 (remote_sim_h): Update path to remote-sim.h.
5621 (remote-rdp.o): Add $(callback_h).
5622 (remote-sim.o): Use $(callback_h).
5623 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5624 * remote-rdp.c: Include "gdb/callback.h".
5625
5626 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5627
5628 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5629 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5630
5631 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5632
5633 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5634 * rdi-share/serpardr.c: Ditto.
5635 * rdi-share/unixcomm.c: Ditto.
5636 * rdi-share/serdrv.c: Ditto.
5637 * rdi-share/hostchan.h: Ditto.
5638 * rdi-share/hostchan.c: Ditto.
5639 * rdi-share/host.h: Ditto.
5640 * rdi-share/devsw.c: Ditto.
5641
5642 * objfiles.h: Change type of obj_private to void pointer.
5643 * pa64solib.c: Update copyright. Don't include "assert.h", use
5644 strcmp instead of STREQ, use LONGEST, do not use PTR
5645 * somsolib.c: Ditto.
5646
5647 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5648 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5649 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5650
5651 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5652
5653 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5654 (default_get_saved_register): Delete function.
5655 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5656 generic_unwind_get_saved_register.
5657 * gdbarch.h, gdbarch.c: Re-generate.
5658
5659 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5660
5661 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5662 generic_func_frame_chain_valid.
5663 * gdbarch.h, gdbarch.c: Re-generate.
5664 * blockframe.c (generic_func_frame_chain_valid): Only check
5665 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5666 passing FP to PC_IN_CALL_DUMMY.
5667 Fix PR gdb/360.
5668
5669 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5670
5671 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5672 (register_gdbarch_data): Initialize init_p.
5673 (gdbarch_data): Initialize data pointer using the init function.
5674 (init_gdbarch_data): Delete function.
5675 (gdbarch_update_p): Update.
5676 (initialize_non_multiarch): Update.
5677 (struct gdbarch): Add field initialized_p.
5678 * gdbarch.h, gdbarch.c: Re-generate.
5679
5680 2002-06-07 Michal Ludvig <mludvig@suse.cz>
5681
5682 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5683 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5684 better do the things actually here.
5685 * x86-64-tdep.c (x86_64_register_name2nr): New.
5686 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5687 (x86_64_gdbarch_init): Respect the above change.
5688 * x86-64-tdep.h (x86_64_register_name2nr)
5689 (x86_64_register_nr2name): Add prototypes.
5690 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5691
5692 2002-06-06 Michael Snyder <msnyder@redhat.com>
5693
5694 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5695 Delete extra braces and re-indent.
5696 (d10v_store_return_value): Char return values
5697 must be shifted over by one byte in R0.
5698 (d10v_extract_return_value): Delete extra braces, re-indent.
5699
5700 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5701
5702 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5703 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5704 (d10v_integer_to_address): Rewrite.
5705 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5706 the d10v specific functions which take care of converting to the
5707 correct space.
5708
5709 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5710
5711 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5712 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5713
5714 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5715
5716 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5717 includes.
5718 * config/tm-linux.h: Ditto.
5719 * config/alpha/tm-alphalinux.h: Ditto.
5720 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5721 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5722 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5723 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5724 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5725 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5726 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5727 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5728 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5729 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5730 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5731 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5732 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5733 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5734 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5735 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5736 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5737 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5738 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5739 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5740 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5741 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5742 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5743 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5744 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5745 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5746 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5747 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5748 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5749 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5750 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5751 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5752 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5753 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5754 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5755 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5756 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5757
5758 2002-05-04 Aidan Skinner <aidan@velvet.net>
5759
5760 * ada-exp.tab.c: New file
5761 * ada-exp.y: New file
5762 * ada-lang.c: New file
5763 * ada-lang.h: New file
5764 * ada-lex.c: New file
5765 * ada-lex.l: New file
5766 * ada-tasks.c: New file
5767 * ada-typeprint.c: New file
5768 * ada-valprint.c: New file
5769
5770 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5771
5772 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5773 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5774
5775 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5776
5777 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5778 insetead of ppc-linux-tdep.o.
5779 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5780 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5781
5782 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5783
5784 2002-05-07 Christian Groessler <chris@groessler.org>
5785 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5786 bit register contents for little endian hosts.
5787
5788 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5789
5790 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5791 any maintainer.
5792
5793 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5794
5795 * gdbarch.h: Regenerate.
5796
5797 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5798
5799 * MAINTAINERS: Add everyone to write-after-approval list.
5800
5801 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5802
5803 * stack.c (frame_info): Use frame_register_unwind instead of
5804 saved_regs. Mention when the SP is on the stack or in a register.
5805
5806 * frame.h (frame_register_unwind_ftype): Define. Document.
5807 (struct frame_info): Add field register_unwind and
5808 register_unwind_cache.
5809 (frame_register_unwind): Declare.
5810 (generic_unwind_get_saved_register): Declare.
5811
5812 * frame.c (frame_register_unwind): New function.
5813 (generic_unwind_get_saved_register): New function.
5814
5815 * blockframe.c (generic_call_dummy_register_unwind): New function.
5816 (frame_saved_regs_register_unwind): New function.
5817 (set_unwind_by_pc): New function.
5818 (create_new_frame): New function.
5819 (get_prev_frame): New function.
5820
5821 2002-05-30 Andrew Cagney <ac131313@redhat.com>
5822
5823 * a29k-share/: Delete directory.
5824 * remote-vx29k.c: Delete file.
5825
5826 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5827
5828 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5829 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5830
5831 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5832
5833 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5834 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5835 (sparc64nbsd-nat.o)
5836 (sparcnbsd-nat.o)
5837 (sparcnbsd-tdep.o): New dependency lists.
5838 * NEWS: Note new UltraSPARC NetBSD native configuration.
5839 * configure.host (sparc64-*-netbsd*): New host.
5840 * configure.tgt (sparc-*-netbsdelf*)
5841 (sparc-*-netbsd*): Set gdb_target to nbsd.
5842 (sparc64-*-netbsd*): New target.
5843 * sparc64nbsd-nat.c: New file.
5844 * sparcnbsd-nat.c: New file.
5845 * sparcnbsd-tdep.c: New file.
5846 * sparcnbsd-tdep.h: New file.
5847 * config/sparc/nbsd.mt: New file.
5848 * config/sparc/nbsd64.mh: New file.
5849 * config/sparc/nbsd64.mt: New file.
5850 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5851 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5852 (HOST_IPC): Remove.
5853 * config/sparc/nbsdaout.mt: Remove.
5854 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5855 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5856 (HOST_IPC): Remove.
5857 * config/sparc/nbsdelf.mt: Remove.
5858 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5859 sparc-nat.c compatiblity defines.
5860 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5861 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5862 * config/sparc/tm-nbsd64.h: New file.
5863 * config/sparc/tm-nbsdaout.h: Remove.
5864 * config/sparc/xm-nbsd.h: Remove.
5865
5866 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5867
5868 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5869 * sparc-tdep.c: Include osabi.h.
5870 (gdbarch_tdep): Add osabi member.
5871 (_initialize_sparc_tdep): Use gdbarch_register.
5872 (sparc_gdbarch_init): Use generic OS ABI framework.
5873 (sparc_dump_tdep): New function.
5874
5875 2002-05-30 Kevin Buettner <kevinb@redhat.com>
5876
5877 * corefile.c (do_captured_read_memory_integer): Return non-zero
5878 result.
5879 (safe_read_memory_integer): Copy result of memory read when
5880 status is non-zero. Also, add comments.
5881
5882 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5883
5884 * Makefile.in (ppc_tdep_h): Define.
5885 (ppc-linux-nat.o)
5886 (ppc-linux-tdep.o)
5887 (rs6000-tdep.o): Use $(ppc_tdep_h).
5888 (ppc-sysv-tdep.o)
5889 (ppcnbsd-nat.o)
5890 (ppcnbsd-tdep.o): New dependency lists.
5891 * ppc-tdep.h: Use generic OS ABI framework.
5892 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5893 (ppc_linux_init_abi): New functions.
5894 (ppc_sysv_abi_broken_use_struct_convention)
5895 (ppc_sysv_abi_use_struct_convention)
5896 (ppc_sysv_abi_push_arguments): Move to...
5897 * ppc-sysv-tdep.c: ...here.
5898 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5899 * rs6000-tdep.c (process_note_abi_tag_sections)
5900 (get_elfosabi): Remove.
5901 (rs6000_gdbarch_init): Use generic OS ABI framework.
5902 (rs6000_dump_tdep): New function.
5903 (_initialize_rs6000_tdep): Use gdbarch_register.
5904 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5905 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5906 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5907 of ppc-linux-tdep.o.
5908 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5909 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5910 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5911 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5912 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5913 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5914
5915 2002-05-29 Jim Blandy <jimb@redhat.com>
5916
5917 * macroscope.c (default_macro_scope): Put `void' in empty argument
5918 list.
5919
5920 2002-05-29 Andrew Cagney <ac131313@redhat.com>
5921
5922 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5923 * arch-utils.c: Include "sim-regno.h".
5924 * gdbarch.sh: Don't include "sim-regno.h".
5925 * gdbarch.h, gdbarch.c: Regenerate.
5926 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5927 here.
5928 * arch-utils.h (legacy_register_sim_regno): To here.
5929 * remote-sim.c (legacy_register_sim_regno): Move function from
5930 here.
5931 * arch-utils.c (legacy_register_sim_regno): To here.
5932
5933 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5934
5935 * sim-regno.h: New file.
5936 * Makefile.in (sim_regno_h): Define.
5937 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5938 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5939 (legacy_register_sim_regno): New function.
5940 (one2one_register_sim_regno): New function.
5941 (gdbsim_fetch_register): Rewrite.
5942 (gdbsim_store_register): Only store a register when
5943 REGISTER_SIM_REGNO is valid.
5944 * d10v-tdep.c: Include "sim-regno.h".
5945 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5946 (d10v_ts3_register_sim_regno): Ditto.
5947 * gdbarch.sh: Include "sim-regno.h".
5948 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5949 * gdbarch.h, gdbarch.c: Regenerate.
5950 * arch-utils.h (default_register_sim_regno): Delete declaration.
5951 * arch-utils.c (default_register_sim_regno): Delete function.
5952
5953 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5954
5955 * ppcnbsd-nat.c: Rewrite.
5956 * ppcnbsd-tdep.c: New file.
5957 * ppcnbsd-tdep.h: New file.
5958 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5959 solib.o, and solib-svr4.o.
5960 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5961 nbsd-tdep.o, and corelow.o.
5962
5963 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5964
5965 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5966 `tr' and `sed'. Mention that `broken' targets are not expected to
5967 build.
5968
5969 2002-05-27 Michal Ludvig <mludvig@suse.cz>
5970
5971 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5972 Let PC point right after the prologue before looking up symbols.
5973
5974 2002-05-27 Martin M. Hunt <hunt@redhat.com>
5975
5976 * i386-tdep.c (i386_register_virtual_type): Return
5977 builtin_type_vec128i for SSE registers.
5978
5979 * gdbtypes.h (builtin_type_vec128i): Declare.
5980
5981 * gdbtypes.c (build_builtin_type_vec128i): New function.
5982 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5983 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5984 (build_gdbtypes): Initialize new builtin vector types.
5985 (_initialize_gdbtypes): Register new vector types with gdbarch.
5986
5987 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5988
5989 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5990 since it has been multi-arch'd.
5991 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5992 Move Alpha and VAX multi-arch news entries to same section
5993 as other multi-arch news.
5994
5995 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5996
5997 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5998 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5999 static. Rename some register numbers to put them in ns32k-tdep
6000 private namespace.
6001 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
6002 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
6003 functions.
6004 (_initialize_ns32k_tdep): Use gdbarch_register.
6005 * ns32k-tdep.h: New file.
6006 * ns32knbsd-tdep.c: New file.
6007 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
6008 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
6009 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
6010 REGISTER_BYTES, REGISTER_BYTE): Remove.
6011 * config/ns32k/tm-ns32k.h: New file.
6012 * config/ns32k/tm-umax.h: Remove.
6013
6014 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6015
6016 * ns32k-tdep.c (ns32k_saved_pc_after_call,
6017 ns32k_store_struct_return, ns32k_extract_return_value,
6018 ns32k_store_return_value, ns32k_extract_struct_value_address): New
6019 functions.
6020 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
6021 ns32k_saved_pc_after_call.
6022 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
6023 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
6024 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
6025 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6026 ns32k_extract_struct_value_address.
6027
6028 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6029
6030 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
6031 ns32k_fix_call_dummy): New.
6032 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
6033 ns32k_call_dummy_words.
6034 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
6035 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
6036 CALL_DUMMY_NARGS): Remove.
6037 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
6038
6039 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6040
6041 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
6042 ns32k_frame_saved_pc, ns32k_frame_args_address,
6043 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
6044 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
6045 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
6046 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
6047 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
6048 (BREAKPOINT): Remove..
6049 (FRAME_CHAIN): Define as ns32k_frame_chain.
6050 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
6051 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
6052 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
6053 (FRAME_FIND_SAVED_REGS): Remove.
6054 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
6055 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
6056 (POP_FRAME): Define as ns32k_pop_frame.
6057
6058 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6059
6060 * ns32k-tdep.c (ns32k_register_byte_32082,
6061 ns32k_register_byte_32382, ns32k_register_raw_size,
6062 ns32k_register_virtual_size, ns32k_register_virtual_type): New
6063 functions.
6064 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
6065 ns32k_register_byte_32382.
6066 * config/ns32k/tm-umax.h: Update copyright years.
6067 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
6068 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
6069 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
6070 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
6071 (ns32k_get_enter_addr): Fix prototype.
6072
6073 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6074
6075 * ns32k-tdep.c: Update copyright years.
6076 (ns32k_register_name_32082): New function.
6077 (ns32k_register_name_32382): Ditto.
6078 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
6079 (REGISTER_NAME): Define as ns32k_register_name_32382.
6080 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
6081 (REGISTER_NAME): Define as ns32k_register_name_32082.
6082
6083 2002-05-24 Jim Blandy <jimb@redhat.com>
6084
6085 * dwarf2read.c (free_line_header): Use xfree, not free.
6086
6087 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
6088
6089 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
6090 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
6091
6092 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6093
6094 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
6095
6096 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6097
6098 From Ross Alexander at NEC Europe:
6099 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
6100
6101 2002-05-23 Michael Snyder <msnyder@redhat.com>
6102
6103 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
6104 for input, rather than parse_and_eval_address.
6105
6106 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6107
6108 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
6109 * Makefile.in (sim_d10v_h): Update definition.
6110
6111 2002-05-24 Andrew Cagney <cagney@redhat.com>
6112
6113 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
6114 change `2002-05-22 Michael Snyder' below.
6115 (d10v_push_arguments): Ditto.
6116 (d10v_extract_return_value): Ditto.
6117
6118 2002-05-23 Jim Blandy <jimb@redhat.com>
6119
6120 * macrotab.c (check_for_redefinition): Don't complain if the new
6121 definition is the same as the previous one. Take more arguments
6122 to allow the comparison.
6123 (macro_define_object, macro_define_function): Pass more arguments
6124 to check_for_redefinition.
6125
6126 2002-05-22 Michael Snyder <msnyder@redhat.com>
6127
6128 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
6129 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
6130 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
6131 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
6132 Don't bail if return_pc is PC_IN_CALL_DUMMY.
6133 Add a temp variable to save a call (and a memory read).
6134 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
6135 if possible (so that PC_IN_CALL_DUMMY will work).
6136
6137 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
6138
6139 * MAINTAINERS: Remove status `OBSOLETE' from v850.
6140
6141 2002-05-22 Michal Ludvig <mludvig@suse.cz>
6142
6143 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6144 fde->cie_ptr.
6145 (dwarf2_build_frame_info): Corrected handling of eh_frame.
6146 (dwarf2_build_frame_info): Add offset to fde->initial_location
6147 so that frames of shared libraries are mapped correctly.
6148 (execute_stack_op): Change type of 'result' from ULONGEST to
6149 CORE_ADDR.
6150
6151 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6152
6153 * config/alpha/tm-nbsd.h: Include solib.h.
6154
6155 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6156
6157 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6158 assumptions about the host's byte order.
6159
6160 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6161
6162 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6163 to dependency list.
6164 * alphanbsd-tdep.c: Include solib-svr4.h.
6165 * shnbsd-tdep.c: Ditto.
6166
6167 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6168
6169 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6170 nbsd-tdep.h to dependency list.
6171 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6172 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6173 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6174 nbsdaout.mh and nbsdelf.mh consistently.
6175 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6176 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6177 nbsdaout.mt and nbsdelf.mh consistently.
6178 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6179 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6180 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6181 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6182 a.out shared library stuff from here...
6183 * config/nm-nbsdaout.h: ...to here.
6184 * config/tm-nbsd.h: Remove.
6185 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6186 * config/arm/nbsd.mh: Remove.
6187 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6188 nbsd-tdep.o.
6189 * config/arm/nbsdaout.mh: New file.
6190 * config/arm/nbsdelf.mh: New file.
6191 * config/arm/nm-nbsdaout.h: New file.
6192 * config/i386/nbsd.mh: Remove.
6193 * config/i386/nbsd.mt: Remove.
6194 * config/i386/nbsdaout.mh: New file.
6195 * config/i386/nbsdaout.mt: New file.
6196 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6197 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6198 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6199 i386_register_u_addr): Remove.
6200 * config/i386/nm-nbsdaout.h: New file.
6201 * config/i386/nm-nbsdelf.h: Remove.
6202 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6203 (USE_STRUCT_CONVENTION): Remove.
6204 * config/i386/tm-nbsdaout.h: New file.
6205 * config/i386/tm-nbsdelf.h: Remove.
6206 * config/m68k/nbsd.mh: Remove.
6207 * config/m68k/nbsd.mt: Remove.
6208 * config/m68k/nbsdaout.mh: New file.
6209 * config/m68k/nbsdaout.mt: New file.
6210 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6211 * config/m68k/nm-nbsdaout.h: New file.
6212 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6213 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6214 * config/ns32k/nbsd.mh: Remove.
6215 * config/ns32k/nbsd.mt: Remove.
6216 * config/ns32k/nbsdaout.mh: New file.
6217 * config/ns32k/nbsdaout.mt: New file.
6218 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6219 * config/ns32k/nm-nbsdaout.h: New file.
6220 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6221 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6222 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6223 (SVR4_SHARED_LIBS): Remove.
6224 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6225 * config/sparc/nbsd.mh: Remove.
6226 * config/sparc/nbsd.mt: Remove.
6227 * config/sparc/nbsdaout.mh: New file.
6228 * config/sparc/nbsdaout.mt: New file.
6229 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6230 * config/sparc/nbsdelf.mt: New file.
6231 * config/sparc/nm-nbsdaout.h: New file.
6232 * config/sparc/nm-nbsdelf.h: Remove.
6233 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6234 * config/sparc/tm-nbsdaout.h: New file.
6235
6236 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6237
6238 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6239 mipsnbsd-tdep.c
6240 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6241
6242 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6243
6244 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6245 shnbsd-nat.c.
6246 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6247
6248 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6249
6250 * NEWS: Note new MIPS NetBSD native configuration.
6251 * configure.host (mips*-*-netbsd*): New host.
6252 * configure.tgt (mips*-*-netbsd*): New target.
6253 * mipsnbsd-nat.c: New file.
6254 * mipsnbsd-tdep.c: New file.
6255 * mipsnbsd-tdep.h: New file.
6256 * config/mips/nbsd.mh: New file.
6257 * config/mips/nbsd.mt: New file.
6258 * config/mips/nm-nbsd.h: New file.
6259 * config/mips/tm-nbsd.h: New file.
6260
6261 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6262
6263 * Makefile.in (SFILES): Add osabi.c.
6264 (COMMON_OBS): Add osabi.o.
6265 (osabi.o): New dependency list.
6266 * osabi.c: New file.
6267 * osabi.h: New file.
6268 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6269
6270 * Makefile.in (alpha_tdep_h): Define and use instead of
6271 alpha-tdep.h.
6272 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6273 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6274 Remove.
6275 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6276 * alpha-tdep.h: Include osabi.h.
6277 (alpha_abi): Remove.
6278 (gdbarch_tdep): Use generic OS ABI framework.
6279 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6280 gdbarch_register_osabi.
6281 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6282 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6283 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6284
6285 * Makefile.in (sh_tdep_h): Add osabi.h.
6286 * sh-tdep.h (sh_osabi): Remove.
6287 (gdbarch_tdep): Use generic OS ABI framework.
6288 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6289 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6290 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6291 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6292
6293 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6294 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6295 gdbarch_register_osabi.
6296 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6297 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6298 (get_elfosabi): Rename to...
6299 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6300 ABI framework support routines.
6301 (arm_gdbarch_init): Use generic OS ABI framework.
6302 (arm_dump_tdep): Likewise.
6303 (_initialize_arm_tdep): Likewise.
6304 * arm-tdep.h: Include osabi.h.
6305 (arm_abi): Remove.
6306 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6307 osabi member.
6308 (arm_gdbarch_register_os_abi): Remove prototype.
6309 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6310 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6311
6312 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6313 * mips-tdep.c: Include osabi.h.
6314 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6315 OS ABI framework.
6316
6317 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6318
6319 * h8300-tdep.c: Fix formatting.
6320
6321 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
6322
6323 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6324 printing vector registers.
6325
6326 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6327
6328 From Fernando Nasser:
6329 * remote.c (remote_async_open_1): Re-throw the exception when the
6330 connection fails.
6331 (remote_cisco_open): Ditto.
6332 (remote_open_1): Ditto.
6333
6334 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6335
6336 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6337 (remote_start_remote): Add uiout parameter. Pass through to
6338 remote_start_remote_dummy.
6339 (remote_open_1): Use catch_exception instead of catch_errors.
6340 (remote_async_open_1): Ditto.
6341 (remote_cisco_open): Ditto.
6342
6343 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6344
6345 * remote.c (remote_start_remote): Replace PTR with void pointer.
6346 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6347 static.
6348
6349 2002-05-18 Andrew Cagney <ac131313@redhat.com>
6350
6351 * gdb_indent.sh: Allow the script to be run in the sim directory.
6352
6353 2002-05-18 Mark Kettenis <kettenis@gnu.org>
6354
6355 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6356 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6357
6358 * corelow.c (core_open): Only call set_gdbarch_from_file if
6359 exec_bfd is NULL.
6360
6361 2002-05-17 Andrey Volkov <avolkov@transas.com>
6362
6363 * h8300-tdep.c: Add support of EXR register
6364 * config/h8300/tm-h8300.h: Ditto.
6365
6366 2002-05-17 Andrey Volkov <avolkov@transas.com>
6367
6368 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6369
6370 2002-05-17 Andrey Volkov <avolkov@transas.com>
6371
6372 * h8300-tdep.c: Change literal regnums to REGNO.
6373
6374 2002-05-17 Jim Blandy <jimb@redhat.com>
6375
6376 * NEWS: Note addition of macro support.
6377
6378 Expand preprocessor macros in C expressions.
6379 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6380 (scan_macro_expansion, scanning_macro_expansion,
6381 finished_macro_expansion): New function declarations.
6382 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6383 variable declarations.
6384 * parser-defs.h (expression_context_pc): New declaration.
6385 * parse.c (expression_context_pc): New variable.
6386 (parse_exp_1): Set expression_context_pc, as well as
6387 expression_context_block.
6388 * c-exp.y (yylex): If we're not already reading the result of a
6389 macro expansion, try to macro-expand the next token. When we're
6390 done scanning a macro expansion, switch back to the mainline text.
6391 Commas and `if's in a macro's expansion don't terminate the input.
6392 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6393 (macro_original_text, macro_expanded_text,
6394 expression_macro_lookup_func, expression_macro_lookup_baton): New
6395 variables.
6396 (scan_macro_expansion, scanning_macro_expansion,
6397 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6398 c_preprocess_and_parse): New functions.
6399 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6400 c_preprocess_and_parse, instead of c_parse.
6401 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6402 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6403
6404 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6405
6406 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6407 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6408 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6409
6410 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
6411
6412 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6413
6414 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6415
6416 * Makefile.in (sh_tdep_h): Define and use.
6417 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6418 register enum): Move to...
6419 * * sh-tdep.h: ...here.
6420 * sh-tdep.c: Include sh-tdep.h.
6421 * sh3-rom.c: Likewise.
6422 * shnbsd-tdep.c: Likewise.
6423
6424 2002-05-16 Michael Snyder <msnyder@redhat.com>
6425
6426 * arm-tdep.c: Spelling fix in comment.
6427
6428 2002-05-16 Jim Blandy <jimb@redhat.com>
6429
6430 Add commands for manually expanding macros and showing their
6431 definitions.
6432 * macrocmd.c, macroscope.c, macroscope.h: New files.
6433 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6434 (macroscope_h): New variable.
6435 (HFILES_NO_SRCDIR): Add macroscope.h.
6436 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6437 (macroscope.o, macrocmd.o): New rules.
6438
6439 Teach the Dwarf 2 reader to read macro information.
6440 * dwarf2read.c: #include "macrotab.h".
6441 (dwarf_macinfo_buffer): New variable.
6442 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6443 dwarf_macinfo_size.
6444 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6445 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6446 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6447 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6448 dwarf2_macro_spaces_in_definition): New complaints.
6449 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6450 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6451 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6452 the partial symbol table.
6453 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6454 from what's recorded in the partial symbol table.
6455 (read_file_scope): If the compilation unit has a
6456 `DW_AT_macro_info' attribute, read its macro information.
6457 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6458
6459 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6460
6461 Fix PR gdb/546
6462 * ser-tcp.c: Don't include <netinet/udp.h>.
6463
6464 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6465
6466 * MAINTAINERS: Update my email address.
6467
6468 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
6469
6470 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6471 include file of the same name.
6472
6473 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6474
6475 * configure.tgt: Mark v850 as multi-arched.
6476 * config/v850/tm-v850.h: Remove file.
6477 * config/v850/v850.mt: Eliminate TM_FILE.
6478
6479 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6480
6481 * v850-tdep.c: Full multi-arch.
6482 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6483 Define GDB_MULTI_ARCH to 2.
6484
6485 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6486
6487 * p-exp.y (current_type): New static variable.
6488 Carries the type of the expression at the position that is parsed.
6489 (push_current_type, pop_current_type): Two new functions. Used
6490 to store/restore current_type in expression on specific tokens.
6491 (search_field): New static variable. Set to one after parsing a point
6492 as at that point only a FIELDNAME token should be searched.
6493 (FIELDNAME): New token. After a point only a token belonging to
6494 current_type type definition is allowed.
6495 (all over token rules): reset and change current_type according
6496 to rules.
6497 (exp '[' rule): insert implicit array index field if
6498 exp is a pascal string type.
6499
6500 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6501
6502 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6503 frame info. Use frame_info's saved_regs instead of matching member
6504 in extra_frame_info throughout.
6505 (v850_frame_init_saved_regs): New function.
6506 (v850_init_extra_frame_info): Move most functionality into
6507 v850_frame_init_saved_regs().
6508 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6509 (v850_frame_find_saved_regs): Remove declaration.
6510 (FRAME_FIND_SAVED_REGS): Remove definition.
6511 (v850_frame_init_saved_regs): Add declaration.
6512 (FRAME_INIT_SAVED_REGS): Add definition.
6513
6514 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6515
6516 * v850-tdep.c: Begin multi-arch'ing v850.
6517 (v850_target_architecture_hook): Remove function.
6518 (v850_gdbarch_init): New function. Add code previously in
6519 v850_target_architecture_hook().
6520 (_initialize_v850_tdep): Don't set target_architecture_hook.
6521 Call register_gdbarch_init() instead.
6522
6523 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6524
6525 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6526 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6527 (fixup_class_method_type): Likewise.
6528
6529 2002-05-15 Jim Blandy <jimb@redhat.com>
6530
6531 Add macro structures to GDB's symbol tables. Nobody puts anything
6532 in them yet.
6533 * symtab.h (struct symtab): New member: `macro_table'.
6534 * buildsym.h (pending_macros): New global variable.
6535 * buildsym.c: #include "macrotab.h".
6536 (buildsym_init): Initialize `pending_macros'.
6537 (end_symtab): If we found macro information while reading a CU's
6538 debugging info, do build a symtab structure for it. Make the
6539 symtab point to the macro information, and clear the
6540 `pending_macros' pointer which held it while we were reading the
6541 debug info.
6542 (really_free_pendings): Free any pending macro table.
6543 * objfiles.h (struct objfile): New member: `macro_cache'.
6544 * objfiles.c (allocate_objfile): Set allocate and free functions
6545 for the macro cache's objstack.
6546 (free_objfile): Empty the macro cache's obstack.
6547 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6548 set new allocate and free functions for it.
6549 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6550 free functions for the macro cache's objstack. (Why is this
6551 function building its own objfile?)
6552 * symmisc.c (print_objfile_statistics): Print statistics on the
6553 macro bcache.
6554 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6555
6556 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6557
6558 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6559 (REGISTER_U_ADDR): Delete definition.
6560 (arm_register_u_addr): Delete declaration.
6561
6562 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6563
6564 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6565 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6566
6567 2002-05-14 Andrew Cagney <ac131313@redhat.com>
6568
6569 * regcache.c (register_valid): Revise comments refering to "Not
6570 available" and "unavailable".
6571 * frame.c (frame_register_read): Ditto.
6572 * findvar.c (value_of_register): Ditto.
6573
6574 2002-05-15 Andrew Cagney <cagney@redhat.com>
6575
6576 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6577 (remote-sim.o): Update dependencies.
6578 (d10v-tdep.o): Specify dependencies.
6579 (sim_d10v_h): Define.
6580
6581 2002-05-14 Jim Blandy <jimb@redhat.com>
6582
6583 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6584 * macrotab.c (macro_lookup_inclusion, find_definition,
6585 new_macro_table): Same.
6586
6587 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6588 not `! strcmp ()'. This is a dubious improvement.
6589 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6590
6591 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6592 although it's not necessary, to avoid a warning.
6593
6594 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6595
6596 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6597 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6598 TYPE_INSTANCE_FLAGS.
6599 (struct main_type): New.
6600 (struct type): Move most members to struct main_type. Change
6601 cv_type and as_type to new type_chain member. Add instance_flags.
6602 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6603 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6604 (finish_cv_type): Remove prototype.
6605 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6606 Set TYPE_CHAIN.
6607 (alloc_type_instance): New function.
6608 (smash_type): New function.
6609 (make_pointer_type, make_reference_type, make_function_type)
6610 (smash_to_member_type, smash_to_method_type): Call smash_type.
6611 (make_qualified_type): New function.
6612 (make_type_with_address_space): Call make_qualified_type.
6613 (make_cv_type): Likewise.
6614 (finish_cv_type): Remove unnecessary function.
6615 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6616 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6617 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6618 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6619 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6620 * hpread.c (hpread_read_struct_type): Likewise.
6621 * stabsread.c (read_struct_type): Likewise.
6622
6623 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
6624
6625 * configure.tgt: Add a catch all sh* target, for cases like
6626 sh[2,3,4]-elf and sh-hms.
6627
6628 2002-05-14 Keith Seitz <keiths@redhat.com>
6629
6630 * event-loop.c (create_file_handler): Don't do anything but
6631 update data when we are given a fd which we are already
6632 monitoring.
6633
6634 2002-05-14 Michal Ludvig <mludvig@suse.cz>
6635
6636 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6637 (update_context): Use __func__ in warnings.
6638
6639 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6640
6641 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6642 and tcp_close to net_open and net_close.
6643 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6644 using UDP if requested. Don't try to disable Nagle on UDP
6645 sockets.
6646 * remote.c (remote_serial_open): New function. Warn about UDP.
6647 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6648
6649 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6650
6651 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6652
6653 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6654
6655 * configure.tgt: Remove sh-hms target.
6656 * MAINTAINERS: Don't list sh-hms as a separate target.
6657
6658 2002-05-13 Jim Blandy <jimb@redhat.com>
6659
6660 Add first preprocessor macro-expansion files.
6661 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6662 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6663 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6664 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6665 (COMMON_OBS): Add macrotab.o, macroexp.o.
6666 (macroexp.o, macrotab.o): New rules.
6667
6668 2002-05-13 Andrew Cagney <ac131313@redhat.com>
6669
6670 * config/m88k/tm-m88k.h: Update copyright.
6671 (m88k_target_write_pc): Declare
6672 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6673 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6674 (SHIFT_INST_REGS): Update definition.
6675 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6676 using old definition of TARGET_WRITE_PC.
6677 * regcache.c (generic_target_write_pc): Delete code handling
6678 NNPC_REGNUM.
6679 * gdbarch.sh (NNPC_REGNUM): Delete.
6680 * gdbarch.h, gdbarch.c: Regenerate.
6681
6682 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
6683
6684 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6685 builtin reg number.
6686
6687 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
6688
6689 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6690 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6691 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6692 access macros.
6693 * c-typeprint.c (cp_type_print_method_args): Likewise.
6694 (c_type_print_args): Likewise.
6695 * d10v-tdep.c (d10v_push_arguments): Likewise.
6696 (d10v_extract_return_value): Likewise.
6697 * expprint.c (print_subexp): Likewise.
6698 * gdbtypes.c (lookup_primitive_typename): Likewise.
6699 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6700 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6701 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6702 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6703 (TYPE_VECTOR): Likewise.
6704 * hpread.c (hpread_read_struct_type)
6705 (fix_static_member_physnames, fixup_class_method_type)
6706 (hpread_type_lookup): Likewise.
6707 * mdebugread.c (parse_symbol, parse_type): Likewise.
6708 * p-lang.c (is_pascal_string_type): Likewise.
6709 * valops.c (hand_function_call): Likewise.
6710 * x86-64-tdep.c (classify_argument): Likewise.
6711
6712 * hpread.c (hpread_read_function_type)
6713 (hpread_read_doc_function_type): Call replace_type.
6714 * dstread.c (create_new_type): Delete.
6715 (decode_dst_structure, process_dst_function): Call alloc_type.
6716 Use type access macros.
6717
6718 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6719
6720 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6721 the're not supported by the current architecture.
6722 (i387_fill_fxsave): Likewise.
6723
6724 2002-05-12 Fred Fish <fnf@redhat.com>
6725
6726 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6727 sect_index_xxx members to index the first slot in section_offsets
6728 if all of the section_offsets are zero.
6729
6730 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6731
6732 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6733 checked in with last change.
6734
6735 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6736
6737 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6738 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6739 config.sub.
6740
6741 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
6742
6743 * Makefile.in: Update dependencies.
6744
6745 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6746
6747 * language.c (local_hex_string_custom): Simplify. Do not depend
6748 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6749
6750 * memattr.c (mem_info_command): Replace calls to
6751 longest_local_hex_string and longest_local_hex_string_custom.
6752 * buildsym.c (make_blockvector): Ditto.
6753 * solib.c (info_sharedlibrary_command): Ditto.
6754 * tracepoint.c (tracepoints_info): Ditto.
6755 * symtab.c (print_msymbol_info): Ditto.
6756
6757 * language.c (local_hex_string): Delete.
6758 (local_hex_string_custom): Delete.
6759 (longest_local_hex_string): Rename to local_hex_string.
6760 (longest_local_hex_string_custom): Rename to
6761 local_hex_string_custom.
6762 * language.h (local_hex_string): Change parameter type to LONGEST.
6763 (local_hex_string_custom): Ditto.
6764 (longest_local_hex_string): Delete declaration.
6765 (longest_local_hex_string_custom): Ditto.
6766
6767 * solib.c: Update copyright.
6768 * memattr.c: Update copyright.
6769
6770 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6771
6772 * arch-utils.h (legacy_register_to_value): Declare.
6773 (legacy_value_to_register): Declare.
6774 (legacy_convert_register_p): Declare.
6775 * arch-utils.c (legacy_register_to_value): New function.
6776 (legacy_value_to_register): New function.
6777 (legacy_convert_register_p): New function.
6778
6779 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6780 (VALUE_TO_REGISTER): Define.
6781 (CONVERT_REGISTER_P): Define.
6782 * gdbarch.h, gdbarch.c: Regenerate.
6783
6784 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6785 VALUE_TO_REGISTER.
6786 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6787 CONVERT_REGISTER_P.
6788
6789 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
6790 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6791
6792 * Makefile.in: Update dependencies for valops.c.
6793 * valops.c: Include "gdb_assert.h".
6794 (typecmp): Skip THIS parameter to methods.
6795 (find_method_list): Remove static_memfuncp argument,
6796 update callers. Check for stub methods.
6797 (find_value_oload_method_list): Don't set *static_memfuncp.
6798 (find_overload_match): Don't check for stub methods. Assert
6799 that methods are not stubbed. Handle static methods.
6800 (value_find_oload_method_list): Remove static_memfuncp argument.
6801 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6802 to the argument list for static stub methods.
6803 * value.h (value_find_oload_method_list): Update prototype.
6804
6805 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6806
6807 * arch-utils.h (generic_register_size): Declare.
6808 (generic_register_raw_size, generic_register_virtual_size): Delete
6809 declarations.
6810 * arch-utils.c (generic_register_raw_size): Delete.
6811 (generic_register_size): New function.
6812 (generic_register_virtual_size): Delete.
6813
6814 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6815 default generic_register_size.
6816 * gdbarch.h, gdbarch.c: Re-generate.
6817
6818 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6819 register_virtual_size.
6820 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6821 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6822
6823 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6824
6825 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6826 * gdbarch.h, gdbarch.c: Regenerate.
6827 * gnu-v3-abi.c: Update copyright.
6828 (vtable_address_point_offset): Update.
6829 (gnuv3_rtti_type): Update.
6830 (gnuv3_baseclass_offset): Update.
6831 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6832 (init_fetch_link_map_offsets): Update.
6833 * remote.c (get_remote_state): Update.
6834
6835 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6836
6837 * TODO: Remove value_headof/value_from_vtable_info comment.
6838 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6839 * values.c (value_headof, value_from_vtable_info): Delete.
6840 * value.h (value_from_vtable_info): Delete prototype.
6841
6842 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6843
6844 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6845 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6846 $(gdb_regex_h).
6847 (gdb_assert_h): Define.
6848 (gdb_wait_h): Define.
6849 (gdb_regex_h): Define.
6850
6851 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6852
6853 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6854 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6855
6856 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6857
6858 * nbsd-tdep.c: Fix comment.
6859
6860 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6861
6862 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6863 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6864 (nbsd-tdep.o): New dependency list.
6865 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6866 nbsd-tdep.h.
6867 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6868 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6869 * nbsd-tdep.c: New file.
6870 * nbsd-tdep.h: New file.
6871 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6872 nbsd-tdep.h.
6873 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6874 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6875 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6876 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6877
6878 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6879
6880 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6881 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6882 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6883 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6884 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6885 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6886
6887 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6888
6889 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6890 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6891 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6892 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6893 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6894 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6895 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6896
6897 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6898
6899 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6900 fetch_elfcore_registers to...
6901 * i386nbsd-tdep.c: ...here.
6902 (i386nbsd_use_struct_convention): Rename to...
6903 (i386nbsd_aout_use_struct_convention): ...this.
6904 (i386nbsd_supply_reg): New function.
6905 (i386nbsd_fill_reg): New function.
6906 (fetch_core_registers): Use i386nbsd_supply_reg.
6907 (fetch_elfcore_registers): Likewise.
6908 (_initialize_i386nbsd_tdep): New function.
6909 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6910 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6911 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6912 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6913 (i386nbsd_aout_use_struct_convention): ...this.
6914
6915 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6916
6917 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6918 (store_inferior_registers): Use shnbsd_fill_reg.
6919 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6920 sh_nbsd_supply_register): Collapse into...
6921 (shnbsd_supply_reg): ...this.
6922 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6923 (shnbsd_fill_reg): ...this.
6924 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6925 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6926 (fetch_core_registers): Use shnbsd_supply_reg.
6927 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6928 (sh_nbsd_core_fns): Rename to...
6929 (shnbsd_core_fns): ...this.
6930 (sh_nbsd_elfcore_fns): Rename to...
6931 (shnbsd_elfcore_fns): ...this.
6932 (sh_nbsd_init_abi): Rename to...
6933 (shnbsd_init_abi): ...this.
6934 (_initialize_sh_nbsd_tdep): Rename to...
6935 (_initialize_shnbsd_tdep): ...this.
6936 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6937 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6938 sh_nbsd_fill_register): Remove prototypes.
6939 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6940
6941 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6942
6943 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6944 (i387-nat.o): Delete dependency list.
6945 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6946 (x86-64-linux-nat.o): Likewise.
6947 * i387-nat.c: Delete file, moving contents to...
6948 * i387-tdep.c: ...here.
6949 * i387-nat.h: Rename...
6950 * i387-tdep.h: ...to this.
6951 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6952 * i386-linux-nat.c: Likewise.
6953 * i386bsd-nat.c: Likewise.
6954 * i386gnu-nat.c: Likewise.
6955 * i386nbsd-nat.c: Likewise.
6956 * i386v4-nat.c: Likewise.
6957 * x86-64-linux-nat.c: Likewise.
6958 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6959 * config/i386/go32.mh (NATDEPFILES): Likewise.
6960 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6961 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6962 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6963 * config/i386/linux.mh (NATDEPFILES): Likewise.
6964 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6965 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6966 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6967 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6968
6969 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6970
6971 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6972 (alphanbsd-nat.o): Remove dependency list.
6973 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6974 * alphanbsd-nat.c: Delete. Contents moved to...
6975 * alphanbsd-tdep.c: ...here.
6976 (_initialize_alphanbsd_tdep): Register core functions.
6977 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6978
6979 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6980
6981 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6982 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6983 (alphanbsd-nat.o): Likewise.
6984 (alphabsd-tdep.o): New dependency list.
6985 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6986 (fill_gregset): Use alphabsd_fill_reg.
6987 (supply_fpregset): Use alphabsd_supply_fpreg.
6988 (fill_fpregset): Use alphabsd_fill_fpreg.
6989 (fetch_inferior_registers): Use struct reg and struct fpreg
6990 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6991 and alphabsd_supply_fpreg.
6992 (store_inferior_registers): Use struct reg and struct fpreg
6993 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6994 and alphabsd_fill_fpreg.
6995 * alphabsd-tdep.c: New file.
6996 * alphabsd-tdep.h: New file.
6997 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6998 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6999 alphabsd_supply_fpreg.
7000 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
7001 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7002
7003 2002-05-11 Eric Christopher <echristo@redhat.com>
7004
7005 * mips-tdep.c (mips_double_register_type): Fix thinko.
7006 (mips_single_register_type): Ditto.
7007 * MAINTAINERS: Add self.
7008
7009 2002-05-11 Mark Kettenis <kettenis@gnu.org>
7010
7011 * i387-nat.c (i387_supply_register, i387_fill_fsave,
7012 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
7013 right thing on architectures with different endianness and/or
7014 integer sizes.
7015
7016 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
7017
7018 From Christian Limpach <chris@Pin.LU>
7019 * configure.in: Change sed expression which comments out
7020 NATDEPFILES to also comment out continuation lines.
7021 * configure: Regenerate.
7022
7023 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7024
7025 * sh-tdep.c: Clean up code erroneously reintroduced by previous
7026 big patch.
7027
7028 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7029
7030 * sh-tdep.c: Include correct file.
7031
7032 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7033
7034 New support for sh64-elf (sh5) target.
7035
7036 * configure.tgt: For sh64-elf target, default to sh-elf.
7037
7038 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
7039 (struct gdbarch_tdep): Add new fields for new registers and ABI
7040 info.
7041
7042 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
7043 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
7044 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
7045 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
7046 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
7047 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
7048 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
7049 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
7050 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
7051 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
7052 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
7053 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
7054 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
7055 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
7056 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
7057 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
7058 sh64_get_gdb_regnum, sh64_media_reg_base_num,
7059 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
7060 sign_extend, sh64_nofp_frame_init_saved_regs,
7061 sh64_init_extra_frame_info, sh64_get_saved_register,
7062 sh64_extract_struct_value_address, sh64_pop_frame,
7063 sh64_push_arguments, sh64_extract_return_value,
7064 sh64_store_return_value, sh64_show_media_regs,
7065 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
7066 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
7067 sh_sh64_register_virtual_type,
7068 sh_sh64_register_convert_to_virtual,
7069 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
7070 sh64_register_read, sh64_pseudo_register_write,
7071 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
7072 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
7073 sh64_do_pseudo_register, sh_compact_do_registers_info,
7074 sh64_do_registers_info, sh_gdbarch_init): New functions.
7075
7076 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7077
7078 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
7079
7080 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
7081
7082 * linespec.c (decode_line_1): Check for a double quote after
7083 a filename correctly.
7084
7085 2002-05-10 Jim Blandy <jimb@redhat.com>
7086
7087 Properly track the size of the current objfile's .debug_line section.
7088 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
7089 (DWARF_LINE_SIZE): New macro.
7090 (dwarf2_build_psymtabs_hard): Record the line section's size in
7091 the partial symbol table.
7092 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
7093 symbol table.
7094
7095 2002-05-10 Petr Sorfa <petrs@caldera.com>
7096
7097 * ia64-tdep.c: Handle breakpoints on L instruction type
7098 in MLX instruction bundle by moving the breakpoint to
7099 the third slot (X instruction type) as L holds only data.
7100
7101 2002-05-10 Kevin Buettner <kevinb@redhat.com>
7102
7103 * dbxread.c (discarding_local_symbols_complaint): New complaint.
7104 (process_one_symbol): Complain about discarding local symbols
7105 due to a misplaced N_LBRAC entry.
7106
7107 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
7108
7109 From Daniel Berlin <dan@cgsoftware.com>
7110 * linespec.c (find_toplevel_char): '<' and '>' also increase and
7111 decrease the depth we are at, in the case of templates.
7112
7113 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7114
7115 * mips-tdep.c (mips_float_register_type): New function.
7116 (mips_double_register_type): New function.
7117 (mips_print_register): Use them.
7118 (do_fp_register_row): Likewise.
7119
7120 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7121
7122 * signals/signals.c (signals): Remove conditional compilation around
7123 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
7124 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
7125
7126 2002-05-09 Michael Snyder <msnyder@redhat.com>
7127
7128 * remote-rdp.c (remote_rdp_can_run): Remove.
7129
7130 2002-05-09 Tom Tromey <tromey@redhat.com>
7131
7132 * jv-valprint.c (java_val_print): Handle `char' as a special case
7133 of TYPE_CODE_INT.
7134
7135 2002-05-09 Michael Snyder <msnyder@redhat.com>
7136
7137 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
7138 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
7139 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
7140 str r(0123),[sp,#nn].
7141 (arm_skip_prologue): Ditto. Also make disassembly
7142 order-independent by placing it in a loop.
7143
7144 2002-05-06 Michael Snyder <msnyder@redhat.com>
7145
7146 * stabsread.c (read_type): Add recognition for new attribute:
7147 "@V;" means that an array type is actually a vector.
7148 This is analogous to the vector flag that's been added to dwarf2.
7149
7150 2002-05-09 Mark Kettenis <kettenis@gnu.org>
7151
7152 * i386-tdep.h (i386_abi): New enum.
7153 (struct gdbarch_tdep): Replace os_ident member with abi.
7154 (i386_gdbarch_register_os_abi): New prototype.
7155 * i386-tdep.c (i386_abi_names): New array.
7156 (process_note_abi_tag_sections): Removed.
7157 (process_note_sections): New function.
7158 (i386_elf_abi_from_note, i386_elf_abi): New functions.
7159 (struct i386_abi_handler): New struct.
7160 (i386_abi_handler_list): New variable.
7161 (i386_gdbarch_register_os_abi): New function.
7162 (i386_gdbarch_init): Adapt for the changes given above.
7163
7164 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
7165
7166 * gregset.h: Say "GNU/Linux".
7167
7168 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
7169
7170 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7171 (build_gdbtypes): Build builtin_type_v2_float.
7172 (_initialize_gdbtypes): Register new builtin type.
7173
7174 2002-05-08 Andrew Cagney <ac131313@redhat.com>
7175
7176 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7177 (clear_gdbarch_swap): New function.
7178 (initialize_non_multiarch): Call.
7179 (gdbarch_update_p): Before calling init(), swap out and clear the
7180 existing architecture.
7181 * gdbarch.c: Regenerate.
7182
7183 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7184
7185 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7186 alphanbsd-tdep.c.
7187
7188 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7189
7190 * sh-nbsd-nat.c: Rename to...
7191 * shnbsd-nat.c: ...this.
7192 * sh-nbsd-tdep.c: Rename to...
7193 * shnbsd-tdep.c: ...this.
7194 * sh-nbsd-tdep.h: Rename to...
7195 * shnbsd-tdep.h: ...this.
7196 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7197 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7198
7199 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
7200
7201 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7202 concatenation for command help messages.
7203
7204 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7205
7206 * NEWS: Note new sh*-*-netbsdelf* configuration.
7207 * configure.host: Set gdb_host_cpu to sh for all sh*.
7208 (sh*-*-netbsdelf*): New host.
7209 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7210 (sh*-*-netbsdelf*): New target.
7211 * sh-nbsd-nat.c: New file.
7212 * sh-nbsd-tdep.c: New file.
7213 * sh-nbsd-tdep.h: New file.
7214 * config/sh/nbsd.mh: New file.
7215 * config/sh/nbsd.mt: New file.
7216 * config/sh/nm-nbsd.h: New file.
7217 * config/sh/tm-nbsd.h: New file.
7218
7219 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7220
7221 * sh-tdep.c (sh_osabi_names): Declare.
7222 (process_note_abi_tag_sections): New function.
7223 (get_elfosabi): Ditto.
7224 (sh_gdbarch_register_os_abi): Ditto.
7225 (sh_dump_tdep): Ditto.
7226 _initialize_sh_tdep): Use gdbarch_register to register
7227 sh_gdbarch_init and sh_dump_tdep.
7228 * config/sh/tm-sh.h (sh_osabi): Declare.
7229 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7230
7231 2002-05-07 Andrew Cagney <ac131313@redhat.com>
7232
7233 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7234 (thumb_scan_prologue): Ditto.
7235 (arm_find_callers_reg): Ditto.
7236 (arm_frame_chain): Ditto.
7237 (arm_init_extra_frame_info): Ditto.
7238 (arm_frame_saved_pc): Ditto.
7239 (arm_pop_frame): Ditto.
7240 (arm_push_return_address): New function.
7241 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7242 call_dummy_location, call_dummy_breakpoint_offset_p,
7243 call_dummy_breakpoint_offset, call_dummy_p,
7244 call_dummy_stack_adjust_p, call_dummy_words,
7245 sizeof_call_dummy_words, call_dummy_start_offset,
7246 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7247 call_dummy_address, push_return_address and push_dummy_frame for
7248 generic dummy frames.
7249
7250 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7251
7252 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7253 size computation for alloca.
7254 (sh_fp_frame_init_saved_regs): Likewise.
7255
7256 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
7257
7258 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7259 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
7260 * arm-tdep.c (arm_store_return_value): Use them.
7261 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7262 * remote-rdp.c (remote_rdp_fetch_register): Use
7263 ARM_MAX_REGISTER_RAW_SIZE.
7264 (remote_rdp_store_register): Likewise.
7265
7266 2002-05-07 Michal Ludvig <mludvig@suse.cz>
7267
7268 * dwarf2cfi.c: Code cleanup, removed unused variables,
7269 added default labels to switch {} statements.
7270 * x86-64-tdep.c: Ditto.
7271 * x86-64-linux-nat.c: Ditto.
7272
7273 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7274
7275 * solib.h: Protect against multiple inclusion.
7276
7277 2002-05-06 Jim Blandy <jimb@redhat.com>
7278
7279 Add first preprocessor macro-expansion files.
7280 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7281 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7282 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7283 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7284 (COMMON_OBS): Add macrotab.o, macroexp.o.
7285 (macroexp.o, macrotab.o): New rules.
7286
7287 Separate the job of reading the line number info statement program
7288 header (...expialidocious) out into its own function.
7289 * dwarf2read.c (struct line_head, struct filenames, struct
7290 directories): Replace with...
7291 (struct line_header): New structure, containing the full
7292 contents of the statement program header, including the
7293 include directory and file name tables.
7294 (read_file_scope): If we have line number info, instead of just
7295 calling dwarf_decode_lines to do all the work, call
7296 dwarf_decode_line_header first to get a `struct line_header'
7297 containing the data in the statement program header, and then
7298 pass that to dwarf_decode_lines, which will pick up where that
7299 left off. Be sure to clean up the `struct line_header' object.
7300 (dwarf_decode_line_header, free_line_header, add_include_dir,
7301 add_file_name): New functions.
7302 (dwarf_decode_lines): Move all the code to read the statement
7303 program header into dwarf_decode_line_header. Take the line
7304 header it built as the first argument, instead of the offset to
7305 the compilation unit's line number info. Use the new `struct
7306 line_header' type instead of the old structures. No need to do
7307 cleanups here now, since we don't allocate anything.
7308 (dwarf2_statement_list_fits_in_line_number_section,
7309 dwarf2_line_header_too_long): New complaints.
7310
7311 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
7312
7313 * gdbtypes.c (init_vector_type): New function.
7314 (build_builtin_type_vec128): Simplify the representation of SIMD
7315 registers.
7316 (build_gdbtypes): Initialize new builtin vector types.
7317 (_initialize_gdbtypes): Register new vector types with gdbarch.
7318 (builtin_type_v4_float, builtin_type_v4_int32,
7319 builtin_type_v8_int16, builtin_type_v16_int8,
7320 builtin_type_v2_int32, builtin_type_v4_int16,
7321 builtin_type_v8_int8): New (renamed) SIMD types.
7322
7323 2002-05-06 Mark Kettenis <kettenis@gnu.org>
7324
7325 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7326 (i387_fill_fxsave): Likewise.
7327
7328 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
7329
7330 * alpha-tdep.c (alpha_extract_return_value): Don't use
7331 non-constant array size in prototype.
7332
7333 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7334
7335 From Brian Taylor <briant at model dot com>:
7336 * ui-out.c (ui_out_field_core_addr): Use the function
7337 longest_local_hex_string_custom'to format addresses > 32 bits
7338 wide.
7339
7340 * ui-out.c (ui_out_field_core_addr): Update comment.
7341
7342 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7343
7344 * stack.c (select_and_print_frame): Make static. Delete the
7345 parameter `level'.
7346 (func_command): Update call.
7347 (select_frame_command): Delete code computing the frame level.
7348 * frame.h (select_and_print_frame): Delete declaration.
7349
7350 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7351
7352 * sparc-tdep.c (sparc_get_saved_register): Comment why
7353 get_prev_frame call is safe.
7354
7355 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7356
7357 * frame.h (select_frame): Delete level parameter.
7358 * stack.c (select_frame): Update. Use frame_relative_level to
7359 obtain the frame's level.
7360 (select_and_print_frame): Update call.
7361 (select_frame_command): Ditto.
7362 (up_silently_base): Ditto.
7363 (down_silently_base): Ditto.
7364 * ocd.c (ocd_start_remote): Ditto.
7365 * remote-rdp.c (remote_rdp_open): Ditto.
7366 * remote-mips.c (mips_initialize): Ditto.
7367 (common_open): Ditto.
7368 * remote-e7000.c (e7000_start_remote): Ditto.
7369 * m3-nat.c (select_thread): Ditto.
7370 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7371 (child_get_current_exception_event): Ditto.
7372 * varobj.c (varobj_create): Ditto.
7373 (varobj_update): Ditto.
7374 (c_value_of_root): Ditto.
7375 * tracepoint.c (finish_tfind_command): Ditto.
7376 * corelow.c (core_open): Ditto.
7377 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7378 * thread.c (info_threads_command): Ditto.
7379 (switch_to_thread): Ditto.
7380 * infrun.c (normal_stop): Ditto.
7381 (restore_selected_frame): Ditto.
7382 (restore_inferior_status): Ditto.
7383 * breakpoint.c (insert_breakpoints): Ditto.
7384 (watchpoint_check): Ditto.
7385 (bpstat_stop_status): Ditto.
7386 (do_enable_breakpoint): Ditto.
7387 * blockframe.c (flush_cached_frames): Ditto.
7388 (reinit_frame_cache): Ditto.
7389
7390 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7391
7392 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7393 maintainer.
7394
7395 2002-05-04 Jim Blandy <jimb@redhat.com>
7396
7397 * gdbtypes.c (replace_type): Doc fix.
7398
7399 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7400
7401 * valprint.c (strcat_longest): Delete commented out function.
7402 Update copyright.
7403
7404 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7405
7406 * MAINTAINERS: Mark a29k as deleted.
7407 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7408 Move new configurations to the top.
7409 * configure.tgt: Remove a29k.
7410 * config/a29k/tm-vx29k.h: Delete.
7411 * config/a29k/vx29k.mt: Delete.
7412 * config/a29k/tm-a29k.h: Delete.
7413 * config/a29k/a29k-udi.mt: Delete.
7414 * config/a29k/a29k.mt: Delete.
7415 * a29k-tdep.c: Delete.
7416 * remote-udi.c: Delete.
7417 * remote-mm.c: Delete.
7418 * remote-eb.c: Delete.
7419 * remote-adapt.c: Delete.
7420 * Makefile.in: Remove obsolete code.
7421 * config/s390/s390x.mt: Ditto.
7422 * config/s390/s390.mt: Ditto.
7423 * config/sparc/sparclynx.mh: Ditto.
7424 * config/sparc/linux.mh: Ditto.
7425 * config/pa/hppaosf.mh: Ditto.
7426 * config/pa/hppabsd.mh: Ditto.
7427 * config/ns32k/nbsd.mt: Ditto.
7428 * config/mips/vr5000.mt: Ditto.
7429 * config/m68k/sun3os4.mh: Ditto.
7430 * config/m68k/nbsd.mt: Ditto.
7431 * config/m68k/m68klynx.mh: Ditto.
7432 * config/m32r/m32r.mt: Ditto.
7433 * config/i386/x86-64linux.mt: Ditto.
7434 * config/i386/nbsdelf.mt: Ditto.
7435 * config/i386/nbsd.mt: Ditto.
7436 * config/i386/i386lynx.mh: Ditto.
7437
7438 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7439
7440 * target.c (debug_print_register): New function. Handle oversize
7441 registers.
7442 (debug_to_fetch_registers): Call.
7443 (debug_to_store_registers): Call.
7444
7445 2002-05-03 Jim Blandy <jimb@redhat.com>
7446
7447 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7448 (read_type): Doc fix.
7449 * gdbtypes.c (replace_type): Doc fix.
7450
7451 * stabsread.c (multiply_defined_struct): New complaint.
7452 (read_struct_type): If the type we were passed isn't empty, or
7453 incomplete, don't read the new struct type into it; complain,
7454 and return the original type unchanged. Take a new `type_code'
7455 argument, which is the type code for the new type.
7456 (read_type): Rather than storing the type's type code here, pass
7457 it as an argument to read_struct_type, and let that take care of
7458 storing it. That way, we don't overwrite the original type code,
7459 so read_struct_type can use it to decide whether we're overwriting
7460 something we shouldn't.
7461 (complain_about_struct_wipeout): New function.
7462
7463 2002-05-03 Andrew Cagney <ac131313@redhat.com>
7464
7465 * gdbarch.sh: Assert that gdbarch is non-NULL.
7466 * gdbarch.c: Regenerate.
7467
7468 2002-05-03 Jason Merrill <jason@redhat.com>
7469
7470 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7471 and return NULL.
7472
7473 2002-05-03 Michal Ludvig <mludvig@suse.cz>
7474
7475 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7476 (x86_64_dwarf2gdb_regno_map_length),
7477 (x86_64_dwarf2_reg_to_regnum): Added.
7478 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7479 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7480 (_initialize_x86_64_tdep): Synced with the change above.
7481 (x86_64_skip_prologue): Reformulated message.
7482
7483 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7484
7485 * f-exp.y: Also use new prev_lexptr variable
7486 to improve error reporting. Based on Michael Snyder
7487 2002-04-24 dated patch to c-exp.y.
7488 * jv-exp.y: Likewise.
7489 * m2-exp.y: Likewise.
7490
7491 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
7492
7493 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7494 we are dealing with vectors.
7495
7496 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7497
7498 * config/m68k/tm-nbsd.h: Obvious fix,
7499 correct machine name.
7500
7501 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7502
7503 * p-typeprint.c (pascal_type_print_base): Add support
7504 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7505
7506 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7507
7508 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7509 for fondamental pascal 'char' type.
7510
7511 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7512
7513 * p-lang.h (is_pascal_string_type): Declaration changed,
7514 new sixth argument of type char ** added.
7515 * p-lang.c (is_pascal_string_type): Implementation
7516 changed. Args length_pos, length_size, string_pos, char_size
7517 can now be NULL. New argument arrayname set to the field
7518 name of the char array. Return value set to char array
7519 field index plus one.
7520 * p-valprint.c (pascal_val_print): Adapt to new declaration of
7521 is_pascal_string_type function.
7522
7523 2002-05-02 Andrew Cagney <cagney@redhat.com>
7524
7525 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7526 <cagney@redhat.com> change.
7527 * gdbarch.c: Regenerate.
7528
7529 2002-05-02 Andrew Cagney <cagney@redhat.com>
7530
7531 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7532 before probing for a new one. Detect errorenous gdbarch_init
7533 functions.
7534 * gdbarch.c: Regenerate.
7535
7536 2002-05-01 Andrew Cagney <cagney@redhat.com>
7537
7538 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7539 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7540 * config/v850/tm-v850.h: Ditto. Update copyright.
7541
7542 2002-04-30 Andrew Cagney <ac131313@redhat.com>
7543
7544 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7545 current_gdbarch.
7546
7547 2002-04-30 Michael Snyder <msnyder@redhat.com>
7548
7549 * arm-tdep.c: Whitespace clean-ups.
7550 (arm_skip_prologue): Fix thinko; two lines
7551 should have been removed as part of 4/24 change.
7552
7553 2002-04-30 Kevin Buettner <kevinb@redhat.com>
7554
7555 * rs6000-tdep.c: Added comment describing how fpscr register
7556 numbers were chosen.
7557
7558 2002-04-30 Michael Snyder <msnyder@redhat.com>
7559
7560 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7561
7562 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7563
7564 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7565 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7566 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7567
7568 2002-04-29 Kevin Buettner <kevinb@redhat.com>
7569
7570 From Louis Hamilton <hamilton@redhat.com>:
7571 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7572 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7573 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7574 not bfd-private xcoff data, to determine wordsize.
7575 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7576
7577 2002-04-29 Andrew Cagney <ac131313@redhat.com>
7578
7579 GDB 5.2 released from 5.2 branch.
7580
7581 2002-04-29 Michal Ludvig <mludvig@suse.cz>
7582
7583 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7584 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7585 (x86_64_register_info_table): Added comments with register numbers.
7586
7587 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7588
7589 * rs6000-tdep.c (rs6000_extract_return_value,
7590 rs6000_store_return_value): Handle returning vectors.
7591 (rs6000_gdbarch_init): Use
7592 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7593 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7594 New function.
7595 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7596 vectors.
7597 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7598 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7599
7600 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7601
7602 * hpread.c (hpread_psymtab_to_symtab_1,
7603 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7604 with fprintf_unfiltered (gdb_stderr,...).
7605
7606 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7607
7608 * remote-array.c (printf_monitor, write_monitor,
7609 array_insert_breakpoint, array_remove_breakpoint ):
7610 Replace fprintf (stderr,...
7611 with fprintf_unfiltered (gdb_stderr,....
7612 * remote-es.c: Likewise.
7613 * remote-os9k.c: Likewise.
7614 * remote-st.c: Likewise.
7615
7616 2002-04-28 Andreas Schwab <schwab@suse.de>
7617
7618 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7619 linux-proc.o and gcore.o.
7620
7621 2002-04-26 Michal Ludvig <mludvig@suse.cz>
7622
7623 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7624 code without frame pointers.
7625
7626 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7627
7628 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7629 ON_STACK is needed.
7630
7631 2002-04-26 Ben Elliston <bje@redhat.com>
7632
7633 * target.c (do_xfer_memory): Correct reference to the new option
7634 "trust-readonly-sections".
7635
7636 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
7637
7638 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7639 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7640 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7641 vectors.
7642 (read_array_type): Record the fact that this array type is really a
7643 vector (i.e. are passed in by value).
7644
7645 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7646
7647 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7648 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7649 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7650 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7651 * alpha-linux-tdep.c: Include frame.h.
7652 (alpha_linux_sigcontext_addr): New function.
7653 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7654 alpha_linux_sigcontext_addr.
7655 * alpha-osf1-tdep.c: Include gdbcore.h.
7656 (alpha_osf1_sigcontext_addr): New function.
7657 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7658 alpha_osf1_sigcontext_addr.
7659 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7660 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7661
7662 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7663
7664 * stack.c (selected_frame_level):
7665 (select_frame): Do not set selected_frame_level.
7666 * frame.h (selected_frame_level): Delete declaration.
7667
7668 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7669
7670 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7671 convert_from_func_ptr-addr when AIX / PowerOpen.
7672
7673 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7674
7675 * valops.c (hand_function_call): Call
7676 generic_save_call_dummy_addr.
7677 * frame.h (generic_save_call_dummy_addr): Declare.
7678 * blockframe.c (struct dummy_frame): Add fields call_lo and
7679 call_hi.
7680 (generic_find_dummy_frame): Check for PC in range call_lo to
7681 call_hi instead of entry_point_address.
7682 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7683 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7684 (generic_save_call_dummy_addr): New function.
7685
7686 2002-04-24 David S. Miller <davem@redhat.com>
7687
7688 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7689 sparc_skip_prologue.
7690 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7691 information to find prologue when possible.
7692 (sparc_prologue_frameless_p): Call examine_prologue directly.
7693 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7694 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7695 second argument.
7696 (SKIP_PROLOGUE): Likewise.
7697
7698 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7699
7700 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7701 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7702 indicate that the condition it was testing is always true.
7703 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7704 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7705 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7706
7707 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7708
7709 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7710 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7711 tdep->jb_pc and tdep->jb_elt_size.
7712 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7713 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7714 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7715 * alpha-nat.c (get_longjmp_target): Remove.
7716 (JB_ELEMENT_SIZE): Ditto.
7717 (JB_PC): Ditto.
7718 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7719 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7720 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7721 to alpha_get_longjmp_target.
7722 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7723 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7724 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7725
7726 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7727
7728 * README: Update to GDB 5.2.
7729
7730 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7731
7732 * gdbarch.sh (LC_ALL): Set to `c'.
7733
7734 2002-04-25 Theodore A. Roth <troth@verinet.com>
7735
7736 * avr-tdep.c: Ran through gdb_indent.sh.
7737
7738 2002-04-25 Theodore A. Roth <troth@verinet.com>
7739
7740 * MAINTAINERS: Add myself as AVR maintainer.
7741 * NEWS: Note new target avr.
7742
7743 2002-04-25 Theodore A. Roth <troth@verinet.com>
7744
7745 * Makefile.in: Add support for AVR target.
7746 * configure.tgt: Add support for AVR target.
7747 * avr-tdep.c: New file
7748 * config/avr/avr.mt: New file.
7749
7750 2002-04-25 Theodore A. Roth <troth@verinet.com>
7751
7752 * MAINTAINERS: Add myself to write-after-approval.
7753
7754 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7755
7756 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7757 with fprintf_unfiltered (gdb_stderr,....
7758
7759 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7760
7761 Fix PR gdb/508.
7762 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7763
7764 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7765
7766 * p-exp.y: Also use new prev_lexptr variable
7767 to improve error reporting. Based on Michael Snyder
7768 2002-04-24 dated patch to c-exp.y.
7769
7770 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7771
7772 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7773 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7774 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7775 to 0.
7776 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7777 and struct value.
7778 (FUNCTION_START_OFFSET): Remove.
7779 (BREAKPOINT): Ditto.
7780
7781 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7782
7783 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7784 * NEWS: Ditto.
7785
7786 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7787
7788 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7789 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7790 alpha_linux_pc_in_sigtramp.
7791 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7792 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7793 alpha_osf1_pc_in_sigtramp.
7794 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7795 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7796 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7797 alphafbsd_pc_in_sigtramp.
7798 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7799 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7800 alphanbsd_pc_in_sigtramp.
7801 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7802 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7803
7804 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7805
7806 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7807
7808 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7809
7810 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7811 alphanbsd-tdep.c.
7812 (alphanbsd-nat.o): New dependency list.
7813 (alphanbsd-tdep.o): Ditto.
7814 * NEWS: Note new native NetBSD/alpha configuration.
7815 * alphanbsd-nat.c: New file.
7816 * alphanbsd-tdep.c: Ditto.
7817 * configure.host (alpha*-*-netbsd*): New host.
7818 * configure.tgt (alpha*-*-netbsd*): New target.
7819 * config/alpha/nbsd.mh: New file.
7820 * config/alpha/nbsd.mt: Ditto.
7821 * config/alpha/nm-nbsd.h: Ditto.
7822 * config/alpha/tm-nbsd.h: Ditto.
7823
7824 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7825
7826 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7827 (alpha-osf1-tdep.o): New dependency list.
7828 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7829 and skip_sigtramp_frame members.
7830 * alpha-linux-tdep.c: Include gdbcore.h.
7831 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7832 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7833 * alpha-osf1-tdep.c: New file.
7834 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7835 alpha-osf1-dep.c.
7836 (alpha_frame_past_sigtramp_frame): New function.
7837 (alpha_dynamic_sigtramp_offset): Ditto.
7838 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7839 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7840 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7841 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7842 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7843 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7844 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7845 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7846 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7847 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7848 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7849 to find_solib_trampoline_target.
7850 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7851 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7852 (SKIP_TRAMPOLINE_CODE): Remove.
7853 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7854 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7855 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7856 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7857 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7858 (PROC_SIGTRAMP_MAGIC): Ditto.
7859 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7860 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7861 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7862 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7863 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7864
7865 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7866
7867 * NEWS: Note that Alpha targets are now multi-arch.
7868
7869 2002-04-24 Michael Snyder <msnyder@redhat.com>
7870
7871 * parser-defs.h (prev_lexptr): New external variable.
7872 * parse.c (parse_exp_1): Set prev_lexptr to null before
7873 calling the language-specific parser.
7874 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7875 (yyerror): Use prev_lexptr in error reporting.
7876
7877 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
7878
7879 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7880 * gregset.h: If FILL_FPXREGSET is defined, provide
7881 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7882 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7883 is defined, call fill_fpxregset.
7884
7885 2002-04-24 Roland McGrath <roland@frob.com>
7886
7887 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7888 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7889 (supply_gregset, supply_fpregset): New functions.
7890
7891 * gnu-nat.c (gnu_find_memory_regions): New function.
7892 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7893 (gnu_xfer_memory): Add a cast.
7894
7895 2002-04-24 Michael Snyder <msnyder@redhat.com>
7896
7897 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
7898 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7899 of argument regs ("str r(0123), [r11, #-nn"]).
7900 (arm_skip_prologue): Better handling for frameless functions.
7901 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7902 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7903
7904 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7905
7906 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7907 NUM_PSEUDO_REGS can be used.
7908
7909 2002-04-24 Andrew Cagney <ac131313@redhat.com>
7910
7911 * arch-utils.h: Update copyright.
7912
7913 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7914 * gdbarch.h, gdbarch.c: Re-generate.
7915
7916 * inferior.h (IN_SIGTRAMP): Delete definition.
7917 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7918 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7919
7920 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7921 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7922 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7923 (find_proc_framesize): Ditto.
7924 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7925 (alpha_init_extra_frame_info): Ditto.
7926 * infrun.c (handle_inferior_event): Ditto.
7927 (handle_inferior_event): Ditto.
7928 (check_sigtramp2): Ditto.
7929 * blockframe.c (create_new_frame): Ditto.
7930 (get_prev_frame): Ditto.
7931 * ppc-linux-tdep.c: Update comments.
7932 * i386-linux-tdep.c: Update comments.
7933 * breakpoint.c (bpstat_what): Update comment.
7934
7935 2002-04-24 David S. Miller <davem@redhat.com>
7936
7937 * i960-tdep.c (register_in_window_p): New function.
7938 (i960_find_saved_register): Use it instead of
7939 REGISTER_IN_WINDOW_P.
7940 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7941
7942 * symtab.h (find_stab_function_addr): Kill extern.
7943 * minsyms.c (find_stab_function_addr): Remove from here...
7944 * dbxread.c: ... to here, and mark it static.
7945
7946 2002-04-20 David S. Miller <davem@redhat.com>
7947
7948 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7949 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7950
7951 2002-04-21 David S. Miller <davem@redhat.com>
7952
7953 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7954 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7955 (vx_write_register): Likewise.
7956
7957 2002-04-23 J. Brobecker <brobecker@gnat.com>
7958
7959 * source.c (is_regular_file): New function.
7960 (openp): Check wether file to open is a regular file
7961 to avoid opening directories.
7962
7963 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7964
7965 * findvar.c (extract_signed_integer): Cast printf argument
7966 to suppress format warning.
7967 (extract_unsigned_integer): Likewise.
7968 * infcmd.c (registers_info): Likewise.
7969 * top.c (get_prompt_1): Likewise.
7970 * valops.c (value_assign): Likewise.
7971 * valprint.c (print_decimal): Likewise.
7972
7973 2002-04-22 H.J. Lu (hjl@gnu.org)
7974
7975 * c-exp.y (typebase): Support
7976
7977 [long|long long|short] [signed|unsigned] [int|]
7978
7979 and
7980
7981 signed [long|long long|short] int
7982
7983 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7984
7985 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7986 and vax-tdep.h.
7987 * vax-tdep.h: New file.
7988 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7989 Make several routines static.
7990 (vax_get_saved_register): New function.
7991 (vax_gdbarch_init): New function.
7992 (_initialize_vax_tdep): Register vax_gdbarch_init.
7993 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7994 Remove macros now under the control of gdbarch.
7995
7996 2002-04-22 Michael Snyder <msnyder@redhat.com>
7997
7998 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7999 Some whitespace and coding standards tweaks.
8000
8001 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8002
8003 * vax-tdep.c: Include regcache.h.
8004 (vax_call_dummy_words): New.
8005 (sizeof_vax_call_dummy_words): New.
8006 (vax_fix_call_dummy): New function.
8007 (vax_saved_pc_after_call): Ditto.
8008 * config/vax/tm-vax.h: Don't include regcache.h.
8009 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
8010 (CALL_DUMMY): Remove.
8011 (CALL_DUMMY_WORDS): Define.
8012 (SIZEOF_CALL_DUMMY_WORDS): Define.
8013 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
8014
8015 2002-04-18 Michael Snyder <msnyder@redhat.com>
8016
8017 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
8018
8019 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8020
8021 * vax-tdep.c (vax_frame_chain): New function.
8022 (vax_push_dummy_frame): Ditto.
8023 (vax_pop_frame): Ditto.
8024 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
8025 (FRAMELESS_FUNCTION_INVOCATION): Use
8026 generic_frameless_function_invocation_not.
8027 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
8028 (POP_FRAME): Use vax_pop_frame.
8029
8030 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8031
8032 * vax-tdep.c (vax_store_struct_return): New function.
8033 (vax_extract_return_value): Ditto.
8034 (vax_store_return_value): Ditto.
8035 (vax_extract_struct_value_address): Ditto.
8036 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
8037 vax_store_struct_return.
8038 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
8039 (STORE_RETURN_VALUE): Use vax_store_return_value.
8040 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
8041
8042 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8043
8044 * vax-tdep.c (vax_frame_saved_pc): New function.
8045 (vax_frame_args_address_correct): Ditto.
8046 (vax_frame_args_address): Ditto.
8047 (vax_frame_locals_address): Ditto.
8048 (vax_frame_num_args): Move code to be in proximity to
8049 other frame-related functions.
8050 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
8051 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
8052 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
8053 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
8054 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
8055
8056 2002-04-22 H.J. Lu (hjl@gnu.org)
8057
8058 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
8059 includedir.
8060
8061 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8062
8063 * vax-tdep.c (vax_frame_init_saved_regs): New function.
8064 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
8065 (FRAME_INIT_SAVED_REGS): New macro.
8066
8067 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8068
8069 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
8070
8071 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8072
8073 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
8074 where needed.
8075 (fetch_osf_core_registers): Likewise.
8076 (supply_gregset): Likewise.
8077
8078 2002-04-22 J. Brobecker <brobecker@gnat.com>
8079
8080 * symfile.h (get_section_index): Define.
8081 * symfile.c (get_section_index): New function.
8082 * mdebugread.c (SC_IS_SBSS): New macro.
8083 (SC_IS_BSS): Return true for the scBss storage class only, as
8084 the scSBss storage class refers to the .sbss section.
8085 (parse_partial_symbols): Discard the symbols which associated
8086 section does not exist.
8087 Make sure to use the .sbss section index for symbols which
8088 storage class is scBss, rather than using the .bss section index.
8089
8090 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8091
8092 * vax-tdep.c: Update copyright years.
8093 (vax_register_name): New function.
8094 (vax_register_byte): Ditto.
8095 (vax_register_raw_size): Ditto.
8096 (vax_register_virtual_size): Ditto.
8097 (vax_register_virtual_type): Ditto.
8098 * config/vax/tm-vax.h: Update copyright years.
8099 (REGISTER_NAMES): Remove.
8100 (REGISTER_NAME): Define.
8101 (REGISTER_BYTE): Use vax_register_byte.
8102 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
8103 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
8104 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
8105
8106 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8107
8108 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
8109 declaration
8110 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
8111
8112 2002-04-21 David S. Miller <davem@redhat.com>
8113
8114 * arch-utils.c (generic_prologue_frameless_p): Kill
8115 SKIP_PROLOGUE_FRAMELESS_P code.
8116 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8117 references.
8118 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
8119 * arc-tdep.c (arc_prologue_frameless_p): Implement.
8120 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8121 references.
8122 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
8123 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
8124 (sparc_gdbarch_init): Pass it to
8125 set_gdbarch_prologue_frameless_p.
8126
8127 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8128
8129 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
8130 (alphabsd-nat.o): New dependency list.
8131
8132 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8133
8134 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8135 alphafbsd-tdep.c.
8136 (alpha-linux-tdep.o): New dependency list.
8137 (alphafbsd-tdep.o): Likewise.
8138
8139 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8140
8141 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
8142 to here...
8143 * alpha-tdep.c: ...from here.
8144 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8145
8146 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8147
8148 * config/alpha/tm-alpha.h: Move alpha_software_single_step
8149 prototype from here...
8150 * alpha-tdep.h: ...to here.
8151
8152 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8153
8154 * frame.h (selected_frame_level): Document as deprecated.
8155 (frame_relative_level): Declare.
8156 * stack.c (frame_relative_level): New function.
8157 (selected_frame_level): Document as deprecated.
8158 (select_frame): Do not set the selected_frame_level.
8159
8160 * stack.c (frame_info, record_selected_frame): Update.
8161 (frame_command, current_frame_command): Update.
8162 (up_silently_base, up_command, down_silently_base): Update.
8163 (down_command): Update.
8164 * inflow.c (kill_command): Update.
8165 * tracepoint.c (finish_tfind_command): Update.
8166 * corelow.c (core_open): Update.
8167 * thread.c (info_threads_command): Update.
8168 (do_captured_thread_select): Update.
8169 * infcmd.c (finish_command): Update.
8170 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8171
8172 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8173
8174 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8175
8176 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8177
8178 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8179 type const.
8180
8181 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8182
8183 * alphafbsd-tdep.c: Update copyright years. Include
8184 alpha-tdep.h.
8185 (alphafbsd_use_struct_convention): Make static.
8186 (alphafbsd_init_abi): New function.
8187 (_initialize_alphafbsd_tdep): New function.
8188 * config/alpha/tm-fbsd.h: Update copyright years.
8189 (USE_STRUCT_CONVENTION): Remove.
8190
8191 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8192
8193 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8194 an Alpha ABI variant.
8195 (alpha_abi_handler_list): Declare.
8196 (alpha_gdbarch_register_os_abi): New function.
8197 (alpha_gdbarch_init): Give registered ABI variant handlers a
8198 chance to tweak the gdbarch once we have set up defaults.
8199 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8200
8201 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8202
8203 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8204 to standard_coerce_float_to_double.
8205 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8206
8207 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8208
8209 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8210 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8211 from gdbarch_tdep rather than a constant.
8212 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8213 the default text address for all Alpha Unix ABIs.
8214 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8215 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8216
8217 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8218
8219 * alpha-tdep.h: New file. Includes several Alpha target constants
8220 taken from...
8221 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8222 let gdbarch deal with.
8223 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8224 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8225 to dependency list.
8226 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8227 Alpha target register names.
8228 * alphabsd-nat.c: Likewise.
8229 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8230 Alpha target register names. Make serveral routines static.
8231 (alpha_get_saved_register): New function.
8232 (alpha_abi_names): New.
8233 (process_note_abi_tag_sections): New function.
8234 (get_elfosabi): New function.
8235 (alpha_gdbarch_init): New function.
8236 (alpha_dump_tdep): New function.
8237 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8238
8239 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8240
8241 * frame.c (find_saved_register): Delete #ifdef
8242 HAVE_REGISTER_WINDOWS code.
8243 * config/sparc/tm-sparc.h: Update comments.
8244 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8245
8246 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8247
8248 * i960-tdep.c (i960_find_saved_register): New function.
8249 (i960_get_saved_register): New function.
8250 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8251 (i960_get_saved_register): Declare.
8252 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8253
8254 2002-04-20 David S. Miller <davem@redhat.com>
8255
8256 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8257
8258 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8259
8260 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8261 instead of NUM_PSEUDO_REGS.
8262
8263 2002-04-20 David S. Miller <davem@redhat.com>
8264
8265 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8266 GDB_MULTI_ARCH_PARTIAL
8267 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8268 define, let tm-sp64.h do it.
8269
8270 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8271
8272 * frame.c (find_saved_register): Avoid a NULL pointer
8273 dereference and actually walk the frame list.
8274
8275 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8276
8277 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8278 sorted in most most-recent-used order. Document.
8279 * gdbarch.h, gdbarch.c: Regenerate.
8280
8281 2002-04-19 Andrew Cagney <ac131313@redhat.com>
8282
8283 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8284 instead of ->prev.
8285 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8286 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8287 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8288 instead of ->prev.
8289
8290 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
8291
8292 Fix PR gdb/471.
8293 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8294 (build_builtin_type_vec128): Ditto.
8295 (append_composite_type_field): Fix calculation of type length in
8296 union case.
8297
8298 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8299
8300 * config/djgpp/README: Update.
8301
8302 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8303 compiler warnings.
8304
8305 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8306
8307 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8308 (alpha_setup_arbitrary_frame): ...to this.
8309 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8310 for alpha_setup_arbitrary_frame.
8311
8312 2002-04-18 Andrew Cagney <cagney@redhat.com>
8313
8314 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8315 * gdbarch.h, gdbarch.c: Regenerate.
8316
8317 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8318 * target.h (memory_breakpoint_from_pc): Update declaration.
8319 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8320
8321 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8322 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8323 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8324 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8325 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8326 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8327 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8328 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8329 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8330 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8331 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8332 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8333
8334 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8335 const pointer.
8336 * monitor.c (monitor_insert_breakpoint): Ditto.
8337 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8338
8339 * config/mcore/tm-mcore.h: Update copyright.
8340 * mem-break.c: Ditto.
8341 * xstormy16-tdep.c: Ditto.
8342
8343 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8344
8345 * p-exp.y: Add precedence rule for '^' token.
8346 This removes the shift/reduce conflicts.
8347 Remove the comment concerning these shift/reduce conflicts.
8348
8349 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
8350
8351 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8352 (registers_powerpc_nofp): New register set for processors
8353 without floating point unit.
8354
8355 2002-04-18 David S. Miller <davem@redhat.com>
8356
8357 * MAINTAINERS: Add myself to write-after-approval.
8358
8359 2002-04-17 Michael Snyder <msnyder@redhat.com>
8360
8361 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8362
8363 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8364
8365 * rs6000-tdep.c (frame_initial_stack_address): Use
8366 frame_register_read to read the alloca_reg.
8367
8368 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8369
8370 * frame.c (find_saved_register): Find saved registers in the next
8371 not prev frame.
8372 Fix PR gdb/365.
8373
8374 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8375
8376 * gdbarch.sh (LANG): Set to ``c''.
8377
8378 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8379
8380 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8381
8382 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8383
8384 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8385 Update copyright.
8386
8387 * hpread.c (hpread_get_lntt): Add declaration.
8388 Also fix PR gdb/391.
8389
8390 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8391
8392 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8393 * aclocal.m4, configure: Re-generate.
8394 Fix PR gdb/391.
8395
8396 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8397
8398 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8399 instead of tm_print_insn.
8400
8401 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8402
8403 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8404
8405 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8406
8407 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8408 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8409 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8410
8411 2002-04-12 Don Howard <dhoward@redhat.com>
8412
8413 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8414 max_user_call_depth.
8415 (init_cmd_lists): Initialize the new value;
8416 * cli/cli-script.c (execute_user_command): Limit the call depth of
8417 user defined commands. This avoids a core-dump when user commands
8418 are infinitly recursive.
8419
8420 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8421
8422 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8423 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8424 from tdep struct instead of DEFAULT_LR_SAVE.
8425 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8426 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8427 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8428
8429 2002-04-12 Michael Snyder <msnyder@redhat.com>
8430
8431 * Remote.c: Spelling fix.
8432 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8433 If no symbol found for "sbrk", try "_sbrk".
8434 (make_output_phdrs): Use bfd_section_name.
8435 (gcore_copy_callback): Use bfd_section_name.
8436 * eval.c: Indentation fix-ups.
8437 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8438 in case it gets applied to an address that is already
8439 in the instruction space.
8440 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8441 * symfile.c: Fix indentation, long lines.
8442 * source.c: White space fix-up.
8443
8444 2002-04-12 Andrew Cagney <cagney@redhat.com>
8445
8446 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8447 * frame.c (frame_register_read): New function. Return non-zero on
8448 success.
8449 (read_relative_register_raw_bytes_for_frame): Delete.
8450 (read_relative_register_raw_bytes): Delete.
8451 * frame.h (frame_register_read): Declare.
8452 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8453 * sh-tdep.c: Ditto.
8454 * infcmd.c (do_registers_info): Ditto.
8455 * hppa-tdep.c: Ditto.
8456 * rs6000-tdep.c: Ditto.
8457 * h8500-tdep.c: Ditto.
8458 * mips-tdep.c: Ditto.
8459 * h8300-tdep.c: Ditto.
8460 * z8k-tdep.c: Ditto.
8461
8462 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8463
8464 From Jimi X <jimix@watson.ibm.com>:
8465 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8466 64-bit SysV ABI.
8467
8468 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8469
8470 From Jimi X <jimix@watson.ibm.com>:
8471 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8472 bfd info.
8473
8474 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8475
8476 From Jimi X <jimix@watson.ibm.com>:
8477 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8478 register sets for these processor variants.
8479
8480 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
8481
8482 * regformats/reg-ppc.dat: Support FPSCR.
8483
8484 2002-04-11 Kevin Buettner <kevinb@redhat.com>
8485
8486 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8487 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8488 Add fpscr as an invalid/unfetchable register.
8489 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8490 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8491 (fill_fpregset): Add support for register fpscr.
8492 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8493 (fill_gregset): Account for the fact that register ``mq'' might
8494 not exist.
8495 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8496 (registers_power): Add fpscr to register set at slot 71.
8497 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8498 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8499
8500 2002-04-11 Michael Snyder <msnyder@redhat.com>
8501
8502 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8503 * configure: Regenerate.
8504 * config.in: Regenerate.
8505 * acconfig.h: Add define for _SYSCALL32.
8506 * core-sol2.c: Remove #define _SYSCALL32.
8507 * solib-legacy.c: Remove #define _SYSCALL32.
8508
8509 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8510
8511 * stack.c (select_frame): Cleanup internal error message, do not
8512 use %p.
8513
8514 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8515
8516 * stack.c (select_frame): Check that selected_frame and the
8517 specified level are as expected.
8518 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8519 Update copyright.
8520 * frame.h (struct frame_info): Add field `level'. Update
8521 copyright.
8522 Work-in-progress PR gdb/464.
8523
8524 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8525
8526 * maint.c (maint_print_section_info): Rename print_section_info.
8527 (print_bfd_section_info, print_objfile_section_info): Update.
8528 * inferior.h (struct gdbarch): Add opaque declaration.
8529 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8530 * gdbarch.h: Regenerate.
8531
8532 2002-04-10 Michal Ludvig <mludvig@suse.cz>
8533
8534 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8535 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8536 (kernel_u_size): Added.
8537 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8538 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8539
8540 2002-04-04 Jim Ingham <jingham@apple.com>
8541
8542 * valarith.c (find_size_for_pointer_math): New function, either returns
8543 the size for a pointer's target, returns 1 for void *, or errors for
8544 incomplete types.
8545 (value_add, value_sub): use find_size_for_pointer_math.
8546
8547 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8548
8549 * linux-low.c (linux_look_up_symbols): New hook.
8550 (linux_target_ops): Add linux_look_up_symbols.
8551 * remote-utils.c (decode_address): New function.
8552 (look_up_one_symbol): New function.
8553 * server.c (handle_query): Call target look_up_symbols hook.
8554 * server.h (look_up_one_symbol): Add prototype.
8555 * target.h (struct target_ops): Add look_up_symbols hook.
8556
8557 2002-04-09 Andrew Cagney <ac131313@redhat.com>
8558
8559 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8560 override FP_REGNUM with frame->fp. Update copyright.
8561 * parse.c (num_std_regs, std_regs): Delete.
8562 (target_map_name_to_register): Do not search std_regs. Update
8563 function description.
8564 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8565 declarations. Update copyright.
8566 Fix PR gdb/251.
8567
8568 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8569
8570 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8571 after the last symbol in a block.
8572
8573 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8574
8575 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8576 is non zero as a found symbol.
8577
8578 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8579
8580 * findvar.c: Include "builtin-regs.h".
8581 (value_of_register): Call value_of_builtin_reg when applicable.
8582 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8583 (target_map_name_to_register): Call
8584 builtin_reg_map_name_to_regnum.
8585 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8586 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8587 (builtin_regs_h): Define.
8588 (builtin-regs.o): New target.
8589 (findvar.o): Add $(builtin_regs_h).
8590 * builtin-regs.c, builtin-regs.h: New files.
8591 * std-regs.c: New file.
8592 Partial fix for PR gdb/251.
8593
8594 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8595
8596 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8597 it's no longer required.
8598
8599 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8600
8601 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8602
8603 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8604
8605 From Jimi X <jimix@watson.ibm.com>:
8606 * rs6000-tdep.c (rs6000_software_single_step): Use
8607 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8608 and size. Use target_insert_breakpoint() and
8609 target_remove_breakpoint() to insert and remove breakpoints
8610 instead of explicit memory reads and writes.
8611
8612 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8613
8614 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8615 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8616 ELF_OBJECT_FORMAT ifdef.
8617
8618 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8619
8620 From Jimi X <jimix@watson.ibm.com>:
8621 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8622
8623 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8624
8625 From Jimi X <jimix@watson.ibm.com>:
8626 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8627 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8628
8629 2002-04-07 Mark Kettenis <kettenis@gnu.org>
8630
8631 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8632 s/asprintf/xasprintf/.
8633 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8634
8635 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8636
8637 I believe Jeff Law denies responsability for this one:
8638 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8639 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8640 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8641 Work-around for PR gdb/366.
8642
8643 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8644
8645 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8646 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8647 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8648
8649 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8650
8651 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8652 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8653 information.
8654
8655 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8656
8657 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8658 maintainer.
8659
8660 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8661
8662 * README (Reporting Bugs in GDB): Document the bug web page as the
8663 prefered way of submitting bugs.
8664 Fix PR gdb/402.
8665
8666 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8667
8668 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8669 -1. Update comment.
8670 * gdbarch.h, gdbarch.c: Re-generate.
8671
8672 2002-04-07 Andreas Schwab <schwab@suse.de>
8673
8674 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8675 buffer to regcache_collect.
8676
8677 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8678
8679 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8680 * gdbarch.c, gdbarch.h: Re-generate.
8681
8682 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8683
8684 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8685 declaration. Fix -Werror.
8686
8687 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
8688
8689 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8690 * gdbarch.c: Regenerate.
8691
8692 2002-04-05 Michael Snyder <msnyder@redhat.com>
8693
8694 * breakpoint.c (clear_command): Rewrite middle section to
8695 combine two loops with identical control conditions.
8696 Add a cleanup to eliminate a memory leak.
8697 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8698
8699 2002-04-05 H.J. Lu (hjl@gnu.org)
8700
8701 * solib-svr4.c (bkpt_names): Add "__start".
8702
8703 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8704
8705 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8706 as test for 64 bit target.
8707
8708 2002-04-05 Andrew Cagney <ac131313@redhat.com>
8709
8710 * h8500-tdep.c (h8500_write_fp): Delete function.
8711 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8712 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8713 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8714 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8715 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8716 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8717 (s390_write_fp):
8718 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8719 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8720 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8721 (d10v_write_fp): Delete function.
8722 * inferior.h (write_fp, generic_target_write_fp): Delete
8723 declarations.
8724 * regcache.c (generic_target_write_fp): Delete function.
8725 (write_fp): Delete function.
8726 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8727 * gdbarch.h, gdbarch.c: Regenerate.
8728 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8729 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8730 (sparc64_write_fp): Delete declaration.
8731 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8732 (h8500_write_fp): Delete declaration.
8733
8734 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8735
8736 * sparc-tdep.c (sparc64_write_fp): Delete.
8737 (sparc_push_dummy_frame): Replace write_fp call with code to store
8738 the FP directly.
8739 (sparc_gdbarch_init): Do not initialize write_fp.
8740
8741 2002-04-05 Kevin Buettner <kevinb@redhat.com>
8742
8743 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8744 clause.
8745
8746 2002-03-29 Jim Blandy <jimb@redhat.com>
8747
8748 * stack.c (get_selected_block): Add new argument `addr_in_block',
8749 used to return the exact code address we used to select the block,
8750 not just the block.
8751 * blockframe.c (get_frame_block, get_current_block): Same.
8752 * frame.h (get_frame_block, get_current_block,
8753 get_selected_block): Update declarations.
8754 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8755 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8756
8757 2002-04-05 Michael Snyder <msnyder@redhat.com>
8758
8759 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8760 warning message.
8761
8762 2002-04-05 J. Brobecker <brobecker@gnat.com>
8763
8764 * utils.c (xfullpath): New function.
8765 * defs.h (xfullpath): Add declaration.
8766 * source.c (openp): Use xfullpath in place of gdb_realpath to
8767 avoid resolving the basename part of filenames when the
8768 associated file is a symbolic link. This fixes a potential
8769 inconsistency between the filenames known to GDB and the
8770 filenames it prints in the annotations.
8771 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8772 to be able to match a filename with either the real filename, or
8773 the name of any symbolic link to this file.
8774 (lookup_partial_symtab): Ditto.
8775
8776 2002-04-04 Michael Snyder <msnyder@redhat.com>
8777
8778 * breakpoint.c: Add support for hardware breakpoints in overlays.
8779 (overlay_events_enabled): New state variable.
8780 (insert_breakpoints): Use overlay_events_enabled to decide
8781 whether to attempt to set a breakpoint at the overlay load addr.
8782 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8783 (remove_breakpoint): Use overlay_events_enabled to decide
8784 whether breakpoints need to be removed from overlay load addr.
8785 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8786 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8787 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8788 disable_overlay_breakpoints): Update overlay_events_enabled.
8789
8790 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
8791
8792 * dwarf2read.c (struct function_range): New.
8793 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8794 (check_cu_functions): New.
8795 (read_file_scope): Initialize global function lists.
8796 Call dwarf_decode_line after processing children.
8797 (read_func_scope): Add to global function list.
8798 (dwarf_decode_lines): Call check_cu_functions everywhere
8799 record_line is called. Call record_line with a linenumber
8800 of 0 to mark sequence ends.
8801
8802 2002-04-04 Michal Ludvig <mludvig@suse.cz>
8803
8804 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8805 change sync with glibc.
8806
8807 2002-04-03 Jim Blandy <jimb@redhat.com>
8808
8809 * configure.in: Call AC_C_INLINE.
8810 * configure: Regenerated.
8811
8812 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
8813
8814 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8815 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8816
8817 2002-03-31 Mark Kettenis <kettenis@gnu.org>
8818
8819 * NEWS: Mention gcore support on FreeBSD/i386.
8820
8821 * fbsd-proc.c: New file.
8822 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8823 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8824
8825 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8826 while statement.
8827
8828 2002-03-29 Jim Blandy <jimb@redhat.com>
8829
8830 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8831 unescaped newlines in string literals, but newer ones don't. So
8832 escape them.
8833
8834 2002-03-26 Michael Snyder <msnyder@redhat.com>
8835 Andrew Cagney <cagney@redhat.com>
8836
8837 * cli/cli-dump.c: New file. Dump memory to file,
8838 restore file to memory.
8839 * cli/cli-dump.h: New file.
8840 * Makefile.in: Add rules, dependencies for cli-dump.o.
8841 * NEWS: Mention new commands.
8842
8843 2002-03-28 Michael Snyder <msnyder@redhat.com>
8844
8845 * symfile.c (symbol_file_add): Move test for null symbols to later.
8846
8847 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8848
8849 From veksler at il.ibm.com:
8850 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8851 the xstrduped original path.
8852 Fix PR gdb/417.
8853
8854 2002-03-27 Michael Snyder <msnyder@redhat.com>
8855
8856 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8857 * infcmd.c (_initialize_infcmd): Ditto.
8858 * language.c (_initialize_language): Ditto.
8859 * symfile.c (_initialize_symfile): Ditto.
8860 * top.c (_init_main): Ditto.
8861 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8862
8863 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
8864
8865 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8866 vector registers handling.
8867 (skip_prologue): Handle new AltiVec instructions. Fill in new
8868 fields of frame data.
8869 (frame_get_saved_regs): Fill in information for AltiVec registers.
8870
8871 2002-03-27 Jim Blandy <jimb@redhat.com>
8872
8873 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8874 a function; leave this macro here to invoke that function.
8875 (symbol_init_mangled_name): Declaration for that function.
8876 * symtab.c (symbol_init_mangled_name): New function.
8877
8878 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8879
8880 * valarith.c: Replace strerror with safe_strerror.
8881 * tracepoint.c: Ditto.
8882 * lin-lwp.c: Ditto.
8883 * go32-nat.c: Ditto.
8884 * inflow.c: Ditto.
8885 * gnu-nat.c: Ditto.
8886
8887 2002-03-27 Andreas Schwab <schwab@suse.de>
8888
8889 * event-top.c (command_line_handler): Remove useless if.
8890
8891 2002-03-27 Andreas Jaeger <aj@suse.de>
8892
8893 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8894 comment.
8895
8896 2002-03-27 Michal Ludvig <mludvig@suse.cz>
8897
8898 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8899 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8900 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8901 (x86_64_linux_dr_get_status, supply_gregset),
8902 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8903 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8904 (x86_64_register_info_table): Add.
8905 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8906 (x86_64_register_raw_size, x86_64_register_virtual_type),
8907 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8908 general x86_64_register_info_table.
8909 (i386_gdbarch_init): gdbarch_register_bytes is now set
8910 dynamicaly during initialization.
8911 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8912 * gdbserver/linux-x86-64-low.c: Ditto.
8913
8914 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8915
8916 * gdbserver/server.c (main): Call target_signal_to_host_p
8917 and target_signal_to_host on signals received from the remote.
8918 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8919 target_signal_from_host on signals sent to the remote.
8920 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8921 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8922
8923 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8924
8925 * signals/signals.c: Include "server.h" in gdbserver build.
8926 (target_signal_from_name): Don't use STREQ.
8927 (_initialize_signals): Likewise. Don't include function in
8928 gdbserver build.
8929
8930 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8931
8932 * signals.c: Moved to...
8933 * signals/signals.c: Here.
8934 * Makefile (signals.o): Update.
8935
8936 2002-03-26 Jeff Law (law@redhat.com)
8937
8938 * somread.c (som_symtab_read): Remove some commented out code and
8939 updated related comments. Do not set the minimal symbol table to
8940 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8941 in a dynamic executable.
8942 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8943 where we are unable to find the minimal symbol for the given
8944 PC value.
8945
8946 2002-03-25 Jeff Law (law@redhat.com)
8947
8948 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8949
8950 2002-03-25 Michal Ludvig <mludvig@suse.cz>
8951
8952 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8953
8954 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8955
8956 * command.h: Update copyright.
8957 (struct cmd_list_element): Replace definition with opaque
8958 declaration.
8959 (enum cmd_types): Document that it will eventually be moved to
8960 cli/cli-decode.h
8961 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8962 (MALLOCED_REPLACEMENT): Delete macro.
8963 * Makefile.in (cli_decode_h): Add $(command_h).
8964 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8965 * top.c: Include "cli/cli-decode.h".
8966 * completer.c: Include "cli/cli-decode.h".
8967 * maint.c: Include "cli/cli-decode.h".
8968 * cli/cli-decode.h: Include "command.h".
8969 (enum command_class): Delete.
8970 (enum cmd_types): Comment out.
8971 (enum cmd_auto_boolean): Delete.
8972 (enum var_types): Delete.
8973
8974 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8975
8976 * cli/cli-decode.c: Include "gdb_assert.h".
8977 (add_set_or_show_cmd): New static function.
8978 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8979 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8980 all fields, such as func, from the set command.
8981
8982 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8983
8984 * MAINTAINERS (sh-elf): Change warning flag to -w.
8985
8986 2002-03-23 Andrew Cagney <cagney@redhat.com>
8987
8988 * defs.h (error): Add printf format attribute.
8989 * thread-db.c (thread_from_lwp): Fix error format string.
8990 * stack.c (parse_frame_specification): Ditto.
8991 * cli/cli-decode.c (undef_cmd_error): Ditto.
8992 * scm-lang.c (scm_lookup_name): Ditto.
8993 * tracepoint.c (trace_error): Ditto.
8994 * remote-utils.c (usage): Ditto.
8995 * remote.c (compare_sections_command): Ditto.
8996 Fix PR gdb/328.
8997
8998 2002-03-22 Andrew Cagney <ac131313@redhat.com>
8999
9000 * gdbtypes.c (append_composite_type_field): New function.
9001 (init_composite_type): New function.
9002 * gdbtypes.h (append_composite_type_field): Declare.
9003 (init_composite_type): Ditto.
9004
9005 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
9006
9007 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
9008 function.
9009 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
9010 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
9011 structure returning convention for SYSV ABI case, but not
9012 for GNU/Linux, FreeBSD, or NetBSD.
9013
9014 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
9015
9016 * symtab.h (lookup_block_symbol): Add mangled_name argument
9017 to prototype.
9018
9019 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
9020 with new mangled_name argument.
9021 * linespec.c (decode_line_1): Likewise.
9022 * valops (value_of_this): Likewise.
9023 * symtab.c (lookup_transparent_type): Likewise.
9024 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
9025 (lookup_symbol): If we are given a mangled name, pass it down
9026 to lookup_symbol_aux.
9027 (lookup_block_symbol): If we are given a mangled name to check
9028 against, only return symbols which match it.
9029
9030 2002-03-22 Christopher Faylor <cgf@redhat.com>
9031
9032 * win32-nat.c (child_create_inferior): Check for proper shell to use
9033 here, in case the user changes it on the fly.
9034 (_initialize_inftarg): Remove shell path considerations.
9035
9036 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
9037
9038 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
9039 for gdbarch_max_register_raw_size and max_register_virtual_size.
9040 Adjust copyright year.
9041
9042 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
9043
9044 * dbxread.c (process_one_symbol): Extend the first N_SLINE
9045 in a function to cover the entire beginning of the function
9046 as well if it does not already.
9047
9048 2002-03-21 Tom Rix <trix@redhat.com>
9049
9050 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
9051 (rs6000_ptrace64): Renamed from ptrace64.
9052
9053 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9054
9055 * gdbserver/remote-utils.c (remote_open): Don't call
9056 getprotobyname, we're all using TCP here so just use
9057 IPPROTO_TCP.
9058 * gdbserver/gdbreplay.c (remote_open): Ditto.
9059
9060 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9061
9062 * regcache.c (_initialize_regcache): No need to call
9063 build_regcache() at this time; it gets called whenever
9064 the gdbarch changes.
9065
9066 2002-03-20 David O'Brien <obrien@FreeBSD.org>
9067
9068 * sparc-nat.c: Include sys/param.h where possible.
9069
9070 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
9071
9072 Fix PR gdb/422.
9073 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
9074 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
9075 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
9076 complex types.
9077 * stabsread.c (rs6000_builtin_type): Likewise.
9078 (read_sun_floating_type): Likewise.
9079
9080 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9081
9082 * stabsread.c (read_member_functions): Remove skip code for duplicate
9083 constructor/destructor methods. Use standard parsing for these
9084 methods and just do not chain them to the list of methods after
9085 parsing.
9086
9087 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
9088
9089 * coffread.c: Remove redundant static declarations. Replace
9090 occurrences of `PTR' with `void *'.
9091 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
9092 * top.h (quit_cover): Likewise.
9093 * defs.h (catch_errors): Likewise.
9094
9095 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9096
9097 * defs.h (XMALLOC): Define.
9098 * gdb-events.sh (XMALLOC): Delete macro.
9099 * gdb-events.c, gdb-events.h: Regenerate.
9100 * gdbarch.sh (XMALLOC): Delete macro.
9101 * gdbarch.c: Regenerate.
9102 * serial.c (XMALLOC): Delete macro.
9103 * ui-file.c (XMALLOC): Ditto.
9104 * ser-unix.h (XMALLOC): Ditto.
9105 * sh-tdep.c (XMALLOC): Ditto.
9106 * ui-out.c (XMALLOC): Ditto.
9107 * utils.c (XMALLOC): Ditto.
9108 * i386-tdep.c (XMALLOC): Ditto.
9109 * gdb-events.c (XMALLOC): Ditto.
9110 * d10v-tdep.c (XMALLOC): Ditto.
9111 * cli-out.c (XMALLOC): Ditto.
9112
9113 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
9114 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
9115 * ui-file.c, ui-out.c: Ditto.
9116
9117 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9118
9119 * command.h (struct cmd_list_element): Add field context.
9120 (set_cmd_context, get_cmd_context): Declare.
9121 * cli/cli-decode.h: Ditto.
9122 * cli/cli-decode.c (get_cmd_context): New function.
9123 (set_cmd_context): New function.
9124 (add_cmd): Initialize context.
9125 Part of fixing PR gdb/145 and PR gdb/146.
9126
9127 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9128
9129 * cli/cli-decode.c (cmd_type): New function.
9130 * command.h (cmd_type): Declare.
9131 * infrun.c (set_schedlock_func): Call function cmd_type.
9132 * kod.c (kod_set_os): Call cmd_type.
9133 * cris-tdep.c (cris_version_update): Use function cmd_type.
9134 (cris_mode_update, cris_abi_update): Ditto.
9135
9136 * command.h: (execute_cmd_post_hook): Declare.
9137 (execute_cmd_pre_hook): Declare.
9138 * cli/cli-script.c (clear_hook_in_cleanup): New function.
9139 (execute_cmd_post_hook, execute_cmd_pre_hook): New
9140 functions. Execute pre/post hook while ensuring that afterwords
9141 hook_in is cleared.
9142 * top.c (execute_command): Use execute_cmd_post_hook, and
9143 execute_cmd_pre_hook to execute pre/post commands.
9144 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
9145 hook_stop_stub.
9146 (hook_stop_stub): Call execute_cmd_pre_hook.
9147
9148 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9149
9150 * kod.c (kod_set_os): Revert previous change. Is called by ``info
9151 set'' and this leads to a core dump. Move xstrdup of
9152 operating_system to after check that it is not NULL.
9153
9154 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9155
9156 * kod.c (kod_set_os): Remove unnecessary check that
9157 ``command->type'' is set_cmd.
9158
9159 * valprint.c (set_input_radix): Use input_radix.
9160 (set_output_radix): Use output_radix.
9161 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9162 isn't reverted.
9163
9164 2002-03-16 Andrew Cagney <ac131313@redhat.com>
9165
9166 * value.h (struct value): Delete field ``substring_addr''. Change
9167 aligner fields to force_doublest_align, force_longest_align,
9168 force_core_addr_align and force_pointer_aligh.
9169
9170 * value.h (struct value): Fix typo in above change.
9171
9172 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9173
9174 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9175 to fix internal_error from ``maintenance print architecture''.
9176
9177 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9178
9179 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9180 for gcc versions after gcc-2.8.1.
9181
9182 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9183
9184 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9185 for method resolution. Restore adjustment of ``this'' pointer after
9186 calling value_struct_elt, which was accidentally removed during the
9187 HP merge.
9188
9189 2002-03-15 Andrew Cagney <ac131313@redhat.com>
9190
9191 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9192 value_of_register.
9193 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9194 get_saved_register.
9195 * value.h (value_of_register): Update.
9196
9197 2002-03-14 Richard Henderson <rth@redhat.com>
9198
9199 * configure.in: Detect declaration for canonicalize_file_name.
9200 * utils.c (canonicalize_file_name): Declare, if needed.
9201 (gdb_realpath): Prefer realpath if available and usable.
9202 * config.in, configure: Rebuild.
9203
9204 2002-03-14 Richard Henderson <rth@redhat.com>
9205
9206 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9207 a constant array bound.
9208
9209 * MAINTAINERS: Add myself to write-after-approval.
9210
9211 2002-03-14 Michael Snyder <msnyder@redhat.com>
9212
9213 * symfile.c (syms_from_objfile): Return immediately if no syms.
9214 (symbol_file_add): Return immediately if no syms.
9215 (find_sym_fns): Return immediately if no syms.
9216
9217 2002-03-13 Michal Ludvig <mludvig@suse.cz>
9218
9219 * gdbserver/remote-util.c (remote_open): Print remote-side's
9220 IP address when remote debugging over the network.
9221
9222 2002-03-12 David O'Brien <obrien@FreeBSD.org>
9223
9224 * config/sparc/fbsd.mh: Fix copyright.
9225 * config/sparc/fbsd.mt: Likewise.
9226
9227 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
9228
9229 * MAINTAINERS: Fix typo in name of gdb warnings option.
9230 (x86-64): Fix formating so that this can be parsed by awk.
9231
9232 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9233
9234 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9235 * defs.h: Include "gdb/signals.h".
9236 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9237
9238 2002-03-10 Michal Ludvig <mludvig@suse.cz>
9239
9240 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
9241 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
9242 from x86-64-tdep.h
9243
9244 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9245 Don Howard <dhoward@redhat.com>
9246
9247 * mips-tdep.c (ST0_FR): Define.
9248 (mips2_fp_compat): New function, temporarily disabled.
9249 (mips_read_fp_register_single): New function.
9250 (mips_read_fp_register_double): New function.
9251 (mips_print_register): Use them.
9252 (do_fp_register_row): Likewise.
9253
9254 2002-03-09 Andrew Cagney <ac131313@redhat.com>
9255
9256 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9257 approval''.
9258
9259 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9260
9261 * stabsread.c (read_member_functions): Fix is_stub test for
9262 static member functions, improve comment.
9263
9264 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
9265
9266 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9267 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9268 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9269 commands that set boolean values.
9270 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9271 (arm_rdi_resume): Always initialize PC.
9272 (arm_rdi_open): Don't use rslt as a boolean.
9273 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9274 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9275 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9276 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9277
9278 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
9279
9280 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9281 * configure: Rebuilt.
9282
9283 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9284
9285 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9286 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9287
9288 2002-03-06 Andrew Cagney <ac131313@redhat.com>
9289
9290 * cli/cli-decode.c (set_cmd_completer): New function.
9291 * command.h (set_cmd_completer): Declare.
9292 * cli/cli-decode.h (set_cmd_completer): Ditto.
9293
9294 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9295 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9296 * win32-nat.c (_initialize_inftarg): Ditto.
9297 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9298 * proc-api.c (_initialize_proc_api): Ditto.
9299 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9300 * source.c (_initialize_source): Ditto.
9301 * exec.c (_initialize_exec): Ditto.
9302 * solib.c (_initialize_solib): Ditto.
9303 * top.c (init_main): Ditto.
9304 * tracepoint.c (_initialize_tracepoint): Ditto.
9305 * symfile.c (_initialize_symfile): Ditto.
9306 * printcmd.c (_initialize_printcmd): Ditto.
9307 * infcmd.c (_initialize_infcmd): Ditto.
9308 * corefile.c (_initialize_core): Ditto.
9309
9310 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9311
9312 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9313
9314 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9315
9316 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9317
9318 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9319
9320 * NEWS: Update headings, 5.2 has branched.
9321
9322 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
9323
9324 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9325 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9326 (register_addr, REGISTER_RAW_SIZE): Likewise.
9327 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9328 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9329
9330 2002-03-03 Michal Ludvig <mludvig@suse.cz>
9331
9332 * MAINTAINERS (x86-64): Add myself.
9333 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9334 changed value_ptr -> struct value *
9335
9336 2002-03-01 David O'Brien <obrien@FreeBSD.org>
9337
9338 * configure.host (sparc64-*-freebsd): Add.
9339 * configure.tgt: Likewise.
9340 * config/sparc/fbsd.mh: New file.
9341 * config/sparc/fbsd.mt: Likewise.
9342 * config/sparc/nm-fbsd.h: Likewise.
9343 * config/sparc/tm-fbsd.h: Likewise.
9344
9345 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
9346
9347 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9348 regformats/reg-s390x.dat.
9349
9350 2002-03-01 Andrew Cagney <ac131313@redhat.com>
9351
9352 * utils.c: Add FIXME explaining true/false problem.
9353
9354 2002-02-28 Andrew Cagney <ac131313@redhat.com>
9355
9356 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9357
9358 2002-02-28 Michael Chastain <mec@shout.net>
9359
9360 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9361
9362 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
9363
9364 * gdbserver/linux-s390-low.c: New file.
9365 * regformats/reg-s390.dat: New file.
9366 * regformats/reg-s390x.dat: New file.
9367 * gdbserver/configure.srv: Add S/390.
9368 * gdbserver/Makefile.in: Add S/390.
9369 * configure.tgt: Enable gdbserver for S/390.
9370
9371 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9372
9373 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9374 first line of the doc string for "info dos", except at the end of
9375 the sentence, since the short help stops at the first period.
9376
9377 2002-02-28 Jason Merrill <jason@redhat.com>
9378
9379 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9380
9381 2002-02-27 Fred Fish <fnf@redhat.com>
9382
9383 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9384 comment (dumy -> dummy).
9385
9386 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9387
9388 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9389
9390 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
9391
9392 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9393
9394 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9395
9396 * gdbserver/acconfig.h: New file.
9397 * gdbserver/i387-fp.c: New file.
9398 * gdbserver/i387-fp.h: New file.
9399 * gdbserver/linux-x86-64.c: New file.
9400 * regformats/reg-x86-64.dat: New file.
9401 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9402 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9403 * gdbserver/configure.in: Add support for regsets.
9404 * gdbserver/config.in: Regenerate.
9405 * gdbserver/configure: Regenerate.
9406 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9407 * gdbserver/linux-low.h: New file.
9408 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9409 for regsets.
9410 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9411 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9412 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9413 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9414 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9415 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9416 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9417 "i387-fp.h". Add PTRACE_GETREGS and friends.
9418 * gdbserver/regcache.c (supply_register): New function.
9419 (supply_register_by_name): New function.
9420 (collect_register): New function.
9421 (collect_register_by_name): New function.
9422
9423 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9424
9425 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9426 (config.status): Add configure.srv dependency.
9427 (server_h): Add config.h dependency.
9428
9429 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9430
9431 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9432 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9433 * gdbserver/configure.srv: Change i386-*-linux* to use
9434 reg-i386-linux.o.
9435
9436 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9437
9438 * x86-64-tdep.c: Re-indent. Update copyright date.
9439
9440 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9441
9442 From Michal Ludvig <mludvig@suse.cz>:
9443 * x86-64-tdep.c (value.h): Delete.
9444 (gdb_assert.h): Include.
9445 (x86_64_register_convert_to_virtual,
9446 x86_64_register_convert_to_raw ): Add check which lets only
9447 floating-point values to be converted.
9448 (value_push): Delete.
9449 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9450 (i386_gdbarch_init): Number of register_bytes fixed.
9451
9452 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9453
9454 * MAINTAINERS: Add x86-64 target.
9455
9456 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9457
9458 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9459 * osfsolib.c (solib_map_sections): Ditto.
9460 * irix5-nat.c (solib_map_sections): Ditto.
9461 * corelow.c (gdb_check_format): Ditto.
9462 * symfile.c (symfile_bfd_open): Ditto.
9463 * solib.c (solib_map_sections): Ditto.
9464 Fix PR gdb/354.
9465
9466 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9467
9468 * remote.c (_initialize_remote): By default, disable ``e'' and
9469 ``E'' step out-of-range packets.
9470
9471 2002-02-26 Andreas Schwab <schwab@suse.de>
9472
9473 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9474 m68k_linux_frame_saved_pc.
9475 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9476 in_sigtramp.
9477 (SIGCONTEXT_PC_OFFSET): Remove.
9478 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9479 m68k_linux_sigtramp_saved_pc): New functions.
9480 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9481 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9482 (UCONTEXT_PC_OFFSET): Define.
9483 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9484 non-RT and RT signal trampolines.
9485
9486 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
9487
9488 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9489 (TARGET_NBPG, STACK_END_ADDR): Delete
9490 (VARIABLES_INSIDE_BLOCK): Delete.
9491
9492 2002-02-25 Andrew Cagney <ac131313@redhat.com>
9493
9494 * utils.c (perror_with_name): Make string parameter constant.
9495 (print_sys_errmsg): Ditto.
9496 (query): Ditto.
9497 * defs.h (perror_with_name): Update.
9498 (print_sys_errmsg): Update.
9499 (query): Update.
9500
9501 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
9502
9503 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9504 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9505
9506 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9507
9508 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9509 if it already matches the current architecture from the exec file.
9510 Include arch-utils.h for gdbarch_info_init prototype.
9511 * Makefile.in (rs6000-nat.o): Update dependencies.
9512
9513 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9514
9515 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9516 list of exported variables.
9517
9518 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
9519
9520 * gdbserver/configure.srv: New file.
9521 * gdbserver/configure.in: Use configure.srv instead
9522 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9523 from it.
9524 * gdbserver/configure: Regenerated.
9525 * gdbserver/terminal.h: New file.
9526 * gdbserver/Makefile.in: Update for configure changes. Remove
9527 more unneeded include paths.
9528
9529 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9530
9531 From wiz at danbala:
9532 * config/sparc/tm-sp64.h: Fix grammar and typos.
9533 Fix PR gdb/287.
9534
9535 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9536
9537 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9538 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9539 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9540 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9541 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9542 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9543 * s390-tdep.c: Ditto.
9544 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9545 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9546 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9547 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9548 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9549 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9550 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9551 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9552 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9553 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9554 Fix PR gdb/378.
9555
9556 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9557
9558 * lin-thread.c: Delete file.
9559 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9560 to gdb_proc_service.h.
9561 * configure: Re-generate.
9562
9563 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9564 * serial.c (serial_open): Delete check for "ocd".
9565 Fix PR gdb/349.
9566
9567 * Makefile.in (linux-thread.o): Delete target.
9568 * linux-thread.c: Delete file.
9569
9570 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9571 renamed SH files to be consistent.
9572
9573 * symtab.c (sort_search_symbols): Use xfree.
9574
9575 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9576
9577 * arm-linux-tdep.c (arm_linux_init_abi): Register
9578 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9579 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9580 definition with undef, since we don't want the sysvr4 definition.
9581 (SKIP_TRAMPOLINE_CODE): Likewise.
9582
9583 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9584
9585 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9586
9587 * configure.in: (AC_CHECK_FUNCS) Added test for
9588 canonicalize_file_name Regenerated.
9589 * config.in, configure: Regenerated.
9590 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9591 defined use canonicalize_file_name.
9592
9593 2002-02-23 Michael Chastain <mec@shout.net>
9594
9595 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9596
9597 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9598
9599 * README: Remove references to cygnus.com.
9600 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9601 dot com'' form. Remove references to cygnus.com and sourceware.
9602
9603 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9604
9605 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9606 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9607 1003.1-2001 no longer allows "head -1".
9608 * gdb/Makefile.in (version.c): Likewise.
9609 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9610 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9611 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9612
9613 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9614
9615 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9616 * command.h (cmd_cfunc_eq): Declare.
9617 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9618
9619 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9620 ``struct cmd_list_element *''.
9621 * cli/cli-cmds.c (is_complete_command): Update. Use
9622 cmd_cfunc_eq.
9623 * top.c (execute_command): Pass the command to
9624 is_complete_command.
9625 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9626
9627 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9628
9629 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9630 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9631 architecture defines.
9632 * s390-tdep.c (s390_gdbarch_init): Likewise.
9633
9634 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9635
9636 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9637 (arm_linux_push_arguments): Likewise.
9638 (arm_linux_init_abi): Register them. Also register linux-specific
9639 call_dummy_words.
9640 (find_minsym_and_objfile): Use strcmp, not STREQ.
9641 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9642 (arm_linux_call_dummy_words): Delete declaration.
9643 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9644 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9645 declarations.
9646 (LOWEST_PC): Delete.
9647
9648 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9649
9650 * maint.c (print_section_info): Do not prepend `0x' to filepos
9651 output, it will be handled by local_hex_string_custom.
9652
9653 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9654
9655 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9656 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9657 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9658
9659 2002-02-22 Jim Blandy <jimb@redhat.com>
9660
9661 Indicate that the bcache functions don't change the strings
9662 they're passed.
9663 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9664 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9665
9666 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9667
9668 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9669
9670 2002-02-21 Christopher Faylor <cgf@redhat.com>
9671
9672 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9673 find the complete path to a loaded DLL.
9674
9675 2002-02-21 Fred Fish <fnf@redhat.com>
9676
9677 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9678 that marks the end of the range of a function, enter a line number
9679 entry that has a line number of zero and a PC offset that matches
9680 the end of the function. This starts a range of PC's for which no
9681 line number information is known.
9682 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9683 PC's for which no line number info is found (line number is zero)
9684 then we didn't find any valid line information.
9685 * symtab.h: Document use of zero line number entry.
9686
9687 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
9688
9689 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9690 (have_ptrace_getvrregs): Define for run time checks.
9691 (gdb_vrregset_t): New type for Altivec register handling.
9692 (fetch_register, store_register): Fetch/store altivec register
9693 when needed.
9694 (fetch_altivec_register, store_altivec_register): New functions.
9695 (supply_vrregset, fill_vrregset): New functions.
9696 (fetch_altivec_registers, store_altivec_registers): New functions.
9697 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9698 registers as well.
9699
9700 2002-02-21 Jiri Smid <smid@suse.cz>
9701
9702 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9703
9704 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9705
9706 * Makefile.in (armnbsd-nat.o): Update dependencies.
9707 * armnbsd-nat.c (supply_gregset): New function. Common code to
9708 supply the integer register set.
9709 (supply_fparegset): New function. Similar for FPA registers.
9710 (fetch_regs, fetch_fp_regs): Use them.
9711 (fetch_core_registers): Likewise.
9712 (fetch_elfcore_registers): New function.
9713 (arm_netbsd_elfcore_fns): New core-file type specification.
9714 (_initialize_arm_netbsd_nat): Register it.
9715
9716 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9717
9718 * armnbsd-nat.c: Include gdbcore.h.
9719 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9720 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9721 'void' to declaration, to shut up ARI.
9722 (fetch_core_registers): Make static. Rewrite using supply_register.
9723 (arm_netbsd_core_fns): New core-file type specification.
9724 (_initialize_arm_netbsd_nat): New function.
9725
9726 2002-02-21 Christopher Faylor <cgf@redhat.com>
9727
9728 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9729 value.
9730
9731 2002-02-20 Christopher Faylor <cgf@redhat.com>
9732
9733 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9734 fails.
9735
9736 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9737
9738 * jv-exp.y (parse_number): Change type of implicit longs
9739 to builtin_type_uint64.
9740
9741 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9742
9743 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9744 to be an integer instead of a `union wait'.
9745
9746 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9747
9748 * mips-linux-nat.c: Call the operating system GNU/Linux.
9749 * mips-linux-tdep.c: Likewise.
9750 * mips-tdep.c: Likewise.
9751
9752 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9753
9754 Fix PR gdb/265.
9755 * jv-exp.y (parse_number): Handle 64-bit integers.
9756
9757 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9758
9759 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9760 AC_STDC_HEADERS to AC_HEADER_STDC.
9761 * gdbserver/configure: Regenerated.
9762
9763 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9764
9765 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9766 is defined.
9767 * sparc-tdep.c (get_longjmp_target): Likewise.
9768
9769 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9770
9771 * News: Add news about ARM and Multi-arch. Mention the new target
9772 arm*-*-netbsd*.
9773
9774 2002-02-19 Jim Blandy <jimb@redhat.com>
9775
9776 * stabsread.c (error_type_complaint): Improve error message.
9777
9778 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
9779
9780 * gdbserver/README: Update documentation.
9781 * gdbserver/configure.in: Update configury to match documentation.
9782 * gdbserver/Makefile.in: Likewise.
9783 * gdbserver/configure: Regenerated.
9784 * gdbserver/aclocal.m4: New file, generated by aclocal.
9785 * gdbserver/config.in: New file, generated by autoheader.
9786
9787 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9788
9789 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9790 armnbsd-nat.c.
9791
9792 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9793
9794 * arm-tdep.h (enum arm_float_model): New enum.
9795 (struct gdbarch_tdep): Add fp_model.
9796 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9797 up floating-point conversions until we know the floating-point model
9798 in use by the inferior. Don't complain about being unable to
9799 determine the ABI of the inferior when we don't have one.
9800 (arm_extract_return_value): Support different floating-point models.
9801 (arm_store_return_value): Likewise.
9802 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9803 ARM_FLOAT_SOFT.
9804 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9805
9806 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9807
9808 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9809 of ``current_gdbarch''.
9810
9811 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9812
9813 * armnbsd-nat.c : ANSIfy all function declarations.
9814 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9815 (fetch_inferior_registers): Re-implement in terms of above.
9816 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9817 (store_inferior_registers): Re-implement in terms of above.
9818
9819 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9820
9821 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9822 kernel.
9823 * arm-linux-tdep.c: Likewise.
9824 * config/arm/tm-linux.h: Likewise.
9825
9826 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9827
9828 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9829 * config/arm/nbsd.mt (TM_FILE): Delete.
9830 * config/arm/tm-nbsd.h: Delete.
9831
9832 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9833
9834 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9835 Initialize CALL_DUMMY_LENGTH.
9836
9837 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9838
9839 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9840 function.
9841 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
9842 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
9843 defines one thing and that is incorrect for this port.
9844 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9845
9846 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9847
9848 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9849
9850 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9851
9852 * win32-nat.c (display_selector): New function. Displays information
9853 about the information returned by GetThreadSelectorEntry API function.
9854 (display_selectors): New function. Displays the infomation of
9855 the selector given as argument, or of CS, DS ans FS selectors
9856 if no argument is given.
9857 ( _initialize_inftarg): Add "w32" as info prefix command.
9858 Add "info w32 selector" as command calling display_selectors.
9859
9860 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9861
9862 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9863 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9864 if not defined.
9865
9866 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9867
9868 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9869
9870 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9871
9872 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9873 (arm_fix_call_dummy): Call it.
9874 (arm_call_dummy_breakpoint_offset): Delete.
9875 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9876 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9877
9878 2002-02-18 Andrew Cagney <ac131313@redhat.com>
9879
9880 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9881 Default to func_frame_chain_valid.
9882 * gdbarch.h, gdbarch.c: Re-generate.
9883 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9884
9885 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
9886
9887 * ppc-linux-nat.c: Update copyright.
9888 (fetch_register, store_register): Add tid parameter, don't compute
9889 tid here.
9890 (fetch_ppc_registers, store_ppc_registers): Add tid
9891 parameter. Pass it along to callees.
9892 (fetch_inferior_registers, store_inferior_registers): Compute tid
9893 here, and pass it to calleed functions.
9894 (fill_gregset, supply_fpregset): Clean up formatting.
9895
9896 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9897
9898 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9899 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9900
9901 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9902
9903 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9904 * gdbarch.c gdbarch.h: Regenerate.
9905 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9906 function.
9907 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9908 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9909 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9910
9911 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9912 * arm-tdep.c (arm_get_longjmp_target): New function.
9913 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9914 this to a positive value register arm_get_longjmp_target as the
9915 longjmp handler.
9916 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9917 (arm_linux_init_abi): Set up longjmp description in tdep.
9918 * armnbsd-nat.c (get_longjmp_target): Delete.
9919 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9920 description in tdep.
9921 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9922 (get_longjmp_target): Delete declaration.
9923 (GET_LONGJMP_TARGET): Delete.
9924 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9925 (GET_LONGJMP_TARGET): Delete.
9926
9927 2002-02-17 Kevin Buettner <kevinb@redhat.com>
9928
9929 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9930 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9931 of ``current_gdbarch''.
9932
9933 2002-02-17 Tom Tromey <tromey@redhat.com>
9934
9935 * cli/cli-cmds.c (compare_strings): New function.
9936 (complete_command): Only print each unique item once.
9937 * completer.h (complete_line): Declare.
9938 * completer.c (complete_line): New function.
9939 (line_completion_function): Use it.
9940
9941 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9942
9943 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9944 * gdbarch.h, gdbarch.c: Re-generate.
9945
9946 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9947
9948 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9949
9950 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9951
9952 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9953 * valops.c (value_arg_coerce): Don't take the address of a reference
9954 to convert an argument to a reference.
9955
9956 2002-02-15 Christopher Faylor <cgf@redhat.com>
9957
9958 * win32-nat.c (get_image_name): New function.
9959 (handle_load_dll): Use get_image_name function.
9960 (get_child_debug_event): Avoid registering debug events until possibly
9961 execed process is started.
9962 (child_create_inferior): Allow invocation via shell so that command
9963 line redirection, etc. works ok.
9964 (_initialize_inftarg): Add new command: "set shell" to control whether
9965 a shell is used to start a process.
9966
9967 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9968
9969 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9970 instead of find_register_by_number.
9971 (cannot_store_register): Likewise.
9972
9973 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9974
9975 * dwarf2read.c: Replace fprintf (stderr, ...) by
9976 fprintf_unfiltered (gdb_stderr, ...).
9977
9978 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9979
9980 * gdbserver/gdbserver.1: Document --attach.
9981
9982 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9983
9984 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9985 descriptions.
9986 * arm-tdep.c (arm_default_arm_le_breakpoint)
9987 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9988 (arm_default_thumb_be_breakpoint): New. Initialize them from
9989 traditional breakpoint defines.
9990 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9991 (arm_gdbarch_init): Initialize new breakpoint variables.
9992 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9993 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9994 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9995 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9996 code out to ...
9997 (arm_netbsd_init_abi_common): ... here; new function.
9998 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9999 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
10000 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
10001 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
10002
10003 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
10004
10005 * arm-tdep.h (enum arm_abi): New enum.
10006 (struct gdbarch_tdep): New structure.
10007 (LOWEST_PC): Provide a default.
10008 (arm_gdbarch_register_os_abi): Declare new function.
10009 * arm-tdep.c (arm_abi_names): New array.
10010 (process_note_abi_tag_sections): New function.
10011 (get_elfosabi): New function.
10012 (arm_gdbarch_register_os_abi): New function.
10013 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
10014 support for that ABI has been built in, then call the appropriate
10015 configuration routine. Use gdbarch_num_regs() to get the number
10016 of registers.
10017 (arm_dump_tdep): New function.
10018 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
10019 place-holder functions.
10020 (_initialize_arm_tdep): Register them.
10021 * config/arm/tm-arm.h (LOWEST_PC): Delete.
10022
10023 * armnbsd-tdep.c: New file.
10024 * Makefile.in (armnbsd-tdep.o): Add dependencies.
10025 * config/arm/nbsd.mt (TDEPFILES): Add it.
10026 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
10027
10028 * armnbsd-nat.c: Include regcache.h.
10029 * Makefile.in (armnbsd-nat.o): Update dependency list.
10030
10031 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
10032
10033 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10034
10035 * gdbserver/Makefile.in: Fix typos in target rules.
10036
10037 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10038
10039 Fix part of PR gdb/267.
10040 * linespec.c (find_methods): Handle constructors specially for now.
10041
10042 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
10043
10044 * arm-tdep.c (arm_push_arguments): Eliminate special float type
10045 handling.
10046 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
10047 standard_coerce_float_to_double().
10048
10049 2002-02-14 Christopher Faylor <cgf@redhat.com>
10050
10051 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
10052 GDBINIT_FILENAME.
10053
10054 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
10055
10056 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
10057 find_variant_by_name, because it confuses the multiarch
10058 framework. Return NULL if there isn't an architecture with the
10059 user supplied name, instead of forcing a different one without
10060 recording the change with the multiarch machinery.
10061 (find_variant_by_name): Delete.
10062
10063 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10064
10065 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
10066 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
10067
10068 2002-02-13 Martin M. Hunt <hunt@redhat.com>
10069
10070 * stack.c (print_frame_info_base): When calling
10071 print_frame_info_listing_hook, set current_source_symtab.
10072
10073 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10074
10075 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
10076 and remove unused $(INCLUDE_DIR).
10077 Add regcache.c to OBS.
10078 Add generated register protocol files to clean target.
10079 Update dependencies for new objects, obsolete old target code.
10080
10081 * gdbserver/linux-low.c: Remove all platform-specific code to
10082 new files. Remove various dead code. Update to use regcache
10083 functionality.
10084 * gdbserver/remote-utils.c (fromhex): Add return statement
10085 to quiet warning.
10086 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
10087 constant.
10088 (input_interrupt): Add integer parameter to match prototype
10089 of a signal handler.
10090 (outreg): Use register_data ().
10091 (prepare_resume_reply): Use gdbserver_expedite_regs.
10092 * gdbserver/server.c (main): Dynamically allocate own_buf because
10093 PBUFSIZ is no longer constant. Use registers_to_string () and
10094 registers_from_string ().
10095 * gdbserver/server.h: No longer include "defs.h". Add prototypes
10096 for error (), fatal (), and warning (). Update definition of
10097 PBUFSIZ to use regcache functionality. Add include guard.
10098 * gdbserver/utils.c (fatal): Add missing ``const''.
10099 (warning): New function.
10100
10101 * regformats/regdat.sh: Include "regcache.h" in generated files.
10102 Provide init_registers () function.
10103 * regformats/regdef.h: Add prototype for set_register_cache ().
10104 Add include guard.
10105
10106 * gdbserver/linux-arm-low.c: New file.
10107 * gdbserver/linux-i386-low.c: New file.
10108 * gdbserver/linux-ia64-low.c: New file.
10109 * gdbserver/linux-m68k-low.c: New file.
10110 * gdbserver/linux-mips-low.c: New file.
10111 * gdbserver/linux-ppc-low.c: New file.
10112 * gdbserver/linux-sh-low.c: New file.
10113
10114 * gdbserver/regcache.c: New file.
10115 * gdbserver/regcache.h: New file.
10116
10117 * gdbserver/low-linux.c: Removed obsolete file.
10118
10119 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10120
10121 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
10122 * config/i386/linux.mt: Likewise.
10123 * config/ia64/linux.mt: Likewise.
10124 * config/m68k/linux.mh: Likewise.
10125 * config/powerpc/linux.mh: Likewise.
10126 * config/mips/linux.mt: Likewise.
10127
10128 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
10129
10130 * config/i386/i386lynx.mh: Mark gdbserver variables
10131 as (currently) obsolete for this target.
10132 * config/i386/nbsd.mt: Likewise.
10133 * config/i386/nbsdelf.mt: Likewise.
10134 * config/m32r/m32r.mt: Likewise.
10135 * config/m68k/m68klynx.mh: Likewise.
10136 * config/m68k/nbsd.mt: Likewise.
10137 * config/m68k/sun3os4.mh: Likewise.
10138 * config/mips/vr5000.mt: Likewise.
10139 * config/ns32k/nbsd.mt: Likewise.
10140 * config/pa/hppabsd.mh: Likewise.
10141 * config/pa/hppaosf.mh: Likewise.
10142 * config/powerpc/nbsd.mt: Likewise.
10143 * config/rs6000/rs6000lynx.mh: Likewise.
10144 * config/s390/s390.mt: Likewise.
10145 * config/s390/s390x.mt: Likewise.
10146 * config/sparc/sparclynx.mh: Likewise.
10147 * config/sparc/sun4os4.mh: Likewise.
10148 * config/i386/x86-64linux.mt: Likewise.
10149 * config/sparc/linux.mh: Likewise.
10150
10151 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10152
10153 * configure.tgt: Configure gdbserver only for known working
10154 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
10155 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
10156 SUBDIRS if it is configured. Update comment for ${nativefile}.
10157 * configure: Regenerated.
10158
10159 2002-02-13 Michael Snyder <msnyder@redhat.com>
10160
10161 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10162
10163 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10164 (default_gcore_mach): Just return 0, work around a problem in bfd.
10165 (default_gcore_target): OK to return NULL if exec_bfd is null.
10166 (make_mem_sec): Use a cast, avoid a warning.
10167
10168 * procfs.c (find_memory_regions_callback): Use a cast instead of
10169 calling host_pointer_to_address (which complains if
10170 sizeof (host pointer) != sizeof (target pointer)).
10171 (procfs_make_note_section): Avoid overflow in psargs string.
10172
10173 * procfs.c (procfs_make_note_section): Make the default
10174 implementation return an error.
10175
10176 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
10177
10178 * procfs.c (procfs_make_note_section): Provide a default definition
10179 (for alpha-dec-osf4.0f). Fix typos.
10180
10181 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
10182
10183 * linux-proc.c: Add include of regcache.h.
10184 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10185
10186 2002-02-13 Andrew Cagney <ac131313@redhat.com>
10187
10188 From 2002-01-18 Greg McGary <greg@mcgary.org>:
10189 * memattr.c (create_mem_region): Disallow useless empty region.
10190 Regions are half-open intervals, so allow [A..B) [B..C) as
10191 non-overlapping.
10192
10193 2002-02-13 Michael Chastain <mec@shout.net>
10194
10195 * defs.h: Kill CONST_PTR.
10196 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10197 * c-lang.c (c_builtin_types): Likewise.
10198 * ch-lang.c (ch_builtin_types): Likewise.
10199 * f-lang.c (f_builtin_types): Likewise.
10200 * language.c (unknown_builtin_types): Likewise.
10201 * m2-lang.c (m2_builtin_types): Likewise.
10202 * p-lang.c (pascal_builtin_types): Likewise.
10203 * scm-lang.c (c_builtin_types): Likewise.
10204
10205 2002-02-13 Keith Seitz <keiths@redhat.com>
10206
10207 * arm-tdep.h (arm_get_next_pc): Add declaration.
10208
10209 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
10210
10211 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10212 with other related struct-returning functions.
10213 (arm_extract_struct_value_address): New function.
10214 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10215 initialize float_format, double_format and long_double_format as
10216 appropriate to the endianness of the target.
10217 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10218 (arm_use_struct_convention): Delete declaration.
10219 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10220
10221 2002-02-13 Keith Seitz <keiths@redhat.com>
10222
10223 * defs.h (core_addr_to_string_nz): New function.
10224
10225 2002-02-13 Mark Kettenis <kettenis@gnu.org>
10226
10227 Apply missing bits of 2002-01-15 patch.
10228 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10229 (fill_fpregset): Use i387_fill_fsave.
10230
10231 2002-02-12 Keith Seitz <keiths@redhat.com>
10232
10233 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10234 (core_addr_to_string_nz): New function.
10235
10236 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10237
10238 * arm-linux-nat.c: Really include arm-tdep.h.
10239 * config/arm/tm-linux.h (struct type, struct value): Declare.
10240
10241 2002-02-11 Michael Snyder <msnyder@redhat.com>
10242
10243 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10244 (gcore section): Ifdef for Solaris and Unixware only.
10245 (procfs_do_thread_registers): Unixware needs one lwpstatus
10246 per thread (not one prstatus or pstatus).
10247 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10248 not over all gdb threads. For unixware, call elfcore_write_pstatus
10249 once before iterating over threads.
10250
10251 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10252
10253 * arm-tdep.h: New file.
10254 * arm-tdep.c: Include arm-tdep.h.
10255 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10256 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10257 (arm_print_float_info, arm_register_type, convert_to_extended)
10258 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10259 (arm_extract_return_value, arm_register_name): Make static.
10260 (arm_software_single_step): Similarly. Fix types in declaration.
10261 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10262 (arm_store_return_value, arm_store_struct_return): New functions.
10263 (arm_gdbarch_init): Register the above functions. Also register
10264 call_dummy_start_offset, sizeof_call_dummy_words,
10265 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10266 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
10267 max_register_virtual_size, register_size. Set up
10268 prologue_cache.saved_regs here, rather than ...
10269 (_initialize_arm_tdep): ... here.
10270 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10271 declarations.
10272 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10273 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10274 (arm_print_float_info, arm_register_type, convert_to_extended)
10275 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10276 (arm_extract_return_value, arm_register_name): Delete declarations.
10277 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10278 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10279 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10280 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10281 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10282 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10283 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10284 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10285 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10286 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10287 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10288 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10289 interface.
10290 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10291 * remote-rdi.c remote-rdp.c: Likewise.
10292 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10293 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10294 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10295 definition.
10296
10297 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10298 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10299 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10300 from non-ARM_ prefixed definitions.
10301 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10302 all uses of above.
10303 * remote-rdi.c remote-rdp.c: Likewise.
10304 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10305
10306 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10307
10308 * arm-tdep.c (arm_frameless_function_invocation)
10309 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10310 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10311 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10312 (arm_pop_frame, arm_get_next_pc): Make static.
10313 (arm_gdbarch_init): Register above in gdbarch structure.
10314 (arm_read_fp): Renamed from arm_target_read_fp.
10315 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10316 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10317 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10318 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10319 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10320 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10321 (arm_pc_is_thumb_dummy): Delete declarations.
10322 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10323 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10324 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10325 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
10326
10327 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
10328
10329 * symtab.c (compare_search_syms): New function.
10330 (sort_search_symbols): New function.
10331 (search_symbols): Sort symbols after searching rather than
10332 before.
10333
10334 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10335
10336 * NEWS: Linux -> GNU/Linux.
10337
10338 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10339
10340 * gdbarch.sh: For for level one methods, disallow a definition
10341 when partially multi-arched. Add comments explaining rationale.
10342 * gdbarch.h: Re-generate.
10343
10344 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10345
10346 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10347 multi-arch partial.
10348
10349 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10350
10351 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10352 field. Use diff -u.
10353 * gdbarch.c: Re-generate.
10354
10355 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10356
10357 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
10358 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10359 partial.
10360
10361 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10362
10363 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10364 multi-arch partial.
10365 (PUSH_ARGUMENTS): Switch to using predefault.
10366 * gdbarch.c: Regenerate.
10367
10368 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10369
10370 * valops.c (PUSH_ARGUMENTS): Delete definition.
10371 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10372 partial. Default to default_push_arguments.
10373 * gdbarch.h, gdbarch.c: Regenerate.
10374
10375 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10376
10377 * defs.h (throw_exception): Rename return_to_top_level. Update
10378 comments.
10379 * utils.c (error_stream, internal_verror, quit): Ditto.
10380 * top.c (throw_exception, catcher): Ditto.
10381 * sparclet-rom.c (sparclet_load): Ditto.
10382 * remote.c (interrupt_query, minitelnet): Ditto.
10383 * remote-sds.c (interrupt_query): Ditto.
10384 * remote-mips.c (mips_error, mips_kill): Ditto.
10385 * ocd.c (interrupt_query): Ditto.
10386 * monitor.c (monitor_interrupt_query): Ditto.
10387 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10388 * target.h: Update comment.
10389
10390 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10391
10392 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10393
10394 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10395 default_double_format.
10396 * gdbarch.h, gdbarch.c: Re-generate.
10397 * findvar.c (floatformat_unknown): Delete variable definition.
10398 * doublest.h (floatformat_unknown): Delete variable declaration.
10399
10400 2002-02-09 Jim Blandy <jimb@redhat.com>
10401
10402 * stabsread.c (read_type): Add code to parse Sun's syntax for
10403 prototyped function types.
10404
10405 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10406
10407 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10408 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10409
10410 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10411
10412 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10413 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10414 now _initialize_xcoffsolib gets called again and overrides the
10415 commands from solib.c in a native configuration.
10416
10417 2002-02-09 Mark Kettenis <kettenis@gnu.org>
10418
10419 * doublest.c (store_typed_floating): Don't try to return a value.
10420 Fixes PR gdb/290.
10421
10422 2002-02-08 Jim Blandy <jimb@redhat.com>
10423
10424 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10425 is prototyped and has no arguments, print its argument list as
10426 `(void)'.
10427
10428 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10429
10430 * MAINTAINERS (write-after-approval): Add myself.
10431 (paper-trail): I've escaped!
10432
10433 2002-02-08 Christopher Faylor <cgf@redhat.com>
10434
10435 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10436 changes.
10437 (_initialize_check_for_gdb_ini): Ditto.
10438
10439 2002-02-08 Martin M. Hunt <hunt@redhat.com>
10440
10441 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10442 xaprintf -> xasprintf.
10443
10444 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10445
10446 * win32-nat.c: Remove use of printf and sprintf functions.
10447
10448 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
10449
10450 * arm-tdep.c (arm_frame_chain_valid): Make static.
10451 (arm_push_arguments): Likewise.
10452 (arm_gdbarch_init): New function.
10453 (_initialize_arm_tdep): Call it.
10454 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10455 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10456 (FRAME_CHAIN_VALID): Delete.
10457 (arm_frame_chain_valid): Delete declaration.
10458 (PUSH_ARGUMENTS): Delete.
10459 (arm_push_arguments): Delete declaration.
10460 (CALL_DUMMY_P): Delete.
10461
10462 2002-02-08 Andrew Cagney <ac131313@redhat.com>
10463 Corinna Vinschen <vinschen@redhat.com>
10464
10465 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10466 on builtin float types.
10467
10468 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
10469
10470 * utils.c: Include <curses.h> before "bfd.h".
10471 * tui/tui-hooks.c: Likewise.
10472 * tui/tui.c: Likewise.
10473 * tui/tuiCommand.c: Likewise.
10474 * tui/tuiData.c: Likewise.
10475 * tui/tuiDataWin.c: Likewise.
10476 * tui/tuiDisassem.c: Likewise.
10477 * tui/tuiGeneralWin.c: Likewise.
10478 * tui/tuiIO.c: Likewise.
10479 * tui/tuiLayout.c: Likewise.
10480 * tui/tuiRegs.c: Likewise.
10481 * tui/tuiSource.c: Likewise.
10482 * tui/tuiSourceWin.c: Likewise.
10483 * tui/tuiStack.c: Likewise.
10484 * tui/tuiWin.c: Likewise.
10485
10486 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
10487
10488 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10489 to include space for pseudoregs as well. Update loops accordingly.
10490 (sh_fp_frame_init_saved_regs): Ditto.
10491 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10492
10493 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10494
10495 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10496 Add Richard Earnshaw to Arm maintainers.
10497
10498 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10499
10500 * defs.h (warning_begin): Delete declaration.
10501
10502 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10503 Delete macro.
10504
10505 2002-02-07 Michael Snyder <msnyder@redhat.com>
10506
10507 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10508 Logic bug, remove misplaced else.
10509
10510 2002-02-07 Klee Dienes <klee@apple.com>
10511
10512 * fork-inferior.c (fork_inferior): Add '!' to the list of
10513 characters that need to be quoted when building a string for the
10514 shell. Quote '!' specifically with a backslash, since CSH chokes
10515 when trying to evaluate "str!str".
10516
10517 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10518
10519 * rdi-share/host.h: Only provide a typedef for bool if it is not
10520 defined.
10521
10522 2002-02-04 Michael Snyder <msnyder@redhat.com>
10523
10524 * breakpoint.h (enum bptype): Add new overlay event bp type.
10525 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10526
10527 * breakpoint.c (create_internal_breakpoint): New function.
10528 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10529 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10530 (create_thread_event_breakpoint): Ditto.
10531 (create_solib_event_breakpoint): Ditto.
10532 (create_overlay_event_breakpoint): New function.
10533 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10534 (update_breakpoints_after_exec): Delete and re-initialize
10535 overlay event breakpoints after an exec. Add FIXME comment
10536 about longjmp breakpoint.
10537 (print_it_typical): Ignore overlay event breakpoints.
10538 (print_one_breakpoint): Ditto.
10539 (mention): Ditto.
10540 (bpstat_what): Do not stop for overlay event breakpoints.
10541 (delete_breakpoint): Don't delete overlay event breakpoints.
10542 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10543 (breakpoint_re_set): Re-create overlay event breakpoint.
10544
10545 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10546 (overlay_manual_command): Disable overlay breakpoints.
10547 (overlay_off_command): Disable overlay breakpoints.
10548
10549 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10550
10551 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10552 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10553 to here from config/tm-arm.h.
10554 (coff_sym_is_thumb): Make static.
10555 (arm_elf_make_msymbol_special): New function.
10556 (arm_coff_make_msymbol_special): New function.
10557 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10558 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10559 (coff_sym_is_thumb): Delete declaration.
10560 (arm_elf_make_msymbol_special): Declare.
10561 (arm_coff_make_msymbol_special): Declare.
10562 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10563 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10564
10565 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10566
10567 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10568
10569 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10570
10571 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10572 * gdbarch.c gdbarch.h: Regenerate.
10573 * arch-utils.c (default_print_float_info): New function.
10574 * arch-utils.h (default_print_float_info): Prototype it.
10575 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10576 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10577 (PRINT_FLOAT_INFO): Document it.
10578
10579 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10580 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10581 (PRINT_FLOAT_INFO): Define.
10582
10583 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10584
10585 * win32-nat.c (_initialize_check_for_gdb_ini):
10586 Add typecast to sprintf argument to suppress a warning.
10587
10588 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10589
10590 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10591 to allow easier handling of pass state.
10592 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10593 that gives exception name and address.
10594 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10595 and set last_sig value to ourstatus->value.sig. Some missing
10596 exceptions added.
10597 (child_continue): Correctly report continue_status.
10598 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10599 TARGET_SIGNAL_0 (new default value).
10600 (child_resume): consider sig argument passed to decide if
10601 the exception should be passed to debuggee or not.
10602
10603 2002-02-05 Michael Snyder <msnyder@redhat.com>
10604
10605 * regcache.c (fetch_register): Call target_fetch_register
10606 only if we don't call FETCH_PSEUDO_REGISTER.
10607 (store_register): Call target_store_register only if we
10608 don't call STORE_PSEUDO_REGISTER.
10609
10610 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
10611
10612 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10613 ELF_MAKE_MSYMBOL_SPECIAL.
10614 * gdbarch.c, gdbarch.h: Regenerate.
10615 * arch-utils.c (default_make_msymbol_special): New function.
10616 * arch-utils.h (default_make_msymbol_special): Export.
10617 * elfread.c (elf_symtab_read): Compile use of
10618 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10619 multiarched.
10620 * coffread.c (coff_symtab_read): Ditto, for
10621 COFF_MAKE_MSYMBOL_SPECIAL.
10622
10623 2002-02-05 Jim Blandy <jimb@redhat.com>
10624
10625 * solib-svr4.c (svr4_truncate_ptr): New function.
10626 (svr4_relocate_section_addresses): Do the address arithmetic with
10627 the appropriate truncation for target addresses, even when
10628 CORE_ADDR is larger than a target address.
10629
10630 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10631
10632 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10633 to (int *).
10634
10635 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10636
10637 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10638 code.
10639
10640 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10641
10642 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10643
10644 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10645
10646 * gdbserver/linux-low.c: Remove unused include files.
10647
10648 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10649
10650 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10651 (read_inferior_memory): Use it.
10652 (write_inferior_memory): Likewise.
10653
10654 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10655
10656 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10657 grubbing through sys_errlist.
10658
10659 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10660
10661 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10662
10663 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10664 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10665
10666 2002-02-04 Andrew Cagney <ac131313@redhat.com>
10667
10668 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10669 (do_sfunc, set_cmd_sfunc): New functions.
10670
10671 * command.h (struct cmd_list_element): Add field func.
10672 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10673 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10674 * cli/cli-decode.h: Ditto.
10675
10676 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10677 (help_all, help_cmd_list): Ditto.
10678 (find_cmd, complete_on_cmdlist): Ditto.
10679 * top.c (execute_command): Ditto.
10680
10681 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10682 function.sfunc.
10683
10684 * infcmd.c (notice_args_read): Fix function signature.
10685
10686 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10687 * cli/cli-decode.c (add_set_cmd): Ditto.
10688 * utils.c (initialize_utils): Ditto.
10689 * maint.c (_initialize_maint_cmds): Ditto.
10690 * infrun.c (_initialize_infrun): Ditto.
10691 * demangle.c (_initialize_demangler): Ditto.
10692 * remote.c (add_packet_config_cmd): Ditto.
10693 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10694 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10695 * proc-api.c (_initialize_proc_api): Ditto.
10696 * kod.c (_initialize_kod): Ditto.
10697 * valprint.c (_initialize_valprint): Ditto.
10698 * top.c (init_main): Ditto.
10699 * infcmd.c (_initialize_infcmd): Ditto.
10700 * corefile.c (_initialize_core): Ditto.
10701 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10702 * arch-utils.c (initialize_current_architecture): Ditto.
10703 (_initialize_gdbarch_utils): Ditto.
10704 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10705
10706 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10707 * wince.c (_initialize_inftarg): Ditto.
10708 * symfile.c (_initialize_symfile): Ditto.
10709 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10710 * language.c (_initialize_language): Ditto.
10711 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10712
10713 2002-02-04 Michael Snyder <msnyder@redhat.com>
10714
10715 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10716
10717 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10718
10719 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10720 Add rules for building the register data files.
10721
10722 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10723
10724 * regformats/regdat.sh: Add braces to the definition of
10725 expedite_regs_${arch}.
10726
10727 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10728
10729 * regformats/regdef.h (struct reg): Add comment describing the
10730 requirements for offset and size fields.
10731
10732 2002-02-04 Andreas Schwab <schwab@suse.de>
10733
10734 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10735 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10736
10737 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
10738
10739 * gdbarch.sh (copyright): Update years in generated header.
10740 (SMASH_TEXT_ADDRESS): Add rule.
10741 * gdbarch.h, gdbarch.c: Re-generate.
10742 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10743 * dbxread.c: Likewise.
10744 * dwarfread.c: Likewise.
10745 * elfread.c: Likewise.
10746 * somread.c: Likewise.
10747
10748 * arm-tdep.c (arm_smash_text_address): New function.
10749 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10750
10751 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10752
10753 Add support for hardware watchpoints on win32 native.
10754 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10755 CONTEXT_DEBUG_REGISTERS.
10756 (dr variable): New variable. Static array containing a local copy
10757 of debug registers.
10758 (debug_registers_changed): New variable. Reflects when debug registers
10759 are changed and need to be written to inferior.
10760 (debug_registers_used): New variable. Reflects when any debug register
10761 was set, used when new threads are created.
10762 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10763 i386-nat code.
10764 (thread_rec): Set dr array if id is the thread of current_event .
10765 (child_continue, child_resume): Change the debug registers for all
10766 threads if debug_registers_changed.
10767 (child_add_thread): Change the debug registers if debug_registers_used.
10768 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10769 Link nm.h to new nm-cygwin.h file.
10770 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10771 of hardware registers.
10772
10773 2002-02-03 Andrew Cagney <ac131313@redhat.com>
10774
10775 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10776 Restore behavour broken by 2002-01-20 Andrew Cagney
10777 <ac131313@redhat.com> IEEE_FLOAT removal.
10778
10779 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10780
10781 * c-valprint.c (c_val_print): Pass a proper valaddr to
10782 cp_print_class_method.
10783 * valops.c (search_struct_method): If there is only one method
10784 and args is NULL, return that method.
10785
10786 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10787
10788 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10789 accessing tag_name directly.
10790
10791 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10792
10793 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10794 of accessing tag_name directly.
10795
10796 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10797
10798 PR gdb/280
10799 * gdbtypes.c (replace_type): New function.
10800 * gdbtypes.h (replace_type): Add prototype.
10801 * stabsread.c (read_type): Use replace_type.
10802
10803 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
10804
10805 * Makefile.in (memattr.o): Add missing dependencies rule.
10806
10807 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10808
10809 * breakpoint.c (break_at_finish_command): Really export.
10810 (break_at_finish_at_depth_command): Ditto.
10811 (tbreak_at_finish_command): Ditto.
10812 * hppa-tdep.c: Include completer.h.
10813 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10814 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10815
10816 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10817
10818 * utils.c (do_write): New function.
10819 (error_stream): Rewrite combining the code from error_begin and
10820 verror.
10821 (verror): Rewrite using error_stream.
10822 (error_begin): Delete function.
10823
10824 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10825
10826 * utils.c (error_begin): Make static.
10827 * defs.h (error_begin): Delete declaration.
10828
10829 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10830 (decode_line_1): Use cplusplus_error instead of error_begin,
10831 cplusplus_hint and return_to_top_level.
10832 * coffread.c (coff_symfile_read): Use error instead of error_begin
10833 and return_to_top_level.
10834 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10835
10836 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10837
10838 * language.h (type_error, range_error): Make string parameter
10839 constant.
10840 * language.c (warning_pre_print): Delete extern declaration.
10841 * dwarfread.c (warning_pre_print): Ditto.
10842 * language.c (type_error, range_error): Rewrite to use verror and
10843 vwarning instead of warning_begin.
10844
10845 2002-02-01 Michael Snyder <msnyder@redhat.com>
10846
10847 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10848 (set_ignore_count): Move misplaced comment back where it belongs.
10849
10850 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10851
10852 * command.h (NO_FUNCTION): Delete macro.
10853 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10854 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10855 * tracepoint.c (_initialize_tracepoint): Ditto.
10856 * cli/cli-decode.c (add_set_cmd): Ditto.
10857 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10858
10859 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10860
10861 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10862 Update ``this'' pointer when calling virtual functions.
10863
10864 2002-02-01 Michael Snyder <msnyder@redhat.com>
10865
10866 * breakpoint.c (create_temp_exception_breakpoint): Delete.
10867 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10868
10869 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10870
10871 * regformats/reg-arm.dat: New file.
10872 * regformats/reg-i386.dat: New file.
10873 * regformats/reg-ia64.dat: New file.
10874 * regformats/reg-m68k.dat: New file.
10875 * regformats/reg-mips.dat: New file.
10876 * regformats/reg-ppc.dat: New file.
10877 * regformats/reg-sh.dat: New file.
10878 * regformats/regdef.h: New file.
10879 * regformats/regdat.sh: New file.
10880
10881 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
10882
10883 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10884 (arm_frame_args_address, arm_frame_locals_address): New functions.
10885 (arm_frame_num_args): New function.
10886 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10887 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10888 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10889
10890 2002-01-31 Michael Snyder <msnyder@redhat.com>
10891
10892 * breakpoint.c (break_at_finish_command): Export.
10893 (break_at_finish_at_depth_command): Export.
10894 (tbreak_at_finish_command): Export.
10895 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
10896 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10897 "txbreak" commands, which are HPPA specific.
10898
10899 * printcmd.c (disassemble_command): Remove an ancient
10900 artifact of an old merge.
10901
10902 * symfile.h (enum overlay_debugging_state):
10903 Define enum constant values for overlay mode.
10904 * symfile.c (overlay_debugging): Use enums instead of literals.
10905 (overlay_is_mapped, overlay_auto_command,
10906 overlay_manual_command): Ditto.
10907
10908 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10909 breakpoint_here_p, breakpoint_inserted_here_p,
10910 breakpoint_thread_match, bpstat_stop_status,
10911 describe_other_breakpoints, check_duplicates, clear_command):
10912 Coding standard fixes.
10913
10914 * target.c (target_xfer_memory): Add spaces, coding standard.
10915 (do_xfer_memory): Add missing line to trust-readonly
10916 code: check bfd SEC_READONLY flag for section.
10917
10918 2002-01-31 Andrew Cagney <ac131313@redhat.com>
10919
10920 * PROBLEMS: Fix typo, 5.1->5.1.1.
10921
10922 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
10923
10924 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10925 data symbols, since we search based on textlow and texthigh.
10926 (find_pc_sect_symtab): Likewise.
10927
10928 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10929
10930 * defs.h (vwarning): Declare.
10931 * utils.c (vwarning): New function.
10932 (warning): Call vwarning.
10933 (warning_begin): Delete function.
10934
10935 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10936 the warning message.
10937 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10938 warning_begin.
10939
10940 2002-01-30 Michael Snyder <msnyder@redhat.com>
10941
10942 * NEWS: Mention "set trust-readonly-sections" command.
10943 Mention generate-core-file command.
10944
10945 2002-01-15 Michael Snyder <msnyder@redhat.com>
10946
10947 * target.c: New command, "set trust-readonly-sections on".
10948 (do_xfer_memory): Honor the suggestion to trust readonly sections
10949 by reading them from the object file instead of from the target.
10950 (initialize_targets): Register command "set trust-readonly-sections".
10951
10952 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10953
10954 * parse.c (target_map_name_to_register): Simplify, search regs and
10955 pseudo-regs using a single loop.
10956
10957 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10958
10959 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10960
10961 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
10962
10963 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10964 * config/i386/i386v42mp.mh: Add i387-nat.o .
10965 * i386v4-nat.c: Include i387-nat.h.
10966 (supply_fpregset): Use i387_supply_fsave.
10967 (fill_fpregset): Use i387_fill_fsave.
10968
10969 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
10970
10971 * arm-tdep.c (arm_call_dummy_words): Define.
10972 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10973 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10974 (CALL_DUMMY_WORDS): Define.
10975 (arm_call_dummy_words): Declare.
10976 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10977 (arm_linux_call_dummy_words): Declare.
10978
10979 2002-01-30 Andreas Schwab <schwab@suse.de>
10980
10981 * m68klinux-nat.c: Fix last change to use regcache_collect
10982 instead of referencing registers[] directly.
10983
10984 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10985
10986 * parse.c (target_map_name_to_register): Delete code wrapped in
10987 #ifdef REGISTER_NAME_ALIAS_HOOK.
10988
10989 2002-01-28 Michael Snyder <msnyder@redhat.com>
10990
10991 * regcache.c (legacy_read_register_gen): Need to be able to
10992 read pseudo-register as well as real register.
10993 (legacy_write_register_gen): Ditto.
10994
10995 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10996
10997 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10998 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10999 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
11000 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
11001 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
11002 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
11003 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
11004 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
11005 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
11006 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11007 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
11008 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
11009 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
11010 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
11011 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
11012 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
11013 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
11014 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
11015 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
11016 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
11017
11018 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11019
11020 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
11021 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
11022 (initialize_current_architecture): Update target_byte_order using
11023 information from BFD.
11024 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
11025 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
11026
11027 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11028
11029 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
11030 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
11031
11032 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
11033 #ifdef INVALID_FLOAT.
11034 * infcmd.c (do_registers_info): Ditto.
11035 * values.c (unpack_double): Ditto. Add comment.
11036
11037 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
11038 already commented out.
11039
11040 2002-01-26 Andreas Schwab <schwab@suse.de>
11041
11042 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
11043 * m68klinux-nat.c: Update ptrace interface for fetching/storing
11044 registers and add support for PTRACE_GETREGS.
11045
11046 2002-01-24 Andrew Cagney <ac131313@redhat.com>
11047
11048 GDB 5.1.1 released from 5.1 branch.
11049 * NEWS: Add 5.1.1 news.
11050 * README: Sync with 5.1 branch.
11051
11052 2002-01-23 Fred Fish <fnf@redhat.com>
11053
11054 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
11055 stabstring on initial malloc. Reallocing will copy it for us,
11056 if necessary.
11057
11058 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11059
11060 * Makefile.in (hpread_h): Delete.
11061 (HFILES_NO_SRCDIR): Remove hpread.h.
11062 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
11063 (hpread.o): Update dependencies.
11064 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
11065
11066 * hp-psymtab-read.c: Remove file.
11067 * hp-symtab-read.c: Remove file.
11068 * hpread.h: Remove file.
11069
11070 * hpread.c: Merge all contents of hp-psymtab-read.c,
11071 hp-symtab-read.c and hpread.h into this file, as it was prior to
11072 January 1999.
11073
11074 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
11075 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
11076 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
11077 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
11078
11079 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11080
11081 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
11082 fill_gregset): Call gdbarch_tdep() just once, assign result to
11083 variable and use that, instead of calling the function several
11084 times.
11085
11086 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11087
11088 * configure.host: Accept sparcv9 as alias for sparc64.
11089 * configure.tgt: Likewise.
11090
11091 2002-01-22 Kevin Buettner <kevinb@redhat.com>
11092
11093 * solib-aix5.c (build_so_list_from_mapfile)
11094 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
11095 arguments is not reversed.
11096 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
11097 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
11098
11099 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
11100
11101 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
11102 modified version of obsolete sh_fetch_pseudo_register.
11103 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
11104 (sh4_register_read): New function.
11105 (sh_pseudo_register_write): New function. Renamed and modified
11106 version of obsolete sh_store_pseudo_register.
11107 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
11108 (sh4_register_write): New function.
11109 (sh_gdbarch_init): Remove setting of gdbarch function
11110 fetch_pseudo_register and store_pseudo_register. Remove setting of
11111 register_convert_to_raw, register_convert_to_virtual,
11112 register_convertible.
11113 (sh_sh4_register_convertible): Delete. No longer needed. All is
11114 taken care by architecture specific functions
11115 register_read/register_write.
11116 (sh_sh4_register_convert_to_virtual): Make static.
11117 (sh_sh4_register_convert_to_raw): Ditto.
11118
11119 2002-01-22 Andrew Cagney <ac131313@redhat.com>
11120
11121 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
11122 (floatformat_is_nan, floatformat_mantissa): Ditto.
11123
11124 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
11125 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
11126 builtin_type_ieee_double_little,
11127 builtin_type_ieee_double_littlebyte_bigword,
11128 builtin_type_m68881_ext, builtin_type_i960_ext,
11129 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
11130 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
11131 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
11132 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
11133
11134 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
11135
11136 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
11137 parameter. Set frameless flag if it exists and depended of
11138 whether the scanned function is frameless or not.
11139 (xstormy16_skip_prologue): If function is frameless, return
11140 result of xstormy16_scan_prologue().
11141 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
11142 call.
11143
11144 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
11145
11146 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11147 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11148 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11149 sh_sh4_register_byte, sh_sh4_register_raw_size,
11150 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11151 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11152 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11153 sh_store_pseudo_register, sh_do_pseudo_register): Call
11154 gdbarch_tdep() just once, assign result to variable and use that,
11155 instead of calling the function several times.
11156
11157 2002-01-20 Mark Kettenis <kettenis@gnu.org>
11158
11159 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11160 macros instead of LAST_FPU_CTRL_REGNUM.
11161 (store_register): Likewise.
11162
11163 2002-01-21 Jim Blandy <jimb@redhat.com>
11164
11165 * infcmd.c (run_command): Check that the `exec' target layer's BFD
11166 is up-to-date before running the program, not just when a program
11167 exits.
11168
11169 2002-01-21 Fred Fish <fnf@redhat.com>
11170
11171 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11172 when we have found all instructions we are looking for.
11173
11174 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11175
11176 * arm-tdep.c (arm_register_name): New function.
11177 (arm_registers_names): Make static.
11178 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11179 (arm_register_name): Declare.
11180 (REGISTER_NAME): Use it.
11181
11182 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11183 Kevin Buettner <kevinb@redhat.com>
11184
11185 Convert arm targets to new FRAME interface.
11186 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11187 (arm_frame_find_save_regs): Delete.
11188 (arm_frame_init_saved_regs): New.
11189 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11190 Allocate extra_info as required. Convert all uses of fsr.regs
11191 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11192 to use extra_info.
11193 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11194 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11195 (check_prologue_cache, save_prologue_cache): Likewise.
11196 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11197 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11198 (FRAME_FIND_SAVED_REGS): Delete.
11199 (arm_frame_find_saved_regs): Delete prototype.
11200 (arm_frame_init_saved_regs): New prototype.
11201 (FRAME_INIT_SAVED_REGS): Define.
11202
11203 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11204
11205 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11206
11207 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11208
11209 From Jeff Law <law@redhat.com>:
11210 * infttrace.c: Include <sys/pstat.h>.
11211 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11212 exec file if the ttrace equivalent fails.
11213
11214 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11215
11216 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11217 (closeLogFile): Ditto.
11218
11219 2002-01-20 Michael Chastain <mec@shout.net>
11220
11221 * top.c (print_gdb_version): Bump copyright year to 2002.
11222
11223 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11224
11225 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11226 Zannoni and Eli Zaretskii.
11227
11228 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11229
11230 * buildsym.c: Update copyright years.
11231 * c-typeprint.c: Likewise.
11232 * dwarf2read.c: Likewise.
11233 * f-typeprint.c: Likewise.
11234 * gdbtypes.c: Likewise.
11235 * gdbtypes.h: Likewise.
11236 * hp-symtab-read.c: Likewise.
11237 * hpread.c: Likewise.
11238 * mdebugread.c: Likewise.
11239 * p-typeprint.c: Likewise.
11240
11241 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11242
11243 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11244 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11245 byte-order selectable.
11246 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11247 * arch-utils.c: Ditto.
11248 (set_endian): Ditto.
11249 (set_endian_from_file): Ditto.
11250 * gdbserver/low-sim.c (create_inferior): Ditto.
11251 * gdbarch.sh: Ditto.
11252 * gdbarch.h: Re-generate.
11253 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11254 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11255 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11256 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11257 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11258 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11259 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
11260 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11261 macro definition.
11262 * config/mips/tm-wince.h: Remove #undef of macro
11263 TARGET_BYTE_ORDER_SELECTABLE.
11264 * config/sh/tm-wince.h: Ditto.
11265
11266 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11267
11268 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11269 member function fields. Add accessor macro
11270 TYPE_FN_FIELD_ARTIFICIAL.
11271 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11272 * c-typeprint.c (c_type_print_base): Skip artificial member
11273 functions.
11274
11275 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11276
11277 * f-typeprint.c: Delete unused function f_type_print_args.
11278 * p-typeprint.c: Delete unused function pascal_type_print_args.
11279
11280 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11281
11282 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11283 comment. Add ``artificial'' to ``union field_location''.
11284
11285 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11286
11287 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11288 * mdebugread.c (parse_symbol): Likewise.
11289 * stabsread.c (define_symbol): Likewise.
11290 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11291 initializing TYPE_FIELD_BITPOS to n (obsolete).
11292 (hpread_doc_function_type): Likewise.
11293 * hpread.c (hpread_function_type): Likewise.
11294
11295 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11296
11297 * configure.in (host_makefile_frag): Only require a host makefile
11298 fragment when a native build.
11299 * configure: Re-generate.
11300
11301 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11302
11303 * doublest.h (floatformat_from_type): Declare.
11304 * doublest.c (floatformat_from_type): New function.
11305 (convert_typed_floating): Use.
11306
11307 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11308 call to function floatformat_from_type.
11309
11310 * gdbarch.sh (IEEE_FLOAT): Delete.
11311 * gdbarch.h, gdbarch.c: Re-generate.
11312 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11313 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11314 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11315 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11316 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11317 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11318 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11319 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11320 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11321 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11322 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
11323 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11324
11325 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11326 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11327 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11328 * sh-tdep.c (sh_gdbarch_init): Ditto.
11329 * mips-tdep.c (mips_gdbarch_init): Ditto.
11330 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11331 * cris-tdep.c (cris_gdbarch_init): Ditto.
11332
11333 2002-01-20 Jiri Smid <smid@suse.cz>
11334
11335 * configure.host, configure.tgt: Support x86-64.
11336 * NEWS: Note new target x86-64.
11337
11338 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11339 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11340 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11341 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11342 x86-64-linux-nat.o): Fix dependencies.
11343
11344 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11345
11346 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11347 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11348 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11349 * config/sparc/xm-sun4os4.h: Delete file.
11350 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
11351
11352 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11353
11354 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11355 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11356 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11357 * config/i386/i386lynx.mh (XM_FILE): Delete.
11358 * config/rs6000/xm-rs6000ly.h: Delete file.
11359 * config/sparc/xm-sparclynx.h: Delete file.
11360 * config/m68k/xm-m68klynx.h: Delete file.
11361 * config/i386/xm-i386lynx.h: Delete file.
11362 * config/xm-lynx.h: Delete file.
11363 * config/djgpp/fnchange.lst: Update.
11364
11365 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11366
11367 * alpha-tdep.c (alpha_register_byte): New function.
11368 (alpha_register_raw_size): Ditto.
11369 (alpha_register_virtual_size): Ditto.
11370 (alpha_skip_prologue_internal): Renamed from
11371 alpha_skip_prologue.
11372 (alpha_skip_prologue): New version that calls
11373 alpha_skip_prologue_internal.
11374 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11375 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11376 second argument from alpha_skip_prologue.
11377 (REGISTER_BYTE): Use alpha_register_byte.
11378 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11379 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11380 (FRAMELESS_FUNCTION_INVOCATION): Use
11381 generic_frameless_function_invocation_not.
11382 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11383 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11384
11385 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11386
11387 * config/mips/xm-news-mips.h: Delete file.
11388 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11389
11390 * config/m88k/xm-m88k.h: Delete file.
11391 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11392 * config/m88k/xm-delta88v4.h: Ditto.
11393 * config/m88k/xm-delta88.h: Ditto.
11394
11395 * config/alpha/xm-fbsd.h: Delete file.
11396 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11397
11398 * config/sparc/xm-sparc.h: Delete file.
11399 * Makefile.in (xm-sun4os4.h): Delete dependency.
11400 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11401 * config/sparc/xm-sun4os4.h: Ditto.
11402 * config/sparc/xm-linux.h: Ditto.
11403
11404 * config/i386/xm-windows.h: Delete file.
11405
11406 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11407
11408 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11409 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11410
11411 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11412
11413 * alpha-tdep.c (alpha_call_dummy_words): New.
11414 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11415 (CALL_DUMMY_P): Define.
11416 (CALL_DUMMY_WORDS): Define.
11417 (SIZEOF_CALL_DUMMY_WORDS): Define.
11418
11419 2002-01-19 Per Bothner <per@bothner.com>
11420
11421 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11422 isn't NULL, which can happen with some gcj-3.x-produced code.
11423
11424 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11425
11426 * alpha-tdep.c (alpha_register_virtual_type): New function.
11427 (alpha_init_frame_pc_first): Ditto.
11428 (alpha_fix_call_dummy): Ditto.
11429 (alpha_store_struct_return): Ditto.
11430 (alpha_extract_struct_value_address): Ditto.
11431 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11432 alpha_register_virtual_type.
11433 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11434 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11435 alpha_extract_struct_value_address.
11436 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11437 (INIT_FRAME_PC): Use init_frame_pc_noop.
11438 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11439
11440 2002-01-19 Mark Kettenis <kettenis@gnu.org>
11441
11442 * i386gnu-nat.c: Include "i386-tdep.h".
11443 (fetch_fpregs): Simplify code dealing with uninitialized floating
11444 point states such that it doesn't require FP7_REGNUM.
11445
11446 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11447
11448 * alpha-tdep.c (frame_extra_info): New.
11449 (alpha_find_saved_regs): Make static. Use
11450 frame->extra_info.
11451 (alpha_frame_init_saved_regs): New function.
11452 (alpha_frame_saved_pc): Use frame->extra_info.
11453 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11454 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11455 (init_extra_frame_info): Rename to...
11456 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
11457 (alpha_print_extra_frame_info): New function.
11458 (alpha_frame_locals_address): Ditto.
11459 (alpha_frame_args_address): Ditto.
11460 (alpha_pop_frame): Use frame->extra_info.
11461 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11462 alpha_frame_args_address.
11463 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11464 (alpha_find_saved_regs): Remove prototype.
11465 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11466 (EXTRA_FRAME_INFO): Remove.
11467 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11468 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11469
11470 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11471
11472 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11473 (alpha_cannot_fetch_register): Ditto.
11474 (alpha_cannot_store_register): Ditto.
11475 (alpha_register_convertible): Ditto.
11476 (alpha_use_struct_convention): Ditto.
11477 * config/alpha/tm-alpha.h: Update copyright years.
11478 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11479 (INNER_THAN): Use core_addr_lessthan.
11480 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11481 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11482 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11483 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11484 (FRAME_CHAIN): Remove unnecessary cast.
11485
11486 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11487
11488 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11489 obsolete.
11490
11491 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11492
11493 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11494 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11495 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11496 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11497 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11498 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11499 * x86-64-linux-nat.c: Ditto.
11500
11501 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11502
11503 * alpha-tdep.c (alpha_register_name): New function.
11504 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11505 (REGISTER_NAME): Define.
11506
11507 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11508
11509 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11510
11511 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11512
11513 * alpha-tdep.c: Update copyright years.
11514 (alpha_next_pc): New function.
11515 (alpha_software_single_step): Ditto.
11516 * config/alpha/tm-alpha.h: Add prototype for
11517 alpha_software_single_step.
11518
11519 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11520
11521 * alphabsd-nat.c: Update copyright years.
11522 (fill_gregset): Use regcache_collect.
11523 (fill_fpregset): Likewise.
11524 (fetch_inferior_registers): Only fetch integer registers
11525 if requested to do so.
11526 (store_inferior_registers): Only store integer registers
11527 if requested to do so.
11528
11529 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11530
11531 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11532 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11533 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11534 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11535 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11536 * config/arm/linux.mh (XDEPFILES): Delete.
11537 * config/arm/nbsd.mh (XDEPFILES): Delete.
11538 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11539 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11540 * config/i386/i386m3.mh (XDEPFILES): Delete.
11541 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11542 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11543 * config/i386/fbsd.mh (XDEPFILES): Delete.
11544 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11545 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11546 * config/i386/i386v4.mh (XDEPFILES): Delete.
11547 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11548 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11549 * config/i386/i386aix.mh (XDEPFILES): Delete.
11550 * config/i386/go32.mh (XDEPFILES): Delete.
11551 * config/i386/cygwin.mh (XDEPFILES): Delete.
11552 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11553 * config/i386/i386mach.mh (XDEPFILES): Delete.
11554 * config/i386/i386v32.mh (XDEPFILES): Delete.
11555 * config/i386/linux.mh (XDEPFILES): Delete.
11556 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11557 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11558 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11559 * config/i386/i386sco.mh (XDEPFILES): Delete.
11560 * config/i386/i386v.mh (XDEPFILES): Delete.
11561 * config/i386/nbsd.mh (XDEPFILES): Delete.
11562 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11563 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11564 * config/i386/symmetry.mh (XDEPFILES): Delete.
11565 * config/i386/obsd.mh (XDEPFILES): Delete.
11566 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11567 * config/ia64/linux.mh (XDEPFILES): Delete.
11568 * config/ia64/aix.mh (XDEPFILES): Delete.
11569 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11570 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11571 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11572 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11573 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11574 * config/m68k/linux.mh (XDEPFILES): Delete.
11575 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11576 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11577 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11578 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11579 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11580 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11581 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11582 * config/m88k/delta88.mh (XDEPFILES): Delete.
11583 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11584 * config/m88k/m88k.mh (XDEPFILES): Delete.
11585 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11586 * config/mips/linux.mh (XDEPFILES): Delete.
11587 * config/mips/irix6.mh (XDEPFILES): Delete.
11588 * config/mips/irix5.mh (XDEPFILES): Delete.
11589 * config/mips/irix4.mh (XDEPFILES): Delete.
11590 * config/mips/irix3.mh (XDEPFILES): Delete.
11591 * config/mips/decstation.mh (XDEPFILES): Delete.
11592 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11593 (NATDEPFILES): Move core-aout.o to here.
11594 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11595 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11596 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11597 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11598 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11599 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11600 * config/pa/hpux11.mh (XDEPFILES): Delete.
11601 * config/powerpc/aix.mh (XDEPFILES): Delete.
11602 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11603 * config/powerpc/linux.mh (XDEPFILES): Delete.
11604 * config/romp/rtbsd.mh: Rename XDEPFILES.
11605 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11606 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11607 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11608 * config/s390/s390.mh (XDEPFILES): Delete.
11609 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11610 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11611 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11612 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11613 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11614 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11615 * config/sparc/linux.mh (XDEPFILES): Delete.
11616 * config/vax/vaxult.mh (XDEPFILES): Delete.
11617 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11618 * Makefile.in (DEPFILES): Remove XDEPFILES.
11619
11620 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11621
11622 * utils.c (internal_verror): Fix comments, default is yes not no.
11623 Update queries to match. Default to quit and dump core.
11624
11625 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11626
11627 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11628 copyright.
11629 * defs.h, event-top.c, gdbcmd.h: Ditto.
11630 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11631 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11632 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11633 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11634 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11635 * mi/mi-main.c:Ditto.
11636
11637 * stack.c, symfile.c: Update copyright.
11638
11639 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11640
11641 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11642 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11643 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11644 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11645
11646 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11647
11648 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11649 * gdbserver/low-lynx.c (myattach): Likewise.
11650 * gdbserver/low-nbsd.c (myattach): Likewise.
11651 * gdbserver/low-sim.c (myattach): Likewise.
11652 * gdbserver/low-sparc.c (myattach): Likewise.
11653 * gdbserver/low-sun3.c (myattach): Likewise.
11654
11655 * gdbserver/low-linux.c (myattach): New function.
11656
11657 * gdbserver/server.c (attach_inferior): New function.
11658 (main): Handle "--attach".
11659
11660 2002-01-16 Andrew Cagney <ac131313@redhat.com>
11661
11662 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11663 maintainer.
11664
11665 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
11666
11667 * c-typeprint.c (is_type_conversion_operator): Add additional
11668 check for non-conversion operators.
11669
11670 2002-01-15 Michael Snyder <msnyder@redhat.com>
11671
11672 * linux-proc.c: Add "info proc" command, a la procfs.c.
11673 (read_mapping): New function, abstract and re-use code.
11674 (linux_find_memory_regions): Use new func read_mapping.
11675 (linux_info_proc_cmd): New function, implement "info proc".
11676 (_initialize_linux_proc): Add new command "info proc".
11677
11678 2002-01-15 Michael Snyder <msnyder@redhat.com>
11679
11680 * symfile.c (generic_load): Use bfd_map_over_sections method
11681 instead of manipulating bfd structure members directly.
11682 (add_section_size_callback): New function, bfd sections callback
11683 used by generic_load.
11684 (load_sections_callback): New function, bfd sections callback
11685 used by generic_load.
11686
11687 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
11688
11689 [Based on work by Jim Blandy]
11690 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11691 (builtin_type_vec128): Export.
11692 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11693 types.
11694 (builtin_type_vec128): New builtin type for 128 bit vector
11695 registers.
11696 (build_gdbtypes): Initialize builtin_type_v16qi and
11697 builtin_type_v8hi. Create the vec128 register builtin type
11698 structure.
11699 (build_builtin_type_vec128): New function.
11700 (_initialize_gdbtypes): Register builtin_type_v16qi and
11701 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11702 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11703 AltiVec register to new builtin type.
11704
11705 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
11706
11707 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11708 to make_cv_type.
11709
11710 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11711
11712 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11713 CLEAN_UP_REGISTER_VALUE.
11714 * regcache.c (supply_register): Update only call.
11715
11716 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11717
11718 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11719 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11720 a29k-*-vxworks* targets as obsolete.
11721
11722 2002-01-14 Michael Snyder <msnyder@redhat.com>
11723
11724 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11725 until we can resolve portability issues.
11726 * gregset.h: Remove references to fpxregs.
11727 * gcore.c (gcore_command): Initialize note_sec to NULL.
11728
11729 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11730
11731 * signals.c (target_signal_to_name): Rewrite. Only use
11732 signals[].name when in bounds and non-NULL.
11733
11734 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11735
11736 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11737 * signals.c (target_signal_to_name): Verify that SIG is within the
11738 bounds of the signals array.
11739
11740 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11741
11742 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11743
11744 2002-01-13 Keith Seitz <keiths@redhat.com>
11745
11746 * stack.c (print_frame_info_base): Print the frame's pc
11747 only if when print_frame_info_listing_hook is not defined.
11748
11749 2002-01-13 Keith Seitz <keiths@redhat.com>
11750
11751 * varobj.c (varobj_set_value): Make sure that there were no
11752 errors evaluating the object before attempting to set its
11753 value.
11754 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11755 so this offset adjustment is no longer necessary.
11756 (create_child): Don't set the error flag if the child is
11757 a CPLUS_FAKE_CHILD.
11758 (value_of_child): If value_fetch_lazy fails, return NULL
11759 so that callers will be notified that an error occurred.
11760 (c_value_of_variable): Delay check of variable's validity
11761 until later. We actually want all structs and unions to have
11762 the value "{...}".
11763 Do not return "???" for variables which could not be evaluated.
11764 This error condition must be returned to the caller so that it
11765 can get the error condition from gdb.
11766 (cplus_name_of_child): Adjust index for vptr before figuring
11767 out the name of the child.
11768 (cplus_value_of_child): If a child's (real) parent is not valid,
11769 don't even bother trying to give a value for it. Just return
11770 an error. Change all instances in this function.
11771 (cplus_type_of_child): If our parent is one of the "fake"
11772 parents, we need to get at the type of the real parent, and
11773 derive the child's true type using this information.
11774
11775 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11776
11777 From 2002-01-09 John Marshall <johnm@falch.net>:
11778 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11779 sources.redhat.com, and tweak some related URLs which had
11780 suffered from linkrot.
11781
11782 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11783
11784 From Jeff law:
11785 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11786 structures passed in registers.
11787
11788 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11789
11790 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11791 white space which prevented compilation. Reported by DSK
11792 <dsk@student.unsw.edu.au>.
11793
11794 2002-01-11 Michael Snyder <msnyder@redhat.com>
11795
11796 * symfile.c (build_section_addr_info_from_section_tab):
11797 Use bfd access method instead of manipulating bfd directly.
11798 (syms_from_objfile): Ditto.
11799 (simple_overlay_update_1): Ditto.
11800 (simple_overlay_update): Ditto.
11801 (generic_load): Ditto.
11802 (overlay_unmapped_address): FIXME comment, bfd access methods.
11803 (sections_overlap): FIXME comment, bfd access methods.
11804 (pc_in_mapped_range): FIXME comment, bfd access methods.
11805 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11806 (section_is_mapped): FIXME comment, bfd access methods.
11807 (section_is_overlay): FIXME comment, bfd access methods.
11808
11809 * symfile.c (generic_load): Whitespace and long line cleanups.
11810 Remove duplicate variable, change several local variables to
11811 more appropriate data types.
11812 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11813
11814 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11815
11816 From Peter Schauer:
11817 * language.c (longest_local_hex_string_custom): Use phex_nz to
11818 convert NUM to a hex string.
11819
11820 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
11821
11822 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11823 the function.
11824 Update Copyright year.
11825
11826 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11827
11828 * language.c (longest_raw_hex_string): Delete unused function.
11829
11830 2002-01-11 Petr Sorfa <petrs@caldera.com>
11831
11832 * MAINTAINERS (write-after-approval): Add myself.
11833 * dwarf2read.c (read_tag_string_type): Handling of
11834 DW_AT_byte_size.
11835 (read_tag_string_type): FORTRAN fix to prevent propagation of
11836 first string size.
11837 (set_cu_language): Handling of DW_LANG_Fortran95
11838
11839 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
11840
11841 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11842 GETPID(inferior_ptid).
11843 (store_inferior_registers): Likewise.
11844
11845 2002-01-10 Jason Merrill <jason@redhat.com>
11846
11847 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11848 Fix DW_OP_minus.
11849
11850 2002-01-10 Andrew Cagney <ac131313@redhat.com>
11851
11852 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11853 and bfd/elf32-sh-nbsd.c.
11854
11855 2002-01-10 Michael Snyder <msnyder@redhat.com>
11856
11857 * NEWS: Mention --pid and corefile/proc-id behavior change.
11858
11859 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11860 * gcore.c: Include cli/cli-decode.h instead of command.h.
11861
11862 * main.c (captured_main): Add new command line option "--pid".
11863 If the second command line argument (following the symbol-file)
11864 begins with a digit, try to attach to it before trying to open
11865 it as a corefile.
11866 (print_gdb_help): Document the "--pid" argument.
11867
11868 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11869
11870 * completer.c (command_completer): New function.
11871
11872 * completer.h <command_completer>: Add prototype.
11873
11874 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11875 completer for the "help" command.
11876
11877 2002-01-09 Jason Merrill <jason@redhat.com>
11878
11879 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11880
11881 2002-01-09 Michael Snyder <msnyder@redhat.com>
11882
11883 * i386-linux-nat.c (fill_fpxregset): Make global.
11884 (store_fpxregset): Ditto.
11885
11886 * gregset.h (gdb_fpxregset_t): Define.
11887 (supply_fpxregset): Prototype.
11888 (fill_fpxregset): Prototype.
11889
11890 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11891
11892 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11893
11894 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11895 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11896 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11897
11898 2002-01-09 Andrew Cagney <ac131313@redhat.com>
11899
11900 * MAINTAINERS: Update target maintainer rules so that any
11901 Maintainer can approve a tested patch for a maintenance-only
11902 target.
11903
11904 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11905
11906 * MAINTAINERS (write-after-approval): Add myself.
11907
11908 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
11909 IN_SIGTRAMP.
11910
11911 2002-01-08 Michael Snyder <msnyder@redhat.com>
11912
11913 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11914 real name of the executable, rather than the /proc name.
11915
11916 2002-01-03 Michael Snyder <msnyder@redhat.com>
11917
11918 Implement a "generate-core-file" command in gdb, save target state.
11919 * gcore.c: New file. Implement new command 'generate-core-file'.
11920 Save a corefile image of the current state of the inferior.
11921 * linux-proc.c: Add linux-specific code for saving corefiles.
11922 * target.h (struct target_ops): Add new target vectors for saving
11923 corefiles; to_find_memory_regions and to_make_corefile_notes.
11924 (target_find_memory_regions): New macro.
11925 (target_make_corefile_notes): New macro.
11926 * target.c (update_current_target): Inherit new target methods.
11927 (dummy_find_memory_regions): New place-holder method.
11928 (dummy_make_corefile_notes): New place-holder method.
11929 (init_dummy_target): Initialize new dummy target vectors.
11930 * exec.c (exec_set_find_memory_regions): New function.
11931 Allow the exec_ops vector for memory regions to be taken over.
11932 (exec_make_note_section): New function, target vector method.
11933 * defs.h (exec_set_find_memory_regions): Export prototype.
11934 * procfs.c (proc_find_memory_regions): New function, corefile method.
11935 (procfs_make_note_section): New function, corefile method.
11936 (init_procfs_ops): Set new target vector pointers.
11937 (find_memory_regions_callback): New function.
11938 (procfs_do_thread_registers): New function.
11939 (procfs_corefile_thread_callback): New function.
11940 * sol-thread.c (sol_find_memory_regions): New function.
11941 (sol_make_note_section): New function.
11942 (init_sol_thread_ops): Initialize new target vectors.
11943 * inftarg.c (inftarg_set_find_memory_regions): New function.
11944 Allow to_find_memory_regions vector to be taken over.
11945 (inftarg_set_make_corefile_notes): New function.
11946 Allow to_make_corefile_notes vector to be taken over.
11947 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11948 interface layer if not target_has_execution (may be a corefile).
11949 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11950 * config/sparc/sun4sol2.mh: Ditto.
11951 * config/alpha/alpha-linux.mh: Ditto.
11952 * config/arm/linux.mh: Ditto.
11953 * config/i386/x86-64linux.mh: Ditto.
11954 * config/ia64/linux.mh: Ditto.
11955 * config/m68k/linux.mh: Ditto.
11956 * config/mips/linux.mh: Ditto.
11957 * config/powerpc/linux.mh: Ditto.
11958 * config/sparc/linux.mh: Ditto.
11959
11960 2002-01-07 Michael Snyder <msnyder@redhat.com>
11961
11962 * arm-linux-nat.c: Remove references to regcache.c internal data
11963 (registers[] and register_valid[]).
11964
11965 2002-01-07 Michael Snyder <msnyder@redhat.com>
11966
11967 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11968 so that attaching to a pid will automatically read the process's
11969 symbol file and shlibs.
11970 * Makefile.in: Add rule for linux-proc.o.
11971 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11972 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11973 * config/arm/linux.mh: Ditto.
11974 * config/i386/linux.mh: Ditto.
11975 * config/i386/x86-64linux.mh: Ditto.
11976 * config/ia64/linux.mh: Ditto.
11977 * config/m68k/linux.mh: Ditto.
11978 * config/mips/linux.mh: Ditto.
11979 * config/powerpc/linux.mh: Ditto.
11980 * config/sparc/linux.mh: Ditto.
11981
11982 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11983
11984 * win32-nat.c: Add i386-tdep.h dependency.
11985
11986 2002-01-07 Michael Snyder <msnyder@redhat.com>
11987
11988 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11989 instead of bfd_get_arch_size. Don't bail out just because
11990 there's no exec_bfd.
11991
11992 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11993 * p-valprint.c (pascal_object_print_value): Ditto.
11994 * somread.c (som_symtab_read): Ditto.
11995 * symfile.c (simple_free_overlay_region_table): Ditto.
11996 * valops.c (value_assign): Ditto.
11997
11998 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11999 use tilde_expand and strerror for opening save-tracepoints file.
12000
12001 * thread-db.c (thread_db_new_objfile): Indendation fix.
12002
12003 * infptrace.c (GDB_MAX_ALLOCA): New define.
12004 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
12005 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
12006 can be overridden with whatever value is appropriate to the host).
12007 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
12008 alloca to allocate potentially large buffer.
12009 * rs6000-nat.c (child_xfer_memory): Ditto.
12010 * symm-nat.c (child_xfer_memory): Ditto.
12011 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
12012
12013 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
12014
12015 From Nick Clifton <nickc@redhat.com>
12016 * d10v-tdep.c: Set STACK_START to 0x200bffe.
12017
12018 2002-01-07 Michael Snyder <msnyder@redhat.com>
12019
12020 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12021 Don't use exec_bfd if it's NULL.
12022
12023 2002-01-06 Mark Kettenis <kettenis@gnu.org>
12024
12025 * valops.c (value_arg_coerce): Fix formatting.
12026
12027 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12028
12029 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
12030 * gnu-nat.c: Ditto.
12031
12032 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12033
12034 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
12035 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
12036 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
12037 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
12038 z8k-coff have not been multi-arched. Update z8k-coff build
12039 status.
12040
12041 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12042
12043 * MAINTAINERS: Mark a29k target as obsolete.
12044 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
12045 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
12046 comments.
12047 * NEWS: Note that a29k targets are obsolete.
12048 * a29k-tdep.c: Mark as obsolete.
12049 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12050 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12051 a29k-*-vxworks* targets as obsolete.
12052 * remote-adapt.c: Obsolete.
12053 * remote-eb.c: Obsolete.
12054 * remote-mm.c: Obsolete.
12055 * remote-udi.c: Obsolete.
12056 * config/a29k/a29k-udi.mt: Obsolete.
12057 * config/a29k/a29k.mt: Obsolete.
12058 * config/a29k/tm-a29k.h: Obsolete.
12059 * config/a29k/tm-vx29k.h: Obsolete.
12060 * config/a29k/vx29k.mt: Obsolete.
12061
12062 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12063
12064 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
12065 with BFD_ENDIAN_BIG.
12066
12067 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12068
12069 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
12070 * configure, config.in: Re-generate.
12071 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
12072 * defs.h: Do not include <endian.h>.
12073
12074 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
12075
12076 * acconfig.h (HAVE_PT_GETXMMREGS): New.
12077 * config.in: Regenerate.
12078 * configure.in: Update copyright years.
12079 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
12080 * configure: Regenerate.
12081 * i386bsd-nat.c: Update copyright years.
12082 (fill_gregset): Use regcache_collect.
12083 (fetch_inferior_registers): Only fetch integer registers
12084 if requested to do so. Add support for XMM registers
12085 using PT_GETXMMREGS.
12086 (store_inferior_registers): Only store integer registers
12087 if requested to do so. Add support for XMM registers
12088 using PT_SETXMMREGS.
12089 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
12090 (store_inferior_registers): Remove.
12091 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
12092 (fetch_elfcore_registers): New function.
12093 (i386nbsd_elfcore_fns): New.
12094 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
12095 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
12096 i386bsd-nat.o.
12097 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
12098 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
12099 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
12100 * config/i386/tm-nbsd.h: Update copyright years.
12101 (HAVE_SSE_REGS): Define.
12102 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
12103 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
12104 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
12105 (SIGCONTEXT_PC_OFFSET): Remove.
12106 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
12107
12108 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12109
12110 * configure.tgt: Remove powerpc-*-macos* target.
12111 * config/m68k/xm-mpw.h: Delete file.
12112 * config/xm-mpw.h: Delete file.
12113 * ser-mac.c: Delete file.
12114 * mpw-make.sed: Delete file.
12115 * mpw-config.in: Delete file.
12116 * mac-xdep.c: Delete file.
12117 * mac-gdb.r: Delete file.
12118 * mac-defs.h: Delete file.
12119 * mac-nat.c: Delete file.
12120 * config/powerpc/macos.mh: Delete file.
12121 * config/powerpc/macos.mt: Delete file.
12122 * config/powerpc/nm-macos.h: Delete file.
12123 * config/powerpc/tm-macos.h: Delete file.
12124 * source.c (openp, open_source_file): Remove obsolete code.
12125 * top.c (gdb_readline): Ditto.
12126 * utils.c (query): Ditto.
12127 * event-top.c (display_gdb_prompt): Ditto.
12128 * Makefile.in (ser-mac.o): Delete obsolete target.
12129 * NEWS: Update.
12130
12131 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12132
12133 * defs.h (BIG_ENDIAN): Delete macro definition.
12134 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
12135 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
12136 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
12137 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
12138 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
12139 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
12140 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
12141 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
12142 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
12143 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
12144 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
12145 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12146 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12147 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12148 * gdbarch.c: Re-generate.
12149
12150 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12151
12152 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12153 for core files.
12154
12155 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12156
12157 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12158
12159 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12160
12161 * value.h (value_ptr): Delete typedef.
12162
12163 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12164
12165 * i386nbsd-nat.c: Update copyright years.
12166 Include i386-tdep.h.
12167
12168 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
12169
12170 * stabsread.c: Update copyright years.
12171
12172 From Debashis Mahata <debashis.mahata@wipro.com>:
12173 (read_struct_fields): Deal with Sun C compiler erroneous stab
12174 output for structs and unions.
12175 Fix PR gdb/269.
12176
12177 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12178
12179 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12180 prototype.
12181
12182 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12183
12184 * cp-abi.c: Fix whitespace.
12185 (baseclass_offset): New wrapper function.
12186 * cp-abi.h (baseclass_offset): Add prototype.
12187 (struct cp_abi_ops): Add baseclass_offset pointer.
12188
12189 * valops.c (vb_match): Move to...
12190 * gnu-v2-abi.c (vb_match): here.
12191 * valops.c (baseclass_offset): Move to...
12192 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12193
12194 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12195
12196 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12197 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12198 * hpacc-abi.c (init_hpacc_ops): Likewise.
12199
12200 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12201
12202 * valops.c (find_overload_match): Accept obj as a
12203 reference parameter. Update it before returning.
12204 * value.h (find_overload_match): Update prototype.
12205 * eval.c (evaluate_subexp_standard): Pass object to
12206 find_overload_match by reference.
12207
12208 2002-01-03 Andrew Cagney <ac131313@redhat.com>
12209
12210 * valarith.c: Replace value_ptr with struct value pointer. Remove
12211 register attribute from value declarations.
12212 * valops.c: Ditto.
12213 * value.h: Ditto.
12214 * scm-lang.c (scm_lookup_name): Ditto.
12215
12216 2002-01-03 Michael Snyder <msnyder@redhat.com>
12217
12218 Abstract the functionality of iterating over mapped memory
12219 regions into a general purpose iterator function.
12220 * procfs.c (iterate_over_mappings): New function, general purpose
12221 iterator for memory sections.
12222 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12223 (solib_mappings_callback): New function, callback for above.
12224 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12225 (info_mappings_callback): New function, callback for above.
12226
12227 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12228
12229 2002-01-01 Mark Kettenis <kettenis@gnu.org>
12230
12231 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12232 * i386-tdep.c: Include "elf-bfd.h".
12233 (process_note_abi_tag_sections): New function.
12234 (i386_gdbarch_init): Add code to recognize various OS/ABI
12235 combinations.
12236
12237 * maint.c (_initialize_maint_cmds): Add missing \ in
12238 string-literal.
12239
12240 For older changes see ChangeLog-2001
12241 \f
12242 Local Variables:
12243 mode: change-log
12244 left-margin: 8
12245 fill-column: 74
12246 version-control: never
12247 End: