2002-10-25 Andrew Cagney <cagney@redhat.com>
[binutils-gdb.git] / gdb / ChangeLog
1 2002-10-25 Andrew Cagney <cagney@redhat.com>
2
3 * gdbtypes.c (address_space_name_to_int): Update.
4 (address_space_int_to_name): Update.
5 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
6 multi-arch predicate.
7 (address_class_name_to_type_flags): Ditto.
8 * gdbarch.h, gdbarch.c: Re-generate.
9
10 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
11
12 2002-10-24 Martin M. Hunt <hunt@redhat.com>
13
14 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
15
16 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
17
18 * symtab.h (INIT_SAL): Delete macro.
19 (init_sal): Export.
20 * symtab.c (init_sal): New function.
21
22 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
23 to init_sal function call.
24 (find_sal_from_funcs_and_line): Ditto.
25 (all_sals_for_line): Ditto.
26 * breakpoint.c (create_internal_breakpoint): Ditto.
27 (create_fork_vfork_event_catchpoint): Ditto.
28 (create_exec_event_catchpoint): Ditto.
29 (parse_breakpoint_sals): Ditto.
30 (watch_command_1): Ditto.
31 (handle_gnu_4_16_catch_command): Ditto.
32 (clear_command): Ditto.
33 * hppa-tdep.c (child_enable_exception_callback): Ditto.
34 * infcmd.c (run_stack_dummy): Ditto.
35 * infrun.c (process_event_stop_test): Ditto.
36 (check_sigtramp2): Ditto.
37 (step_over_function): Ditto.
38 * linespec.c (decode_line_2): Ditto.
39 (decode_line_1): Ditto.
40 * source.c (line_info): Ditto.
41 * symtab.c (find_pc_sect_line): Ditto.
42
43 2002-10-24 Michal Ludvig <mludvig@suse.cz>
44
45 * dwarf2cfi.c (struct context)
46 (struct context_reg): Moved to dwarf2cfi.h
47 (context_alloc, frame_state_alloc, context_cpy):
48 Made extern instead of static, removed prototypes.
49 * dwarf2cfi.h (struct context)
50 (struct context_reg): New, moved from dwarf2cfi.c
51 (context_alloc, frame_state_alloc, context_cpy):
52 New prototypes.
53 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
54 Changed from static to extern.
55 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
56 (LINUX_SIGCONTEXT_FP_OFFSET)
57 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
58 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
59 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
60 * x86-64-tdep.c (x86_64_gdbarch_init): Several
61 set_gdbarch_*() calls now use x86-64 specific functions
62 instead of DWARF2 CFI ones.
63 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
64 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
65 (x86_64_init_extra_frame_info): New prototypes.
66
67 2002-10-23 David Carlton <carlton@math.stanford.edu>
68
69 * linespec.c: #include "parser-defs.h".
70 Delete prototype for find_template_name_end.
71 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
72
73 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
74
75 * NEWS: add recent mi fixes.
76 * varobj.c (struct varobj): Add new "updated" flag.
77 (new_variable): Default "updated" flag to 0.
78 (varobj_set_value): Set "updated" flag to 1 if value
79 changes.
80 (varobj_update): Check varobj "updated" flag before
81 comparing old and refreshed values. Fix for
82 PR gdb/702.
83
84 2002-10-23 David Carlton <carlton@math.stanford.edu>
85
86 * parse.c (parse_exp_1): Use BLOCK_START.
87 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
88 SYMBOL_BLOCK_VALUE.
89 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
90
91 2002-10-23 David Carlton <carlton@math.stanford.edu>
92
93 * symtab.c: Delete cplusplus_hint.
94 Delete prototype for find_template_name_end.
95
96 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
97
98 * symtab.h: Update comment.
99
100 2002-10-23 Michael Snyder <msnyder@redhat.com>
101
102 * printcmd.c (address_info): Restore quotes in output.
103 * valops.c (value_of_local): Restore quotes in error message.
104
105 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
106
107 * symtab.c (symbol_demangled_name): New function.
108 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
109 turning most of it into a function.
110 (symbol_demangled_name): Export.
111
112 2002-10-23 Michael Snyder <msnyder@redhat.com>
113
114 * valops.c (value_of_local): Restore quotes in error message.
115
116 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
117
118 * symtab.c (symbol_init_language_specific): New function.
119 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
120 turning most of it into a function.
121 (symbol_init_language_specific): Export.
122
123 2002-10-23 David Carlton <carlton@math.stanford.edu>
124
125 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
126 (dwarf_attr_name): Ditto.
127 (dwarf_type_encoding_name): Ditto.
128 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
129 (process_die): Handle DW_TAG_namespace,
130 DW_TAG_imported_declaration, DW_TAG_imported_module.
131 (read_namespace): New function.
132
133 2002-10-22 Joel Brobecker <brobecker@gnat.com>
134
135 * configure.in: Define NEW_PROC_API on Interix too.
136 * configure: Regenerate.
137
138 2002-10-21 Joel Brobecker <brobecker@gnat.com>
139
140 * configure: Regenerate using the proper version of autoconf.
141
142 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
143
144 * findvar.c (read_var_value): Temporarily disable TLS code, until
145 complete TLS support is added.
146
147 2002-10-21 Jim Blandy <jimb@redhat.com>
148 Elena Zannoni <ezannoni@redhat.com>
149
150 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
151 for thread local storage locations.
152 (struct symbol): Add objfile field.
153 (SYMBOL_OBJFILE): Define.
154 * dwarf2read.c (is_thread_local): New static variable.
155 (new_symbol): If variable is in thread local fill in address class
156 and objfile appropriately.
157 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
158 stack operation.
159 * printcmd.c (address_info): Print the information for thread
160 local storage variable.
161 * findvar.c (read_var_value): In case of thread local variable,
162 defer to the target vector code to compute address.
163
164 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
165
166 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
167 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
168
169 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
170
171 * symtab.h (address_class): Rename
172 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
173 * hpread.c (hpread_process_one_debug_symbol): Ditto.
174 * printcmd.c (address_info): Ditto.
175 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
176
177 2002-10-20 Mark Kettenis <kettenis@gnu.org>
178
179 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
180 DBREG_DRX macro to acces debug registers.
181
182 * Makefile.in (i386obsd-tdep.o): New target.
183
184 * solib-sunos.c: Include "bcache.h" and "regcache.h".
185 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
186
187 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
188 * config/i386/obsd.mt: New file.
189 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
190 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
191 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
192 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
193 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
194 * i386obsd-tdep.c: New file.
195
196 2002-10-19 Adam Fedor <fedor@gnu.org>
197
198 * objc-exp.y (name_not_typename): Fix invalid comment.
199
200 2002-10-20 Mark Kettenis <kettenis@gnu.org>
201
202 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
203 to allocate partial syms and macro byte caches.
204
205 2002-10-18 David Carlton <carlton@math.stanford.edu>
206
207 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
208
209 2002-10-18 Adam Fedor <fedor@gnu.org>
210
211 * stabsread.c (find_name_end): New function.
212 (define_symbol): Use it.
213
214 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
215
216 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
217 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
218 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
219 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
220
221 2002-10-17 David Carlton <carlton@math.stanford.edu>
222
223 * symfile.h: Add opaque declaration for struct obstack.
224 Declare obsavestring to take a const char *.
225 * symfile.c (obsavestring): Make first argument a const char *.
226
227 2002-10-16 Adam Fedor <fedor@gnu.org>
228
229 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
230 names when matching breakpoints in current file.
231
232 2002-10-16 Kevin Buettner <kevinb@redhat.com>
233
234 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
235 (read_tag_pointer_type): Add address class support.
236 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
237 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
238 New methods.
239 * gdbarch.h, gdbarch.c: Regenerate.
240 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
241 (make_type_with_address_space, recursive_type_dump): Add address
242 class support.
243 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
244 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
245 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
246
247 2002-10-16 Klee Dienes <kdienes@apple.com>
248
249 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
250 to get the last character of a char[] buffer, not
251 name[sizeof(vptr_name)-1].
252
253 2002-10-14 Adam Fedor <fedor@gnu.org>
254
255 * symtab.h: New objc_specific struct.
256 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
257 (SYMBOL_DEMANGLED_NAME): Likewise.
258
259 2002-10-14 Adam Fedor <fedor@gnu.org>
260
261 * symfile.c (init_filename_language_table): Add ObjC file extension.
262
263 2002-10-14 Adam Fedor <fedor@gnu.org>
264
265 * utils.c (puts_filtered_tabular): New function.
266 (fprintf_symbol_filtered): Get ObjC demangled name.
267 * defs.h (puts_filtered_tabular): Declared.
268
269 2002-10-14 Kevin Buettner <kevinb@redhat.com>
270
271 * c-lang.h (c_type_print_varspec_prefix): Delete.
272 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
273 ``need_post_space'' parameter. Adjust all callers.
274
275 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
276
277 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
278 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
279 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
280 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
281
282 2002-10-13 Adam Fedor <fedor@gnu.org>
283
284 * source.c (print_source_lines): Update comments.
285
286 2002-10-13 Adam Fedor <fedor@gnu.org>
287
288 * valops.c (value_of_local): New function.
289 (value_of_this): Use it.
290 * value.h (value_of_local): Declared.
291
292 2002-10-13 Adam Fedor <fedor@gnu.org>
293
294 * parse.c: (length_of_subexp, prefixify_subexp): Handle
295 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
296
297 2002-10-12 Adam Fedor <fedor@gnu.org>
298
299 * language.c (binop_result_type): Add language_objc to case.
300 (integral_type): Likewise.
301 (character_type): Likewise.
302 (string_type): Likewise.
303 (boolean_type): Likewise.
304 (structured_type): Likewise.
305 (binop_type_check): Likewise.
306
307 2002-10-11 Adam Fedor <fedor@gnu.org>
308
309 * printcmd.c (address_info): Print 'self' for ObjC.
310
311 2002-10-11 Adam Fedor <fedor@gnu.org>
312
313 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
314 OP_SELF.
315
316 2002-10-11 Adam Fedor <fedor@gnu.org>
317
318 * language.h (CAST_IS_CONVERSION): Add language_objc.
319
320 2002-10-11 Adam Fedor <fedor@gnu.org>
321
322 * defs.h (enum language): Add language_objc.
323
324 2002-10-11 Klee Dienes <kdienes@apple.com>
325
326 * findvar.c (read_memory_typed_address): New function.
327 * gdbcore.h (read_memory_typed_address): Add prototype.
328 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
329 to read a value destined for a CORE_ADDR, not read_memory_integer.
330 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
331 (f77_get_dynamic_lowerbound): Ditto.
332
333 2002-10-11 Martin M. Hunt <hunt@redhat.com>
334
335 * utils.c (string_to_core_addr): After turning string into
336 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
337 which will do necessary sign-extension, etc.
338
339 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
340
341 * c-exp.y (THIS): Delete token and grammar rule.
342 (yylex): Don't return THIS.
343 * cp-valprint.c (vtbl_ptr_name_old): Delete.
344 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
345 * demangle.c (cplus_markers): Update comment. Put '$'
346 first. Remove CPLUS_MARKER.
347 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
348 * jv-exp.y (THIS): Delete token and grammar rule.
349 (yylex): Don't return THIS.
350 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
351 * objc-exp.y (THIS): Delete token and grammar rule.
352 (yylex): Don't return THIS.
353 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
354 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
355 (read_member_functions): Likewise for opname.
356 (read_tilde_fields): Use is_cplus_marker.
357
358 * defs.h (CPLUS_MARKER): Don't define.
359 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
360 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
361 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
362 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
363 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
364
365 * config/i386/tm-i386v4.h: Delete file.
366 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
367 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
368 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
369 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
370 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
371 * config/i386/i386sco5.mt (TM_FILE): Likewise.
372 * config/i386/i386v4.mt (TM_FILE): Likewise.
373 * config/i386/ncr3000.mt (TM_FILE): Likewise.
374
375 2002-10-10 Marko Mlinar <markom@opencores.org>
376
377 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
378 accidentially not commited 2002-10-09
379 * gdbarch.h, gdbarch.c: Re-generate.
380
381 2002-10-09 Marko Mlinar <markom@opencores.org>
382
383 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
384 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
385 * gdbarch.h, gdbarch.c: Re-generate.
386
387 2002-10-08 Petr Sorfa <petrs@caldera.com>
388
389 Revised and re-submitted by John Wolfe <jlw@caldera.com>
390
391 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
392 so we can work on more than one compilation unit at a time. This
393 helps prepare GDB to handle inter-CU die references.
394 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
395 the code to be defined before struct comp_unit_head.
396 (comp_unit_head): Added new members - offset, cu_head,
397 begin_die, next and dwarf2_abbrevs.
398 (dwarf2_abbrevs): Removed single static var; now member of
399 struct comp_unit_head.
400 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
401 members.
402 (psymtab_to_symtab_1): Changed to work with the new
403 struct comp_unit_head.
404 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
405 constructs the dwarf2_abbrevs[] inside the cu_header.
406 (dwarf2_empty_abbrev_table): Now expects a ptr to a
407 dwarf2_abbrev table to clean up.
408 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
409 handling of dwarf2_abbrevs inside the cu_header.
410 (read_partial_die): Now supports the call to the new
411 dwarf2_lookup_abbrev.
412 (read_full_die): Now supports the call to the new
413 dwarf2_lookup_abbrev.
414
415 2002-10-06 Christopher Faylor <cgf@redhat.com>
416
417 * Makefile.in (install-gdbtk): Add missing continuation backslash to
418 insure that shell variables, such as "transformed_name" are propagated
419 to later shell statements in rule.
420
421 2002-10-06 Mark Kettenis <kettenis@gnu.org>
422
423 * config/i386/nm-i386sco.h: Add protection against
424 multiple-inclusion. Include "i386/nm-i386v.h".
425 (REGISTER_U_ADDR): Remove define.
426 (i386_register_u_addr): Remove prototype.
427
428 2002-10-04 Michael Snyder <msnyder@redhat.com>
429
430 * m32r-stub.c (handle_exception): Make sure exception is "trap"
431 before treating it as a single-step event.
432
433 2002-10-03 Adam Fedor <fedor@gnu.org>
434
435 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
436 (objc_demangle): Remove assignment in if statements, Replace
437 free with xfree.
438 (add_msglist): Likewise.
439 (end_msglist): Likewise.
440 (complare_selectors): Likewise.
441 (selectors_info): Likewise.
442 (compare_classes): Likewise.
443 (classes_info): Likewise.
444 (print_object_command): Likewise.
445 (find_objc_msgcall_submethod): Replace PTR with void *.
446 * objc-lang.h: Remove check for __STDC__.
447
448 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
449
450 * ui-out.h (ui_out_field_fmt_int): New prototype.
451 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
452 of field width and alignment.
453 * stack.c (print_frame_info_base): When printing frame level, use
454 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
455 PR gdb/192
456
457 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
458
459 * MAINTAINERS: Add self to Write After Approval list.
460
461 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
462
463 * infcmd.c (interrupt_target_command_wrapper): Delete.
464 (interrupt_target_command): Make non static.
465 (nofp_registers_info): Make static.
466 * stack.c (return_command_wrapper): Delete.
467 (return_command): Make non static.
468
469 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
470
471 * event-top.c (gdb_setup_readline): New function. Code moved from
472 _initialize_event_loop().
473 (_initialize_event_loop): Call gdb_setup_readline().
474
475 2002-10-02 Andrew Cagney <ac131313@redhat.com>
476
477 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
478 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
479 * gdbarch.h, gdbarch.c: Re-generate.
480
481 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
482
483 Fix PR gdb/778
484 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
485 before recursing.
486 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
487 of fill_in_vptr_fieldno.
488
489 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
490
491 * inferior.h (registers_info, stepi_command, nexti_command,
492 continue_command, interrupt_target_command): Export from infcmd.c.
493 * frame.h (args_info, selected_frame_level_changed_hook,
494 return_command): Export from stack.c.
495 * v850ice.c (stepi_command, nexti_command, continue_command): use
496 prototypes from inferior.h.
497 * tracepoint.c (registers_info, args_info, locals_info): Use
498 prototypes from frame.h and inferior.h.
499 * Makefile.in (mi-main.o): Add dependency on frame.h.
500
501 2002-10-02 Andrew Cagney <ac131313@redhat.com>
502
503 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
504 value in register 3 adjusted by ppc_gp0_regnum.
505
506 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
507
508 2002-10-02 Marko Mlinar <markom@opencores.org>
509
510 * MAINTAINERS: Add myself to the Write After Approval list.
511
512 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
513
514 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
515 of the section for the N64 ABI, fixed.
516
517 * config/mips/tm-irix6.h: Include solib.h.
518
519 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
520
521 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
522 GNU operators.
523
524 2002-10-01 Andrew Cagney <ac131313@redhat.com>
525
526 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
527 and that "mi0" syntax has been removed.
528
529 2002-09-30 David Carlton <carlton@math.stanford.edu>
530
531 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
532 * ppc-sysv-tdep.c: #include "gdb_string.h".
533 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
534 pacify GCC.
535
536 2002-10-01 Andrew Cagney <ac131313@redhat.com>
537
538 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
539 "vrsave"'s register number.
540
541 2002-09-30 Andrew Cagney <ac131313@redhat.com>
542
543 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
544 use frame_unwind_signed_register to obtain the PC.
545 (mips_frame_chain): Handle a generic dummy frame.
546 (mips_init_extra_frame_info): When a generic dummy frame, don't
547 re-compute the frame base.
548 (mips_pop_frame): Handle generic dummy frames.
549 (mips_gdbarch_init): When generic dummy frames, set
550 use_generic_dummy_frames, push_dummy_frame to
551 generic_push_dummy_frame, pc_in_call_dummy to
552 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
553 generic_save_dummy_frame_tos.
554
555 2002-09-30 Andrew Cagney <ac131313@redhat.com>
556
557 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
558 against TOP when TOP was explictly set.
559 (generic_push_dummy_frame): Set TOP to zero.
560
561 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
562
563 * event-loop.c (start_event_loop): Rename variable 'result' to
564 'gdb_result', to avoid conflicts with upcoming intepreters changes.
565
566 2002-09-30 Keith Seitz <keiths@redhat.com>
567
568 * gdb-events.sh (selected_thread_changed): New event.
569 * gdb-events.c: Regenerated.
570 * gdb-events.h: Regenerated.
571
572 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
573
574 * MAINTAINERS: Add self to Write After Approval list.
575
576 2002-09-30 Fernando Nasser <fnasser@redhat.com>
577
578 * disasm.c: New file.
579 * disasm.h: New file.
580 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
581 (compare_lines): Ditto.
582 (dump_insns): Ditto.
583 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
584 argument.
585 (do_assembly_only): Ditto.
586 (do_disassembly): Renamed to gdb_disassembly and moved to
587 disasm.c. Sdded uiout argument.
588 * Makefile.in: Add new files. Reorder SFILES list. Update
589 dependencies. Include libgdb.a later in the insight executable.
590
591 2002-09-29 Andrew Cagney <ac131313@redhat.com>
592
593 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
594 bfd/elf64-alpha-fbsd.c.
595
596 2002-09-29 Andrew Cagney <ac131313@redhat.com>
597
598 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
599 i386gnu-tdep.c.
600
601 2002-09-29 Andrew Cagney <ac131313@redhat.com>
602
603 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
604 __FUNCTION__.
605 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
606 function name.
607 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
608 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
609 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
610 (S_msg_sig_post_reply): Ditto.
611
612 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
613
614 * sh-tdep.c (sh_use_struct_convention): Use definition according
615 to ABI.
616 (sh_push_arguments): Store in register with correct endianess.
617 (sh_default_store_return_value): Ditto.
618 (sh_gdbarch_init): Set sizeof long double to 8.
619
620 2002-09-27 Mark Kettenis <kettenis@gnu.org>
621
622 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
623 Fix some whitespace problems.
624
625 2002-09-27 David Carlton <carlton@math.stanford.edu>
626
627 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
628 (mcore-tdep.o): Ditto.
629 (ns32k-tdep.o): Ditto.
630 (ns32knbsd-tdep.o): Ditto.
631 (sh3-rom.o): Ditto.
632 (vax-tdep.o): Ditto.
633 * cris-tdep.c: #include "gdb_string.h"
634 * mcore-tdep.c: Ditto.
635 * ns32k-tdep.c: Ditto.
636 * ns32knbsd-tdep.c: Ditto.
637 * sh3-rom.c: Ditto.
638 * vax-tdep.c: Ditto.
639
640 2002-09-27 David Carlton <carlton@math.stanford.edu>
641
642 * config/djgpp/fnchange.lst: Add entries for
643 gdb/testsuite/gdb.c++/m-static files.
644
645 2002-09-27 Jim Wilson <wilson@redhat.com>
646
647 * MAINTAINERS: Add myself to the Write After Approval list.
648
649 2002-09-26 Martin M. Hunt <hunt@redhat.com>
650
651 * mips-tdep.c (find_proc_desc): Initialize startaddr.
652
653
654 2002-09-26 Andrew Cagney <ac131313@redhat.com>
655
656 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
657 frame.
658
659 2002-09-26 Andrew Cagney <ac131313@redhat.com>
660
661 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
662 (rs6000_struct_return_address): Delete variable.
663 (rs6000_store_struct_return): Update.
664 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
665 deprecated_extract_struct_value_address.
666 (rs6000_frame_align): New function.
667 (rs6000_gdbarch_init): Set frame_align.
668
669 2002-09-26 Andrew Cagney <ac131313@redhat.com>
670
671 From Grace Sainsbury <graces@redhat.com>:
672 * Makefile.in (gdbtk-main.o): New target.
673 (gdb.o): New target.
674 (main_h): Define.
675 (main.o): Update dependencies.
676 (gdb$(EXEEXT)): Add gdb.o.
677 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
678 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
679 (SUBDIR_GDBTK_CLEAN): Set.
680 (install-gdbtk): Install the insight binary.
681 (uninstall-gdbtk): New target.
682 (all-gdbtk, clean-gdbtk): New rule.
683 * top.c (use_windows): Default to zero.
684 * main.c: Include "main.h".
685 (main): Delete.
686 (struct captured_main_args): Delete.
687 (gdb_main): New function.
688 * main.h: New file.
689 * gdb.c: New File.
690
691 2002-09-25 Andrew Cagney <cagney@redhat.com>
692
693 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
694 (frame_map_regnum_to_name): New function.
695 (frame_map_name_to_regnum): New function.
696 * frame.h (frame_map_name_to_regnum): Declare.
697 (frame_map_regnum_to_name): Declare.
698 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
699 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
700 * parse.c: Do not include "builtin-regs.h".
701 (target_map_name_to_register): Delete function.
702 (write_dollar_variable): Use frame_map_name_to_regnum.
703 * parser-defs.h (target_map_name_to_register): Delete declaration.
704 * expprint.c: Include "frame.h".
705 (print_subexp): Use frame_map_regnum_to_name.
706 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
707 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
708
709 2002-09-25 Andrew Cagney <ac131313@redhat.com>
710
711 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
712 wasn't saved, and the next innermost frame is a dummy, return the
713 dummy frame's link register.
714
715 2002-09-24 Jim Blandy <jimb@redhat.com>
716
717 Fix from Paul Breed:
718 * main.c (captured_main): Add a `break' after the case for 'b'.
719
720 2002-09-24 Keith Seitz <keiths@redhat.com>
721
722 * varobj.c (c_type_of_child): Use get_target_type instead
723 of TYPE_TARGET_TYPE.
724
725 2002-09-22 Fernando Nasser <fnasser@redhat.com>
726
727 * source.c (get_current_or_default_source_symtab_and_line): Remove
728 function.
729 (set_default_source_symtab_and_line): New function. Attempts to
730 determine a source file to list lines from if one is not currently
731 defined.
732 (get_current_source_symtab_and_line): Initialize sal.pc and
733 sal.end fields.
734 (set_current_source_symtab_and_line): Mark argument as const.
735 * source.h: Update declarations and comments.
736 * linespec.c (decode_line_1): Replace call to removed routine above.
737 * stack.c (print_frame_info_base): Ditto.
738 * cli/cli-cmds.c (edit_command): Ditto.
739 (list_command): Ditto.
740
741 2002-09-22 Fernando Nasser <fnasser@redhat.com>
742
743 * source.c (get_current_or_default_source_symtab_and_line): Initialize
744 sal.pc and sal.end fields.
745 (get_current_or_default_source_symtab_and_line): Ditto.
746 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
747 so we do not cause a new source symtab to be searched for (reverting an
748 unintentional change from the 2002-09-20 patch).
749 * scm-lang.c (scm_unpac): Ditto.
750
751 2002-09-21 Andrew Cagney <cagney@redhat.com>
752
753 * complaints.c (symfile_explanations): Remove new-line from
754 ``isolated_message''.
755 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
756 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
757
758 2002-09-20 Nick Clifton <nickc@redhat.com>
759
760 * NEWS: Announce that V850EA ISA is no longer supported.
761 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
762
763 2002-09-20 David Carlton <carlton@math.stanford.edu>
764
765 * Makefile.in (c-lang.o): Correct dependencies.
766 (utils.o): Gather dependencies.
767 (charset.o): Move.
768 * c-lang.c: #include "gdb_string.h"
769
770 2002-09-20 Fernando Nasser <fnasser@redhat.com>
771
772 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
773 * cli/cli-cmds.c (list_command): New function. Implements the new
774 cli edit command.
775 (_init_cli_cmds): Add new command definition.
776 * gdb.1: Document edit command.
777 * doc/gdb.texinfo: Document edit command.
778
779 2002-09-20 Fernando Nasser <fnasser@redhat.com>
780
781 * source.c: Make global variables current_source_symtab and
782 current_source_line static.
783 (list_command): Moved to cli/cli-cmds.c.
784 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
785 (get_first_line_listed): New accessor function.
786 (get_lines_to_list): New accessor function.
787 (get_current_source_symtab_and_line): New function. Retrieves the
788 position in the source code that we consider current.
789 (get_current_or_default_source_symtab_and_line): New function.
790 Like the above but attempts to determine a default position if one
791 is not currently defined.
792 (set_current_source_symtab_and_line): New function. Sets the source
793 code position considered current and returns the previously set one.
794 (clear_current_source_symtab_and_line): Reset stored information about
795 a current source line.
796 (_initialize_source): Remove registration for the "list" command and
797 its alias.
798 * source.h: Add declarations for the new functions above.
799 * symtab.h: Remove declarations for the global variables mentioned
800 above.
801 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
802 obtain current source line.
803 * linespec.c (decode_line_1): Ditto.
804 * macroscope.c (default_macro_scope): Ditto.
805 * scm-lang.c (scm_unpac): Ditto.
806 * stack.c (print_frame_info_base): Ditto.
807 * symfile.c (clear_symtab_users): Ditto.
808 * symtab.c (decode_line_spec): Ditto.
809 * cli/cli-cmds.c (list_command): Moved here from source.c.
810 (ambiguous_line_spec): Moved here from source.c.
811 (_init_cli_cmds): Add definition for "list" and its alias.
812 * Makefile.in: Update dependencies.
813
814 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
815
816 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
817 with what gcc thinks is correct.
818
819 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
820
821 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
822 multiple register push instruction.
823
824 2002-09-19 Jim Blandy <jimb@redhat.com>
825
826 Add support for distinct host and target character sets.
827 * charset.c, charset.h: New files.
828 * c-exp.y: #include "charset.h".
829 (yylex): Convert character and string literals to the target
830 character set, before returning them as the semantic value of the
831 token.
832 * c-lang.c: #include "charset.h".
833 (c_emit_char): Use charset-specific methods to recognize
834 characters with backslash escape forms, to decide which characters
835 to print literally and which to print using numeric escape
836 sequences, and to convert target characters to host characters
837 before printing.
838 * utils.c: #include "charset.h".
839 (no_control_char_error): New function.
840 (parse_escape): Use charset-specific methods to recognize
841 backslash escapes, parse `control character' notation, and convert
842 characters from the host character set to the target character set.
843 * configure.in: Set the default host character set.
844 Check where to find iconv, and what its argument types might be.
845 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
846 * Makefile.in (SFILES): List charset.c.
847 (COMMON_OBS): List charset.o.
848 (charset.o): New rule.
849 (charset_h): New header dependency variable.
850 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
851 (LIBICONV): New variable, set by configure.
852 (CLIBS): Include $(LIBICONV) here.
853 * aclocal.m4, config.in, configure: Regenerated.
854
855 2002-09-19 Joel Brobecker <brobecker@gnat.com>
856
857 * ada-exp.y: Add missing semicolons to end rules. Fixes a
858 bison 1.35 warning.
859
860 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
861
862 * gdb_mbuild.sh: New file.
863
864 2002-09-19 Andrew Cagney <ac131313@redhat.com>
865
866 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
867
868 2002-09-18 Andrew Cagney <ac131313@redhat.com>
869
870 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
871 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
872 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
873 valops.c, value.h: Revert previous change.
874
875 2002-09-18 Michael Snyder <msnyder@redhat.com>
876
877 Preliminary support for Objective-C:
878 * defs.h (language_objc): New enum value.
879 (puts_filtered_tabular): Declaration only, exported from utils.c.
880 (skip_quoted): Delete, declared in completer.h.
881 * c-exp.y: Include completer.h.
882 * p-exp.y: Ditto.
883 * jv-exp.y: Ditto.
884 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
885 New operator enum values.
886 * language.h (CAST_IS_CONVERSION): Test for language_objc.
887 * language.c (binop_result_type): Handle language_objc case.
888 (integral_type, character_type, string_type, boolean_type,
889 structured_type, binop_type_check): Ditto.
890 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
891 (struct objc_specific): Add to general_symbol_info.
892 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
893 (SYMBOL_DEMANGLED_NAME): Handle objc case.
894 * parser-defs.h (struct objc_class_str): New struct type.
895 (start_msglist, end_msglist, add_msglist): Declaration only,
896 exported from objc-lang.c.
897 * value.h (value_of_local, value_nsstring,
898 call_function_by_hand_expecting_type): Exported from valops.c.
899 * valops.c (find_function_addr): Export.
900 (call_function_by_hand_expecting_type): New function.
901 (value_of_local): New function.
902 * symfile.c (init_filename_language_table): Add ".m" extension
903 for Objective-C.
904 * utils.c (puts_filtered_tabular): New function.
905 (fprintf_symbol_filtered): Add objc demangling support (disabled).
906 (set/show demangle): Extend help-string to refer to ObjC.
907 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
908 * stabsread.c (symbol_reference_defined): Objective-C symbols
909 may contain colons: make allowances when scanning stabs strings
910 for colons.
911 (objc_find_colon): New function.
912 * printcmd.c (address_info): If language == objc then print
913 "self" instead of "this".
914 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
915 OP_NSSTRING, and OP_SELF.
916 (prefixify_subexp): Ditto.
917 * source.c (print_source_lines): Mention objc in comment.
918 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
919 method names.
920
921 2002-09-18 Andrew Cagney <ac131313@redhat.com>
922
923 * complaints.h: Update copyright.
924 (struct complaints): Declare.
925 (struct complaint): Make `message' constant.
926 (internal_complaint): Declare.
927 (complaint): Declare.
928 (complaint_root): Delete declaration.
929 (symfile_complaints): Delete declaration.
930 (struct complaints): Add opaque declaration.
931 (clear_complaints): Add a complaints parameter.
932 * complaints.c: Update copyright.
933 (enum complaint_series): Define.
934 (complaint_root): Delete.
935 (struct complaints): Define.
936 (complaint_sentinel, symfile_complaint_book): New variables.
937 (symfile_explanations, symfile_complaints): New variables.
938 New variables.
939 (get_complaints): New function.
940 (vcomplaint): New function.
941 (complaint): New function.
942 (internal_complaint): New function.
943 (complain): Call vcomplain with symfile_complaint.
944 (clear_complaints): Rewrite.
945 (_initialize_complaints): Use add_setshow_command.
946 * Makefile.in (complaints.o): Update dependencies.
947 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
948 to call to clear_complaints.
949 (new_symfile_objfile, reread_symbols): Ditto.
950 (oldsyms_complaint): Delete.
951 (empty_symtab_complaint, unknown_option_complaint): Delete.
952 (free_named_symtabs): Use complaint instead of complain.
953
954 2002-09-18 Michael Snyder <msnyder@redhat.com>
955
956 Contributed by Apple Computer, Inc. Merged with current sources
957 by Adam Fedor <fedor@doc.com> [cagney].
958
959 * objc-lang.c: First clean-up round: comments, indentation.
960 * objc-lang.h: Ditto.
961 * objc-lang.y: Ditto.
962
963 2002-09-18 Andrew Cagney <ac131313@redhat.com>
964
965 * maint.c (maintenance_internal_error): Print the parameter as the
966 error message.
967 (maintenance_internal_warning): New function.
968 (_initialize_maint_cmds): Add command `maint internal-warning'.
969
970 * defs.h (internal_warning, internal_vwarning): Declare.
971 * utils.c (struct internal_problem): Define.
972 (internal_vproblem): New function.
973 (internal_warning): New function.
974 (internal_vwarning): New function.
975 (internal_warning_problem, internal_error_problem): New variables.
976 (internal_verror): Just call internal_vproblem.
977
978 2002-09-18 Michael Snyder <msnyder@redhat.com>
979
980 * objc-lang.c: New file, support for Objective-C.
981 Preliminary check-in, not yet integrated into gdb.
982 * objc-lang.h: New file.
983 * objc-exp.y: New file.
984
985 2002-09-18 Andrew Cagney <ac131313@redhat.com>
986
987 * infrun.c (signal_stop_update): Convert definition to ISO C.
988 (signal_print_update): Ditto.
989 (signal_pass_update): Ditto.
990 * inflow.c (terminal_save_ours): Ditto.
991
992 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
993 comments.
994
995 * config/djgpp/fnchange.lst: Handle name clashes between
996 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
997 bfd/coff-tic80.c.
998
999 * i386-linux-tdep.h: Fix tipo.
1000
1001 2002-09-18 Adam Fedor <fedor@gnu.org>
1002
1003 * MAINTAINERS: Add myself to the Write After Approval list.
1004
1005 2002-09-18 Jim Blandy <jimb@redhat.com>
1006
1007 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
1008 texthigh and textlow to reader-specific structs caused
1009 objfile_relocate to miss them. This is fixable, but the work that
1010 the change was supposed to prepare GDB for never got done anyway.
1011
1012 2002-09-18 David Carlton <carlton@math.stanford.edu>
1013
1014 * MAINTAINERS: Alphabetize Write After Approval list.
1015
1016 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
1017
1018 Fix PR gdb/709
1019 * values.c (value_static_field): Call read_var_value.
1020
1021 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1022
1023 * valops.c (hand_function_call): Align the initial stack pointer
1024 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
1025 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
1026 return value.
1027 * mips-tdep.c (mips_frame_align): New function.
1028 (mips_gdbarch_init): Set frame_align.
1029 * gdbarch.sh (FRAME_ALIGN): New method.
1030 * gdbarch.h, gdbarch.c: Re-generate.
1031
1032 2002-09-18 Michal Ludvig <mludvig@suse.cz>
1033
1034 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
1035 registers.
1036
1037 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1038
1039 * NEWS: Mention that MIPS $fp behavior changed.
1040 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
1041 reference to FP_REGNUM.
1042 (mipsnbsd_cannot_store_register): Ditto.
1043 * mips-linux-nat.c: Update copyright.
1044 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
1045 (mips_linux_cannot_store_register): Ditto.
1046 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
1047 * config/mips/tm-mips.h: Update copyright.
1048 (FP_REGNUM): Delete macro.
1049 (MIPS_REGISTER_NAMES): Replace "fp" with "".
1050 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
1051 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
1052 (mips_r3041_reg_names, mips_r3051_reg_names)
1053 (mips_r3081_reg_names): Replace "fp" with "".
1054 Fix PR gdb/480.
1055
1056 2002-09-17 Theodore A. Roth <troth@verinet.com>
1057
1058 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
1059 generic_read_register_dummy() (PR gdb/703).
1060 (avr_push_return_address): #if 0 out unused vars.
1061 (avr_gdbarch_init): Enable use of avr_push_return_address().
1062
1063 2002-09-17 Michael Snyder <msnyder@redhat.com>
1064
1065 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
1066 RTE will take care of it.
1067
1068 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1069
1070 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
1071 invalid, return SP_REGNUM.
1072
1073 2002-09-17 Michael Snyder <msnyder@redhat.com>
1074
1075 * mips-tdep.c (mips_pop_frame): Read saved values of floating
1076 point registers without sign extension.
1077
1078 2002-09-17 Andrew Cagney <cagney@redhat.com>
1079
1080 * blockframe.c (deprecated_read_register_dummy): Rename
1081 generic_read_register_dummy.
1082 * frame.c (frame_unwind_signed_register): New function.
1083 (frame_unwind_unsigned_register): New function.
1084 * frame.h (frame_unwind_signed_register): Declare.
1085 (frame_unwind_unsigned_register): Declare.
1086 (deprecated_read_register_dummy): Rename
1087 generic_read_register_dummy.
1088
1089 * h8300-tdep.c (h8300_frame_chain): Update.
1090 (h8300_frame_saved_pc): Update.
1091 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1092 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1093 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1094 (s390_frame_chain): Update.
1095 * v850-tdep.c (v850_find_callers_reg): Update.
1096 (v850_frame_saved_pc): Update.
1097 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1098 (m32r_find_callers_reg): Update.
1099 (m32r_frame_saved_pc): Update.
1100 * sh-tdep.c (sh_find_callers_reg): Update.
1101 (sh64_get_saved_pr): Update.
1102 (sh_init_extra_frame_info): Update.
1103 (sh_init_extra_frame_info): Update.
1104 (sh64_init_extra_frame_info): Update.
1105 (sh64_init_extra_frame_info): Update.
1106 * mcore-tdep.c (mcore_find_callers_reg): Update.
1107 (mcore_frame_saved_pc): Update.
1108 (mcore_init_extra_frame_info): Update.
1109 * i386-tdep.c (i386_frame_saved_pc): Update.
1110 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1111 (ia64_init_extra_frame_info): Update.
1112 (ia64_init_extra_frame_info): Update.
1113 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1114 * cris-tdep.c (cris_init_extra_frame_info): Update.
1115 * avr-tdep.c (avr_frame_chain): Update.
1116 (avr_init_extra_frame_info): Update.
1117 (avr_frame_saved_pc): Update.
1118 * arm-tdep.c (arm_find_callers_reg): Update.
1119 (arm_init_extra_frame_info): Update.
1120 (arm_frame_saved_pc): Update.
1121
1122 2002-09-17 Tom Tromey <tromey@redhat.com>
1123
1124 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1125 is "'".
1126
1127 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
1128
1129 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1130 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1131 NEXT_PROLOGUE_INSN.
1132 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1133 NEXT_PROLOGUE_INSN.
1134
1135 2002-09-16 Joel Brobecker <brobecker@gnat.com>
1136
1137 * osfsolib.c: Remove file, replaced by solib-osf.c.
1138 * Makefile.in: Remove compilation rules for osfsolib.c.
1139
1140 2002-09-16 David Carlton <carlton@math.stanford.edu>
1141
1142 * cp-valprint.c (cp_print_class_method): Correct args to
1143 check_stub_method_group.
1144
1145 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
1146
1147 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1148 `set architecture'. Unify naming convention of functions.
1149 (h8300_skip_prologue): Improve prologue analysis.
1150 (h8300_push_arguments): Rewritten to more closely match GCC's
1151 bizarre argument-passing behavior, along with the comment describing
1152 said behavior.
1153 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1154 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1155 sim, remote-e7000.c, remote-hms.c and remote.c
1156
1157 2002-09-15 Mark Kettenis <kettenis@gnu.org>
1158
1159 * i386-tdep.c (gdb_print_insn_i386): Removed.
1160 (i386_print_insn): New function.
1161 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1162 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1163 tm_print_insn_info.
1164
1165 2002-09-14 Mark Kettenis <kettenis@gnu.org>
1166
1167 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1168 zero.
1169
1170 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
1171
1172 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1173 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1174 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1175
1176 2002-09-13 Christopher Faylor <cgf@redhat.com>
1177
1178 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1179
1180 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
1181
1182 * gdbtypes.c (check_stub_method): Make static.
1183 (check_stub_method_group): New function.
1184 * gdbtypes.h: Update prototypes.
1185 * cp-support.c: New file.
1186 * cp-support.h: New file.
1187
1188 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1189 (update_method_name_from_physname): New function.
1190 (read_member_functions): Correct method names for operators
1191 and v3 constructors/destructors. Separate v2 constructors and
1192 destructors.
1193 * Makefile.in (stabsread.o): Update dependencies.
1194 (SFILES): Add cp-support.c.
1195 (COMMON_OBS): Add cp-support.o.
1196 (cp_support_h, cp-support.o): Add.
1197
1198 * cp-valprint.c (cp_print_class_method): Call
1199 check_stub_method_group instead of check_stub_method. Remove
1200 extraneous QUITs.
1201 * p-valprint.c (pascal_object_print_class_method): Likewise.
1202 * valops.c (search_struct_method): Likewise.
1203 (find_method_list, value_struct_elt_for_reference): Likewise.
1204
1205 2002-09-13 Andrew Cagney <cagney@redhat.com>
1206
1207 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1208 * gdbarch.h, gdbarch.c: Regenerate.
1209
1210 2002-09-13 Andrew Cagney <ac131313@redhat.com>
1211
1212 * frame.c (find_saved_register): Delete function.
1213 * frame.h (find_saved_register): Delete declaration.
1214 Fix PR gdb/631.
1215
1216 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1217
1218 * mips-tdep.c (read_next_frame_reg): Re-hack using
1219 frame_register_unwind.
1220
1221 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1222
1223 * mips-tdep.c (mips_get_saved_register): Re-hack using
1224 frame_register_unwind.
1225
1226 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1227
1228 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1229 vector. Will be useful for Interix.
1230 * gdbarch.h, gdbarch.c: Regenerate.
1231
1232 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1233 name of the malloc function by NAME_OF_MALLOC.
1234
1235 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1236
1237 * value.h (find_function_in_inferior): Add const keyword to
1238 one of the parameters. Allows us to invoke this function with
1239 a const char *.
1240 * valops.c (find_function_in_inferior): Likewise.
1241
1242 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1243
1244 * exec.c (xfer_memory): Fix compilation warning with old versions
1245 of GCC.
1246 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1247
1248 2002-09-12 David Carlton <carlton@math.stanford.edu>
1249
1250 * symtab.h: Run through gdb_indent.h.
1251 Add 2002 to Copyright year list.
1252
1253 2002-09-12 Alan Modra <amodra@bigpond.net.au>
1254
1255 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1256 mach constants.
1257 * MAINTAINERS: Add myself to write after approval list.
1258
1259 2002-09-11 J. Brobecker <brobecker@gnat.com>
1260
1261 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1262
1263 2002-09-11 J. Brobecker <brobecker@gnat.com>
1264
1265 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1266 Interix.
1267
1268 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1269
1270 * procfs.c (do_detach): Clear current signal, not just fault.
1271 Corrects problem with breakpoint trap signal leaking to detached
1272 process on Tru64.
1273
1274 2002-09-10 Michael Snyder <msnyder@redhat.com>
1275
1276 * buildsym.c (finish_block): Protect against null pointer.
1277
1278 2002-09-10 Andrew Cagney <cagney@redhat.com>
1279
1280 * infcmd.c (default_print_registers_info): Send all output to
1281 ``file'' instead of ``gdb_stdout''.
1282
1283 2002-09-10 Michael Snyder <msnyder@redhat.com>
1284
1285 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1286 LONGEST, and use signed register read (addresses are sign-
1287 extended for mips).
1288
1289 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1290
1291 * event-loop.c (gdb_do_one_event): Make public.
1292 * event-loop.h (gdb_do_one_event): Declare.
1293
1294 2002-09-10 Jeff Law <law@redhat.com>
1295
1296 * infttrace.c (child_resume): Simplify and rework to avoid
1297 TT_PROC_CONTINUE.
1298
1299 2002-09-09 Fred Fish <fnf@intrinsity.com>
1300
1301 * printcmd.c (print_scalar_formatted): "len" is the number of
1302 target bytes, NOT the number of target bits.
1303
1304 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
1305
1306 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1307 * top.c (init_main): Set rl_terminal_name.
1308
1309 2002-09-08 Aidan Skinner <aidan@velvet.net>
1310
1311 * ada-lang.c (ada_array_bound, ada_type_match,
1312 _initialize_ada_language): Fix K&R definitions.
1313 * ada-tasks.c (get_current_task): Fix K&R definitions.
1314 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1315
1316 2002-09-07 Christopher Faylor <cgf@redhat.com>
1317
1318 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1319 Add XP.
1320
1321 2002-09-06 Mark Kettenis <kettenis@gnu.org>
1322
1323 * i386-tdep.c (i386_register_virtual_type,
1324 i386_register_convertible, i386_register_convert_to_virtual,
1325 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1326 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1327 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1328 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1329 Don't set push_arguments twice.
1330
1331 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1332 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1333 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1334 sigtramp_end to NULL.
1335 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1336 defines.
1337 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1338
1339 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1340 whitespace.
1341
1342 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1343 * gdbarch.h, gdbarch.c: Re-generate.
1344 * blockframe.c (find_pc_sect_partial_function): Convert to use
1345 SIGTRAMP_START_P predicate.
1346
1347 2002-09-05 Michael Snyder <msnyder@redhat.com>
1348
1349 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1350 generic_dummy_frame method and old method. Also distinguish
1351 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1352 (arm_extract_return_value): Use new regcache method.
1353
1354 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1355 adjustment that doesn't conform to the ABI.
1356 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1357 saved regcache, not from current regcache.
1358
1359 2002-09-05 Andrew Cagney <ac131313@redhat.com>
1360
1361 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1362 * README: Update.
1363
1364 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1365
1366 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1367 if arm_apcs_32 is false.
1368
1369 2002-09-04 Andrew Cagney <ac131313@redhat.com>
1370
1371 GDB 5.3 branch created.
1372
1373 2002-09-03 Theodore A. Roth <troth@verinet.com>
1374
1375 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1376 generic_unwind_get_saved_register.
1377
1378 2002-09-03 David Carlton <carlton@math.stanford.edu>
1379
1380 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1381 argument (PR gdb/653). Update call to smash_to_method_type.
1382 (read_structure_scope): Update call to dwarf2_add_member_fn.
1383
1384 2002-09-03 Michal Ludvig <mludvig@suse.cz>
1385
1386 * x86-64-linux-tdep.c: Include gdb_string.h
1387 * x86-64-linux-nat.c: Ditto.
1388
1389 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1390
1391 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1392 when YYDEBUG is set to 1.
1393 * c-exp.y: Likewise.
1394 * f-exp.y: Likewise.
1395 * jv-exp.y: Likewise.
1396 * m2-exp.y: Likewise.
1397 * p-exp.y: Likewise.
1398
1399 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1400
1401 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1402 dependency list.
1403 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1404 solib_svr4_fetch_link_map_offsets to
1405 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1406 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1407 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1408 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1409 solib-svr4.o, and solib-legacy.o.
1410 * config/i386/tm-nbsd.h: Include solib.h.
1411
1412 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1413
1414 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1415 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1416 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1417 comment noting that this needs its own target configuration.
1418 * config/i386/nbsd.mt: New file.
1419 * config/i386/nbsdaout.mt: Remove.
1420 * config/i386/nbsdelf.mt: Ditto.
1421 * config/i386/tm-nbsdaout.h: Ditto.
1422
1423 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1424
1425 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1426 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1427 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1428 tdep->sigtramp_end.
1429 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1430 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1431 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1432
1433 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1434
1435 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1436 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1437 * i386-tdep.h (i386bsd_init_abi): New prototype.
1438 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1439 function declaration.
1440 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1441 for NetBSD-a.out or NetBSD-ELF.
1442 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1443 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1444 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1445 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1446 and nbsd-tdep.h.
1447 (i386nbsd_pc_in_sigtramp): New function.
1448 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1449 i386nbsd_pc_in_sigtramp.
1450 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1451 and i386nbsdelf_init_abi OS ABI handlers.
1452 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1453 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1454
1455 2002-09-02 Mark Kettenis <kettenis@gnu.org>
1456
1457 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1458 registers if the target really has them.
1459
1460 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1461
1462 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1463 than nbsd-tdep.h.
1464
1465 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1466
1467 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1468 list.
1469 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1470 (alphanbsd_skip_sigtramp_frame): New functions.
1471 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1472 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1473 to alphanbsd_sigcontext_addr.
1474
1475 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1476
1477 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1478 list.
1479 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1480 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1481 nbsd_pc_in_sigtramp.
1482 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1483 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1484 * nbsd-tdep.c: Include gdb_string.h.
1485 (nbsd_pc_in_sigtramp): New function.
1486 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1487 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1488 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1489 ppcnbsd_pc_in_sigtramp.
1490 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1491 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1492 shnbsd_pc_in_sigtramp.
1493 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1494 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1495 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1496
1497 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1498
1499 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1500 watchpoints to NULL.
1501 (insert_breakpoints): set val field of watchpoints if NULL.
1502
1503
1504 2002-08-29 Jim Blandy <jimb@redhat.com>
1505
1506 * symtab.c (lookup_symbol_aux): In the cases where we find a
1507 minimal symbol of an appropriate name and use its address to
1508 select a symtab to read and search, use `name' (as passed to us)
1509 as the demangled name when searching the symtab's global and
1510 static blocks, not the minsym's name.
1511
1512 2002-08-29 Keith Seitz <keiths@redhat.com>
1513
1514 * stack.c (print_frame_info_base): Always set current_source_symtab
1515 and current_source_line.
1516
1517 2002-08-29 Donn Terry <donnte@microsoft.com>
1518
1519 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1520
1521 2002-08-28 Keith Seitz <keiths@redhat.com>
1522
1523 * stack.c (select_frame): Add FIXME concerning selected-frame
1524 events.
1525 (select_frame_command): Send selected-frame-level-changed
1526 event notification, but only if the level actually changed.
1527 (up_silently_base): Add selected-frame-level-changed event
1528 notification.
1529 (down_silently_base): Likewise.
1530
1531 2002-08-28 Andrew Cagney <ac131313@redhat.com>
1532
1533 * Makefile.in: Update dependencies for all gdb/*.c files.
1534
1535 2002-08-27 Tom Tromey <tromey@redhat.com>
1536
1537 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1538 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1539 Update dependencies.
1540 * i387-tdep.c: Include gdb_string.h.
1541 * osabi.c: Likewise.
1542 * i386-linux-nat.c: Likewise.
1543 * lin-lwp.c: Likewise.
1544 * ax-gdb.c: Likewise.
1545 * signals/signals.c: Likewise.
1546 * jv-valprint.c: Likewise.
1547 * p-lang.c: Likewise.
1548 * c-valprint.c: Likewise.
1549 * cp-abi.c: Likewise.
1550
1551 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
1552
1553 * cli/cli-script.h (copy_command_lines): Export.
1554 * breakpoint.c: Include cli/cli-script.h.
1555 * Makefile.in (breakpoint.o): Update dependencies.
1556
1557 2002-08-26 Michael Snyder <msnyder@redhat.com>
1558
1559 * breakpoint.c (insert_breakpoints): Protect all references
1560 to 'process_warning'. Shorten long lines.
1561
1562 2002-08-26 Joel Brobecker <brobecker@gnat.com>
1563
1564 * cli/cli-script.c (copy_command_lines): New function.
1565 * defs.h (copy_command_lines): Export.
1566 * testsuite/gdb.base/commands.exp: New tests for commands
1567 attached to a temporary breakpoint, and for commands that
1568 delete the breakpoint they are attached to.
1569
1570 2002-08-26 Michael Snyder <msnyder@redhat.com>
1571
1572 * breakpoint.c (bpstat_stop_status): Instead of copying the
1573 pointer to the breakpoint commands struct, make a new copy
1574 of the struct and point to that.
1575 (bpstat_clear): Free the commands struct.
1576 (bpstat_clear_actions): Free the commands struct.
1577 (bpstat_do_actions): Free the command actions. Also execute
1578 the local cleanups, instead of deleting them.
1579 (delete_breakpoint): Leave the commands field of the bpstat
1580 chain alone -- it will be freed later.
1581
1582 2002-08-26 Kevin Buettner <kevinb@redhat.com>
1583
1584 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1585 deleted in 2002-08-20 commit. This function is still used by
1586 ppc-linux-nat.c.
1587
1588 2002-08-26 Keith Seitz <keiths@redhat.com>
1589
1590 * gdb-events.sh: Add selected-frame-level-changed event.
1591 * gdb-events.c: Regenerated.
1592 * gdb-events.h: Regenerated.
1593
1594 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1595
1596 Fix PR gdb/393:
1597 * inflow.c (terminal_save_ours): New function to save terminal
1598 settings.
1599 * inferior.h (terminal_save_ours): Declare.
1600 * target.c (debug_to_terminal_save_ours): New function.
1601 (cleanup_target): Defaults to_terminal_save_ours.
1602 (update_current_target): Inherit to_terminal_save_ours.
1603 (setup_target_debug): Set to_terminal_save_ours.
1604 * target.h (target_terminal_save_ours): New to save terminal settings.
1605 (target_ops): New member to_terminal_save_ours.
1606 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1607 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1608 * inftarg.c (init_child_ops): Likewise.
1609 * m3-nat.c (init_m3_ops): Likewise.
1610 * procfs.c (init_procfs_ops): Likewise.
1611 * wince.c (init_child_ops): Likewise.
1612 * win32-nat.c (init_child_ops): Likewise.
1613 * sol-thread.c (init_sol_thread_ops): Likewise.
1614
1615 2002-08-26 Mark Kettenis <kettenis@gnu.org>
1616
1617 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1618 use regcache_* functions.
1619 (i386_gdbarch_init): Set store_return_value instead of
1620 deprecated_store_return_value.
1621
1622 * regcache.c (regcache_raw_write_signed,
1623 regcache_raw_write_unsigned): New functions.
1624 * regcache.h (regcache_raw_write_signed,
1625 regcache_raw_write_unsigned): New prototypes.
1626
1627 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1628
1629 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1630 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1631 source file dependencies. Cleanup corresponding generator rules.
1632
1633 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1634
1635 * regcache.h (register_offset_hack): Declare.
1636 (regcache_cooked_read_using_offset_hack): Declare.
1637 (regcache_cooked_write_using_offset_hack): Declare.
1638
1639 * regcache.c (register_offset_hack): New function.
1640 (regcache_cooked_read_using_offset_hack): New function.
1641 (regcache_cooked_write_using_offset_hack): New function.
1642 (regcache_dump): Check that the registers, according to their
1643 offset, are packed hard against each other.
1644 (cooked_xfer_using_offset_hack): New function.
1645
1646 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1647
1648 * regcache.c (struct regcache_descr): Add field register_type.
1649 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1650 in as a parameter
1651 (init_regcache_descr): Initialize register_type. Pass the descr
1652 to init_legacy_regcache_descr. Use register_type instead of
1653 REGISTER_VIRTUAL_TYPE.
1654 (register_type): New function.
1655 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1656 * regcache.h (register_type): Declare.
1657
1658 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1659
1660 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1661 instead of deprecated_store_return_value. Fix fallout from
1662 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1663
1664 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1665
1666 * regcache.c (max_register_size): New function.
1667 (init_legacy_regcache_descr): Ensure that max_register_size is
1668 large enough for REGISTER_VIRTUAL_SIZE.
1669 * regcache.h (max_register_size): Declare.
1670
1671 2002-08-24 Andrew Cagney <ac131313@redhat.com>
1672
1673 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1674 store_return_value.
1675 (e500_extract_return_value): Change type of valbuf pointer to
1676 void.
1677
1678 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1679
1680 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1681 workaround.
1682
1683 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1684 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1685 long long) to prevent compiler warning on 64-bit systems.
1686
1687 2002-08-23 Andrew Cagney <cagney@redhat.com>
1688
1689 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1690 (DEPRECATED_STORE_RETURN_VALUE): New method.
1691 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1692 * gdbarch.h, gdbarch.c: Re-generate.
1693
1694 * values.c (set_return_value): Pass current_regcache to
1695 STORE_RETURN_VALUE.
1696 * arch-utils.h (legacy_store_return_value): Declare.
1697 * arch-utils.c (legacy_store_return_value): New function.
1698 (legacy_extract_return_value): Update parameters.
1699
1700 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1701 STORE_RETURN_VALUE.
1702 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1703 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1704 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1705 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1706 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1707 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1708 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1709 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1710 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1711 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1712
1713 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1714 * i386-tdep.c (i386_extract_return_value): Update.
1715 * arch-utils.c (legacy_extract_return_value): Update.
1716 * frv-tdep.c (frv_gdbarch_init): Update.
1717 * cris-tdep.c (cris_gdbarch_init): Update.
1718 * d10v-tdep.c (d10v_gdbarch_init): Update.
1719 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1720 * m68k-tdep.c (m68k_gdbarch_init): Update.
1721 * mcore-tdep.c (mcore_gdbarch_init): Update.
1722 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1723 * s390-tdep.c (s390_gdbarch_init): Update.
1724 * sparc-tdep.c (sparc_gdbarch_init): Update.
1725 * sh-tdep.c (sh_gdbarch_init): Update.
1726 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1727 * v850-tdep.c (v850_gdbarch_init): Update.
1728 * avr-tdep.c (avr_gdbarch_init): Update.
1729 * ia64-tdep.c (ia64_gdbarch_init): Update.
1730 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1731 * vax-tdep.c (vax_gdbarch_init): Update.
1732 * alpha-tdep.c (alpha_gdbarch_init): Update.
1733 * arm-tdep.c (arm_gdbarch_init): Update.
1734 * mips-tdep.c (mips_gdbarch_init): Update.
1735 * i386-tdep.c (i386_gdbarch_init): Update.
1736
1737 2002-08-23 Andrew Cagney <ac131313@redhat.com>
1738
1739 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1740 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1741
1742 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1743
1744 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1745 problems.
1746
1747 2002-08-23 Joel Brobecker <brobecker@gnat.com>
1748
1749 * infrun.c (handle_inferior_event): Move a comment outside of a
1750 function call, in order to avoid indent reformatting this part
1751 of the code in an unreadable way.
1752
1753 2002-08-23 Grace Sainsbury <graces@redhat.com>
1754
1755 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1756 when breakpoints fail. Move general breakpoint error messages to
1757 insert_breakpoints.
1758 * breakpoint.c (insert_breakpoints): Change warnings when
1759 breakpoints are nto inserted to specify the type. Remove call to
1760 memory_error when hardware breakpoints can't be inserted. Remove
1761 multiple calls to warning so all messages are sent to the user at
1762 once.
1763 (delete_breakpoints): Make insert error messsages more explicit.
1764
1765 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
1766
1767 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1768 gdbserver/ChangeLog.
1769
1770 2002-08-23 Mark Kettenis <kettenis@gnu.org>
1771
1772 * i386-tdep.c: Include "objfiles.h".
1773 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1774 skip_trampoline_code.
1775 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1776 (CPLUS_MARKER): Define to '.'.
1777
1778 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1779 member.
1780 (linux_corefile_thread_callback): Increase args->num_notes.
1781 (linux_make_note_section): Initialize thread_args.num_notes, and
1782 use it to determine whether notes for any threads were created.
1783
1784 2002-08-23 Donn Terry <donnte@microsoft.com>
1785
1786 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1787 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1788 and PCUNKILL.
1789 (write_with_trace): Conditionalize out the switch branch handling
1790 PCSHOLD if the corresponding macro is not defined. Likewise for
1791 PRSABORT and PRSTOP.
1792 This change will be needed by the Interix port.
1793
1794 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1795
1796 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1797 write_register wherever possible instead of manipulating the
1798 register bytes directly.
1799 Assign VALUE_CONTENTS to a variable and use that.
1800 The GPR numbers are now dependent on the architecture.
1801
1802 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1803
1804 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1805 ev_offset fields.
1806 (skip_prologue): Add support for BookE/e500 instructions.
1807 (e500_extract_return_value): New function.
1808 (frame_get_saved_regs): Add support for saving ev registers and
1809 pseudo gpr's.
1810 (e500_store_return_value): New function.
1811 (rs6000_gdbarch_init): Move up default intializations of
1812 deprecated_extract_return_value and store_return_value. Overwrite
1813 init of store_return_value with e500 specific version.
1814 Set extract_return_value for e500.
1815
1816 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1817
1818 * blockframe.c (generic_call_dummy_register_unwind): Use
1819 regcache_cooked_read to catch cases in which the variable is
1820 stored in a pseudo register.
1821
1822 2002-08-22 Andrew Cagney <cagney@redhat.com>
1823
1824 * NEWS: Mention that the i960 has been made obsolete.
1825 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1826 i960-tdep.c
1827 (remote-nrom.o): Obsolete target.
1828 (remote-nindy.o, i960-tdep.o): Ditto.
1829 * remote-nrom.c: Make file obsolete.
1830 * remote-nindy.c, remote-vx960.c: Ditto.
1831 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1832 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1833 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1834 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1835 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1836 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1837 i960-*-vxworks* obsolete.
1838 * MAINTAINERS: Note that the i960 is obsolete.
1839
1840 2002-08-21 Corinna Vinschen <vinschen@redhat.com
1841
1842 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1843 detach to allow reinitialization.
1844
1845 2002-08-22 Andrew Cagney <ac131313@redhat.com>
1846
1847 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1848 attempt).
1849
1850 2002-08-22 Jim Blandy <jimb@redhat.com>
1851
1852 * coffread.c (coff_symfile_read): Don't try to read the line
1853 number table from disk if the image file doesn't have a symbol
1854 table; we'll never actually look at the info anyway, and Windows
1855 ships DLL's with bogus file offsets for the line number data.
1856
1857 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1858
1859 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1860 an e500 executable.
1861
1862 2002-08-21 Michael Snyder <msnyder@redhat.com>
1863
1864 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1865 (MSYMBOL_SIZE): Replace macro with function.
1866 (DEFAULT_MIPS_TYPE): Delete unused macro.
1867 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1868 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1869
1870 2002-08-21 Jim Blandy <jimb@redhat.com>
1871
1872 * valops.c (value_cast): Simplify and correct logic for doing a
1873 static cast from a pointer to a base class to a pointer to a
1874 derived class.
1875
1876 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1877
1878 * infcmd.c (default_print_registers_info): Replace
1879 do_registers_info.
1880 (registers_info): Use gdbarch_print_registers_info instead of
1881 DO_REGISTERS_INFO.
1882 * inferior.h (default_print_registers_info): Replace
1883 do_registers_info.
1884 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1885 (DO_REGISTERS_INFO): Change to a predicate function.
1886 * gdbarch.h, gdbarch.c: Regenerate.
1887
1888 2002-08-21 Keith Seitz <keiths@redhat.com>
1889
1890 * gdb-events.sh: Add target-changed event.
1891 * gdb-events.c: Regenerated.
1892 * gdb-events.c: Regenerated.
1893 * valops.c (value_assign): Add target-changed event notification
1894 to inlval_register, lval_memory, and lval_reg_frame_relative.
1895
1896 2002-08-21 Joel Brobecker <brobecker@gnat.com>
1897
1898 * NEWS: Add an entry regarding the improvement of the next/step
1899 operation on Alpha Tru64 multi-processor machines.
1900
1901 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1902
1903 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1904 directores.
1905 * Makefile.in: Update all _h macro definitions.
1906 * Makefile.in (install-gdbtk): Move to install section.
1907 (rdi-share/libangsd.a): Move to end of file.
1908
1909 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1910
1911 * frame.c (frame_register_unwind): When a register, set addrp to
1912 the register's byte.
1913
1914 2002-08-20 Michael Snyder <msnyder@redhat.com>
1915
1916 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1917 used locally, so move them from the target machine header to here.
1918 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1919 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1920 Make static.
1921 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1922
1923 2002-08-20 Andrew Cagney <cagney@redhat.com>
1924
1925 * NEWS: Mention that the Apollo line was made obsolete.
1926 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1927 m68*-hp-hpux* obsolete.
1928 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1929 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1930 * buildsym.c (make_blockvector): Make static.
1931 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1932 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1933 (ALLDEPFILES): Remove dstread.c.
1934 (dstread.o): Obsolete make rule.
1935 * dstread.c: Makefile obsolete.
1936 * dst.h: Ditto.
1937 * config/m68k/hp300hpux.mt: Ditto.
1938 * config/m68k/hp300hpux.mh: Ditto.
1939 * config/m68k/hp300bsd.mt: Ditto.
1940 * config/m68k/hp300bsd.mh: Ditto.
1941 * config/m68k/apollo68b.mt: Ditto.
1942 * config/m68k/apollo68v.mh: Ditto.
1943 * config/m68k/apollo68b.mh: Ditto.
1944
1945 2002-08-20 Michael Snyder <msnyder@redhat.com>
1946
1947 * mips-tdep.c (mips_in_return_stub): Make static.
1948 (mips_gdbarch_init): Set in_solib_return_trampoline.
1949 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1950
1951 2002-08-20 Michael Snyder <msnyder@redhat.com>
1952
1953 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1954 * gdbarch.c, gdbarch.h: Regenerate.
1955 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1956 Add.
1957 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1958
1959 2002-08-20 Michael Snyder <msnyder@redhat.com>
1960
1961 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1962 (mips_gdbarch_init): Set skip_trampoline_code,
1963 in_solib_call_trampoline.
1964 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1965 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1966
1967 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1968
1969 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1970
1971 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1972 vector type for ev registers.
1973 (e500_pseudo_register_read): New function.
1974 (e500_pseudo_register_write): New function.
1975 (e500_dwarf2_reg_to_regnum): New function.
1976 (PPC_UISA_NOFP_SPRS): New macro.
1977 (PPC_EV_REGS): New macro.
1978 (PPC_GPRS_PSEUDO_REGS): New macro.
1979 (registers_e500): New register set for e500.
1980 (variants): Add e500 variant.
1981 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1982 before setting architectural dependent variations. Initialize ev
1983 registers numbers. Add case for e500 architecture. Set the
1984 number of pseudo registers.
1985
1986 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1987
1988 * rs6000-tdep.c: Clean up comments.
1989
1990 2002-08-20 Andrew Cagney <cagney@redhat.com>
1991
1992 * h8300-tdep.c: Re-indent file.
1993
1994 2002-08-20 Jim Blandy <jimb@redhat.com>
1995
1996 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1997 default for this.
1998
1999 2002-08-20 Keith Seitz <keiths@redhat.com>
2000
2001 * breakpoints.c (watch_command_1): Use internal breakpoint
2002 when setting a watchpoint_scope breakpoint.
2003
2004 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2005
2006 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
2007 (build_builtin_type_vec64i): Ditto.
2008 (build_builtin_type_vec128): Ditto.
2009 (build_builtin_type_vec128i): Ditto.
2010
2011 2002-08-19 Michael Snyder <msnyder@redhat.com>
2012
2013 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
2014 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
2015 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
2016 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
2017 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
2018 CALL_DUMMY_ADDRESS): Delete.
2019 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
2020 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
2021 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
2022 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
2023 push_return_address.
2024 (mips_register_raw_size, mips_eabi_use_struct_convention,
2025 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
2026 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
2027 mips_init_extra_frame_info, mips_eabi_push_arguments,
2028 mips_n32n64_push_arguments, mips_push_return_address,
2029 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
2030 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
2031
2032 2002-08-19 Michael Snyder <msnyder@redhat.com>
2033
2034 * mips-tdep.c (mips_frame_num_args): New function.
2035 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
2036 frame_saved_pc, frame_args_address, frame_locals_address,
2037 frame_num_args, and frame_args_skip.
2038 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
2039 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
2040 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
2041 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
2042
2043 2002-08-20 Michael Snyder <msnyder@redhat.com>
2044
2045 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
2046 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2047 * mips-tdep.c (mips_store_struct_return): New function.
2048 (mips_extract_struct_value_address): New function.
2049 (mips_gdbarch_init): Set store_struct_return and
2050 extract_struct_value_address.
2051
2052 2002-08-20 David Carlton <carlton@math.stanford.edu>
2053
2054 * dwarf2read.c (dwarf2_build_psymtabs): Check that
2055 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
2056 (read_file_scope): Check that line_header is nonzero before
2057 decoding macro information.
2058
2059 2002-08-20 Mark Kettenis <kettenis@gnu.org>
2060
2061 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
2062 flag the general-purpose registers as floating-point on targets
2063 that don't support the floating-point registers.
2064
2065 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2066
2067 * rs6000-tdep.c (altivec_register_p): Delete.
2068 (rs6000_do_altivec_registers): Delete.
2069 (rs6000_altivec_registers_info): Delete.
2070 (rs6000_do_registers_info): Delete.
2071 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
2072 (rs6000_gdbarch_init): Remove setting of do_registers_info.
2073
2074 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2075
2076 * infcmd.c (do_registers_info): Print vector registers in hex
2077 format only.
2078 (print_vector_info): Check that printing registers
2079 makes sense.
2080 (print_float_info): Ditto.
2081
2082 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2083
2084 * mips-tdep.c (mips_gdbarch_init): Update.
2085 (mips_o32_extract_return_value): Rewrite.
2086 (mips_o32_store_return_value): Rewrite.
2087 (mips_o32_xfer_return_value): New function.
2088 (mips_xfer_register): Tweak debug print message. Allow for
2089 buf_offset when dumping the value transfered.
2090
2091 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2092
2093 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2094 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2095 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2096 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2097 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2098
2099 2002-08-14 Michael Snyder <msnyder@redhat.com>
2100
2101 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2102
2103 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2104
2105 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2106 register.
2107 (P): New macro to define a register as a pseudo register.
2108 (R, R4, R8, R16, FR32, R64, R0): Updated.
2109 (struct variant): Add new fields for number of pseudo registers
2110 and number of total registers.
2111 (tot_num_registers): New macro replacing....
2112 (num_registers): ...deleted macro.
2113 (num_registers): New function.
2114 (num_pseudo_registers): New function.
2115 (variants): Update all variants to intialize new fields correctly.
2116 Postpone initialization of number of pseudo regs and real regs.
2117 (init_variants): New function.
2118 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2119 registers offsets.
2120
2121 2002-08-19 David Carlton <carlton@math.stanford.edu>
2122
2123 * valops.c (search_struct_field): Change error message to treat
2124 return value of 0 from value_static_field as meaning that field is
2125 optimized out.
2126 (value_struct_elt_for_reference): Ditto.
2127 * values.c (value_static_field): Treat an unresolved location the
2128 same as a nonexistent symbol. Fix PR gdb/635.
2129 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2130 enclosed. Fix PR gdb/574.
2131 * MAINTAINERS: Add self to Write After Approval list.
2132
2133 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2134
2135 * mips-tdep.c (mips_xfer_register): New function.
2136 (mips_n32n64_extract_return_value): Rewrite.
2137 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2138 instead of deprecated_extract_return_value.
2139
2140 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2141
2142 * rs6000-tdep.c (TDEP): Delete macro.
2143 (branch_dest): Replace use of TDEP macro with its body.
2144 (rs6000_pop_frame): Ditto.
2145 (rs6000_push_arguments): Ditto.
2146 (rs6000_skip_trampoline_code): Ditto.
2147 (rs6000_frame_saved_pc): Ditto.
2148 (rs6000_frame_chain): Ditto.
2149 (rs6000_register_name): Ditto.
2150 (rs6000_register_byte): Ditto.
2151 (rs6000_register_raw_size): Ditto.
2152 (rs6000_register_virtual_type): Ditto.
2153 (rs6000_register_convertible): Ditto.
2154 (rs6000_convert_from_func_ptr_addr): Ditto.
2155
2156 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
2157
2158 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2159 conditionally.
2160 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2161 MIPS_LINUX_JB_ELEMENT_SIZE.
2162 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2163 for MAX_REGISTER_RAW_SIZE arrays.
2164 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2165 MIPS_LINUX_JB_ELEMENT_SIZE.
2166
2167 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2168
2169 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2170
2171 2002-08-19 Aidan Skinner <aidan@velvet.net>
2172
2173 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2174 ada-valprint.c ada-tasks.c.
2175 (YYFILES): Add ada-exp.y.
2176 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2177 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2178 (ada-exp.tab.o): New target.
2179
2180 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2181
2182 * regcache.c (regcache_xfer_part): New function.
2183 (regcache_raw_read_part): New function.
2184 (regcache_raw_write_part): New function.
2185 (regcache_cooked_read_part): New function.
2186 (regcache_cooked_write_part): New function.
2187 * regcache.h (regcache_raw_read_part): Declare.
2188 (regcache_raw_write_part): Declare.
2189 (regcache_cooked_read_part): Declare.
2190 (regcache_cooked_write_part): Declare.
2191
2192 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
2193
2194 * remote.c (remote_open_1): Add async_p.
2195 (remote_async_open_1): Delete.
2196 (open_remote_target): Delete.
2197 (remote_open, extended_remote_open): Update calls to remote_open_1.
2198 (remote_async_open, extended_remote_async_open): Call
2199 remote_open_1 instead of remote_async_open_1.
2200
2201 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2202
2203 * blockframe.c: Fix a few coding standard violations.
2204
2205 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2206
2207 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2208 here from ...
2209 * config/i386/tm-i386sco5.h: ... here. File removed.
2210 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2211
2212 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
2213 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2214 (TM_FILE): Set to tm-i386.h.
2215 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2216 * config/i386/tm-i386v.h: Remove file.
2217 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2218 instead of "i386/tm-i386v.h".
2219 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2220 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2221 "i386/tm-i386v.h".
2222 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2223 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2224 "i386/tm-i386.h".
2225
2226 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2227
2228 * config/i386/nm-i386v.h: Add protection against
2229 multiple-inclusion.
2230 (i386_register_u_addr): Remove prototype.
2231 (register_u_addr): New prototype.
2232 (REGISTER_U_ADDR): Redefine accordingly.
2233 * i386v-nat.c: Improve several comments.
2234 (i386_register_u_addr): Change signature and rename to
2235 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2236 ubase variable.
2237
2238 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2239
2240 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2241 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2242 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2243 deprecated_extract_return_value.
2244 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2245 rename mips_o32o64_push_arguments.
2246 (mips_gdbarch_init): Update.
2247 (mips_extract_return_value): Delete.
2248 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2249 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2250 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2251 (mips_n32n64_extract_return_value): Clone
2252 mips_extract_return_value.
2253 (mips_store_return_value): Delete.
2254 (mips_o32_store_return_value): Clone mips_store_return_value.
2255 (mips_o64_store_return_value): Clone mips_store_return_value.
2256 (mips_eabi_store_return_value): Clone mips_store_return_value.
2257 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2258
2259 2002-08-18 Aidan Skinner <aidan@velvet.net>
2260
2261 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2262 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2263
2264 2002-08-18 Aidan Skinner <aidan@velvet.net>
2265
2266 * ada-lang.c: Run through gdb_indent.sh.
2267 * ada-lang.h: Run through gdb_indent.sh.
2268 * ada-tasks.c: Run through gdb_indent.sh.
2269 * ada-typeprint.c: Run through gdb_indent.sh.
2270 * ada-valprint.c: Run through gdb_indent.sh.
2271
2272 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2273
2274 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2275 ABI.
2276
2277 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2278
2279 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2280
2281 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2282 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2283
2284 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2285 write_register_gen instead of write_register_bytes.
2286
2287 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2288 i[3456]-*-osf1mk* configurations have been made obsolete.
2289 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2290 i[3456]86-*-osf1mk* hosts obsolete.
2291 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2292 targets obsolete.
2293 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2294 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2295 config/i386/i386m3.mt, config/i386/nm-m3.h,
2296 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2297 config/i386/i386mk.mh, config/i386/i386mk.mt,
2298 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2299 obsolete.
2300 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2301 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2302 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2303
2304 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2305
2306 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2307 (hppa_value_returned_from_stack): Declare.
2308 (hppa_extract_return_value): Declare.
2309 * config/pa/hppa.mt: New file.
2310 * configure.tgt: Recognize hppa*-*-*.
2311 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2312
2313 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2314
2315 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2316 comment.
2317
2318 2002-08-17 Mark Kettenis <kettenis@gnu.org>
2319
2320 * top.c (gdb_rl_operate_and_get_next): Make sure
2321 operate-and-get-next functions correctly even when the history
2322 list is completely filled.
2323
2324 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2325
2326 * MAINTAINERS (Target Instruction Set Architectures): Rename
2327 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2328 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2329 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2330 already listed under Host/Native.
2331
2332 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2333 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2334 mips*-*-*.
2335
2336 2002-08-17 Andrew Cagney <ac131313@redhat.com>
2337
2338 * config/ia64/ia64.mt: New file.
2339 * config/alpha/alpha.mt: New file.
2340 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2341 ia64-linux-gnu. Mention that ia64-elf is broken.
2342 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2343
2344 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2345
2346 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2347 generic_func_frame_valid instead of func_frame_valid.
2348
2349 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2350
2351 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2352 procfs appears to be broken when debugging on multi-processor
2353 machines. So enable software single stepping in order to avoid
2354 using the procfs interface to do next/step operations, using
2355 internal breakpoints instead.
2356
2357 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2358 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2359 make this pc address equal to the value it would have if the
2360 system stepping capability was used. Also set a new flag used
2361 to ensure that we don't readjust the PC one more time later.
2362
2363 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2364 address by DECR_PC_AFTER_BREAK when software single step is
2365 in use for this architecture, as this has already been taken
2366 care of in handle_inferior_event().
2367
2368 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2369
2370 * infrun.c (handle_inferior_event): Minor reformatting, to make
2371 a rather long condition expression easier to read.
2372
2373 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2374
2375 * Makefile.in (gdbtk.o): Move to end of file.
2376 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2377 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2378 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2379 (gdbtk-wrapper.o, gdbres.o): Ditto.
2380
2381 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2382
2383 * Makefile.in (copying.o): Separate out compile rule.
2384 (hpux-thread.o, procfs.o, signals.o): Ditto.
2385 (v850ice.o, z8k-tdep.o): Ditto.
2386 (tui-file.o): Move to TUI section.
2387 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2388 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2389
2390 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2391
2392 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2393 skip_trampoline_code, for better namespace-proofing.
2394
2395 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2396
2397 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2398
2399 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2400
2401 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2402
2403 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2404 signal, check whether we hit a breakpoint before checking for a
2405 single step breakpoint. Otherwise, GDB fails to notice that a
2406 breakpoint has been hit when stepping onto a breakpoint.
2407
2408 2002-08-16 Keith Seitz <keiths@redhat.com>
2409
2410 * gdb-events.sh (clear_gdb_event_hooks): New function.
2411 * gdb-events.c: Regenerate.
2412 * gdb-events.h: Regenerate.
2413
2414 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2415
2416 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2417 not_a_sw_breakpoint.
2418 * breakpoint.h (bpstat_stop_status): Add parameter names.
2419
2420 2002-08-16 Grace Sainsbury <graces@redhat.com>
2421
2422 * remote.c (remote_insert_hw_breakpoint)
2423 (remote_remove_hw_breakpoint): Fix calculation of length field
2424 for Z-packet.
2425
2426 2002-08-15 Michael Snyder <msnyder@redhat.com>
2427
2428 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2429 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2430 (supply_fpregset): Ditto.
2431
2432 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2433 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2434 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2435 (TARGET_READ_SP): Delete.
2436 (DO_REGISTERS_INFO): Delete.
2437 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2438 Delete.
2439 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2440 from macros to functions.
2441
2442 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2443 (mips_register_convertible, mips_register_convert_to_virtual,
2444 mips_register_convert_to_raw): Make static.
2445 (mips_read_sp): New function.
2446 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2447 (mips_do_registers_info): Make static.
2448 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2449 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2450 (mips_register_convert_from_type, mips_register_convert_to_type):
2451 New functions.
2452 (mips_gdbarch_init): Set up function_start_offset,
2453 register_virtual_size, pc_in_sigtramp.
2454
2455 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2456
2457 * infcmd.c (vector_info): New function.
2458 (_initialize_infcmd): Add command "info vector".
2459 (print_vector_info): New function.
2460
2461 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2462 * gdbarch.h, gdbarch.c: Regenerate.
2463
2464 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2465
2466 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2467 ``print_all''. Only print vector registers when ``print_all''.
2468
2469 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2470
2471 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2472 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2473
2474 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2475 Add `args' parameter.
2476 * gdbarch.h, gdbarch.c: Regenerate.
2477
2478 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2479
2480 * infcmd.c (float_info): Call print_float_info.
2481 (print_float_info): New function. By default, print the
2482 floating-point registers.
2483
2484 * arch-utils.h (default_print_float_info): Delete declaration.
2485 * arch-utils.c (default_print_float_info): Delete function.
2486
2487 2002-08-16 Mark Kettenis <kettenis@gnu.org>
2488
2489 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2490 out define.
2491
2492 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2493 FRAME.
2494
2495 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2496 * configure.host: Make i[3456]86-*-aix host obsolete.
2497 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2498 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2499 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2500 config/i386/xm-i386aix.h: Make files obsolete.
2501 * i386aix-nat.c: Make file obsolete.
2502 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2503 (i386aix-nat.o): Make target obsolete.
2504
2505 * config/i386/nm-gnu.h: Removed.
2506 * config/i386/nm-i386gnu.h: New file.
2507 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2508 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2509 Moved here from ...
2510 * config/i386/tm-i386gnu.h: ... here. Removed.
2511 * config/i386/xm-i386gnu.h: Removed.
2512 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2513 (NAT_FILE): Set to nm-i386gnu.h.
2514 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2515 * i386-tdep.c: New file.
2516 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2517 (i386gnu-tdep.o): Specify dependencies.
2518
2519 2002-08-15 Mark Kettenis <kettenis@gnu.org>
2520
2521 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2522 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2523 Adjust a few comments to reflect reality a bit closer.
2524 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2525 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2526 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2527 target_insert_watchpoint, target_remove_watchpoint):
2528 Move defines to ...
2529 * config/i386/nm-i386sco5.h: ... here.
2530 (kernel_u_size): Add prototype. Improve a few comments and add
2531 protection against multiple inclusion.
2532
2533 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2534 out define.
2535
2536 * uw-thread.c (SP_ARG0): Define if not already defined.
2537 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2538
2539 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2540
2541 * config/i386/tm-i386.h: Don't include "regcache.h".
2542
2543 * i387-tdep.h (i387_print_float_info): New prototype.
2544 * i387-tdep.c (print_i387_value, print_i387_ext,
2545 print_i387_status_word, print_i387_control_word): Add `struct
2546 ui_file *' argument and use it for output.
2547 (i387_print_float_info): Renamed from i387_float_info. Add
2548 `struct gdbarch *' and `struct ui_file *' arguments and use the
2549 latter for output.
2550 * i386-tdep.c: Include "i387-tdep.h".
2551 (i386_gdbarch_init): Set print_float_info.
2552 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2553 (FLOAT_INFO): Remove define.
2554
2555 2002-08-13 Michael Snyder <msnyder@redhat.com>
2556
2557 * mips-tdep.c (mips_push_arguments): Rename to
2558 mips_eabi_push_arguments, and tune for EABI.
2559 (MIPS_REGS_HAVE_HOME_P): Delete.
2560 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2561 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2562 Delete references to mips_regs_have_home_p.
2563
2564 2002-08-14 Keith Seitz <keiths@redhat.com>
2565
2566 * Makefile.in (install-gdbtk): Create insight plugin directory.
2567 Install plugins.tcl file.
2568
2569 2002-08-14 Keith Seitz <keiths@redhat.com>
2570
2571 * configure.in: Move SUBDIRS to near top of the file so that
2572 --enable options may add things to it.
2573 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2574 * configure: Regenerate.
2575
2576 2002-08-13 Michael Snyder <msnyder@redhat.com>
2577
2578 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2579 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2580 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2581
2582 2002-08-13 Andrew Cagney <ac131313@redhat.com>
2583
2584 * vax-tdep.c (vax_get_saved_register): Delete function.
2585 (vax_gdbarch_init): Update.
2586 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2587 (ns32k_gdbarch_init): Update.
2588 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2589 (alpha_gdbarch_init): Update.
2590
2591 2002-08-13 Andrew Cagney <cagney@redhat.com>
2592
2593 * regcache.c (init_regcache_descr): Overallocate the
2594 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2595 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2596 nr_raw_registers.
2597 (set_register_cached): Add range checking assertions. Use
2598 current_regcache.
2599
2600 2002-08-13 Mark Kettenis <kettenis@gnu.org>
2601
2602 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2603 numbers for MMX registers.
2604
2605 2002-08-13 Andrew Cagney <cagney@redhat.com>
2606
2607 * i386-tdep.c (i386_gdbarch_init): Use
2608 generic_unwind_get_saved_register.
2609
2610 2002-08-13 Kevin Buettner <kevinb@redhat.com>
2611
2612 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2613 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2614 target vector.
2615 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2616 Delete. Add comment regarding this now-deleted target method.
2617
2618 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2619
2620 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2621 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2622 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2623 real PC and the page number (if it's within the memory bank window).
2624 (m68hc11_pseudo_register_write): Likewise when saving.
2625 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2626 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2627 (m68hc11_register_raw_size): And use 32-bit for it.
2628 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2629 16K memory bank is used by the prog; also use the virtual pc.
2630
2631 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2632
2633 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2634 (m68hc11_gdbarch_init): Install it in gdbarch.
2635 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2636 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2637 (MSYMBOL_SIZE): New for documentation.
2638 (insn_return_kind): Enum to specify how a function returns.
2639 (frame_extra_info): Cleanup and record the return mode.
2640 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2641 register in address computation.
2642 (m68hc11_get_return_insn): New to obtain the return instruction used
2643 by the function.
2644 (m68hc11_frame_init_saved_regs): Take into account the return
2645 instruction used by the function for far and interrupt functions.
2646 (m68hc11_init_extra_frame_info): Take into account page register.
2647 (m68hc11_frame_args_address): Adjust according to the return mode.
2648 (show_regs): Print page register only when it's used.
2649
2650 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2651
2652 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2653 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2654 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2655 registers.
2656 (m68hc11_register_raw_size): Likewise.
2657
2658 2002-08-13 Andrew Cagney <cagney@redhat.com>
2659
2660 * i386-tdep.c (i386_register_name): Handle mmx registers.
2661 (mmx_regnum_p): New function.
2662 (i386_mmx_names): New array.
2663 (mmx_num_regs): New variable.
2664 (i386_pseudo_register_read): New function.
2665 (i386_pseudo_register_write): New function.
2666 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2667
2668 * regcache.c (regcache_raw_read_unsigned): New function.
2669 (regcache_raw_read_signed): New function.
2670 * regcache.h (regcache_raw_read_unsigned): Declare.
2671 (regcache_raw_read_signed): Declare.
2672
2673 2002-08-13 Andrew Cagney <cagney@redhat.com>
2674
2675 * regcache.c (regcache_raw_read_as_address): Delete function.
2676 (regcache_cooked_read_signed): New function.
2677 (regcache_cooked_read_unsigned): New function.
2678 * regcache.h (regcache_cooked_read_signed): Declare.
2679 (regcache_cooked_read_unsigned): Declare.
2680 (regcache_raw_read_as_address): Delete declaration.
2681
2682 * blockframe.c (generic_read_register_dummy): Use
2683 regcache_cooked_read_unsigned.
2684 * i386-tdep.c (i386_extract_struct_value_address): Use
2685 regcache_cooked_read_unsigned.
2686
2687 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2688
2689 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2690 double sizes according to ELF ABI flags.
2691 (gdbarch_tdep): Record elf_flags.
2692
2693 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2694
2695 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2696 (m6812_prolog): They can appear in 68HC12 function prologue.
2697 (m68hc11_frame_chain): Cleanup.
2698
2699 2002-08-12 Andrew Cagney <cagney@redhat.com>
2700
2701 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2702 declarations.
2703 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2704 (i386_linux_register_raw_size): Delete function.
2705 (i386_linux_init_abi): Update.
2706 * i386-tdep.c (i386_register_raw_size): Delete function.
2707 (i386_register_byte): Delete function.
2708 (i386_gdbarch_init): Update.
2709 (i386_register_size): Delete array.
2710 (i386_register_offset): Delete array.
2711
2712 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2713 (REGISTER_RAW_SIZE): Delete macro.
2714 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2715 (REGISTER_BYTE): Delete macro.
2716
2717 2002-08-11 Aidan Skinner <aidan@velvet.net>
2718
2719 * ada-lang.c (ada_lookup_partial_symbol)
2720 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2721 prototype names so that grep ^func works properly.
2722
2723 * ada-lang.c (ada_array_element_type)
2724 (ada_lookup_partial_symbol): Fix typos in parameter list.
2725
2726 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2727 Fix prototype names so that grep ^func works properly.
2728
2729 2002-08-10 Andrew Cagney <cagney@redhat.com>
2730 Elena Zannoni <ezannoni@redhat.com>
2731 Martin M. Hunt <hunt@redhat.com>
2732
2733 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2734 (build_builtin_type_vec128i): Set the vector bit.
2735 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2736 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2737 (build_builtin_type_vec64): New function.
2738 (build_builtin_type_vec64i): New function.
2739 (build_gdbtypes): Initialize builtin_type_vec64 and
2740 builtin_type_vec64i.
2741
2742 2002-08-09 Andrew Cagney <cagney@redhat.com>
2743
2744 * regcache.c (regcache_dump): Compare the register offset
2745 with REGISTER_BYTE.
2746 * arch-utils.c (generic_register_byte): New function.
2747 * arch-utils.h (generic_register_byte): Declare.
2748 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2749 * gdbarch.h, gdbarch.c: Regenerate.
2750
2751 2002-08-09 Andrew Cagney <cagney@redhat.com>
2752
2753 * regcache.c: Include "gdbcmd.h"
2754 (_initialize_regcache): Add commands "maintenance print
2755 registers", "maintenance print raw-registers" and "maintenance
2756 print cooked-registers".
2757 (enum regcache_dump_what): Define.
2758 (dump_endian_bytes): New function.
2759 (regcache_dump): New function.
2760 (regcache_print): New function.
2761 (maintenance_print_registers): New function.
2762 (maintenance_print_raw_registers): New function.
2763 (maintenance_print_cooked_registers): New function.
2764 * Makefile.in (regcache.o): Update dependencies.
2765
2766 2002-08-09 Michael Snyder <msnyder@redhat.com>
2767
2768 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2769 (mips_push_arguments): Correct some comments. Use paddr_nz
2770 for printing addresses in debug output. Replace static
2771 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2772 (mips_n32n64_push_arguments): New function, cloned from
2773 mips_push_arguments and tuned for the n32/n64 ABI.
2774 (mips_push_register): Buffer needs dynamic allocation.
2775 (mips_print_register): Ditto.
2776 (do_gp_register_row): Ditto.
2777 (mips_store_return_value): Ditto.
2778 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2779
2780 2002-08-09 Don Howard <dhoward@redhat.com>
2781
2782 * memattr.c (mem_info_command): Print special case of upper bound
2783 as max CORE_ADDR + 1.
2784
2785 2002-08-08 Michael Snyder <msnyder@redhat.com>
2786
2787 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2788 returns structs by ref if they're too big to fit in two registers.
2789
2790 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2791
2792 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2793 saved regs value.
2794 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2795 mips_find_saved_regs().
2796 (mips_pop_frame): Likewise.
2797
2798 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2799
2800 * blockframe.c (frame_saved_regs_register_unwind): Revise
2801 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2802 frames are in use.
2803
2804 2002-08-09 Grace Sainsbury <graces@redhat.com>
2805
2806 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2807 T-packets; the 'a' is not taken as a register number.
2808 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2809 (remote_stopped_data_address): New functions; add to target
2810 vector.
2811 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2812 prototypes to match other implementations of this
2813 function. replace integer argument with pointer -- the length
2814 field in the Z-packet is the length of what is pointed to or 1 if
2815 pointer is null. Add to target vector.
2816 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2817 target vector.
2818
2819 From Mark Salter:
2820 * remote.c (remote_wait): Add support to extract optional
2821 watchpoint information from T-packet. Ignore unrecognized
2822 optional info in T-packet.
2823 (remote_async_wait): Ditto.
2824
2825 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
2826
2827 * cli/cli-dump.c: Change fopen modes to use binary open modes
2828 as defined in include/fopen-bin.h throughout.
2829
2830 2002-08-08 Michael Snyder <msnyder@redhat.com>
2831
2832 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2833
2834 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2835
2836 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2837 assertion failure by returning early after a warning.
2838
2839 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2840
2841 * mips-tdep.c (mips_find_saved_regs): Make static.
2842 (mips_frame_init_saved_regs): New function.
2843 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2844 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2845 (mips_find_saved_regs): Delete declaration.
2846
2847 2002-08-08 Grace Sainsbury <graces@redhat.com>
2848
2849 * remote.c (remote_wait, remote_async_wait): Change
2850 thread_num from int to ULONGEST.
2851 (unpack_varlen_hex): Change result parameter from
2852 int * to ULONGEST *.
2853
2854 2002-08-08 Andrew Cagney <ac131313@redhat.com>
2855
2856 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2857 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2858 powerpc*-*-*.
2859 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2860
2861 2002-08-08 Andrew Cagney <cagney@redhat.com>
2862
2863 * gcore.c (override_derive_stack_segment): Delete variable.
2864 (preempt_derive_stack_segment): Delete function.
2865 (derive_stack_segment): Delete function.
2866 (default_derive_stack_segment): Renamed to derive_stack_segment.
2867 (override_derive_heap_segment): Delete variable.
2868 (preempt_derive_heap_segment): Delete function.
2869 (derive_heap_segment): Delete function.
2870 (default_derive_heap_segment): Rename to derive_heap_segment.
2871
2872 2002-08-06 Michael Snyder <msnyder@redhat.com>
2873
2874 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2875 * mips-tdep.c (mips_EABI_use_struct_convention,
2876 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2877 New functions. (mips_use_struct_convention): Delete.
2878 (mips_gdbarch_init): set use_gdbarch_convention.
2879
2880 2002-08-06 Michael Snyder <msnyder@redhat.com>
2881
2882 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2883 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2884 mips_o32_reg_struct_has_addr): New functions.
2885 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2886
2887 2002-08-07 Andrew Cagney <ac131313@redhat.com>
2888
2889 * regcache.c (pseudo_register): Delete function.
2890 (fetch_register): Delete function.
2891 (store_register): Delete function.
2892 (regcache_raw_read, legacy_read_register_gen): Use
2893 target_fetch_registers instead of fetch_register.
2894 (legacy_write_register_gen, regcache_raw_write): Use
2895 target_store_register instead of store_register.
2896 (write_register_bytes): Ditto.
2897
2898 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2899 (STORE_PSEUDO_REGISTER): Delete.
2900 * gdbarch.h, gdbarch.c: Regenerate.
2901
2902 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
2903
2904 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2905 write dump file binary.
2906
2907 2002-08-05 Michael Snyder <msnyder@redhat.com>
2908
2909 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2910 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2911 (mips_gdbarch_init): Set N32 target to be mips64.
2912
2913 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2914
2915 * frame.c (find_saved_register): Break out of loop once saved
2916 register address is found. Don't mention sparc in loop comment
2917 anymore.
2918
2919 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2920
2921 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2922 mips_default_saved_regsize to 8.
2923
2924 2002-08-06 Andrew Cagney <ac131313@redhat.com>
2925
2926 * gcore.c: Do not include <sys/procfs.h>.
2927 * Makefile.in (gcore.o): Update dependencies.
2928
2929 2002-08-06 Andrew Cagney <cagney@redhat.com>
2930
2931 * configure.tgt: Make arc-*-* obsolete.
2932 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2933 * MAINTAINERS: Make arc-elf obsolete.
2934 * arc-tdep.c: Make file obsolete.
2935 * config/arc/arc.mt: Ditto.
2936 * config/arc/tm-arc.h: Ditto.
2937
2938 2002-08-05 Theodore A. Roth <troth@verinet.com>
2939
2940 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
2941
2942 2002-08-05 Andrew Cagney <ac131313@redhat.com>
2943
2944 * mcore-tdep.c (mcore_gdbarch_init): Use
2945 generic_unwind_get_saved_register instead of
2946 generic_get_saved_register.
2947 * v850-tdep.c (v850_gdbarch_init): Ditto.
2948 * frv-tdep.c (frv_gdbarch_init): Ditto.
2949 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2950 * s390-tdep.c (s390_gdbarch_init): Ditto.
2951 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2952 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2953 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2954
2955 2002-08-05 Joel Brobecker <brobecker@gnat.com>
2956
2957 * objfiles.h: Add missing #include "symfile.h"
2958
2959 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2960
2961 2002-08-04 Andrew Cagney <ac131313@redhat.com>
2962
2963 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2964 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2965 of FIELD_BITSIZE.
2966
2967 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
2968
2969 * NEWS: Cleanup and nitpick.
2970
2971 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2972
2973 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2974
2975 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2976
2977 * Makefile.in (gdbtk-bp.o): Update dependencies.
2978 (gdbtk-register.o): Ditto.
2979 (gdbtk-varobj.o): Ditto.
2980
2981 2002-08-03 Andrew Cagney <cagney@redhat.com>
2982
2983 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2984 m68hc11_fetch_pseudo_register.
2985 (m68hc11_pseudo_register_write): Replace
2986 m68hc11_store_pseudo_register.
2987 (m68hc11_gdbarch_init): Update.
2988
2989 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2990
2991 * gdbarch.sh: Include "gdb_string.h".
2992 * gdbarch.c: Regenerate.
2993
2994 * regcache.c: Include "gdb_string.h".
2995 * ax-general.c: Ditto.
2996 * varobj.c: Ditto.
2997 * std-regs.c: Ditto.
2998 * fbsd-proc.c: Ditto.
2999 * thread.c: Ditto.
3000
3001 * Makefile.in (regcache.o): Update dependencies.
3002 (thread.o, gdbarch.o): Ditto.
3003 (ax-general.o, gdbarch.o): Ditto.
3004 (varobj.o, std-regs.o): Ditto.
3005 (fbsd-proc.o): Specify dependencies.
3006
3007 2002-08-02 Andrew Cagney <cagney@redhat.com>
3008
3009 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
3010 regnum.
3011 (regcache_cooked_write): Ditto.
3012
3013 2002-08-02 Andrew Cagney <ac131313@redhat.com>
3014
3015 * regcache.c (regcache_cooked_read): New function.
3016 (regcache_cooked_write): New function.
3017 (read_register_gen): Rewrite using regcache_cooked_read.
3018 (write_register_gen): Rewrite using regcache_cooked_write.
3019
3020 * regcache.h (regcache_cooked_read, regcache_cooked_write):
3021 Declare.
3022
3023 2002-08-02 Andrew Cagney <cagney@redhat.com>
3024
3025 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
3026 Replace the architecture methods register_read and register_write.
3027 * gdbarch.h, gdbarch.c: Regenerate.
3028 * regcache.c (init_regcache_descr): Update.
3029 (read_register_gen): Update.
3030 (write_register_gen): Update.
3031 (supply_register): Update comment.
3032
3033 * sh-tdep.c (sh_gdbarch_init): Update.
3034 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
3035 `regcache' and `gdbarch' parameters. Make `buffer' a void
3036 pointer. Update code.
3037 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
3038 `regcache' and `gdbarch' parameters. Make `buffer' a constant
3039 void pointer. Update code.
3040 (sh64_register_write): Delete.
3041 (sh4_register_read): Delete.
3042 (sh64_register_read): Delete.
3043 (sh4_register_write): Delete.
3044 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
3045 void pointer, `to' parameter a void pointer.
3046 (sh_sh64_register_convert_to_raw): Ditto.
3047
3048 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3049
3050 * mips-tdep.c (mips_register_virtual_type): Use architecture
3051 invariant return values.
3052
3053 2002-08-01 Andrew Cagney <cagney@redhat.com>
3054
3055 * linux-proc.c: Include "gdb_string.h".
3056 * Makefile.in (linux-proc.o): Update dependency list.
3057
3058 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3059
3060 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
3061 comment.
3062
3063 2002-08-01 Grace Sainsbury <graces@redhat.com>
3064
3065 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3066 to_insert_watchpoint, to_remove_watchpoint,
3067 to_stopped_by_watchpoint, to_stopped_data_address,
3068 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
3069 target vecctor. Define their corresponding macros so they call
3070 them.
3071
3072 * target.c: Add default and debug versions of for
3073 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3074 to_insert_watchpoint, to_remove_watchpoint,
3075 to_stopped_by_watchpoint, to_stopped_data_address,
3076 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
3077
3078 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3079
3080 * mips-tdep.c (mips_register_virtual_type): New function.
3081 (mips_gdbarch_init): Register mips_register_virtual_type()
3082 with gdbarch machinery.
3083 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3084 this file instead of tm-bigmips.h.
3085 (MIPS_REGSIZE): Delete this macro.
3086 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
3087 multiarch version in mips-tdep.c will be found.
3088
3089 2002-08-01 Andrew Cagney <cagney@redhat.com>
3090
3091 * NEWS: Menion that CHILL has been made obsolete.
3092
3093 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
3094 * stabsread.c (read_range_type): Ditto.
3095 * gdbtypes.h: Ditto.
3096 * language.c (binop_type_check): Ditto.
3097 (binop_result_type): Ditto.
3098 (integral_type): Ditto.
3099 (character_type): Ditto.
3100 (string_type): Ditto.
3101 (boolean_type): Ditto.
3102 (structured_type): Ditto.
3103 (lang_bool_type): Ditto.
3104 (binop_type_check): Ditto.
3105 * language.h (_LANG_chill): Ditto.
3106 * dwarfread.c (set_cu_language): Ditto.
3107 * dwarfread.c (CHILL_PRODUCER): Ditto.
3108 * dwarfread.c (handle_producer): Ditto.
3109 * expression.h (enum exp_opcode): Ditto.
3110 * eval.c: Ditto for comments.
3111 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3112 * expprint.c (print_subexp): Ditto.
3113 (print_subexp): Ditto.
3114 * valops.c (value_cast): Ditto.
3115 (search_struct_field): Ditto.
3116 * value.h (COERCE_VARYING_ARRAY): Ditto.
3117 * symfile.c (init_filename_language_table): Ditto.
3118 (add_psymbol_with_dem_name_to_list): Ditto.
3119 * valarith.c (value_binop): Ditto.
3120 (value_neg): Ditto.
3121 * valops.c (value_slice): Ditto.
3122 * symtab.h (union language_specific): Ditto.
3123 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3124 (SYMBOL_DEMANGLED_NAME): Ditto.
3125 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3126 * defs.h (enum language): Ditto.
3127 * symtab.c (got_symtab): Ditto.
3128 * utils.c (fprintf_symbol_filtered): Ditto.
3129
3130 * ch-typeprint.c: Make file obsolete.
3131 * ch-valprint.c: Make file obsolete.
3132 * ch-lang.h: Make file obsolete.
3133 * ch-exp.c: Make file obsolete.
3134 * ch-lang.c: Make file obsolete.
3135
3136 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3137 CHILL_LIB.
3138 (TARGET_FLAGS_TO_PASS): Ditto.
3139 (CHILLFLAGS): Obsolete.
3140 (CHILL): Obsolete.
3141 (CHILL_FOR_TARGET): Obsolete.
3142 (CHILL_LIB): Obsolete.
3143 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3144 ch-valprint.c.
3145 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3146 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3147 ch-lang.o.
3148 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3149 targets.
3150
3151 2002-07-31 Joel Brobecker <brobecker@gnat.com>
3152
3153 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3154 This does not change anything at the moment, but will be helpful
3155 later when full Ada support is integrated.
3156
3157 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3158
3159 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3160 help message.
3161
3162 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3163
3164 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3165 and save it in a local variable. Use variable in later test.
3166
3167 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3168
3169 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3170 test. (Thanks to Daniel Jacobowitz.)
3171
3172 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3173
3174 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3175 (mips_abi_strings): Add "n64".
3176 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3177
3178 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3179
3180 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3181 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3182
3183 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3184
3185 * utils.c (host_pointer_to_address, address_to_host_pointer):
3186 Use gdb_assert() instead of explicit call to internal_error().
3187
3188 2002-07-30 Kevin Buettner <kevinb@redhat.com>
3189
3190 * Makefile.in (rs6000-nat.o): Update dependencies.
3191
3192 From Nicholas Duffek:
3193 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3194 (aix-thread.o): New rule.
3195 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3196 * config/powerpc/aix432.mh: New file.
3197
3198 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3199
3200 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3201 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3202 (fetch_core_registers, ppc_linux_supply_gregset)
3203 (ppc_linux_supply_fpregset): New functions.
3204 (ppc_linux_regset_core_fns): New.
3205 (_initialize_ppc_linux_tdep): Call add_core_fns.
3206 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3207 and ppc_linux_supply_gregset.
3208 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3209 (supply_fpregset): Call ppc_linux_supply_fpregset.
3210 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3211 corelow.o.
3212 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3213
3214 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3215
3216 * symtab.c (lookup_symbol): Demangle before lowercasing.
3217
3218 2002-07-30 Andrew Cagney <ac131313@redhat.com>
3219
3220 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3221 declaration.
3222 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3223 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3224 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3225 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3226 "gdb_string.h".
3227 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3228 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3229 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3230 (avr-tdep.o, mon960-rom.o): Ditto.
3231 (aout_stabs_gnu_h): Define.
3232 (symtab_h): Remove $(gdb_obstack_h).
3233
3234 2002-07-30 Jim Blandy <jimb@redhat.com>
3235
3236 Patch from David Carlton <carlton@math.stanford.edu>:
3237 * gdbinit.in: Move the `dir' commands that add GDB's own source
3238 directory to the search path to the end, so that the `gdb' source
3239 directory will be searched first.
3240
3241 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3242
3243 * gdb_obstack.h: New file.
3244 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3245 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3246 * objfiles.h: Include "gdb_obstack.h".
3247 * Makefile.in (gdb_obstack_h): Define.
3248 (symtab_h): Add $(gdb_obstack_h).
3249 (objfiles_h): Add $(gdb_obstack_h).
3250
3251 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3252 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3253 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3254 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3255 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3256 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3257 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3258 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3259
3260 * Makefile.in (bcache.o): Update dependencies.
3261 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3262 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3263 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3264 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3265 (stabsread.o, symfile.o, symmisc.o): Ditto.
3266 (symtab.o, typeprint.o, macroexp.o): Ditto.
3267 (macrotab.o, mdebugread.o): Ditto.
3268 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3269 (coff_ecoff_h, aout_aout64_h): Define.
3270 (aout_stabs_gnu_h, libaout_h): Define.
3271
3272 2002-07-29 Andrew Cagney <cagney@redhat.com>
3273
3274 * regcache.c (struct regcache_descr): Rename nr_registers to
3275 nr_cooked_registers. Revise comments describing the structure
3276 member fields.
3277 (init_regcache_descr): Update.
3278 (init_legacy_regcache_descr): Update.
3279 (read_register_gen, write_register_gen): When a cooked register in
3280 the raw register range, directly access the value from the raw
3281 register cache.
3282
3283 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3284
3285 * z8k-tdep.c: Do not include "obstack.h".
3286 * h8300-tdep.c, h8500-tdep.c: Ditto.
3287 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3288 * valprint.c, v850-tdep.c: Ditto.
3289 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3290 * mn10200-tdep.c: Ditto.
3291
3292 * Makefile.in (z8k-tdep.o): Update dependencies.
3293 (m68hc11-tdep.o, valprint.o): Ditto.
3294 (v850-tdep.o, d10v-tdep.o): Ditto.
3295 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3296 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3297 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3298 (sh_opc_h, gdb_sim_sh_h): Define.
3299 (elf_sh_h, elf_bfd_h): Define.
3300 (opcode_m68hc11_h): Define.
3301 (OPCODES_SRC, OPCODES_DIR): define.
3302 (OPCODES): Use $(OPCODES_DIR).
3303 (gdb_sim_d10v_h): Rename sim_d10v_h.
3304 (gdb_sim_arm_h): Rename sim_arm_h.
3305
3306 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3307
3308 * utils.c (host_pointer_to_address, address_to_host_pointer):
3309 Change internal_error() message to indicate function responsible
3310 for the error.
3311
3312 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3313
3314 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3315 calls to local_hex_string_custom().
3316
3317 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3318
3319 * irix5-nat.c: Move IRIX shared library support from here...
3320 * solib-irix.c: ...to here. Revised substantially to work with
3321 generic solib framework.
3322
3323 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3324 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3325 * mips-irix-tdep.c: New file.
3326
3327 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3328 (mips-irix-tdep.o, solib-irix.o): New rules.
3329 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3330 solib-irix.o.
3331 * config/mips/irix6.mt (TDEPFILES): Likewise.
3332 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3333
3334 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3335
3336 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3337 disabled (via ``#if 0'') includes.
3338
3339 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3340
3341 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3342 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3343 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3344 Add support for the fpscr register.
3345 * rs6000-nat.c (regmap, fetch_inferior_registers)
3346 (store_inferior_registers, fetch_core_registers): Likewise.
3347
3348 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3349
3350 * rs6000-nat.c (language.h): Include.
3351 (special_regs): Delete this array.
3352 (regmap): New function.
3353 (fetch_register, store_register): Use regmap() to map gdb
3354 register numbers to ptrace register numbers. Also, use
3355 outputs from regmap() to make decisions regarding type of
3356 ptrace() call to make. In particular, don't compare against
3357 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3358 (fetch_inferior_registers, store_inferior_registers): Where
3359 possible, obtain register numbers from tdep struct. Don't
3360 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3361 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3362 (LAST_UISA_SP_REGNUM): Delete.
3363
3364 2002-07-25 Kevin Buettner <kevinb@redhat.com>
3365
3366 * rs6000-nat.c (ppc-tdep.h): Include.
3367 (fetch_registers, store_register, fetch_core_registers): Don't
3368 access registers[] directly. Instead, use supply_register() or
3369 regcache_collect() as appropriate.
3370 (find_toc_address): Format hex address with local_hex_string().
3371
3372 2002-07-25 Andrew Cagney <ac131313@redhat.com>
3373
3374 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3375 bfd/elf32-frv.c.
3376
3377 2002-07-24 Tom Tromey <tromey@redhat.com>
3378
3379 * jv-exp.y: Marked all strings with _().
3380 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3381 internal_error.
3382 (MethodInvocation, CastExpression, parse_number, yyerror,
3383 java_type_from_name, push_expression_name, yylex): Typo fixes.
3384
3385 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
3386
3387 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3388 (tee_file_flush, tee_file_write, tee_file_fputs)
3389 (tee_file_isatty): New.
3390 * ui-file.h (tee_file_new): Add prototype.
3391
3392 2002-07-24 Aidan Skinner <aidan@velvet.net>
3393
3394 * ada-lang.c: Change k&r style function definitions to prototyped
3395 form.
3396 * ada-typeprint.c: Change k&r style function definitions to prototyped
3397 form.
3398 * ada-valprint.c: Change k&r style function definitions to prototyped
3399 form.
3400
3401 2002-07-24 Andrew Cagney <cagney@redhat.com>
3402
3403 * README: Remove reference to remote-bug.
3404 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3405 remote-bug.c.
3406 (m88k-nat.o): Delete rule.
3407 (m88k-tdep.o): Delete rule.
3408 (remote-bug.o): Delete rule.
3409 * MAINTAINERS: Mark as obsolete.
3410 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3411 * m88k-tdep.c: Make file obsolete.
3412 * config/m88k/m88k.mh: Ditto.
3413 * config/m88k/delta88v4.mh: Ditto.
3414 * config/m88k/delta88v4.mt: Ditto.
3415 * config/m88k/delta88.mt: Ditto.
3416 * config/m88k/delta88.mh: Ditto.
3417 * remote-bug.c: Ditto.
3418 * config/m88k/tm-delta88.h: Ditto.
3419 * config/m88k/nm-delta88v4.h: Ditto.
3420 * config/m88k/xm-delta88.h: Ditto.
3421 * config/m88k/xm-dgux.h: Ditto.
3422 * config/m88k/tm-m88k.h: Ditto.
3423 * config/m88k/nm-m88k.h: Ditto.
3424 * config/m88k/tm-delta88v4.h: Ditto.
3425 * m88k-nat.c: Ditto.
3426 * cxux-nat.c: Ditto.
3427 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3428 and m88*-*-* obsolete.
3429 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3430 m88*-*-* obsolete.
3431
3432 2002-07-24 Andrew Cagney <cagney@redhat.com>
3433
3434 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3435 constant. Same for local pointer variables.
3436 (extract_signed_integer): Ditto.
3437 * defs.h (extract_unsigned_integer): Update.
3438 (extract_signed_integer): Update.
3439
3440 2002-07-24 Andrew Cagney <cagney@redhat.com>
3441
3442 * regcache.c (regcache_raw_write): Change buf parameter to a
3443 constant void pointer.
3444 (regcache_raw_read): Change buf parameter to a void pointer.
3445 (legacy_write_register_gen): Change myaddr parameter a constant
3446 void pointer.
3447 (supply_register): Change val parameter to a const void pointer.
3448 * regcache.h (regcache_raw_write): Update declaration.
3449 (regcache_raw_read): Update declaration.
3450 (supply_register): Update declaration.
3451
3452 2002-07-24 Tom Tromey <tromey@redhat.com>
3453
3454 * defs.h (gdb_readline_wrapper): Declare.
3455 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3456 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3457 * top.c (gdb_readline_wrapper): New function.
3458 (command_line_input): Use it.
3459
3460 2002-07-24 Andrew Cagney <cagney@redhat.com>
3461
3462 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3463 regcache_read and regcache_write.
3464 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3465 * regcache.c: Update.
3466 * sh-tdep.c (sh64_push_arguments): Update comment.
3467 (sh_pseudo_register_read): Update.
3468 (sh_pseudo_register_write): Update.
3469 (sh4_register_read): Update.
3470 (sh4_register_write): Update.
3471 (sh64_pseudo_register_read): Update.
3472 (sh64_pseudo_register_write): Update.
3473 (sh64_register_read): Update.
3474 (sh64_register_write): Update.
3475 * i386-tdep.c (i386_extract_return_value): Update.
3476 (i386_extract_struct_value_address): Update.
3477 (i386_extract_return_value): Update.
3478 * blockframe.c (generic_read_register_dummy): Update.
3479 (generic_call_dummy_register_unwind): Update
3480 * infrun.c (write_inferior_status_register): Update.
3481
3482 2002-07-23 Jim Blandy <jimb@redhat.com>
3483
3484 * parser-defs.h (expression_context_pc): Make this extern.
3485 (Thanks to Michael Snyder.)
3486
3487 2002-07-23 Andrew Cagney <ac131313@redhat.com>
3488
3489 GDB 5.2.1 released from 5.2 branch.
3490 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3491 * README: Update to mention 5.2.1.
3492
3493 2002-07-23 Mark Salter <msalter@redhat.com>
3494
3495 * remote.c (remote_read_bytes): Fix check for error.
3496
3497 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3498
3499 * aix-thread.c (language.h): Include.
3500 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3501 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3502 Print newlines at end of debug messages.
3503 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3504 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3505
3506 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3507
3508 * aix-thread.c (ppc-tdep.h): Include.
3509 (special_register_p): New function.
3510 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3511 (store_regs_user_thread): Use register number information from
3512 gdbarch_tdep struct instead of hardcoded offsets relative to
3513 FIRST_UISA_SP_REGNUM.
3514 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3515 special_register_p() instead of using FPLAST_REGNUM and
3516 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3517 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3518 will be MQ's register number.
3519
3520 2002-07-22 Michael Snyder <msnyder@redhat.com>
3521
3522 * aix-thread.c (ops): Rename to aix_thread_ops.
3523 (base_ops): Rename to base_target.
3524 (ops_attach): Rename to aix_thread_attach.
3525 (ops_detach): Rename to aix_thread_detach.
3526 (ops_resume): Rename to aix_thread_detach.
3527 (ops_wait): Rename to aix_thread_wait.
3528 (ops_kill): Rename to aix_thread_kill.
3529 (init_ops): Rename to init_aix_thread_ops.
3530 (ops_fetch_register): Rename to aix_thread_fetch_register.
3531 (ops_store_register): Rename to aix_thread_store_register.
3532 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3533 (ops_thread_alive): Rename to aix_thread_thread_alive.
3534 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3535 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3536 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3537 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3538 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3539 (store_regs_lib): Rename to store_regs_user_thread.
3540 (store_regs_kern): Rename to store_regs_kernel_thread.
3541
3542 2002-07-22 Michael Snyder <msnyder@redhat.com>
3543
3544 * aix-thread.c (ops_prepare_to_store): Eliminate.
3545 (init_ops): Don't initialize ops.prepare_to_store.
3546 (store_regs_kern): Pre-fetch register buffers from child,
3547 because some registers may not be in the cache. Copy
3548 regs from register cache only if they are cached.
3549 (store_regs_lib): Copy regs from register cache only
3550 if they are cached.
3551 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3552 fill_gprs64): Ditto.
3553
3554 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3555
3556 * aix-thread.c (gdb_assert.h): Include.
3557 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3558 register sizes (from register cache) match size of buffer holding
3559 register data.
3560 (fill_sprs32): Change parameter types to match those in the ptrace()
3561 buffer.
3562 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3563 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3564
3565 2002-07-22 Michael Snyder <msnyder@redhat.com>
3566
3567 * aix-thread.c (supply_sprs64): Cosmetic change.
3568 (supply_sprs32): Cosmetic change.
3569 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3570 (fill_sprs64): Use regcache_collect instead of read_register.
3571 (store_regs_lib): Use regcache_collect instead of
3572 read_register. Use fill_sprs32 instead of fill_sprs64,
3573 if debugging a 32-bit architecture.
3574 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3575 out of the register cache, instead of passing a pointer into
3576 the register cache directly to ptrace. Use regcache_collect
3577 insteaad of read_register.
3578 (ops_prepare_to_store): Use target_read_registers instead
3579 of read_register_bytes.
3580
3581 2002-07-20 Aidan Skinner <aidan@velvet.net>
3582
3583 * MAINTAINERS: Add self under write after approval.
3584
3585 2002-07-20 Aidan Skinner <aidan@velvet.net>
3586
3587 * ada-tasks.c: Change k&r style function definitions to prototyped
3588 form.
3589
3590 2002-07-19 Andrew Cagney <ac131313@redhat.com>
3591
3592 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3593 * x86-64-tdep.c: Include "objfiles.h".
3594 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3595 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3596
3597 2002-07-17 Michal Ludvig <michal@suse.cz>
3598
3599 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3600 (update_context): Initialise cfa variable.
3601
3602 2002-07-17 Michael Snyder <msnyder@redhat.com>
3603
3604 * aix-thread.c: Shorten some long lines.
3605 Bring comments into line with code spec.
3606
3607 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3608
3609 * infrun.c: Re-indent using gdb_indent.sh.
3610
3611 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3612
3613 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3614 Leave the indentation temporarily untouched, to minimize the diffs.
3615
3616 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
3617
3618 * stabsread.c: Make os9k sections of the code obsolete,
3619 for real this time.
3620 * stabsread.h: Make os9k sections of the code obsolete.
3621
3622 2002-07-18 Michal Ludvig <mludvig@suse.cz>
3623
3624 * linux-low.c (regsets_store_inferior_registers): Add free()
3625 at the end of a loop to prevent memory leak.
3626 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3627 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3628 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3629 line a comment.
3630 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3631
3632 2002-07-17 Jim Blandy <jimb@redhat.com>
3633
3634 * macrocmd.c (info_macro_command): Remove newline from error
3635 message.
3636
3637 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
3638
3639 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3640 (sh_gdbarch_init): Use it for sh-dsp.
3641
3642 2002-07-16 Kevin Buettner <kevinb@redhat.com>
3643
3644 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3645 64-bit DWARF2 format.
3646
3647 2002-07-16 Joel Brobecker <brobecker@gnat.com>
3648
3649 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3650 <sys/proc.h> when not available.
3651
3652 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3653
3654 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3655 * stabsread.c: Make os9k sections of the code obsolete.
3656 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3657 * config/i386/i386os9k.mt: Make file obsolete.
3658 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3659 (COMMON_OBS): Remove os9kread.o
3660 (SFILES): Remove os9kread.c.
3661 (os9kread.o, remote-os9k.o): Make target obsolete.
3662 * remote-os9k.c: Make file obsolete.
3663 * os9kread.c: Make file obsolete.
3664 * Makefile.in
3665
3666 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3667
3668 * NEWS: Mention that the FR30 has been made obsolete.
3669 * fr30-tdep.c: Make file obsolete.
3670 * config/fr30/tm-fr30.h: Ditto.
3671 * config/fr30/fr30.mt: Ditto.
3672 * configure.tgt: Make fr30-*-elf obsolete.
3673 * MAINTAINERS: Make fr30-elf obsolete.
3674
3675 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3676
3677 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3678 found is not inside a section.
3679
3680 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3681
3682 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3683 strerror().
3684 (pdc_realloc): Use xrealloc() instead of realloc().
3685
3686 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3687
3688 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3689 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3690 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3691 macros.
3692
3693 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3694
3695 * aix-thread.c (ptrace_check): Eliminate goto.
3696 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3697 problem.
3698
3699 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3700
3701 * aix-thread.c (gdbcmd.h): Include.
3702 (DEBUG, DBG, DBG2, dbg): Eliminate.
3703 (debug_aix_thread): New static global.
3704 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3705 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3706 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3707 invocations to DBG and DBG2 macros to test against
3708 ``debug_aix_thread'' and call fprintf_unfiltered().
3709 (_initialize_aix_thread): Add new command "set debug aix-thread".
3710
3711 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3712
3713 From Gerhard Tonn <TON@de.ibm.com>:
3714 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3715 instead of supply_register.
3716
3717 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3718
3719 * dwarf2cfi.c: Include "gdb_assert.h".
3720 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3721 non-NULL.
3722 (update_context): Do not use __func__. Add missing ``break''.
3723 (update_context): Do not use __func__.
3724
3725 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
3726
3727 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3728 and its setting. Set gdbarch instruction printing functions
3729 directly. For non-rs6000 case use new function
3730 gdb_print_insn_powerpc.
3731 (gdb_print_insn_powerpc): New function.
3732
3733 2002-07-13 Andrew Cagney <ac131313@redhat.com>
3734
3735 * NEWS: Mention that the d30v has been marked obsolete.
3736 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3737 * configure.tgt: Mark d30v-*-* as obsolete.
3738 * d30v-tdep.c: Mark file as obsolete.
3739 * config/d30v/d30v.mt: Ditto.
3740 * config/d30v/tm-d30v.h: Ditto.
3741
3742 2002-07-13 Aidan Skinner <aidan@velvet.net>
3743
3744 * ada-tasks.c (add_task_entry): replace calls to
3745 malloc() with xmalloc
3746 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3747
3748 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3749 ada_finish_decode_line_1, all_sals_for_line
3750 ada_breakpoint_rewrite): replace calls to free() with xfree()
3751
3752 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3753
3754 From Nicholas Duffek (with minor changes by Martin Hunt,
3755 Louis Hamilton, and Kevin Buettner):
3756 * aix-thread.c: New file.
3757
3758 2002-07-12 Petr Sorfa <petrs@caldera.com>
3759
3760 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3761 complaint for invalid attribute class or form.
3762 (read_func_scope): DW_AT_frame_base
3763 better handling of DW_AT_block*.
3764 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3765 better handling of DW_AT_block*.
3766 (read_common_block): DW_AT_location
3767 better handling of DW_AT_block*.
3768 (read_partial_die): DW_AT_location better handling
3769 of DW_AT_block*.
3770 (new_symbol): DW_AT_external better handling of
3771 DW_AT_block*. Proper initialization of variable
3772 "addr".
3773 (attr_form_is_block): New function that returns true
3774 if the attribute's form is of DW_FORM_block*.
3775
3776 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3777
3778 * valops.c (find_method_list): Remove comment about
3779 removed STATIC_MEMFUNCP argument.
3780 (value_find_oload_method_list): Likewise.
3781
3782 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3783
3784 From Nicholas Duffek:
3785 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3786 target_new_objfile_hook.
3787
3788 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3789
3790 From Nicholas Duffek:
3791 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3792 csect.
3793
3794 2002-07-12 Andrew Cagney <cagney@redhat.com>
3795
3796 * MAINTAINERS: Mention --enable-sim-build-warnings.
3797 (m68hc11-elf): Disable sim build warnings.
3798 (m32r-elf): Mark as broken obsolete candidate.
3799 (x86_64-linux-gnu): Mark as buildable with -Werror.
3800 (arm-elf): Change -w to ``,'' which enables warnings but not
3801 -Werror.
3802
3803 2002-07-12 Andrew Cagney <ac131313@redhat.com>
3804
3805 * bcache.h: Update copyright.
3806 (struct bstring, struct bcache): Move definition to "bcache.c".
3807 Replaced by opaque declaration.
3808 (bcache_xfree): Replace free_bcache.
3809 (bcache_xmalloc, bcache_memory_used): Declare.
3810
3811 * bcache.c: Update copyright.
3812 (struct bstring, struct bcache): Moved to here from "bcache.h".
3813 Update comments.
3814 (bcache_xmalloc, bcache_memory_used): New functions.
3815 (bcache_xfree): Replace function free_bcache.
3816
3817 * Makefile.in (objfiles.o): Add $(bcache_h).
3818 (objfiles_h): Remove $(bcache_h).
3819 (symfile.o): Add $(bcache_h).
3820
3821 * symmisc.c: Update copyright.
3822 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3823 (print_objfile_statistics): Use bcache_memory_used.
3824
3825 * symfile.c: Include "bcache.h".
3826 (reread_symbols): Use bcache_xfree.
3827 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3828 (add_psymbol_to_list): Pass psymbol_cache by value.
3829 (add_psymbol_with_dem_name_to_list): Ditto.
3830
3831 * objfiles.h: Update copyright.
3832 (struct bcache): Declare opaque. Do not include "bcache.h".
3833 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3834 bcache'' pointers.
3835 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3836
3837 * objfiles.c: Include "bcache.h". Update copyright.
3838 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3839 macro_cache.
3840 (free_objfile): Use bcache_xfree.
3841
3842 2002-07-11 Grace Sainsbury <graces@redhat.com>
3843
3844 * monitor.c (monitor_fetch_register): Make name a constant.
3845 (monitor_store_register): Same.
3846
3847 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
3848
3849 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3850 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3851 (finish_block) For non-function blocks, hash the symbol table. For
3852 function blocks, mark the symbol table as unhashed.
3853 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3854 (msymbol_hash_iw): Likewise.
3855 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3856 value.
3857 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3858 (lookup_minimal_symbol): Likewise for both.
3859 * symtab.h (struct block): Add `hashtable' flag. Comment the
3860 hashtable.
3861 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3862 (ALL_BLOCK_SYMBOLS): Update.
3863 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3864 (struct symbol): Add `hash_next' pointer.
3865 * symtab.c (lookup_block_symbol): Search using the hash table when
3866 possible.
3867 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3868 (search_symbols, find_addr_symbol): Likewise.
3869
3870 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3871 (read_dst_symtab): Likewise.
3872 * jv-lang.c (get_java_class_symtab): Likewise.
3873 * mdebugread.c: Include "gdb_assert.h".
3874 (shrink_block): Assert that the block being modified is not hashed.
3875 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3876 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3877 symbols.
3878 (dump_symtab): Recognize hashed blocks.
3879 * printcmd.c (print_frame_args): Assert that function blocks do not
3880 have hashed symbol tables.
3881 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3882 (fill_in_ada_prototype, debug_print_block): Likewise.
3883 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3884
3885 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
3886
3887 * stack.c (print_frame): Use result of frame_address_in_block()
3888 instead of fi->pc when evaluating symbols.
3889 (backtrace_command_1): Ditto.
3890
3891 2002-07-11 Andrew Cagney <cagney@redhat.com>
3892
3893 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3894 Make static.
3895
3896 * arm-tdep.c (arm_register_name): Make return type constant.
3897
3898 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3899
3900 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3901 prototype.
3902 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3903 * s390-tdep.c (s390_fp_regnum): Ditto.
3904 (s390_read_fp): Ditto.
3905 (s390_pop_frame): Ditto.
3906 (_initialize_s390_tdep): Ditto.
3907 * remote.c (get_remote_state): Ditto.
3908 * procfs.c (mappingflags): Ditto.
3909 * memattr.c (_initialize_mem): Ditto.
3910 * mcore-tdep.c (mcore_pop_frame): Ditto.
3911 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3912 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3913 * language.c (set_case_str): Ditto.
3914 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3915 * frv-tdep.c (new_variant): Ditto.
3916 (frv_stopped_data_address): Ditto.
3917 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3918 (context_alloc): Ditto.
3919 (frame_state_alloc): Ditto.
3920 (unwind_tmp_obstack_init): Ditto.
3921 (unwind_tmp_obstack_free): Ditto.
3922 (cfi_read_fp): Ditto.
3923 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3924 (cris_pop_frame): Ditto.
3925 * c-lang.c (scanning_macro_expansion): Ditto.
3926 (finished_macro_expansion): Ditto.
3927 (c_preprocess_and_parse): Ditto.
3928 * gdbarch.sh: Ditto.
3929 * gdbarch.h, gdbarch.c: Regenerate.
3930 * config/mn10200/tm-mn10200.h: Adjust indentation.
3931 * target.c: Adjust indentation.
3932 * symtab.h: Adjust indentation.
3933 * stabsread.h: Adjust indentation.
3934 * remote-es.c: Adjust indentation.
3935 * os9kread.c: Adjust indentation.
3936
3937 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3938
3939 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3940 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3941
3942 2002-07-10 Grace Sainsbury <graces@redhat.com>
3943
3944 * NEWS: Mention m68k, mcore multi-arching.
3945 * MAINTAINERS: Change status of m68k, mcore to reflect
3946 multi-arching.
3947
3948 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
3949
3950 * valops.c (find_overload_match): Free oload_syms.
3951
3952 2002-07-09 Joel Brobecker <brobecker@gnat.com>
3953
3954 Define HAVE_SYS_PROC_H if sys/proc.h exists
3955 * configure.in: Add check for sys/proc.h
3956 * config.in: Regenerate.
3957 * configure: Regenerate.
3958
3959 2002-07-09 Grace Sainsbury <graces@redhat.com>
3960
3961 * config/m68k/tm-m68k.h: Remove macros wrapped in
3962 #if !GDB_MULTI_ARCH.
3963
3964 2002-07-08 Andrew Cagney <ac131313@redhat.com>
3965
3966 * config.in, configure: Regenerate.
3967
3968 2002-07-08 Mark Kettenis <kettenis@gnu.org>
3969
3970 * dwarf2cfi.c: Include "gcore.h".
3971 (execute_stack_op): Fix implementation of the
3972 DW_OP_deref and DW_OP_deref_size operators by letting do their
3973 lookup in the target.
3974
3975 2002-07-07 Mark Kettenis <kettenis@gnu.org>
3976
3977 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3978 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3979 tdep->sc_sp_offset.
3980
3981 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
3982
3983 Fix PR gdb/595, gdb/602
3984 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3985 Don't call value_cast, just read the vtable pointer; update comments
3986 to match.
3987
3988 2002-07-05 Grace Sainsbury <graces@redhat.com>
3989
3990 * config/mcore/tm-mcore.h: Remove file.
3991 * config/mcore/mcore.mt: Remove definition of TM_FILE
3992 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3993
3994 2002-07-05 Mark Kettenis <kettenis@gnu.org>
3995
3996 * i386bsd-tdep.c: Include "gdb_string.h".
3997
3998 2002-07-04 Grace Sainsbury <graces@redhat.com>
3999
4000 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
4001 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
4002 mcore-tdep.
4003 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
4004 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
4005 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
4006 (RETVAL_REGNUM): Move macros from tm-mcore.h
4007 (mcore_reg_struct_has_addr): New function.
4008 (mcore_gdbarch_init): Added initializations for the macros removed
4009 from tm-mcore.h.
4010
4011 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4012
4013 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
4014 traditonal string branding within the ELF header.
4015
4016 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
4017
4018 * symtab.c (remove_params): New function.
4019 (make_symbol_overload_list): Use it instead of cplus_demangle.
4020 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
4021
4022 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4023
4024 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
4025
4026 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
4027 New variables.
4028 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
4029 and tdep->sigtramp_end.
4030 * i386obsd-nat.c: New file.
4031 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
4032
4033 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
4034 Don't call get_current_frame().
4035
4036 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
4037
4038 * i386-nat.c (child_post_startup_inferior): New function
4039 calling i386_cleanup_dregs if
4040 I386_USE_GENERIC_WATCHPOINTS is defined.
4041 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
4042 conditional to acknowledge that i386-nat.c has its
4043 own child_post_startup_inferior function.
4044
4045 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4046
4047 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
4048 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
4049 instead of MAX_REGISTER_RAW_SIZE.
4050 (i386_extract_return_value, i386_extract_struct_value_address):
4051 Convert to use regcache.
4052 (i386_gdbarch_init): Set max_register_raw_size and
4053 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
4054 Set extract_return_value and extract_struct_value_address instead
4055 of their deprecated variants.
4056
4057 Convert i386 target to generic dummy frames.
4058 * i386-tdep.c: Include "symfile.h".
4059 (i386_frameless_signal_p): Consider a function to be frameless if
4060 the pc points at the first instruction of the function.
4061 (i386_frame_chain): Handle (generic) call dummies.
4062 (i386_frame_saved_pc): Likewise.
4063 (i386_frame_init_saved_regs): Remove code dealing with call
4064 dummies on the stack.
4065 (i386_push_dummy_frame): Removed.
4066 (i386_call_dummy_words): Removed.
4067 (i386_fix_call_dummy): Removed.
4068 (i386_push_return_address): New function.
4069 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
4070 parameter, and don't call get_current_frame.
4071 (i386_pop_frame): New function.
4072 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
4073 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
4074 entry_point_address, set call_dummy_breakpoint_offset to 0, set
4075 call_dummy_length to 0, set call_dummy_words to NULL, set
4076 sizeof_call_dummy_words to 0, set fix_call_dummy to
4077 generic_fix_call_dummy, set pc_in_call_dummy to
4078 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
4079 generic_push_dummy_frame, set push_return_address to
4080 i386_push_return_address and set frame_chain_valid to
4081 generic_file_frame_chain_valid.
4082
4083 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4084
4085 * gdbarch.sh (struct regcache): Add opaque declaration.
4086 (EXTRACT_RETURN_VALUE): New architecture method.
4087 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4088 * gdbarch.h, gdbarch.c: Regenerate.
4089 * arch-utils.c (legacy_extract_return_value): New function.
4090 * arch-utils.h (legacy_extract_return_value): Declare.
4091 * values.c (value_being_returned): Re-enable code handling
4092 EXTRACT_STRUCT_VALUE_ADDRESS. Move
4093 deprecated_grub_regcache_for_registers call to block handling
4094 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4095 (EXTRACT_RETURN_VALUE): Do not define.
4096
4097 2002-07-03 Grace Sainsbury <graces@redhat.com>
4098
4099 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4100 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4101 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4102 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4103 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4104 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4105 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4106 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4107 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4108 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4109 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4110 argument so the function fits the prototype in the architecture
4111 vector.
4112 (mcore_pop_frame): Remove argument so the function fits the
4113 prototype. Use get_current_frame instead of the argument.
4114 (mcore_push_arguments): Change type of struct_return so the
4115 function can be used in the architecture vector.
4116 (mcore_store_struct_return): Add.
4117 (mcore_frame_init_saved_regs): Add.
4118 (mcore_gdbarch_init): Add function calls to replace the macros
4119 removed from tm-mcore.h
4120
4121 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4122
4123 * infcmd.c (print_return_value): Remove compatibility code calling
4124 deprecated_grub_regcache_for_registers.
4125
4126 * values.c: Include "regcache.h".
4127 (value_being_returned): Update. Use
4128 deprecated_grub_regcache_for_registers to extract the register
4129 buffer address.
4130 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4131 ``struct regcache''.
4132 * Makefile.in (values.o): Add dependency on $(regcache_h).
4133
4134 * inferior.h (run_stack_dummy): Change type of second parameter to
4135 a ``struct regcache''.
4136 * valops.c (hand_function_call): Change type of retbuf to ``struct
4137 regcache''. Allocate using regcache_xmalloc, clean using
4138 make_cleanup_regcache_xfree.
4139 * infcmd.c (run_stack_dummy): Update. Use
4140 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4141
4142 * regcache.c (do_regcache_xfree): New function.
4143 (make_cleanup_regcache_xfree): New function.
4144 * regcache.h (make_cleanup_regcache_xfree): Declare.
4145
4146 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4147
4148 * event-top.c (command_line_handler): Don't read past
4149 beginning of buffer.
4150
4151 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4152
4153 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4154 struct frame_id.
4155 (varobj_create): Store frame_id for root.
4156 (varobj_gen_name): Use xasprintf.
4157 (varobj_update): Save and restore frame using get_frame_id() and
4158 frame_find_by_id().
4159 (create_child): Use xasprintf.
4160 (new_root_variable): Initialize frame_id.
4161 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4162 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4163 to prevent memory leak.
4164
4165 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4166
4167 * valops.c (hand_function_call): Move declaration of retbuf to
4168 start of function, allocate using malloc, add a cleanup but before
4169 the inf_status cleanup, cleanup the buffer. Rename local variable
4170 old_chain to inf_status_cleanup.
4171
4172 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4173
4174 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4175
4176 * cli/cli-decode.c (cmd_func_p): New function.
4177 (cmd_func): New function.
4178
4179 * command.h: Add cmd_func() and cmd_func_p().
4180
4181 2002-07-03 Grace Sainsbury <graces@redhat.com>
4182
4183 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4184 (REGISTER_SIZE): Remove.
4185 (MAX_REGISTER_RAW_SIZE): Remove.
4186 (REGISTER_VIRTUAL_TYPE): Remove.
4187 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4188 (REGISTER_NAME): Remove.
4189 (USE_GENERIC_DUMMY_FRAMES): Remove.
4190 (CALL_DUMMY): Remove.
4191 (CALL_DUMMY_START_OFFSET): Remove.
4192 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4193 (CALL_DUMMY_LOCATION): Remove.
4194 (FIX_CALL_DUMMY): Remove.
4195 (CALL_DUMMY_ADDRESS): Remove.
4196 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4197 (SAVE_DUMMY_FRAME_TOS): Remove.
4198 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4199 (mcore_register_virtual_type): New function.
4200 (mcore_register_byte): New function.
4201 (mcore_register_size): New function.
4202 (mcore_register_name): New function.
4203 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4204 macros removed from tm-mcore.h.
4205 (mcore_dump_tdep): Add.
4206 (_initialize_mcore_tdep): Add gdbarch_register call.
4207
4208 2002-07-03 Mark Kettenis <kettenis@gnu.org>
4209
4210 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4211 frameless_look_for_prologue, such that we actually call this
4212 function.
4213
4214 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4215
4216 * frame.h (frame_address_in_block): New function.
4217
4218 * blockframe.c (frame_address_in_block): New function extracted
4219 from get_frame_block().
4220 (get_frame_block): Use frame_address_in_block().
4221 (block_innermost_frame): Use frame_address_in_block() to match
4222 the frame pc address against the block boundaries rather than
4223 the frame pc directly. This prevents a failure when a frame pc
4224 is actually a return-address pointing immediately after the end
4225 of the given block.
4226
4227 2002-07-02 Grace Sainsbury <graces@redhat.com>
4228
4229 * MAINTAINERS: Add self under write after approval.
4230
4231 2002-07-02 Grace Sainsbury <graces@redhat.com>
4232
4233 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4234 used in architecture vector. The default is
4235 m68k_local_breakpoint_from_pc.
4236 (m68k_local_breakpoint_from_pc): Add.
4237 (enum): Add register numbers from tm-m68k.h.
4238 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4239 vector.
4240 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4241 GDB_MULTI_ARCH_PARTIAL.
4242 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4243 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4244 m68k-tdep.c.
4245 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4246 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4247 to enum in m68k-tdep.c
4248
4249 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4250
4251 * solib-osf.c (open_map): Compute the list of shared libraries
4252 loaded by the inferior, rather than the list of libraries loaded
4253 by GDB itself. Otherwise, GDB ends up reading the symbols from
4254 the wrong shared libraries...
4255
4256 2002-07-02 Mark Kettenis <kettenis@gnu.org>
4257
4258 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4259 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4260 macros.
4261 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4262 Remove functions.
4263 (FRAMELESS_SIGNAL): Remove function.
4264 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4265 i386_linux_saved_pc_after_call): Removed.
4266 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4267 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4268 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4269
4270 * i386-tdep.c (i386_frameless_signal_p): New function.
4271 (i386_frame_chain): Deal with frameless signals.
4272 (i386_sigtramp_saved_sp): New function.
4273 (i386_frame_saved_pc): Deal with frameless signals.
4274 (i386_saved_pc_after_call): Make sure the correct value is
4275 returned just after entry into a sigtramp.
4276 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4277 i386fbsd4_sc_sp_offset): New variables.
4278 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4279 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4280 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4281 similiar to what we already did for sc_pc_offset.
4282 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4283 tdep->sc_sp_offset.
4284
4285 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4286
4287 2002-07-02 Michal Ludvig <mludvig@suse.cz>
4288
4289 * config/i386/tm-x86-64linux.h: New.
4290 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4291 definitions.
4292 * config/i386/nm-x86-64.h: Rename to ...
4293 * config/i386/nm-x86-64linux.h: ... this one.
4294 * config/i386/x86-64linux.mh: Reflect the above change.
4295
4296 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4297
4298 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4299 with sigcontext_addr. Add sc_sp_offset.
4300 (i386bsd_sigtramp_saved_pc): Remove prototype.
4301 (i386bsd_sicontext_addr): Add prototype.
4302 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4303 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4304 (i386_svr4_sigtramp_saved_pc): Removed.
4305 (i386_svr4_sigcontext_addr): New function.
4306 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4307 Initialize tdep->sigcontext_addr instead. Initialize
4308 tdep->sc_pc_offset and tdep->sc_sp_offset.
4309 (i386_gdbarch_init): Likewise.
4310 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4311 any more.
4312 (i386bsd_sigtramp_saved_pc): Remove function.
4313 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4314 Initialize tdep->sigcontext_addr instead. Initialize
4315 tdep->sc_pc_offset.
4316 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4317 of tdep->sigtramp_saved_pc.
4318 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4319 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4320 instead.
4321
4322 * i386-tdep.c (i386_frameless_function_invocation,
4323 i386_frame_num_args, i386_frame_init_saved_regs,
4324 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4325 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4326 i386_extract_return_value, i386_store_return_value,
4327 i386_extract_struct_value_address, i386_register_virtual_type,
4328 i386_register_convertible, i386_register_convert_to_virtual,
4329 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4330 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4331 static.
4332
4333 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4334
4335 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4336
4337 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4338 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4339 this macro. Include "value.h".
4340
4341 2002-06-30 Aidan Skinner <aidan@velvet.net>
4342
4343 * ada-exp.tab.c: remove as it's a generated file
4344 * ada-lex.c: remove as it's a generated file
4345
4346 2002-06-30 Mark Kettenis <kettenis@gnu.org>
4347
4348 * config/i386/tm-i386.h (struct frame_info, struct
4349 frame_saved_regs, struct value, struct type): Remove forward
4350 declarations.
4351
4352 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4353 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4354 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4355 (FILL_FPXREGSET): Define.
4356
4357 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4358
4359 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4360 i[3456]86-*-netbsd* case.
4361 * config/i386/tm-obsd.h: Removed.
4362 * config/i386/obsd.mt: Removed.
4363 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4364 core-aout.o.
4365 (MH_CFLAGS): Add -DYYDEBUG=0.
4366
4367 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4368 i386nbsd_sc_pc_offset on OpenBSD too.
4369
4370 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4371 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4372 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4373 define.
4374 * i386bsd-tdep.c: Include "arch-utils.h".
4375 (i386bsd_aout_in_solib_call_trampoline): New function.
4376 (i386bsd_init_abi): Set in_solib_call_trampoline to
4377 i386bsd_aout_in_solib_call_trampoline.
4378 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4379 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4380
4381 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4382
4383 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4384 (struct obstack, struct bcache): Add opaque declarations.
4385 * Makefile.in (macrotab_h): Update
4386
4387 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4388
4389 * blockframe.c (generic_find_dummy_frame): Change return type to
4390 ``struct regcache''.
4391 (struct dummy_frame): Replace field ``registers'' with regcache, a
4392 struct regcache object.
4393 (generic_find_dummy_frame): Update.
4394 (generic_push_dummy_frame): Update. Use regcache_xfree,
4395 regcache_xmalloc and regcache_cpy.
4396 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4397 regcache_xfree.
4398 (deprecated_generic_find_dummy_frame): Update.
4399 (generic_read_register_dummy): Update. Use
4400 regcache_read_as_address.
4401 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4402 (generic_get_saved_register): Update. Use regcache_read.
4403
4404 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4405
4406 * Makefile.in (objfiles_h): Add $(bcache_h).
4407 * objfiles.h: Include "bcache.h".
4408
4409 * Makefile.in (symtab_h): Remove $(bcache_h).
4410 * symtab.h: Do not include "bcache.h".
4411
4412 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4413
4414 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4415 generic_func_frame_chain_valid.
4416
4417 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4418
4419 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4420 * config/i386/tm-fbsd.h: Likewise.
4421
4422 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4423
4424 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4425 generic_unwind_get_saved_register.
4426
4427 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4428
4429 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4430 * regcache.c (supply_register): Add missing argument to
4431 register_buffer call.
4432
4433 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4434
4435 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4436 Solaris /bin/grep does not not like it. From Peter Schauer.
4437
4438 2002-06-26 Tom Tromey <tromey@redhat.com>
4439
4440 * command.h (add_setshow_cmd): Declare.
4441 (add_setshow_cmd_full): Declare.
4442 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4443 returns void. Use add_setshow_cmd_full.
4444 (add_setshow_cmd_full): New function.
4445 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4446 (add_setshow_boolean_cmd): Likewise.
4447
4448 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4449
4450 * config/vax/tm-vax.h: Protect from multiple inclusion.
4451 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4452 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4453 * config/vax/tm-vaxbsd.h: ...here. New file.
4454 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4455
4456 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4457
4458 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4459 (BELIEVE_PCC_PROMOTION): Remove.
4460 (AP_REGNUM): Move to...
4461 * config/vax/nm-vax.h: ...here.
4462 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4463 (vax_breakpoint_from_pc): New function.
4464 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4465 and gdbarch_believe_pcc_promotion.
4466
4467 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4468
4469 * Makefile.in (vax_tdep_h): Define.
4470 (vax-tdep.o): Use $(vax_tdep_h).
4471 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4472 (vax_dump_tdep): New function.
4473 (_initialize_vax_tdep): Register vax_dump_tdep.
4474 * vax-tdep.h: Include osabi.h.
4475 (struct gdbarch_tdep): New.
4476
4477 2002-06-26 Andrew Cagney <cagney@redhat.com>
4478
4479 * frame.h (deprecated_generic_find_dummy_frame): Rename
4480 generic_find_dummy_frame.
4481 * blockframe.c (generic_find_dummy_frame): Make static.
4482 (deprecated_generic_find_dummy_frame): New function.
4483 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4484 generic_find_dummy_frame with deprecated_find_dummy_frame.
4485 (sh64_nofp_frame_init_saved_regs): Ditto.
4486 (sh_fp_frame_init_saved_regs): Ditto.
4487 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4488 (s390_frame_chain): Ditto.
4489 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4490
4491 2002-06-26 Grace Sainsbury <graces@redhat.com>
4492
4493 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4494 gdbarch vector are at the top.
4495 (NUM_REGS): Remove.
4496 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4497 (FRAME_ARGS_ADDRESS): Remove.
4498 (FRAME_LOCALS_ADDRESS): Remove.
4499 (FRAME_NUM_ARGS): Remove.
4500 (FRAME_ARGS_SKIP): Remove.
4501 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4502 (m68k_gdbarch_init): Add gdbarch initializations for macros
4503 undefined in tm-m68k.h
4504
4505 2002-06-26 Grace Sainsbury <graces@redhat.com>
4506
4507 * monitor.h: Add the function regname to monitor_ops
4508 structure. This way NUM_REGS does not have to be a constant.
4509 * monitor.c (monitor_fetch_register): Added support for regname
4510 function. The function is called if the array regnames is NULL.
4511 (monitor_store_register): Same.
4512 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4513 regnames array.
4514 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4515 cpu32bug_cmds.regname to point to new function.
4516 * abug-rom.c (abug_regname): Same as above.
4517 (init_abug_cmds): Same.
4518 * dbug-rom.c (dbug_regname): Same as above.
4519 (init_dbug_cmds): Same.
4520 * remote-est.c (est_regname): Same.
4521 (init_est_cmds): Same.
4522 * rom68k-rom.c (rom68k_regname): Same.
4523 (init_rom68k_cmds): Same.
4524
4525 2002-06-25 Tom Tromey <tromey@redhat.com>
4526
4527 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4528
4529 2002-06-25 Andrew Cagney <cagney@redhat.com>
4530
4531 * infrun.c (stop_registers): Change variable's type to ``struct
4532 regcache'''.
4533 (xmalloc_inferior_status): Delete function.
4534 (free_inferior_status): Delete function.
4535 (normal_stop): Use regcache_cpy.
4536 (struct inferior_status): Change type of fields ``stop_registers''
4537 and ``registers'' to ``struct regcache''.
4538 (write_inferior_status_register): Use regcache_write.
4539 (save_inferior_status): Instead of calling
4540 xmalloc_inferior_status, allocate the inf_status buffer directly.
4541 Use regcache_dup_no_passthrough and regcache_dup to save the
4542 buffers.
4543 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4544 Replace the stop_registers regcache instead of overriding it. Use
4545 regcache_xfree. Instead of calling free_inferior_status, xfree
4546 the buffer directly.
4547 (discard_inferior_status): Use regcache_xfree. Instead of calling
4548 free_inferior_status, xfree the buffer directly.
4549 (build_infrun): Use regcache_xmalloc.
4550 (_initialize_infrun): Delete redundant call to build_infrun.
4551
4552 * Makefile.in (infcmd.o): Add $(regcache_h).
4553
4554 * infcmd.c: Include "regcache.h".
4555 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4556 obtain the address of `stop_registers' register buffer.
4557 (print_return_value): Ditto.
4558
4559 * inferior.h (struct regcache): Add opaque declaration.
4560 (stop_registers): Change variable's declared type to ``struct
4561 regcache''.
4562
4563 2002-06-24 Tom Tromey <tromey@redhat.com>
4564
4565 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4566 * target.c (initialize_targets): Fixed typo in
4567 trust-readonly-sections `show' documentation.
4568
4569 * main.c: Marked all strings with _().
4570
4571 2002-06-24 Don Howard <dhoward@redhat.com>
4572
4573 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4574 that means max CORE_ADDR+1.
4575 (lookup_mem_region): Ditto.
4576 (mem_info_command): Ditto.
4577
4578 2002-06-24 Grace Sainsbury <graces@redhat.com>
4579
4580 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4581 (REGISTER_BYTES_OK): Remove.
4582 (REGISTER_BYTES): Remove.
4583 (STORE_STRUCT_RETURN): Remove.
4584 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4585 (STORE_RETURN_VALUE): Remove.
4586 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4587 (FRAME_CHAIN): Remove.
4588 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4589 (FRAME_SAVED_PC): Remove.
4590 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4591 (m68k_store_struct_return): Add.
4592 (m68k_deprecated_extract_return_value): Add.
4593 (m68k_deprecated_extract_struct_value_address): Add.
4594 (m68k_store_return_value): Add.
4595 (m68k_frame_chain): Add.
4596 (m68k_frameless_function_invocation): Add.
4597 (m68k_frame_saved_pc): Add.
4598 (m68k_gdbarch_init): added set_gdbarch calls for new
4599 functions and deleted macros.
4600
4601 2002-06-23 Tom Tromey <tromey@redhat.com>
4602
4603 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4604 (ALLDEPFILES): Likewise.
4605 (udiheaders): Removed.
4606 (udip2soc.o): Likewise.
4607 (udi2go32.o): Likewise.
4608 (udr.o): Likewise.
4609 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4610
4611 2002-06-22 Andrew Cagney <ac131313@redhat.com>
4612
4613 * infrun.c (_initialize_infrun): Delete unnecessary call to
4614 build_infrun.
4615
4616 * regcache.h: Update comments describing the regcache_cpy family
4617 of functions.
4618 (regcache_save, regcache_restore): Delete declaration.
4619 (regcache_save_no_passthrough): Delete declaration.
4620 (regcache_restore_no_passthrough): Delete declaration.
4621 * regcache.c (regcache_save): Delete function.
4622 (regcache_save_no_passthrough): Delete function.
4623 (regcache_restore): Delete function.
4624 (regcache_restore_no_passthrough): Delete function.
4625
4626 2002-06-21 Andrew Cagney <ac131313@redhat.com>
4627
4628 * config/m68k/tm-m68k.h: Fix typo.
4629 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4630 (m68k_frame_init_saved_regs): Declare.
4631
4632 2002-06-21 Jim Blandy <jimb@redhat.com>
4633
4634 Remove some vestiges of Harris 88k support.
4635 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4636 register numbering quirk.
4637 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4638 odd symbols occurring in Harris 88k ELF targets.
4639
4640 2002-06-21 Tom Tromey <tromey@redhat.com>
4641
4642 * gdb_locale.h: New file.
4643 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4644 (defs_h): Added gdb_locale.h.
4645 * configure, config.in: Rebuilt.
4646 * configure.in (PACKAGE): Define.
4647 * defs.h: Include gdb_locale.h.
4648 * main.c (captured_main): Call setlocale, bindtextdomain,
4649 textdomain.
4650
4651 2002-06-21 Dave Brolley <brolley@redhat.com>
4652
4653 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4654 * config/frv/frv.mt: New file.
4655 * config/frv/tm-frv.h: New file.
4656 * configure.tgt: Support frv-*-*.
4657 * Makefile.in (frv-tdep.o): New target.
4658 * frv-tdep.c: New file.
4659 * NEWS: Mention frv.
4660
4661 2002-06-21 Dave Brolley <brolley@redhat.com>
4662
4663 * MAINTAINERS: Add self to "Write After Approval" list.
4664
4665 2002-06-21 Grace Sainsbury <graces@redhat.com>
4666
4667 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4668 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4669 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4670 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4671 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4672
4673 * m68k-tdep.c: Include arch-utils.h
4674 (m68k_register_raw_size): Add.
4675 (m68k_register_virtual_size): Add.
4676 (m68k_register_virtual_type): Add.
4677 (m68k_register_name): Add.
4678 (m68k_stack_align): Add.
4679 (m68k_register_byte): Add.
4680 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4681 tm-m68k.h.
4682
4683 2002-06-21 Grace Sainsbury <graces@redhat.com>
4684
4685 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4686 m68k_find_saved_regs.
4687 (m68k_pop_frame): Removed saved_regs structure, and replaced
4688 references to it with frame->saved_regs.
4689 (m68k_gdbarch_init): Added function calls to initialize the
4690 gdbarch structure.
4691 (m68k_fix_call_dummy): Add.
4692 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4693 (CALL_DUMMY): Remove.
4694 (CALL_DUMMY_LENGTH): Remove.
4695 (CALL_DUMMY_START_OFFSET): Remove.
4696 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4697 (FIX_CALL_DUMMY): Remove.
4698 (PUSH_DUMMY_FRAME): Remove.
4699 (POP_FRAME): Remove.
4700
4701 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4702
4703 * parse.c (parse_fprintf): New function used to avoid calls to
4704 fprintf in bison parser generated debug code.
4705 * parser-defs.h: Declaration of new parse_fprintf function.
4706 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4707 Set YYDEBUG to 1 by default.
4708 Set YYFPRINTF as parse_fprintf.
4709
4710 2002-06-21 Michal Ludvig <mludvig@suse.cz>
4711
4712 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4713 encoding anymore.
4714 (pointer_encoding, enum ptr_encoding): New.
4715 (execute_cfa_program): Take care about pointer encoding.
4716 (dwarf2_build_frame_info): Only call parse_frame_info for
4717 .debug_frame and .eh_frame.
4718 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4719 fixed augmentation handling, added relative addressing,
4720 ignore duplicate FDEs. Added comments.
4721 * dwarf2cfi.c: Reindented.
4722
4723 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
4724
4725 * event-top.c (command_handler): Don't use space_at_cmd_start
4726 unless there is sbrk() on the host. Assign time and space data
4727 to union fields of the appropriate length.
4728
4729 2002-06-20 Michal Ludvig <mludvig@suse.cz>
4730
4731 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4732 x86_64_register_name. Return type changed to 'const char *'.
4733 (x86_64_register_name2nr): Rename to x86_64_register_number.
4734 (x86_64_gdbarch_init): Update to reflect the change.
4735 * x86-64-tdep.h: Ditto.
4736 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4737 (supply_fpregset): Ditto.
4738
4739 2002-06-19 Andrew Cagney <cagney@redhat.com>
4740
4741 * regcache.h: Update copyright.
4742 (struct regcache, struct gdbarch): Add opaque declarations.
4743 (current_regcache): Declare global variable.
4744 (regcache_read, regcache_write): Add gdbarch parameter.
4745 (regcache_save, regcache_save_no_passthrough)
4746 (regcache_restore, regcache_restore_no_passthrough)
4747 (regcache_dup, regcache_dup_no_passthrough)
4748 (regcache_cpy, regcache_cpy_no_passthrough)
4749 (deprecated_grub_regcache_for_registers)
4750 (deprecated_grub_regcache_for_register_valid)
4751 (regcache_valid_p): Add function declarations.
4752
4753 * regcache.c: Update copyright.
4754 (regcache_descr_handle): New global variable.
4755 (struct regcache_descr): Define.
4756 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4757 (regcache_descr, xfree_regcache_descr): New functions.
4758 (struct regcache): Define.
4759 (regcache_xmalloc, regcache_xfree): New functions.
4760 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4761 (regcache_dup, regcache_dup_no_passthrough): New functions.
4762 (regcache_valid_p, regcache_read_as_address): New functions.
4763 (deprecated_grub_regcache_for_registers): New function.
4764 (deprecated_grub_regcache_for_register_valid): New function.
4765 (current_regcache): New global variable.
4766 (register_buffer): Add regcache parameter. Update calls.
4767 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4768 (read_register_gen, write_register_gen): Update register_buffer
4769 call. Test for legacy_p instead of gdbarch_register_read_p or
4770 gdbarch_register_write_p.
4771 (regcache_collect): Update register_buffer call.
4772 (build_regcache): Rewrite. Use deprecated grub functions.
4773 (regcache_save, regcache_save_no_passthrough): New functions.
4774 (regcache_restore, regcache_restore_no_passthrough): New
4775 functions.
4776 (_initialize_regcache): Create the regcache_data_handle. Swap
4777 current_regcache global variable.
4778
4779 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4780 parameter to regcache_read and regcache_write calls.
4781 (sh4_register_read): Ditto.
4782 (sh64_pseudo_register_read): Ditto.
4783 (sh64_register_read): Ditto.
4784 (sh_pseudo_register_write): Ditto.
4785 (sh4_register_write): Ditto.
4786 (sh64_pseudo_register_write): Ditto.
4787 (sh64_register_write): Ditto.
4788
4789 * defs.h (XCALLOC): Define.
4790
4791 2002-06-19 Grace Sainsbury <graces@redhat.com>
4792
4793 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4794 * m68k-tdep.c (m68k_gdbarch_init): Added.
4795 (m68k_dump_tdep): Added.
4796
4797 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4798
4799 * ada-lang.c (fill_in_ada_prototype): Update comment.
4800
4801 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4802
4803 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4804 MIPS_ABI_LAST.
4805 (mips_abi_string, mips_abi_strings): New.
4806 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4807 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4808 tdep->mips_abi_string. Honor mips_abi_string. Default to
4809 O32 if no ABI is found.
4810 (mips_dump_tdep): Use mips_abi_strings.
4811 (mips_abi_update): New function.
4812 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4813 ``set mips abi'' and ``show mips abi''. Check the size of
4814 mips_abi_strings.
4815
4816 2002-06-19 Andrew Cagney <cagney@redhat.com>
4817
4818 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4819 constant.
4820
4821 2002-06-18 Joel Brobecker <brobecker@gnat.com>
4822
4823 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4824 current frame using only the first stack size adjustment. All
4825 subsequent size adjustments are not considered to be part of
4826 the "static" part of the current frame.
4827 Compute the address of the saved registers relative to the
4828 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4829 in use in this frame.
4830
4831 2002-06-18 Don Howard <dhoward@redhat.com>
4832
4833 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4834 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4835 suggesting this solution.
4836
4837 2002-06-18 Andrew Cagney <ac131313@redhat.com>
4838
4839 * config/romp/xm-rtbsd.h: Delete file.
4840 * config/romp/rtbsd.mh: Delete file.
4841
4842 2002-06-18 Keith Seitz <keiths@redhat.com>
4843
4844 * breakpoint.c (condition_command): Post breakpoint_modify
4845 when a condition is added to an existing breakpoint.
4846 (commands_command): Likewise for commands.
4847 (set_ignore_count): Likewise for ignore counts.
4848 If no tty, do not simply return, still need to send event
4849 notification.
4850 (ignore_command): Only print a newline if the command came
4851 from a tty.
4852 Don't call breakpoints_changed, since this is now properly
4853 handled by set_ignore_count.
4854
4855 2002-06-18 Andrew Cagney <cagney@redhat.com>
4856
4857 * MAINTAINERS: Note that cris-elf target can be compiled with
4858 -Werror.
4859 * cris-tdep.c (cris_register_name): Make return type constant.
4860 (cris_breakpoint_from_pc): Ditto.
4861
4862 2002-06-18 Michal Ludvig <mludvig@suse.cz>
4863
4864 * frame.h (struct frame_info): Change type of context to
4865 'struct context'.
4866
4867 2002-06-17 Andrew Cagney <cagney@redhat.com>
4868
4869 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4870 pointer.
4871 * gdbarch.h, gdbarch.c: Regenerate.
4872 * config/mips/tm-mips.h (mips_register_name): Update.
4873 * i386-tdep.h (i386_register_name): Update.
4874 * mips-tdep.c (mips_register_name): Update
4875 * alpha-tdep.c (alpha_register_name): Update.
4876 * arch-utils.c (legacy_register_name): Update.
4877 * arch-utils.h (legacy_register_name): Update.
4878 * avr-tdep.c (avr_register_name): Update.
4879 * ia64-tdep.c (ia64_register_name): Update.
4880 * i386-tdep.c (i386_register_name): Update.
4881 * sparc-tdep.c (sparc32_register_name): Update.
4882 (sparc64_register_name): Update.
4883 (sparclite_register_name): Update.
4884 (sparclet_register_name): Update.
4885 * sh-tdep.c (sh_generic_register_name): Update.
4886 (sh_sh_register_name): Update.
4887 (sh_sh3_register_name): Update.
4888 (sh_sh3e_register_name): Update.
4889 (sh_sh_dsp_register_name): Update.
4890 (sh_sh3_dsp_register_name): Update.
4891 (sh_sh4_register_name): Update.
4892 (sh_sh64_register_name): Update.
4893 * s390-tdep.c (s390_register_name): Update.
4894 * rs6000-tdep.c (rs6000_register_name): Update.
4895 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4896 (ns32k_register_name_32382): Update.
4897 * d10v-tdep.c (d10v_ts2_register_name): Update.
4898 (d10v_ts3_register_name): Update.
4899 * xstormy16-tdep.c (xstormy16_register_name): Update.
4900 * vax-tdep.c (vax_register_name): Update.
4901 * v850-tdep.c (v850_register_name): Update.
4902 * m68hc11-tdep.c (m68hc11_register_name): Update.
4903 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4904 (am33_register_name): Update.
4905
4906 2002-06-17 Grace Sainsbury <graces@redhat.com>
4907
4908 * m68k-tdep.c: Reindented.
4909
4910 2002-06-17 Andrew Cagney <ac131313@redhat.com>
4911
4912 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4913 list of predefined types.
4914
4915 2002-06-16 Mark Kettenis <kettenis@gnu.org>
4916
4917 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4918 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4919 REGISTER_CONVERT_TO_RAW): Remove defines.
4920 (i386_register_virtual_type, i386_register_convertible,
4921 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4922 Remove prototypes.
4923 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4924 macros mentioned above.
4925
4926 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4927 (i386lynx_saved_pc_after_call): Remove prototype.
4928 * i386ly-tdep.c: Include "i386-tdep.h".
4929 (i386lynx_saved_pc_after_call): Make static. Use
4930 read_memory_nobpt instead of read_memory. Use
4931 read_memory_unsigned_integer instead of read_memory_integer.
4932 (i386lynx_init_abi): New function.
4933 (i386lynx_coff_osabi_sniffer): New function.
4934 (_initialize_i386bsd_tdep): New function.
4935
4936 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4937 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4938 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4939 (i386_fix_call_dummy): Remove prototype.
4940 * i386-tdep.c (i386_call_dummy_words): New variable.
4941 (i386_gdbarch_init): Adjust for removal of the
4942 macros mentioned above.
4943
4944 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4945
4946 * command.h (add_setshow_auto_boolean_cmd): Replace
4947 add_set_auto_boolean_cmd.
4948 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4949 add_set_auto_boolean_cmd.
4950 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4951 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4952 mask-address'' command.
4953 (show_mask_address): Add cmd parameter.
4954 * remote.c (add_packet_config_cmd): Update. Change type of
4955 set_func and show_func to cmd_sfunc_ftype.
4956 (_initialize_remote): Update `set remote Z-packet'
4957 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4958 (show_remote_protocol_e_packet_cmd): Ditto.
4959 (show_remote_protocol_E_packet_cmd): Ditto.
4960 (show_remote_protocol_P_packet_cmd): Ditto.
4961 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4962 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4963 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4964 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4965 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4966 (show_remote_protocol_Z_packet_cmd): Ditto.
4967 (show_remote_protocol_binary_download_cmd): Ditto.
4968 (show_remote_cmd): Pass NULL to all of above.
4969
4970 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4971
4972 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4973 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4974 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4975 POP_FRAME): Remove defines.
4976 (i386_push_arguments, i386_store_struct_return,
4977 i386_extract_return_value, i386_store_return_value,
4978 i386_extract_struct_value_address, i386_push_dummy_frame,
4979 i386_pop_frame): Renove prototypes.
4980 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4981 macros mentioned above.
4982
4983 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4984
4985 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4986 add_set_boolean_cmd.
4987 (add_setshow_cmd): New function.
4988 * command.h (add_setshow_boolean_cmd): Replace
4989 add_set_boolean_cmd.
4990 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4991 and ``set rdiromatzero''.
4992 * maint.c (_initialize_maint_cmds): Update commented out code.
4993 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4994 * target.c (initialize_targets): Update `set
4995 trust-readonly-sections'.
4996 * remote.c (_initialize_remote): Update `set remotebreak'.
4997
4998 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4999
5000 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
5001 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
5002 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
5003 fit into multi-arch framework.
5004 (i386_breakpoint_from_pc): New function.
5005 (i386_gdbarch_init): Adjust for removal of the macros mentioned
5006 above.
5007
5008 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
5009 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
5010 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
5011 (i386_frameless_function_invocation, i386_frame_num_args,
5012 i386_frame_init_saved_regs): Remove prototypes.
5013 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5014 macros mentioned above.
5015
5016 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5017
5018 * cli/cli-decode.c (set_cmd_cfunc): Update.
5019 (set_cmd_sfunc): Update.
5020 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
5021 (set_cmd_sfunc, set_cmd_cfunc): Update.
5022 * cli/cli-decode.h: Update.
5023
5024 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5025
5026 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
5027 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
5028
5029 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5030
5031 * defs.h (auto_boolean): Declare enum.
5032 * command.h (cmd_auto_boolean): Delete enum.
5033 * mips-tdep.c (mask_address_var): Update.
5034 (mips_mask_address_p): Update.
5035 (show_mask_address): Update.
5036 * remote.c (struct packet_config): Update.
5037 (update_packet_config): Update.
5038 (show_packet_config_cmd): Update.
5039 (packet_ok): Update.
5040 (add_packet_config_cmd): Update.
5041 (_initialize_remote):
5042 * command.h: Update.
5043 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
5044 (do_setshow_command): Update.
5045 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
5046 * cli/cli-decode.h: Update.
5047
5048 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5049
5050 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
5051 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
5052 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
5053 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
5054 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
5055 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
5056
5057 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
5058 list of DJGPP COFF targets.
5059
5060 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
5061 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
5062 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
5063 (FP0_REGNUM): Remove define.
5064 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5065 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
5066 (i386_register_virtual_size): Remove protoype.
5067 * i386-tdep.c (i386_register_virtual_size): Removed.
5068 (i386_extract_return_value, i386_store_return_value): Use
5069 FP0_REGNUM instead of NUM_FREGS to determine whether the
5070 floating-point registers are available.
5071 (i386_gdbarch_init): Tweak FIXME about FPU registers.
5072 Adjust for removal of macros mentioned above.
5073
5074 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5075
5076 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
5077 comments.
5078 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5079 Remove prototypes.
5080 (supply_gregset, fill_gregset): Remove use of register keyword and
5081 remove declaration for regmap. Use I386_NUM_GREGS instead of
5082 NUM_REGS and NUM_FREGS.
5083 (FPREGSET_FSAVE_OFFSET): Remove.
5084 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5085 NUM_FREGS to determine whether the floating-point registers are
5086 available.
5087
5088 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5089 gnu_store_registers): Replace usage of NUM_GREGS with
5090 I386_NUM_GREGS.
5091
5092 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5093 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5094 usage of NUM_GREGS with I386_NUM_GREGS.
5095
5096 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5097
5098 * i386bsd-nat.c: Include "i386-tdep.h".
5099 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5100 I386_NUM_GREGS.
5101
5102 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5103 and associated comment. They no longer make any sense, since we
5104 don't use this file anymore on Linux.
5105
5106 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5107 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5108 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5109 elements in these arrays.
5110 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5111 MAX_NUM_REGS.
5112
5113 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5114
5115 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5116 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5117
5118 2002-06-14 Andrew Cagney <cagney@redhat.com>
5119
5120 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5121 EXTRACT_RETURN_VALUE.
5122 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5123 EXTRACT_STRUCT_VALUE_ADDRESS.
5124 * gdbarch.h, gdbarch.c: Regenerate.
5125
5126 * values.c (value_being_returned): Handle
5127 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5128 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5129
5130 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5131 * arm-tdep.c (arm_gdbarch_init): Update.
5132 * avr-tdep.c (avr_gdbarch_init): Update.
5133 * cris-tdep.c (cris_gdbarch_init): Update.
5134 * d10v-tdep.c (d10v_gdbarch_init): Update.
5135 * ia64-tdep.c (ia64_gdbarch_init): Update.
5136 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5137 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5138 * s390-tdep.c (s390_gdbarch_init): Update.
5139 * sh-tdep.c (sh_gdbarch_init): Update.
5140 * s390-tdep.c (s390_gdbarch_init): Update.
5141 * sparc-tdep.c (sparc_gdbarch_init): Update.
5142 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5143 * v850-tdep.c (v850_gdbarch_init): Update.
5144 * vax-tdep.c (vax_gdbarch_init): Update.
5145 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5146 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5147
5148 * config/arc/tm-arc.h: Update.
5149 * config/d30v/tm-d30v.h: Update.
5150 * config/fr30/tm-fr30.h: Update.
5151 * config/h8300/tm-h8300.h: Update.
5152 * config/h8500/tm-h8500.h: Update.
5153 * config/i386/tm-i386.h: Update.
5154 * config/i386/tm-ptx.h: Update.
5155 * config/i386/tm-symmetry.h: Update.
5156 * config/i960/tm-i960.h: Update.
5157 * config/m32r/tm-m32r.h: Update.
5158 * config/m68k/tm-delta68.h: Update.
5159 * config/m68k/tm-linux.h: Update.
5160 * config/m68k/tm-m68k.h: Update.
5161 * config/m88k/tm-m88k.h: Update.
5162 * config/mcore/tm-mcore.h: Update.
5163 * config/mips/tm-mips.h: Update.
5164 * config/mn10200/tm-mn10200.h: Update.
5165 * config/pa/tm-hppa.h: Update.
5166 * config/pa/tm-hppa64.h: Update.
5167 * config/sparc/tm-sp64.h: Update.
5168 * config/sparc/tm-sparc.h: Update.
5169 * config/sparc/tm-sparclet.h: Update.
5170 * config/z8k/tm-z8k.h: Update.
5171
5172 2002-06-14 Andrew Cagney <cagney@redhat.com>
5173
5174 * Makefile.in (i386_linux_tdep_h): Define.
5175 (i386_tdep_h, i387_tdep_h): Define.
5176 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5177 $(i386_tdep_h) and $(i387_tdep_h).
5178 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5179
5180 2002-06-14 Mark Kettenis <kettenis@gnu.org>
5181
5182 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5183 Already covered by the default.
5184
5185 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5186 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5187 (i386_gdbarch_init): Initialize long_double_format and long_double
5188 bit.
5189
5190 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5191 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5192 Move these to ...
5193 * config/i386/i386sol2.mh: ... here.
5194 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5195 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5196 (SIGCONTEXT_PC_OFFSET): Remove define.
5197 (IN_SIGTRAMP): Remove define.
5198 * i386-sol2-tdep.c: New file.
5199
5200 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5201 * config/i386/tm-i386nw.h: Removed.
5202
5203 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5204 USE_STRUCT_CONVENTION): Remove defines.
5205 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5206 (get_longjmp_target): Remove prototype.
5207 (IN_SIGTRAMP): Remove define.
5208 (i386bsd_in_sigtramp): Remove prototype.
5209 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5210 function. Update comment accordingly
5211 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5212 (FRAME_SAVED_PC): Remove define.
5213 (i386bsd_frame_saved_pc): Remove prototype.
5214 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5215 GET_LONGJMP_TARGET): Remove defines.
5216 (get_longjmp_target): Remove prototype.
5217 (IN_SIGTRAMP): Remove define.
5218 (i386bsd_in_sigtramp): Remove prototype.
5219 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5220 function. Update comment accordingly
5221 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5222 (FRAME_SAVED_PC): Remove define.
5223 (i386bsd_frame_saved_pc): Remove prototype.
5224 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5225 Remove prototype.
5226 (USE_STRUCT_CONVENTION): Remove prototype.
5227 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5228 declaration.
5229 (_initialize_i386bsd_nat): Revise logic to determine some
5230 constants at compile time when compiling a native GDB. Warn if
5231 things don't match up with what we expect.
5232 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5233 Remove variables.
5234 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5235 to use date stored in `struct gdbarch_tdep'.
5236 (i386bsd_sigcontext_offset): Remove varaible.
5237 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5238 stored in `struct gdbarch_tdep'.
5239 (i386bsd_frame_saved_pc): Make static.
5240 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5241 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5242 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5243 i386fbsd4_sc_pc_offset): New variables.
5244 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5245 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5246 functions.
5247 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5248 functions.
5249 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5250 Modify the value of i386fbsd_sigtramp_start and
5251 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5252 i386fbsd_sigtramp_end.
5253 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5254 function.
5255
5256 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5257 define to i386-linux-tdep.h.
5258 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5259 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5260 defines.
5261 (i386_linux_register_name, i386_linux_register_byte,
5262 i386_linux_register_raw_size): Remove prototypes.
5263 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5264 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5265 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5266 TARGET_WRITE_PC): Remove defines.
5267 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5268 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5269 i386_linux_write_pc): Remove prototypes.
5270 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5271 (get_longjmp_target): Remove prototype.
5272 * i386-linux-tdep.h: New file.
5273 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5274 * i386-linux-tdep.c: Include "i386-tdep.h" and
5275 "i386-linux-tdep.h".
5276 (i386_linux_register_name, i386_linux_register_byte,
5277 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5278 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5279 Make static.
5280 (i386_linux_init_abi): New function.
5281 (_initialize_i386_linux_tdep): New function.
5282
5283 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5284 (i386_saved_pc_after_call): Remove prototype.
5285 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5286 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5287 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5288 (i386_register_name, i386_stab_reg_to_regnum,
5289 i386_dwarf_reg_to_regnum): Remove prototypes.
5290 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5291 SIZEOF_SSE_REGS): Remove defines.
5292 (REGISTER_BYTES): Remove define.
5293 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5294 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5295 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5296 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5297 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5298 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5299 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5300 (get_longjmp_target): Remove prototype.
5301 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5302 (sigtramp_saved_pc): Remove define.
5303 (i386v4_sigtramp_saved_pc): Remove prototype.
5304 * config/i386/tm-go32.h (FRAME_CHAIN,
5305 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5306 (i386go32_frame_saved_pc): Remove prototype.
5307 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5308 (get_longjmp_target): Remove prototype.
5309 * i386-tdep.h: Include "osabi.h".
5310 (enum i386_abi): Removed.
5311 (enum struct_return): New enum.
5312 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5313 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5314 sc_pc_offset members.
5315 (i386_gdbarch_register_os_abi): Remove prototype.
5316 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5317 I386_SSE_NUM_REGS): New defines.
5318 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5319 I386_SSE_SIZEOF_REGS): New defines.
5320 (i386_register_name, i386_register_byte, i386_register_raw_size):
5321 New prototypes.
5322 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5323 (i386bsd_sigtramp_saved_pc): New prototype.
5324 * i386-tdep.c: Don't include "elf-bfd.h".
5325 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5326 i386_frame_chain, i386_saved_pc_after_call): Make static.
5327 (i386_frame_saved_pc): Rewrite to call architecture dependent
5328 function to deal with signal handlers. Make static.
5329 (i386go32_frame_saved_pc): Removed.
5330 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5331 Removed.
5332 (i386_get_longjmp_target): New function.
5333 (default_struct_convention, pcc_struct_convention,
5334 reg_struct_convention, valid_conventions, struct_convention): New
5335 variables.
5336 (i386_use_struct_convention): New function.
5337 (i386v4_sigtramp_saved_pc): Renamed to
5338 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5339 (i386_pc_in_sigtramp): New function.
5340 (i386_abi_names): Removed.
5341 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5342 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5343 Removed.
5344 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5345 i386_gdbarch_register_os_abi): Removed.
5346 (struct i386_abi_handler): Removed.
5347 (i386_abi_handler_list): Removed.
5348 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5349 functions.
5350 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5351 i386_nw_init_abi): New functions.
5352 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5353 Use set_gdbarch_xxx() calls instead of relying on macros for a
5354 number of calls.
5355 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5356 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5357 Register the various architecture variants defined in this file.
5358
5359 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
5360
5361 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5362 (struct main_type): Remove arg_types member. Update comments for
5363 struct field.
5364 (TYPE_ARG_TYPES): Remove.
5365 (TYPE_FN_FIELD_ARGS): Update.
5366 (smash_to_method_type): Update prototype.
5367
5368 * c-typeprint.c (cp_type_print_method_args): Take method type
5369 instead of argument list. Use new argument layout. Simplify.
5370 (c_type_print_args): Use new argument layout. Simplify.
5371 (c_type_print_base): Update call to cp_type_print_method_args.
5372 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5373 argument; use die->type instead. Update call to
5374 smash_to_method_type.
5375 (read_structure_scope): Update call to dwarf2_add_member_fn.
5376 * gdbtypes.c (allocate_stub_method): Update comment.
5377 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5378 Use new argument layout.
5379 (check_stub_method): Use new argument layout. Don't count
5380 void as an argument.
5381 (print_arg_types): Update comments. Use new argument layout.
5382 (recursive_dump_type): Don't print arg_types member.
5383 * hpread.c (hpread_read_struct_type): Use new argument layout.
5384 (fixup_class_method_type): Likewise.
5385 (hpread_type_lookup): Likewise.
5386 * stabsread.c (read_type): Update calls to read_args and
5387 smash_to_method_type.
5388 (read_args): Use new argument layout. Simplify.
5389 * valops.c (typecmp): Use new argument layout. Update parameters
5390 and comments. Simplify.
5391 (hand_function_call): Use new argument layout.
5392 (search_struct_method): Update call to typecmp.
5393 (find_overload_match): Use new argument layout.
5394
5395 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5396
5397 * NEWS: Mention multithreaded debug support for gdbserver.
5398
5399 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5400
5401 * MAINTAINERS: Mention NEWS.
5402
5403 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5404
5405 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5406 (struct mips_objfile_private, compare_pdr_entries): New.
5407 (non_heuristic_proc_desc): Read the ".pdr" section if it
5408 is present.
5409
5410 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5411
5412 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5413 (arm_debug): New static variable.
5414 (_initialize_arm_tdep): Add ``set debug arm'' command.
5415
5416 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5417
5418 * Makefile.in (sim_arm_h): Define.
5419 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5420 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5421 (arm_register_sim_regno): New function, map an internal REGNUM
5422 onto a simulator register number.
5423 (arm_gdbarch_init): Set register_sim_regno.
5424
5425 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
5426
5427 * MAINTAINERS: Add self.
5428
5429 2002-06-11 Jim Blandy <jimb@redhat.com>
5430
5431 * source.c (source_info): Mention whether the symtab has
5432 information about preprocessor macros.
5433
5434 Call the command `info macro', not `show macro'.
5435 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5436 Fix error message.
5437 (_initialize_macrocmd): Register `info_macro_command' in
5438 `infolist', not `showlist'.
5439
5440 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
5441
5442 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5443 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5444 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5445 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5446 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5447 unconditionally.
5448 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5449 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5450 (_initialize_mips_tdep): Remove dead code.
5451 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5452 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5453 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5454 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5455 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5456 MIPS_LAST_FP_ARG_REGNUM): Remove.
5457
5458 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5459
5460 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5461 (unwind_tmp_obstack_free, parse_frame_info)
5462 (update_context, cfi_read_fp, cfi_write_fp)
5463 (cfi_frame_chain, cfi_init_extra_frame_info)
5464 (cfi_virtual_frame_pointer): Use the above function.
5465 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5466
5467 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
5468
5469 * v850-tdep.c (v850_type_is_scalar): New function.
5470 (v850_use_struct_convention): Match current gcc implementation
5471 as close as possible.
5472 (v850_push_arguments): Fix stack_offset handling. Don't write
5473 struct_addr into register. This is done by v850_store_struct_return.
5474 (v850_extract_return_value): Care for structs.
5475 (v850_store_return_value): Ditto.
5476 (v850_store_struct_return): Actually write address.
5477
5478 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5479
5480 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5481 without debug information too.
5482
5483 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5484
5485 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5486 Make multi-arch pure.
5487 * gdbarch.h, gdbarch.c: Re-generate.
5488 * arm-tdep.c (arm_print_float_info): Update.
5489 * arch-utils.h (default_print_float_info): Update.
5490 * arch-utils.c (default_print_float_info): Update.
5491 * infcmd.c (float_info): Update call.
5492
5493 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5494
5495 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5496 the front of the initialize list.
5497
5498 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5499
5500 * infrun.c (struct inferior_status): Replace fields
5501 selected_frame_address and selected_level with field
5502 selected_frame_id.
5503 (save_inferior_status): Update. Use get_frame_id.
5504 (struct restore_selected_frame_args): Delete.
5505 (restore_selected_frame): Update. Use frame_find_by_id.
5506 (restore_inferior_status): Update.
5507
5508 * breakpoint.h (struct breakpoint): Change type of
5509 watchpoint_frame to frame_id.
5510 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5511 call to get_current_frame.
5512 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5513 get_current_frame.
5514 (watchpoint_check): Use frame_find_by_id.
5515
5516 * frame.h (record_selected_frame): Delete declaration.
5517 * stack.c (record_selected_frame): Delete function.
5518
5519 * frame.h (struct frame_id): Define.
5520 (get_frame_id): Declare.
5521 (frame_find_by_id): Declare.
5522 * frame.c (frame_find_by_id): New function.
5523 (get_frame_id): New function.
5524
5525 2002-06-10 Andrey Volkov <avolkov@transas.com>
5526
5527 * ser-e7kpc.c: Fix duplicated define and call of
5528 _initialize_ser_e7000pc
5529
5530 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5531
5532 * signals/signals.c (target_signal_from_host): Fix #ifdef
5533 SIGRTMIN case.
5534 (do_target_signal_to_host): Likewise.
5535
5536 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5537
5538 * mips-tdep.c (mips_find_abi_section): New function.
5539 (mips_gdbarch_init): Call it.
5540
5541 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5542
5543 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5544 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5545 after Andrew's 2002-06-08 gdbarch change.
5546
5547 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5548
5549 * i386-linux-nat.c (suppy_gregset): Don't supply
5550 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5551 register cache.
5552 (fill_gregset): Don't fetch it under the same circumstances.
5553
5554 2002-06-09 Andrew Cagney <cagney@redhat.com>
5555
5556 * Makefile.in (callback_h): Define.
5557 (remote_sim_h): Update path to remote-sim.h.
5558 (remote-rdp.o): Add $(callback_h).
5559 (remote-sim.o): Use $(callback_h).
5560 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5561 * remote-rdp.c: Include "gdb/callback.h".
5562
5563 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5564
5565 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5566 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5567
5568 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5569
5570 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5571 * rdi-share/serpardr.c: Ditto.
5572 * rdi-share/unixcomm.c: Ditto.
5573 * rdi-share/serdrv.c: Ditto.
5574 * rdi-share/hostchan.h: Ditto.
5575 * rdi-share/hostchan.c: Ditto.
5576 * rdi-share/host.h: Ditto.
5577 * rdi-share/devsw.c: Ditto.
5578
5579 * objfiles.h: Change type of obj_private to void pointer.
5580 * pa64solib.c: Update copyright. Don't include "assert.h", use
5581 strcmp instead of STREQ, use LONGEST, do not use PTR
5582 * somsolib.c: Ditto.
5583
5584 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5585 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5586 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5587
5588 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5589
5590 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5591 (default_get_saved_register): Delete function.
5592 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5593 generic_unwind_get_saved_register.
5594 * gdbarch.h, gdbarch.c: Re-generate.
5595
5596 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5597
5598 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5599 generic_func_frame_chain_valid.
5600 * gdbarch.h, gdbarch.c: Re-generate.
5601 * blockframe.c (generic_func_frame_chain_valid): Only check
5602 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5603 passing FP to PC_IN_CALL_DUMMY.
5604 Fix PR gdb/360.
5605
5606 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5607
5608 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5609 (register_gdbarch_data): Initialize init_p.
5610 (gdbarch_data): Initialize data pointer using the init function.
5611 (init_gdbarch_data): Delete function.
5612 (gdbarch_update_p): Update.
5613 (initialize_non_multiarch): Update.
5614 (struct gdbarch): Add field initialized_p.
5615 * gdbarch.h, gdbarch.c: Re-generate.
5616
5617 2002-06-07 Michal Ludvig <mludvig@suse.cz>
5618
5619 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5620 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5621 better do the things actually here.
5622 * x86-64-tdep.c (x86_64_register_name2nr): New.
5623 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5624 (x86_64_gdbarch_init): Respect the above change.
5625 * x86-64-tdep.h (x86_64_register_name2nr)
5626 (x86_64_register_nr2name): Add prototypes.
5627 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5628
5629 2002-06-06 Michael Snyder <msnyder@redhat.com>
5630
5631 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5632 Delete extra braces and re-indent.
5633 (d10v_store_return_value): Char return values
5634 must be shifted over by one byte in R0.
5635 (d10v_extract_return_value): Delete extra braces, re-indent.
5636
5637 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5638
5639 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5640 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5641 (d10v_integer_to_address): Rewrite.
5642 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5643 the d10v specific functions which take care of converting to the
5644 correct space.
5645
5646 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5647
5648 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5649 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5650
5651 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5652
5653 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5654 includes.
5655 * config/tm-linux.h: Ditto.
5656 * config/alpha/tm-alphalinux.h: Ditto.
5657 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5658 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5659 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5660 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5661 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5662 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5663 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5664 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5665 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5666 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5667 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5668 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5669 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5670 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5671 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5672 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5673 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5674 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5675 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5676 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5677 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5678 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5679 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5680 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5681 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5682 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5683 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5684 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5685 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5686 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5687 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5688 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5689 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5690 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5691 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5692 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5693 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5694
5695 2002-05-04 Aidan Skinner <aidan@velvet.net>
5696
5697 * ada-exp.tab.c: New file
5698 * ada-exp.y: New file
5699 * ada-lang.c: New file
5700 * ada-lang.h: New file
5701 * ada-lex.c: New file
5702 * ada-lex.l: New file
5703 * ada-tasks.c: New file
5704 * ada-typeprint.c: New file
5705 * ada-valprint.c: New file
5706
5707 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5708
5709 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5710 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5711
5712 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5713
5714 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5715 insetead of ppc-linux-tdep.o.
5716 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5717 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5718
5719 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5720
5721 2002-05-07 Christian Groessler <chris@groessler.org>
5722 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5723 bit register contents for little endian hosts.
5724
5725 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5726
5727 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5728 any maintainer.
5729
5730 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5731
5732 * gdbarch.h: Regenerate.
5733
5734 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5735
5736 * MAINTAINERS: Add everyone to write-after-approval list.
5737
5738 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5739
5740 * stack.c (frame_info): Use frame_register_unwind instead of
5741 saved_regs. Mention when the SP is on the stack or in a register.
5742
5743 * frame.h (frame_register_unwind_ftype): Define. Document.
5744 (struct frame_info): Add field register_unwind and
5745 register_unwind_cache.
5746 (frame_register_unwind): Declare.
5747 (generic_unwind_get_saved_register): Declare.
5748
5749 * frame.c (frame_register_unwind): New function.
5750 (generic_unwind_get_saved_register): New function.
5751
5752 * blockframe.c (generic_call_dummy_register_unwind): New function.
5753 (frame_saved_regs_register_unwind): New function.
5754 (set_unwind_by_pc): New function.
5755 (create_new_frame): New function.
5756 (get_prev_frame): New function.
5757
5758 2002-05-30 Andrew Cagney <ac131313@redhat.com>
5759
5760 * a29k-share/: Delete directory.
5761 * remote-vx29k.c: Delete file.
5762
5763 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5764
5765 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5766 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5767
5768 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5769
5770 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5771 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5772 (sparc64nbsd-nat.o)
5773 (sparcnbsd-nat.o)
5774 (sparcnbsd-tdep.o): New dependency lists.
5775 * NEWS: Note new UltraSPARC NetBSD native configuration.
5776 * configure.host (sparc64-*-netbsd*): New host.
5777 * configure.tgt (sparc-*-netbsdelf*)
5778 (sparc-*-netbsd*): Set gdb_target to nbsd.
5779 (sparc64-*-netbsd*): New target.
5780 * sparc64nbsd-nat.c: New file.
5781 * sparcnbsd-nat.c: New file.
5782 * sparcnbsd-tdep.c: New file.
5783 * sparcnbsd-tdep.h: New file.
5784 * config/sparc/nbsd.mt: New file.
5785 * config/sparc/nbsd64.mh: New file.
5786 * config/sparc/nbsd64.mt: New file.
5787 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5788 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5789 (HOST_IPC): Remove.
5790 * config/sparc/nbsdaout.mt: Remove.
5791 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5792 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5793 (HOST_IPC): Remove.
5794 * config/sparc/nbsdelf.mt: Remove.
5795 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5796 sparc-nat.c compatiblity defines.
5797 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5798 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5799 * config/sparc/tm-nbsd64.h: New file.
5800 * config/sparc/tm-nbsdaout.h: Remove.
5801 * config/sparc/xm-nbsd.h: Remove.
5802
5803 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5804
5805 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5806 * sparc-tdep.c: Include osabi.h.
5807 (gdbarch_tdep): Add osabi member.
5808 (_initialize_sparc_tdep): Use gdbarch_register.
5809 (sparc_gdbarch_init): Use generic OS ABI framework.
5810 (sparc_dump_tdep): New function.
5811
5812 2002-05-30 Kevin Buettner <kevinb@redhat.com>
5813
5814 * corefile.c (do_captured_read_memory_integer): Return non-zero
5815 result.
5816 (safe_read_memory_integer): Copy result of memory read when
5817 status is non-zero. Also, add comments.
5818
5819 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5820
5821 * Makefile.in (ppc_tdep_h): Define.
5822 (ppc-linux-nat.o)
5823 (ppc-linux-tdep.o)
5824 (rs6000-tdep.o): Use $(ppc_tdep_h).
5825 (ppc-sysv-tdep.o)
5826 (ppcnbsd-nat.o)
5827 (ppcnbsd-tdep.o): New dependency lists.
5828 * ppc-tdep.h: Use generic OS ABI framework.
5829 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5830 (ppc_linux_init_abi): New functions.
5831 (ppc_sysv_abi_broken_use_struct_convention)
5832 (ppc_sysv_abi_use_struct_convention)
5833 (ppc_sysv_abi_push_arguments): Move to...
5834 * ppc-sysv-tdep.c: ...here.
5835 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5836 * rs6000-tdep.c (process_note_abi_tag_sections)
5837 (get_elfosabi): Remove.
5838 (rs6000_gdbarch_init): Use generic OS ABI framework.
5839 (rs6000_dump_tdep): New function.
5840 (_initialize_rs6000_tdep): Use gdbarch_register.
5841 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5842 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5843 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5844 of ppc-linux-tdep.o.
5845 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5846 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5847 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5848 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5849 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5850 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5851
5852 2002-05-29 Jim Blandy <jimb@redhat.com>
5853
5854 * macroscope.c (default_macro_scope): Put `void' in empty argument
5855 list.
5856
5857 2002-05-29 Andrew Cagney <ac131313@redhat.com>
5858
5859 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5860 * arch-utils.c: Include "sim-regno.h".
5861 * gdbarch.sh: Don't include "sim-regno.h".
5862 * gdbarch.h, gdbarch.c: Regenerate.
5863 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5864 here.
5865 * arch-utils.h (legacy_register_sim_regno): To here.
5866 * remote-sim.c (legacy_register_sim_regno): Move function from
5867 here.
5868 * arch-utils.c (legacy_register_sim_regno): To here.
5869
5870 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5871
5872 * sim-regno.h: New file.
5873 * Makefile.in (sim_regno_h): Define.
5874 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5875 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5876 (legacy_register_sim_regno): New function.
5877 (one2one_register_sim_regno): New function.
5878 (gdbsim_fetch_register): Rewrite.
5879 (gdbsim_store_register): Only store a register when
5880 REGISTER_SIM_REGNO is valid.
5881 * d10v-tdep.c: Include "sim-regno.h".
5882 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5883 (d10v_ts3_register_sim_regno): Ditto.
5884 * gdbarch.sh: Include "sim-regno.h".
5885 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5886 * gdbarch.h, gdbarch.c: Regenerate.
5887 * arch-utils.h (default_register_sim_regno): Delete declaration.
5888 * arch-utils.c (default_register_sim_regno): Delete function.
5889
5890 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5891
5892 * ppcnbsd-nat.c: Rewrite.
5893 * ppcnbsd-tdep.c: New file.
5894 * ppcnbsd-tdep.h: New file.
5895 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5896 solib.o, and solib-svr4.o.
5897 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5898 nbsd-tdep.o, and corelow.o.
5899
5900 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5901
5902 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5903 `tr' and `sed'. Mention that `broken' targets are not expected to
5904 build.
5905
5906 2002-05-27 Michal Ludvig <mludvig@suse.cz>
5907
5908 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5909 Let PC point right after the prologue before looking up symbols.
5910
5911 2002-05-27 Martin M. Hunt <hunt@redhat.com>
5912
5913 * i386-tdep.c (i386_register_virtual_type): Return
5914 builtin_type_vec128i for SSE registers.
5915
5916 * gdbtypes.h (builtin_type_vec128i): Declare.
5917
5918 * gdbtypes.c (build_builtin_type_vec128i): New function.
5919 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5920 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5921 (build_gdbtypes): Initialize new builtin vector types.
5922 (_initialize_gdbtypes): Register new vector types with gdbarch.
5923
5924 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5925
5926 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5927 since it has been multi-arch'd.
5928 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5929 Move Alpha and VAX multi-arch news entries to same section
5930 as other multi-arch news.
5931
5932 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5933
5934 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5935 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5936 static. Rename some register numbers to put them in ns32k-tdep
5937 private namespace.
5938 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5939 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5940 functions.
5941 (_initialize_ns32k_tdep): Use gdbarch_register.
5942 * ns32k-tdep.h: New file.
5943 * ns32knbsd-tdep.c: New file.
5944 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5945 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5946 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5947 REGISTER_BYTES, REGISTER_BYTE): Remove.
5948 * config/ns32k/tm-ns32k.h: New file.
5949 * config/ns32k/tm-umax.h: Remove.
5950
5951 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5952
5953 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5954 ns32k_store_struct_return, ns32k_extract_return_value,
5955 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5956 functions.
5957 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5958 ns32k_saved_pc_after_call.
5959 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5960 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5961 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5962 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5963 ns32k_extract_struct_value_address.
5964
5965 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5966
5967 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5968 ns32k_fix_call_dummy): New.
5969 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5970 ns32k_call_dummy_words.
5971 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5972 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5973 CALL_DUMMY_NARGS): Remove.
5974 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5975
5976 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5977
5978 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5979 ns32k_frame_saved_pc, ns32k_frame_args_address,
5980 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5981 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5982 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5983 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5984 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5985 (BREAKPOINT): Remove..
5986 (FRAME_CHAIN): Define as ns32k_frame_chain.
5987 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5988 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5989 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5990 (FRAME_FIND_SAVED_REGS): Remove.
5991 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5992 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5993 (POP_FRAME): Define as ns32k_pop_frame.
5994
5995 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5996
5997 * ns32k-tdep.c (ns32k_register_byte_32082,
5998 ns32k_register_byte_32382, ns32k_register_raw_size,
5999 ns32k_register_virtual_size, ns32k_register_virtual_type): New
6000 functions.
6001 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
6002 ns32k_register_byte_32382.
6003 * config/ns32k/tm-umax.h: Update copyright years.
6004 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
6005 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
6006 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
6007 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
6008 (ns32k_get_enter_addr): Fix prototype.
6009
6010 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6011
6012 * ns32k-tdep.c: Update copyright years.
6013 (ns32k_register_name_32082): New function.
6014 (ns32k_register_name_32382): Ditto.
6015 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
6016 (REGISTER_NAME): Define as ns32k_register_name_32382.
6017 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
6018 (REGISTER_NAME): Define as ns32k_register_name_32082.
6019
6020 2002-05-24 Jim Blandy <jimb@redhat.com>
6021
6022 * dwarf2read.c (free_line_header): Use xfree, not free.
6023
6024 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
6025
6026 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
6027 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
6028
6029 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6030
6031 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
6032
6033 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6034
6035 From Ross Alexander at NEC Europe:
6036 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
6037
6038 2002-05-23 Michael Snyder <msnyder@redhat.com>
6039
6040 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
6041 for input, rather than parse_and_eval_address.
6042
6043 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6044
6045 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
6046 * Makefile.in (sim_d10v_h): Update definition.
6047
6048 2002-05-24 Andrew Cagney <cagney@redhat.com>
6049
6050 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
6051 change `2002-05-22 Michael Snyder' below.
6052 (d10v_push_arguments): Ditto.
6053 (d10v_extract_return_value): Ditto.
6054
6055 2002-05-23 Jim Blandy <jimb@redhat.com>
6056
6057 * macrotab.c (check_for_redefinition): Don't complain if the new
6058 definition is the same as the previous one. Take more arguments
6059 to allow the comparison.
6060 (macro_define_object, macro_define_function): Pass more arguments
6061 to check_for_redefinition.
6062
6063 2002-05-22 Michael Snyder <msnyder@redhat.com>
6064
6065 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
6066 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
6067 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
6068 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
6069 Don't bail if return_pc is PC_IN_CALL_DUMMY.
6070 Add a temp variable to save a call (and a memory read).
6071 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
6072 if possible (so that PC_IN_CALL_DUMMY will work).
6073
6074 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
6075
6076 * MAINTAINERS: Remove status `OBSOLETE' from v850.
6077
6078 2002-05-22 Michal Ludvig <mludvig@suse.cz>
6079
6080 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6081 fde->cie_ptr.
6082 (dwarf2_build_frame_info): Corrected handling of eh_frame.
6083 (dwarf2_build_frame_info): Add offset to fde->initial_location
6084 so that frames of shared libraries are mapped correctly.
6085 (execute_stack_op): Change type of 'result' from ULONGEST to
6086 CORE_ADDR.
6087
6088 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6089
6090 * config/alpha/tm-nbsd.h: Include solib.h.
6091
6092 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6093
6094 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6095 assumptions about the host's byte order.
6096
6097 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6098
6099 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6100 to dependency list.
6101 * alphanbsd-tdep.c: Include solib-svr4.h.
6102 * shnbsd-tdep.c: Ditto.
6103
6104 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6105
6106 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6107 nbsd-tdep.h to dependency list.
6108 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6109 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6110 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6111 nbsdaout.mh and nbsdelf.mh consistently.
6112 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6113 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6114 nbsdaout.mt and nbsdelf.mh consistently.
6115 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6116 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6117 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6118 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6119 a.out shared library stuff from here...
6120 * config/nm-nbsdaout.h: ...to here.
6121 * config/tm-nbsd.h: Remove.
6122 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6123 * config/arm/nbsd.mh: Remove.
6124 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6125 nbsd-tdep.o.
6126 * config/arm/nbsdaout.mh: New file.
6127 * config/arm/nbsdelf.mh: New file.
6128 * config/arm/nm-nbsdaout.h: New file.
6129 * config/i386/nbsd.mh: Remove.
6130 * config/i386/nbsd.mt: Remove.
6131 * config/i386/nbsdaout.mh: New file.
6132 * config/i386/nbsdaout.mt: New file.
6133 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6134 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6135 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6136 i386_register_u_addr): Remove.
6137 * config/i386/nm-nbsdaout.h: New file.
6138 * config/i386/nm-nbsdelf.h: Remove.
6139 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6140 (USE_STRUCT_CONVENTION): Remove.
6141 * config/i386/tm-nbsdaout.h: New file.
6142 * config/i386/tm-nbsdelf.h: Remove.
6143 * config/m68k/nbsd.mh: Remove.
6144 * config/m68k/nbsd.mt: Remove.
6145 * config/m68k/nbsdaout.mh: New file.
6146 * config/m68k/nbsdaout.mt: New file.
6147 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6148 * config/m68k/nm-nbsdaout.h: New file.
6149 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6150 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6151 * config/ns32k/nbsd.mh: Remove.
6152 * config/ns32k/nbsd.mt: Remove.
6153 * config/ns32k/nbsdaout.mh: New file.
6154 * config/ns32k/nbsdaout.mt: New file.
6155 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6156 * config/ns32k/nm-nbsdaout.h: New file.
6157 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6158 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6159 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6160 (SVR4_SHARED_LIBS): Remove.
6161 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6162 * config/sparc/nbsd.mh: Remove.
6163 * config/sparc/nbsd.mt: Remove.
6164 * config/sparc/nbsdaout.mh: New file.
6165 * config/sparc/nbsdaout.mt: New file.
6166 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6167 * config/sparc/nbsdelf.mt: New file.
6168 * config/sparc/nm-nbsdaout.h: New file.
6169 * config/sparc/nm-nbsdelf.h: Remove.
6170 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6171 * config/sparc/tm-nbsdaout.h: New file.
6172
6173 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6174
6175 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6176 mipsnbsd-tdep.c
6177 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6178
6179 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6180
6181 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6182 shnbsd-nat.c.
6183 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6184
6185 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6186
6187 * NEWS: Note new MIPS NetBSD native configuration.
6188 * configure.host (mips*-*-netbsd*): New host.
6189 * configure.tgt (mips*-*-netbsd*): New target.
6190 * mipsnbsd-nat.c: New file.
6191 * mipsnbsd-tdep.c: New file.
6192 * mipsnbsd-tdep.h: New file.
6193 * config/mips/nbsd.mh: New file.
6194 * config/mips/nbsd.mt: New file.
6195 * config/mips/nm-nbsd.h: New file.
6196 * config/mips/tm-nbsd.h: New file.
6197
6198 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6199
6200 * Makefile.in (SFILES): Add osabi.c.
6201 (COMMON_OBS): Add osabi.o.
6202 (osabi.o): New dependency list.
6203 * osabi.c: New file.
6204 * osabi.h: New file.
6205 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6206
6207 * Makefile.in (alpha_tdep_h): Define and use instead of
6208 alpha-tdep.h.
6209 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6210 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6211 Remove.
6212 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6213 * alpha-tdep.h: Include osabi.h.
6214 (alpha_abi): Remove.
6215 (gdbarch_tdep): Use generic OS ABI framework.
6216 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6217 gdbarch_register_osabi.
6218 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6219 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6220 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6221
6222 * Makefile.in (sh_tdep_h): Add osabi.h.
6223 * sh-tdep.h (sh_osabi): Remove.
6224 (gdbarch_tdep): Use generic OS ABI framework.
6225 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6226 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6227 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6228 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6229
6230 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6231 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6232 gdbarch_register_osabi.
6233 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6234 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6235 (get_elfosabi): Rename to...
6236 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6237 ABI framework support routines.
6238 (arm_gdbarch_init): Use generic OS ABI framework.
6239 (arm_dump_tdep): Likewise.
6240 (_initialize_arm_tdep): Likewise.
6241 * arm-tdep.h: Include osabi.h.
6242 (arm_abi): Remove.
6243 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6244 osabi member.
6245 (arm_gdbarch_register_os_abi): Remove prototype.
6246 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6247 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6248
6249 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6250 * mips-tdep.c: Include osabi.h.
6251 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6252 OS ABI framework.
6253
6254 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6255
6256 * h8300-tdep.c: Fix formatting.
6257
6258 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
6259
6260 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6261 printing vector registers.
6262
6263 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6264
6265 From Fernando Nasser:
6266 * remote.c (remote_async_open_1): Re-throw the exception when the
6267 connection fails.
6268 (remote_cisco_open): Ditto.
6269 (remote_open_1): Ditto.
6270
6271 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6272
6273 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6274 (remote_start_remote): Add uiout parameter. Pass through to
6275 remote_start_remote_dummy.
6276 (remote_open_1): Use catch_exception instead of catch_errors.
6277 (remote_async_open_1): Ditto.
6278 (remote_cisco_open): Ditto.
6279
6280 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6281
6282 * remote.c (remote_start_remote): Replace PTR with void pointer.
6283 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6284 static.
6285
6286 2002-05-18 Andrew Cagney <ac131313@redhat.com>
6287
6288 * gdb_indent.sh: Allow the script to be run in the sim directory.
6289
6290 2002-05-18 Mark Kettenis <kettenis@gnu.org>
6291
6292 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6293 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6294
6295 * corelow.c (core_open): Only call set_gdbarch_from_file if
6296 exec_bfd is NULL.
6297
6298 2002-05-17 Andrey Volkov <avolkov@transas.com>
6299
6300 * h8300-tdep.c: Add support of EXR register
6301 * config/h8300/tm-h8300.h: Ditto.
6302
6303 2002-05-17 Andrey Volkov <avolkov@transas.com>
6304
6305 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6306
6307 2002-05-17 Andrey Volkov <avolkov@transas.com>
6308
6309 * h8300-tdep.c: Change literal regnums to REGNO.
6310
6311 2002-05-17 Jim Blandy <jimb@redhat.com>
6312
6313 * NEWS: Note addition of macro support.
6314
6315 Expand preprocessor macros in C expressions.
6316 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6317 (scan_macro_expansion, scanning_macro_expansion,
6318 finished_macro_expansion): New function declarations.
6319 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6320 variable declarations.
6321 * parser-defs.h (expression_context_pc): New declaration.
6322 * parse.c (expression_context_pc): New variable.
6323 (parse_exp_1): Set expression_context_pc, as well as
6324 expression_context_block.
6325 * c-exp.y (yylex): If we're not already reading the result of a
6326 macro expansion, try to macro-expand the next token. When we're
6327 done scanning a macro expansion, switch back to the mainline text.
6328 Commas and `if's in a macro's expansion don't terminate the input.
6329 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6330 (macro_original_text, macro_expanded_text,
6331 expression_macro_lookup_func, expression_macro_lookup_baton): New
6332 variables.
6333 (scan_macro_expansion, scanning_macro_expansion,
6334 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6335 c_preprocess_and_parse): New functions.
6336 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6337 c_preprocess_and_parse, instead of c_parse.
6338 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6339 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6340
6341 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6342
6343 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6344 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6345 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6346
6347 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
6348
6349 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6350
6351 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6352
6353 * Makefile.in (sh_tdep_h): Define and use.
6354 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6355 register enum): Move to...
6356 * * sh-tdep.h: ...here.
6357 * sh-tdep.c: Include sh-tdep.h.
6358 * sh3-rom.c: Likewise.
6359 * shnbsd-tdep.c: Likewise.
6360
6361 2002-05-16 Michael Snyder <msnyder@redhat.com>
6362
6363 * arm-tdep.c: Spelling fix in comment.
6364
6365 2002-05-16 Jim Blandy <jimb@redhat.com>
6366
6367 Add commands for manually expanding macros and showing their
6368 definitions.
6369 * macrocmd.c, macroscope.c, macroscope.h: New files.
6370 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6371 (macroscope_h): New variable.
6372 (HFILES_NO_SRCDIR): Add macroscope.h.
6373 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6374 (macroscope.o, macrocmd.o): New rules.
6375
6376 Teach the Dwarf 2 reader to read macro information.
6377 * dwarf2read.c: #include "macrotab.h".
6378 (dwarf_macinfo_buffer): New variable.
6379 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6380 dwarf_macinfo_size.
6381 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6382 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6383 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6384 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6385 dwarf2_macro_spaces_in_definition): New complaints.
6386 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6387 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6388 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6389 the partial symbol table.
6390 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6391 from what's recorded in the partial symbol table.
6392 (read_file_scope): If the compilation unit has a
6393 `DW_AT_macro_info' attribute, read its macro information.
6394 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6395
6396 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6397
6398 Fix PR gdb/546
6399 * ser-tcp.c: Don't include <netinet/udp.h>.
6400
6401 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6402
6403 * MAINTAINERS: Update my email address.
6404
6405 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
6406
6407 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6408 include file of the same name.
6409
6410 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6411
6412 * configure.tgt: Mark v850 as multi-arched.
6413 * config/v850/tm-v850.h: Remove file.
6414 * config/v850/v850.mt: Eliminate TM_FILE.
6415
6416 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6417
6418 * v850-tdep.c: Full multi-arch.
6419 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6420 Define GDB_MULTI_ARCH to 2.
6421
6422 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6423
6424 * p-exp.y (current_type): New static variable.
6425 Carries the type of the expression at the position that is parsed.
6426 (push_current_type, pop_current_type): Two new functions. Used
6427 to store/restore current_type in expression on specific tokens.
6428 (search_field): New static variable. Set to one after parsing a point
6429 as at that point only a FIELDNAME token should be searched.
6430 (FIELDNAME): New token. After a point only a token belonging to
6431 current_type type definition is allowed.
6432 (all over token rules): reset and change current_type according
6433 to rules.
6434 (exp '[' rule): insert implicit array index field if
6435 exp is a pascal string type.
6436
6437 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6438
6439 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6440 frame info. Use frame_info's saved_regs instead of matching member
6441 in extra_frame_info throughout.
6442 (v850_frame_init_saved_regs): New function.
6443 (v850_init_extra_frame_info): Move most functionality into
6444 v850_frame_init_saved_regs().
6445 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6446 (v850_frame_find_saved_regs): Remove declaration.
6447 (FRAME_FIND_SAVED_REGS): Remove definition.
6448 (v850_frame_init_saved_regs): Add declaration.
6449 (FRAME_INIT_SAVED_REGS): Add definition.
6450
6451 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6452
6453 * v850-tdep.c: Begin multi-arch'ing v850.
6454 (v850_target_architecture_hook): Remove function.
6455 (v850_gdbarch_init): New function. Add code previously in
6456 v850_target_architecture_hook().
6457 (_initialize_v850_tdep): Don't set target_architecture_hook.
6458 Call register_gdbarch_init() instead.
6459
6460 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6461
6462 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6463 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6464 (fixup_class_method_type): Likewise.
6465
6466 2002-05-15 Jim Blandy <jimb@redhat.com>
6467
6468 Add macro structures to GDB's symbol tables. Nobody puts anything
6469 in them yet.
6470 * symtab.h (struct symtab): New member: `macro_table'.
6471 * buildsym.h (pending_macros): New global variable.
6472 * buildsym.c: #include "macrotab.h".
6473 (buildsym_init): Initialize `pending_macros'.
6474 (end_symtab): If we found macro information while reading a CU's
6475 debugging info, do build a symtab structure for it. Make the
6476 symtab point to the macro information, and clear the
6477 `pending_macros' pointer which held it while we were reading the
6478 debug info.
6479 (really_free_pendings): Free any pending macro table.
6480 * objfiles.h (struct objfile): New member: `macro_cache'.
6481 * objfiles.c (allocate_objfile): Set allocate and free functions
6482 for the macro cache's objstack.
6483 (free_objfile): Empty the macro cache's obstack.
6484 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6485 set new allocate and free functions for it.
6486 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6487 free functions for the macro cache's objstack. (Why is this
6488 function building its own objfile?)
6489 * symmisc.c (print_objfile_statistics): Print statistics on the
6490 macro bcache.
6491 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6492
6493 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6494
6495 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6496 (REGISTER_U_ADDR): Delete definition.
6497 (arm_register_u_addr): Delete declaration.
6498
6499 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6500
6501 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6502 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6503
6504 2002-05-14 Andrew Cagney <ac131313@redhat.com>
6505
6506 * regcache.c (register_valid): Revise comments refering to "Not
6507 available" and "unavailable".
6508 * frame.c (frame_register_read): Ditto.
6509 * findvar.c (value_of_register): Ditto.
6510
6511 2002-05-15 Andrew Cagney <cagney@redhat.com>
6512
6513 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6514 (remote-sim.o): Update dependencies.
6515 (d10v-tdep.o): Specify dependencies.
6516 (sim_d10v_h): Define.
6517
6518 2002-05-14 Jim Blandy <jimb@redhat.com>
6519
6520 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6521 * macrotab.c (macro_lookup_inclusion, find_definition,
6522 new_macro_table): Same.
6523
6524 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6525 not `! strcmp ()'. This is a dubious improvement.
6526 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6527
6528 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6529 although it's not necessary, to avoid a warning.
6530
6531 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6532
6533 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6534 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6535 TYPE_INSTANCE_FLAGS.
6536 (struct main_type): New.
6537 (struct type): Move most members to struct main_type. Change
6538 cv_type and as_type to new type_chain member. Add instance_flags.
6539 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6540 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6541 (finish_cv_type): Remove prototype.
6542 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6543 Set TYPE_CHAIN.
6544 (alloc_type_instance): New function.
6545 (smash_type): New function.
6546 (make_pointer_type, make_reference_type, make_function_type)
6547 (smash_to_member_type, smash_to_method_type): Call smash_type.
6548 (make_qualified_type): New function.
6549 (make_type_with_address_space): Call make_qualified_type.
6550 (make_cv_type): Likewise.
6551 (finish_cv_type): Remove unnecessary function.
6552 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6553 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6554 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6555 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6556 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6557 * hpread.c (hpread_read_struct_type): Likewise.
6558 * stabsread.c (read_struct_type): Likewise.
6559
6560 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
6561
6562 * configure.tgt: Add a catch all sh* target, for cases like
6563 sh[2,3,4]-elf and sh-hms.
6564
6565 2002-05-14 Keith Seitz <keiths@redhat.com>
6566
6567 * event-loop.c (create_file_handler): Don't do anything but
6568 update data when we are given a fd which we are already
6569 monitoring.
6570
6571 2002-05-14 Michal Ludvig <mludvig@suse.cz>
6572
6573 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6574 (update_context): Use __func__ in warnings.
6575
6576 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6577
6578 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6579 and tcp_close to net_open and net_close.
6580 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6581 using UDP if requested. Don't try to disable Nagle on UDP
6582 sockets.
6583 * remote.c (remote_serial_open): New function. Warn about UDP.
6584 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6585
6586 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6587
6588 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6589
6590 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6591
6592 * configure.tgt: Remove sh-hms target.
6593 * MAINTAINERS: Don't list sh-hms as a separate target.
6594
6595 2002-05-13 Jim Blandy <jimb@redhat.com>
6596
6597 Add first preprocessor macro-expansion files.
6598 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6599 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6600 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6601 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6602 (COMMON_OBS): Add macrotab.o, macroexp.o.
6603 (macroexp.o, macrotab.o): New rules.
6604
6605 2002-05-13 Andrew Cagney <ac131313@redhat.com>
6606
6607 * config/m88k/tm-m88k.h: Update copyright.
6608 (m88k_target_write_pc): Declare
6609 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6610 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6611 (SHIFT_INST_REGS): Update definition.
6612 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6613 using old definition of TARGET_WRITE_PC.
6614 * regcache.c (generic_target_write_pc): Delete code handling
6615 NNPC_REGNUM.
6616 * gdbarch.sh (NNPC_REGNUM): Delete.
6617 * gdbarch.h, gdbarch.c: Regenerate.
6618
6619 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
6620
6621 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6622 builtin reg number.
6623
6624 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
6625
6626 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6627 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6628 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6629 access macros.
6630 * c-typeprint.c (cp_type_print_method_args): Likewise.
6631 (c_type_print_args): Likewise.
6632 * d10v-tdep.c (d10v_push_arguments): Likewise.
6633 (d10v_extract_return_value): Likewise.
6634 * expprint.c (print_subexp): Likewise.
6635 * gdbtypes.c (lookup_primitive_typename): Likewise.
6636 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6637 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6638 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6639 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6640 (TYPE_VECTOR): Likewise.
6641 * hpread.c (hpread_read_struct_type)
6642 (fix_static_member_physnames, fixup_class_method_type)
6643 (hpread_type_lookup): Likewise.
6644 * mdebugread.c (parse_symbol, parse_type): Likewise.
6645 * p-lang.c (is_pascal_string_type): Likewise.
6646 * valops.c (hand_function_call): Likewise.
6647 * x86-64-tdep.c (classify_argument): Likewise.
6648
6649 * hpread.c (hpread_read_function_type)
6650 (hpread_read_doc_function_type): Call replace_type.
6651 * dstread.c (create_new_type): Delete.
6652 (decode_dst_structure, process_dst_function): Call alloc_type.
6653 Use type access macros.
6654
6655 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6656
6657 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6658 the're not supported by the current architecture.
6659 (i387_fill_fxsave): Likewise.
6660
6661 2002-05-12 Fred Fish <fnf@redhat.com>
6662
6663 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6664 sect_index_xxx members to index the first slot in section_offsets
6665 if all of the section_offsets are zero.
6666
6667 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6668
6669 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6670 checked in with last change.
6671
6672 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6673
6674 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6675 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6676 config.sub.
6677
6678 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
6679
6680 * Makefile.in: Update dependencies.
6681
6682 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6683
6684 * language.c (local_hex_string_custom): Simplify. Do not depend
6685 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6686
6687 * memattr.c (mem_info_command): Replace calls to
6688 longest_local_hex_string and longest_local_hex_string_custom.
6689 * buildsym.c (make_blockvector): Ditto.
6690 * solib.c (info_sharedlibrary_command): Ditto.
6691 * tracepoint.c (tracepoints_info): Ditto.
6692 * symtab.c (print_msymbol_info): Ditto.
6693
6694 * language.c (local_hex_string): Delete.
6695 (local_hex_string_custom): Delete.
6696 (longest_local_hex_string): Rename to local_hex_string.
6697 (longest_local_hex_string_custom): Rename to
6698 local_hex_string_custom.
6699 * language.h (local_hex_string): Change parameter type to LONGEST.
6700 (local_hex_string_custom): Ditto.
6701 (longest_local_hex_string): Delete declaration.
6702 (longest_local_hex_string_custom): Ditto.
6703
6704 * solib.c: Update copyright.
6705 * memattr.c: Update copyright.
6706
6707 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6708
6709 * arch-utils.h (legacy_register_to_value): Declare.
6710 (legacy_value_to_register): Declare.
6711 (legacy_convert_register_p): Declare.
6712 * arch-utils.c (legacy_register_to_value): New function.
6713 (legacy_value_to_register): New function.
6714 (legacy_convert_register_p): New function.
6715
6716 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6717 (VALUE_TO_REGISTER): Define.
6718 (CONVERT_REGISTER_P): Define.
6719 * gdbarch.h, gdbarch.c: Regenerate.
6720
6721 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6722 VALUE_TO_REGISTER.
6723 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6724 CONVERT_REGISTER_P.
6725
6726 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
6727 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6728
6729 * Makefile.in: Update dependencies for valops.c.
6730 * valops.c: Include "gdb_assert.h".
6731 (typecmp): Skip THIS parameter to methods.
6732 (find_method_list): Remove static_memfuncp argument,
6733 update callers. Check for stub methods.
6734 (find_value_oload_method_list): Don't set *static_memfuncp.
6735 (find_overload_match): Don't check for stub methods. Assert
6736 that methods are not stubbed. Handle static methods.
6737 (value_find_oload_method_list): Remove static_memfuncp argument.
6738 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6739 to the argument list for static stub methods.
6740 * value.h (value_find_oload_method_list): Update prototype.
6741
6742 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6743
6744 * arch-utils.h (generic_register_size): Declare.
6745 (generic_register_raw_size, generic_register_virtual_size): Delete
6746 declarations.
6747 * arch-utils.c (generic_register_raw_size): Delete.
6748 (generic_register_size): New function.
6749 (generic_register_virtual_size): Delete.
6750
6751 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6752 default generic_register_size.
6753 * gdbarch.h, gdbarch.c: Re-generate.
6754
6755 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6756 register_virtual_size.
6757 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6758 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6759
6760 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6761
6762 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6763 * gdbarch.h, gdbarch.c: Regenerate.
6764 * gnu-v3-abi.c: Update copyright.
6765 (vtable_address_point_offset): Update.
6766 (gnuv3_rtti_type): Update.
6767 (gnuv3_baseclass_offset): Update.
6768 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6769 (init_fetch_link_map_offsets): Update.
6770 * remote.c (get_remote_state): Update.
6771
6772 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6773
6774 * TODO: Remove value_headof/value_from_vtable_info comment.
6775 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6776 * values.c (value_headof, value_from_vtable_info): Delete.
6777 * value.h (value_from_vtable_info): Delete prototype.
6778
6779 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6780
6781 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6782 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6783 $(gdb_regex_h).
6784 (gdb_assert_h): Define.
6785 (gdb_wait_h): Define.
6786 (gdb_regex_h): Define.
6787
6788 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6789
6790 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6791 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6792
6793 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6794
6795 * nbsd-tdep.c: Fix comment.
6796
6797 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6798
6799 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6800 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6801 (nbsd-tdep.o): New dependency list.
6802 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6803 nbsd-tdep.h.
6804 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6805 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6806 * nbsd-tdep.c: New file.
6807 * nbsd-tdep.h: New file.
6808 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6809 nbsd-tdep.h.
6810 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6811 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6812 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6813 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6814
6815 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6816
6817 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6818 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6819 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6820 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6821 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6822 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6823
6824 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6825
6826 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6827 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6828 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6829 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6830 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6831 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6832 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6833
6834 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6835
6836 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6837 fetch_elfcore_registers to...
6838 * i386nbsd-tdep.c: ...here.
6839 (i386nbsd_use_struct_convention): Rename to...
6840 (i386nbsd_aout_use_struct_convention): ...this.
6841 (i386nbsd_supply_reg): New function.
6842 (i386nbsd_fill_reg): New function.
6843 (fetch_core_registers): Use i386nbsd_supply_reg.
6844 (fetch_elfcore_registers): Likewise.
6845 (_initialize_i386nbsd_tdep): New function.
6846 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6847 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6848 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6849 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6850 (i386nbsd_aout_use_struct_convention): ...this.
6851
6852 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6853
6854 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6855 (store_inferior_registers): Use shnbsd_fill_reg.
6856 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6857 sh_nbsd_supply_register): Collapse into...
6858 (shnbsd_supply_reg): ...this.
6859 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6860 (shnbsd_fill_reg): ...this.
6861 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6862 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6863 (fetch_core_registers): Use shnbsd_supply_reg.
6864 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6865 (sh_nbsd_core_fns): Rename to...
6866 (shnbsd_core_fns): ...this.
6867 (sh_nbsd_elfcore_fns): Rename to...
6868 (shnbsd_elfcore_fns): ...this.
6869 (sh_nbsd_init_abi): Rename to...
6870 (shnbsd_init_abi): ...this.
6871 (_initialize_sh_nbsd_tdep): Rename to...
6872 (_initialize_shnbsd_tdep): ...this.
6873 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6874 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6875 sh_nbsd_fill_register): Remove prototypes.
6876 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6877
6878 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6879
6880 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6881 (i387-nat.o): Delete dependency list.
6882 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6883 (x86-64-linux-nat.o): Likewise.
6884 * i387-nat.c: Delete file, moving contents to...
6885 * i387-tdep.c: ...here.
6886 * i387-nat.h: Rename...
6887 * i387-tdep.h: ...to this.
6888 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6889 * i386-linux-nat.c: Likewise.
6890 * i386bsd-nat.c: Likewise.
6891 * i386gnu-nat.c: Likewise.
6892 * i386nbsd-nat.c: Likewise.
6893 * i386v4-nat.c: Likewise.
6894 * x86-64-linux-nat.c: Likewise.
6895 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6896 * config/i386/go32.mh (NATDEPFILES): Likewise.
6897 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6898 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6899 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6900 * config/i386/linux.mh (NATDEPFILES): Likewise.
6901 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6902 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6903 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6904 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6905
6906 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6907
6908 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6909 (alphanbsd-nat.o): Remove dependency list.
6910 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6911 * alphanbsd-nat.c: Delete. Contents moved to...
6912 * alphanbsd-tdep.c: ...here.
6913 (_initialize_alphanbsd_tdep): Register core functions.
6914 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6915
6916 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6917
6918 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6919 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6920 (alphanbsd-nat.o): Likewise.
6921 (alphabsd-tdep.o): New dependency list.
6922 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6923 (fill_gregset): Use alphabsd_fill_reg.
6924 (supply_fpregset): Use alphabsd_supply_fpreg.
6925 (fill_fpregset): Use alphabsd_fill_fpreg.
6926 (fetch_inferior_registers): Use struct reg and struct fpreg
6927 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6928 and alphabsd_supply_fpreg.
6929 (store_inferior_registers): Use struct reg and struct fpreg
6930 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6931 and alphabsd_fill_fpreg.
6932 * alphabsd-tdep.c: New file.
6933 * alphabsd-tdep.h: New file.
6934 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6935 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6936 alphabsd_supply_fpreg.
6937 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6938 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6939
6940 2002-05-11 Eric Christopher <echristo@redhat.com>
6941
6942 * mips-tdep.c (mips_double_register_type): Fix thinko.
6943 (mips_single_register_type): Ditto.
6944 * MAINTAINERS: Add self.
6945
6946 2002-05-11 Mark Kettenis <kettenis@gnu.org>
6947
6948 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6949 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6950 right thing on architectures with different endianness and/or
6951 integer sizes.
6952
6953 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6954
6955 From Christian Limpach <chris@Pin.LU>
6956 * configure.in: Change sed expression which comments out
6957 NATDEPFILES to also comment out continuation lines.
6958 * configure: Regenerate.
6959
6960 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6961
6962 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6963 big patch.
6964
6965 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6966
6967 * sh-tdep.c: Include correct file.
6968
6969 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6970
6971 New support for sh64-elf (sh5) target.
6972
6973 * configure.tgt: For sh64-elf target, default to sh-elf.
6974
6975 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6976 (struct gdbarch_tdep): Add new fields for new registers and ABI
6977 info.
6978
6979 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6980 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6981 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6982 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6983 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6984 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6985 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6986 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6987 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6988 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6989 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6990 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6991 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6992 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6993 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6994 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6995 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6996 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6997 sign_extend, sh64_nofp_frame_init_saved_regs,
6998 sh64_init_extra_frame_info, sh64_get_saved_register,
6999 sh64_extract_struct_value_address, sh64_pop_frame,
7000 sh64_push_arguments, sh64_extract_return_value,
7001 sh64_store_return_value, sh64_show_media_regs,
7002 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
7003 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
7004 sh_sh64_register_virtual_type,
7005 sh_sh64_register_convert_to_virtual,
7006 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
7007 sh64_register_read, sh64_pseudo_register_write,
7008 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
7009 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
7010 sh64_do_pseudo_register, sh_compact_do_registers_info,
7011 sh64_do_registers_info, sh_gdbarch_init): New functions.
7012
7013 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7014
7015 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
7016
7017 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
7018
7019 * linespec.c (decode_line_1): Check for a double quote after
7020 a filename correctly.
7021
7022 2002-05-10 Jim Blandy <jimb@redhat.com>
7023
7024 Properly track the size of the current objfile's .debug_line section.
7025 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
7026 (DWARF_LINE_SIZE): New macro.
7027 (dwarf2_build_psymtabs_hard): Record the line section's size in
7028 the partial symbol table.
7029 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
7030 symbol table.
7031
7032 2002-05-10 Petr Sorfa <petrs@caldera.com>
7033
7034 * ia64-tdep.c: Handle breakpoints on L instruction type
7035 in MLX instruction bundle by moving the breakpoint to
7036 the third slot (X instruction type) as L holds only data.
7037
7038 2002-05-10 Kevin Buettner <kevinb@redhat.com>
7039
7040 * dbxread.c (discarding_local_symbols_complaint): New complaint.
7041 (process_one_symbol): Complain about discarding local symbols
7042 due to a misplaced N_LBRAC entry.
7043
7044 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
7045
7046 From Daniel Berlin <dan@cgsoftware.com>
7047 * linespec.c (find_toplevel_char): '<' and '>' also increase and
7048 decrease the depth we are at, in the case of templates.
7049
7050 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7051
7052 * mips-tdep.c (mips_float_register_type): New function.
7053 (mips_double_register_type): New function.
7054 (mips_print_register): Use them.
7055 (do_fp_register_row): Likewise.
7056
7057 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7058
7059 * signals/signals.c (signals): Remove conditional compilation around
7060 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
7061 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
7062
7063 2002-05-09 Michael Snyder <msnyder@redhat.com>
7064
7065 * remote-rdp.c (remote_rdp_can_run): Remove.
7066
7067 2002-05-09 Tom Tromey <tromey@redhat.com>
7068
7069 * jv-valprint.c (java_val_print): Handle `char' as a special case
7070 of TYPE_CODE_INT.
7071
7072 2002-05-09 Michael Snyder <msnyder@redhat.com>
7073
7074 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
7075 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
7076 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
7077 str r(0123),[sp,#nn].
7078 (arm_skip_prologue): Ditto. Also make disassembly
7079 order-independent by placing it in a loop.
7080
7081 2002-05-06 Michael Snyder <msnyder@redhat.com>
7082
7083 * stabsread.c (read_type): Add recognition for new attribute:
7084 "@V;" means that an array type is actually a vector.
7085 This is analogous to the vector flag that's been added to dwarf2.
7086
7087 2002-05-09 Mark Kettenis <kettenis@gnu.org>
7088
7089 * i386-tdep.h (i386_abi): New enum.
7090 (struct gdbarch_tdep): Replace os_ident member with abi.
7091 (i386_gdbarch_register_os_abi): New prototype.
7092 * i386-tdep.c (i386_abi_names): New array.
7093 (process_note_abi_tag_sections): Removed.
7094 (process_note_sections): New function.
7095 (i386_elf_abi_from_note, i386_elf_abi): New functions.
7096 (struct i386_abi_handler): New struct.
7097 (i386_abi_handler_list): New variable.
7098 (i386_gdbarch_register_os_abi): New function.
7099 (i386_gdbarch_init): Adapt for the changes given above.
7100
7101 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
7102
7103 * gregset.h: Say "GNU/Linux".
7104
7105 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
7106
7107 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7108 (build_gdbtypes): Build builtin_type_v2_float.
7109 (_initialize_gdbtypes): Register new builtin type.
7110
7111 2002-05-08 Andrew Cagney <ac131313@redhat.com>
7112
7113 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7114 (clear_gdbarch_swap): New function.
7115 (initialize_non_multiarch): Call.
7116 (gdbarch_update_p): Before calling init(), swap out and clear the
7117 existing architecture.
7118 * gdbarch.c: Regenerate.
7119
7120 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7121
7122 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7123 alphanbsd-tdep.c.
7124
7125 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7126
7127 * sh-nbsd-nat.c: Rename to...
7128 * shnbsd-nat.c: ...this.
7129 * sh-nbsd-tdep.c: Rename to...
7130 * shnbsd-tdep.c: ...this.
7131 * sh-nbsd-tdep.h: Rename to...
7132 * shnbsd-tdep.h: ...this.
7133 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7134 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7135
7136 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
7137
7138 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7139 concatenation for command help messages.
7140
7141 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7142
7143 * NEWS: Note new sh*-*-netbsdelf* configuration.
7144 * configure.host: Set gdb_host_cpu to sh for all sh*.
7145 (sh*-*-netbsdelf*): New host.
7146 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7147 (sh*-*-netbsdelf*): New target.
7148 * sh-nbsd-nat.c: New file.
7149 * sh-nbsd-tdep.c: New file.
7150 * sh-nbsd-tdep.h: New file.
7151 * config/sh/nbsd.mh: New file.
7152 * config/sh/nbsd.mt: New file.
7153 * config/sh/nm-nbsd.h: New file.
7154 * config/sh/tm-nbsd.h: New file.
7155
7156 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7157
7158 * sh-tdep.c (sh_osabi_names): Declare.
7159 (process_note_abi_tag_sections): New function.
7160 (get_elfosabi): Ditto.
7161 (sh_gdbarch_register_os_abi): Ditto.
7162 (sh_dump_tdep): Ditto.
7163 _initialize_sh_tdep): Use gdbarch_register to register
7164 sh_gdbarch_init and sh_dump_tdep.
7165 * config/sh/tm-sh.h (sh_osabi): Declare.
7166 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7167
7168 2002-05-07 Andrew Cagney <ac131313@redhat.com>
7169
7170 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7171 (thumb_scan_prologue): Ditto.
7172 (arm_find_callers_reg): Ditto.
7173 (arm_frame_chain): Ditto.
7174 (arm_init_extra_frame_info): Ditto.
7175 (arm_frame_saved_pc): Ditto.
7176 (arm_pop_frame): Ditto.
7177 (arm_push_return_address): New function.
7178 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7179 call_dummy_location, call_dummy_breakpoint_offset_p,
7180 call_dummy_breakpoint_offset, call_dummy_p,
7181 call_dummy_stack_adjust_p, call_dummy_words,
7182 sizeof_call_dummy_words, call_dummy_start_offset,
7183 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7184 call_dummy_address, push_return_address and push_dummy_frame for
7185 generic dummy frames.
7186
7187 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7188
7189 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7190 size computation for alloca.
7191 (sh_fp_frame_init_saved_regs): Likewise.
7192
7193 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
7194
7195 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7196 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
7197 * arm-tdep.c (arm_store_return_value): Use them.
7198 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7199 * remote-rdp.c (remote_rdp_fetch_register): Use
7200 ARM_MAX_REGISTER_RAW_SIZE.
7201 (remote_rdp_store_register): Likewise.
7202
7203 2002-05-07 Michal Ludvig <mludvig@suse.cz>
7204
7205 * dwarf2cfi.c: Code cleanup, removed unused variables,
7206 added default labels to switch {} statements.
7207 * x86-64-tdep.c: Ditto.
7208 * x86-64-linux-nat.c: Ditto.
7209
7210 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7211
7212 * solib.h: Protect against multiple inclusion.
7213
7214 2002-05-06 Jim Blandy <jimb@redhat.com>
7215
7216 Add first preprocessor macro-expansion files.
7217 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7218 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7219 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7220 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7221 (COMMON_OBS): Add macrotab.o, macroexp.o.
7222 (macroexp.o, macrotab.o): New rules.
7223
7224 Separate the job of reading the line number info statement program
7225 header (...expialidocious) out into its own function.
7226 * dwarf2read.c (struct line_head, struct filenames, struct
7227 directories): Replace with...
7228 (struct line_header): New structure, containing the full
7229 contents of the statement program header, including the
7230 include directory and file name tables.
7231 (read_file_scope): If we have line number info, instead of just
7232 calling dwarf_decode_lines to do all the work, call
7233 dwarf_decode_line_header first to get a `struct line_header'
7234 containing the data in the statement program header, and then
7235 pass that to dwarf_decode_lines, which will pick up where that
7236 left off. Be sure to clean up the `struct line_header' object.
7237 (dwarf_decode_line_header, free_line_header, add_include_dir,
7238 add_file_name): New functions.
7239 (dwarf_decode_lines): Move all the code to read the statement
7240 program header into dwarf_decode_line_header. Take the line
7241 header it built as the first argument, instead of the offset to
7242 the compilation unit's line number info. Use the new `struct
7243 line_header' type instead of the old structures. No need to do
7244 cleanups here now, since we don't allocate anything.
7245 (dwarf2_statement_list_fits_in_line_number_section,
7246 dwarf2_line_header_too_long): New complaints.
7247
7248 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
7249
7250 * gdbtypes.c (init_vector_type): New function.
7251 (build_builtin_type_vec128): Simplify the representation of SIMD
7252 registers.
7253 (build_gdbtypes): Initialize new builtin vector types.
7254 (_initialize_gdbtypes): Register new vector types with gdbarch.
7255 (builtin_type_v4_float, builtin_type_v4_int32,
7256 builtin_type_v8_int16, builtin_type_v16_int8,
7257 builtin_type_v2_int32, builtin_type_v4_int16,
7258 builtin_type_v8_int8): New (renamed) SIMD types.
7259
7260 2002-05-06 Mark Kettenis <kettenis@gnu.org>
7261
7262 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7263 (i387_fill_fxsave): Likewise.
7264
7265 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
7266
7267 * alpha-tdep.c (alpha_extract_return_value): Don't use
7268 non-constant array size in prototype.
7269
7270 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7271
7272 From Brian Taylor <briant at model dot com>:
7273 * ui-out.c (ui_out_field_core_addr): Use the function
7274 longest_local_hex_string_custom'to format addresses > 32 bits
7275 wide.
7276
7277 * ui-out.c (ui_out_field_core_addr): Update comment.
7278
7279 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7280
7281 * stack.c (select_and_print_frame): Make static. Delete the
7282 parameter `level'.
7283 (func_command): Update call.
7284 (select_frame_command): Delete code computing the frame level.
7285 * frame.h (select_and_print_frame): Delete declaration.
7286
7287 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7288
7289 * sparc-tdep.c (sparc_get_saved_register): Comment why
7290 get_prev_frame call is safe.
7291
7292 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7293
7294 * frame.h (select_frame): Delete level parameter.
7295 * stack.c (select_frame): Update. Use frame_relative_level to
7296 obtain the frame's level.
7297 (select_and_print_frame): Update call.
7298 (select_frame_command): Ditto.
7299 (up_silently_base): Ditto.
7300 (down_silently_base): Ditto.
7301 * ocd.c (ocd_start_remote): Ditto.
7302 * remote-rdp.c (remote_rdp_open): Ditto.
7303 * remote-mips.c (mips_initialize): Ditto.
7304 (common_open): Ditto.
7305 * remote-e7000.c (e7000_start_remote): Ditto.
7306 * m3-nat.c (select_thread): Ditto.
7307 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7308 (child_get_current_exception_event): Ditto.
7309 * varobj.c (varobj_create): Ditto.
7310 (varobj_update): Ditto.
7311 (c_value_of_root): Ditto.
7312 * tracepoint.c (finish_tfind_command): Ditto.
7313 * corelow.c (core_open): Ditto.
7314 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7315 * thread.c (info_threads_command): Ditto.
7316 (switch_to_thread): Ditto.
7317 * infrun.c (normal_stop): Ditto.
7318 (restore_selected_frame): Ditto.
7319 (restore_inferior_status): Ditto.
7320 * breakpoint.c (insert_breakpoints): Ditto.
7321 (watchpoint_check): Ditto.
7322 (bpstat_stop_status): Ditto.
7323 (do_enable_breakpoint): Ditto.
7324 * blockframe.c (flush_cached_frames): Ditto.
7325 (reinit_frame_cache): Ditto.
7326
7327 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7328
7329 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7330 maintainer.
7331
7332 2002-05-04 Jim Blandy <jimb@redhat.com>
7333
7334 * gdbtypes.c (replace_type): Doc fix.
7335
7336 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7337
7338 * valprint.c (strcat_longest): Delete commented out function.
7339 Update copyright.
7340
7341 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7342
7343 * MAINTAINERS: Mark a29k as deleted.
7344 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7345 Move new configurations to the top.
7346 * configure.tgt: Remove a29k.
7347 * config/a29k/tm-vx29k.h: Delete.
7348 * config/a29k/vx29k.mt: Delete.
7349 * config/a29k/tm-a29k.h: Delete.
7350 * config/a29k/a29k-udi.mt: Delete.
7351 * config/a29k/a29k.mt: Delete.
7352 * a29k-tdep.c: Delete.
7353 * remote-udi.c: Delete.
7354 * remote-mm.c: Delete.
7355 * remote-eb.c: Delete.
7356 * remote-adapt.c: Delete.
7357 * Makefile.in: Remove obsolete code.
7358 * config/s390/s390x.mt: Ditto.
7359 * config/s390/s390.mt: Ditto.
7360 * config/sparc/sparclynx.mh: Ditto.
7361 * config/sparc/linux.mh: Ditto.
7362 * config/pa/hppaosf.mh: Ditto.
7363 * config/pa/hppabsd.mh: Ditto.
7364 * config/ns32k/nbsd.mt: Ditto.
7365 * config/mips/vr5000.mt: Ditto.
7366 * config/m68k/sun3os4.mh: Ditto.
7367 * config/m68k/nbsd.mt: Ditto.
7368 * config/m68k/m68klynx.mh: Ditto.
7369 * config/m32r/m32r.mt: Ditto.
7370 * config/i386/x86-64linux.mt: Ditto.
7371 * config/i386/nbsdelf.mt: Ditto.
7372 * config/i386/nbsd.mt: Ditto.
7373 * config/i386/i386lynx.mh: Ditto.
7374
7375 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7376
7377 * target.c (debug_print_register): New function. Handle oversize
7378 registers.
7379 (debug_to_fetch_registers): Call.
7380 (debug_to_store_registers): Call.
7381
7382 2002-05-03 Jim Blandy <jimb@redhat.com>
7383
7384 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7385 (read_type): Doc fix.
7386 * gdbtypes.c (replace_type): Doc fix.
7387
7388 * stabsread.c (multiply_defined_struct): New complaint.
7389 (read_struct_type): If the type we were passed isn't empty, or
7390 incomplete, don't read the new struct type into it; complain,
7391 and return the original type unchanged. Take a new `type_code'
7392 argument, which is the type code for the new type.
7393 (read_type): Rather than storing the type's type code here, pass
7394 it as an argument to read_struct_type, and let that take care of
7395 storing it. That way, we don't overwrite the original type code,
7396 so read_struct_type can use it to decide whether we're overwriting
7397 something we shouldn't.
7398 (complain_about_struct_wipeout): New function.
7399
7400 2002-05-03 Andrew Cagney <ac131313@redhat.com>
7401
7402 * gdbarch.sh: Assert that gdbarch is non-NULL.
7403 * gdbarch.c: Regenerate.
7404
7405 2002-05-03 Jason Merrill <jason@redhat.com>
7406
7407 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7408 and return NULL.
7409
7410 2002-05-03 Michal Ludvig <mludvig@suse.cz>
7411
7412 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7413 (x86_64_dwarf2gdb_regno_map_length),
7414 (x86_64_dwarf2_reg_to_regnum): Added.
7415 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7416 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7417 (_initialize_x86_64_tdep): Synced with the change above.
7418 (x86_64_skip_prologue): Reformulated message.
7419
7420 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7421
7422 * f-exp.y: Also use new prev_lexptr variable
7423 to improve error reporting. Based on Michael Snyder
7424 2002-04-24 dated patch to c-exp.y.
7425 * jv-exp.y: Likewise.
7426 * m2-exp.y: Likewise.
7427
7428 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
7429
7430 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7431 we are dealing with vectors.
7432
7433 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7434
7435 * config/m68k/tm-nbsd.h: Obvious fix,
7436 correct machine name.
7437
7438 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7439
7440 * p-typeprint.c (pascal_type_print_base): Add support
7441 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7442
7443 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7444
7445 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7446 for fondamental pascal 'char' type.
7447
7448 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7449
7450 * p-lang.h (is_pascal_string_type): Declaration changed,
7451 new sixth argument of type char ** added.
7452 * p-lang.c (is_pascal_string_type): Implementation
7453 changed. Args length_pos, length_size, string_pos, char_size
7454 can now be NULL. New argument arrayname set to the field
7455 name of the char array. Return value set to char array
7456 field index plus one.
7457 * p-valprint.c (pascal_val_print): Adapt to new declaration of
7458 is_pascal_string_type function.
7459
7460 2002-05-02 Andrew Cagney <cagney@redhat.com>
7461
7462 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7463 <cagney@redhat.com> change.
7464 * gdbarch.c: Regenerate.
7465
7466 2002-05-02 Andrew Cagney <cagney@redhat.com>
7467
7468 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7469 before probing for a new one. Detect errorenous gdbarch_init
7470 functions.
7471 * gdbarch.c: Regenerate.
7472
7473 2002-05-01 Andrew Cagney <cagney@redhat.com>
7474
7475 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7476 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7477 * config/v850/tm-v850.h: Ditto. Update copyright.
7478
7479 2002-04-30 Andrew Cagney <ac131313@redhat.com>
7480
7481 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7482 current_gdbarch.
7483
7484 2002-04-30 Michael Snyder <msnyder@redhat.com>
7485
7486 * arm-tdep.c: Whitespace clean-ups.
7487 (arm_skip_prologue): Fix thinko; two lines
7488 should have been removed as part of 4/24 change.
7489
7490 2002-04-30 Kevin Buettner <kevinb@redhat.com>
7491
7492 * rs6000-tdep.c: Added comment describing how fpscr register
7493 numbers were chosen.
7494
7495 2002-04-30 Michael Snyder <msnyder@redhat.com>
7496
7497 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7498
7499 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7500
7501 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7502 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7503 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7504
7505 2002-04-29 Kevin Buettner <kevinb@redhat.com>
7506
7507 From Louis Hamilton <hamilton@redhat.com>:
7508 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7509 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7510 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7511 not bfd-private xcoff data, to determine wordsize.
7512 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7513
7514 2002-04-29 Andrew Cagney <ac131313@redhat.com>
7515
7516 GDB 5.2 released from 5.2 branch.
7517
7518 2002-04-29 Michal Ludvig <mludvig@suse.cz>
7519
7520 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7521 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7522 (x86_64_register_info_table): Added comments with register numbers.
7523
7524 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7525
7526 * rs6000-tdep.c (rs6000_extract_return_value,
7527 rs6000_store_return_value): Handle returning vectors.
7528 (rs6000_gdbarch_init): Use
7529 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7530 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7531 New function.
7532 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7533 vectors.
7534 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7535 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7536
7537 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7538
7539 * hpread.c (hpread_psymtab_to_symtab_1,
7540 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7541 with fprintf_unfiltered (gdb_stderr,...).
7542
7543 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7544
7545 * remote-array.c (printf_monitor, write_monitor,
7546 array_insert_breakpoint, array_remove_breakpoint ):
7547 Replace fprintf (stderr,...
7548 with fprintf_unfiltered (gdb_stderr,....
7549 * remote-es.c: Likewise.
7550 * remote-os9k.c: Likewise.
7551 * remote-st.c: Likewise.
7552
7553 2002-04-28 Andreas Schwab <schwab@suse.de>
7554
7555 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7556 linux-proc.o and gcore.o.
7557
7558 2002-04-26 Michal Ludvig <mludvig@suse.cz>
7559
7560 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7561 code without frame pointers.
7562
7563 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7564
7565 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7566 ON_STACK is needed.
7567
7568 2002-04-26 Ben Elliston <bje@redhat.com>
7569
7570 * target.c (do_xfer_memory): Correct reference to the new option
7571 "trust-readonly-sections".
7572
7573 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
7574
7575 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7576 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7577 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7578 vectors.
7579 (read_array_type): Record the fact that this array type is really a
7580 vector (i.e. are passed in by value).
7581
7582 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7583
7584 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7585 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7586 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7587 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7588 * alpha-linux-tdep.c: Include frame.h.
7589 (alpha_linux_sigcontext_addr): New function.
7590 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7591 alpha_linux_sigcontext_addr.
7592 * alpha-osf1-tdep.c: Include gdbcore.h.
7593 (alpha_osf1_sigcontext_addr): New function.
7594 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7595 alpha_osf1_sigcontext_addr.
7596 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7597 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7598
7599 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7600
7601 * stack.c (selected_frame_level):
7602 (select_frame): Do not set selected_frame_level.
7603 * frame.h (selected_frame_level): Delete declaration.
7604
7605 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7606
7607 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7608 convert_from_func_ptr-addr when AIX / PowerOpen.
7609
7610 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7611
7612 * valops.c (hand_function_call): Call
7613 generic_save_call_dummy_addr.
7614 * frame.h (generic_save_call_dummy_addr): Declare.
7615 * blockframe.c (struct dummy_frame): Add fields call_lo and
7616 call_hi.
7617 (generic_find_dummy_frame): Check for PC in range call_lo to
7618 call_hi instead of entry_point_address.
7619 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7620 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7621 (generic_save_call_dummy_addr): New function.
7622
7623 2002-04-24 David S. Miller <davem@redhat.com>
7624
7625 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7626 sparc_skip_prologue.
7627 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7628 information to find prologue when possible.
7629 (sparc_prologue_frameless_p): Call examine_prologue directly.
7630 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7631 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7632 second argument.
7633 (SKIP_PROLOGUE): Likewise.
7634
7635 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7636
7637 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7638 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7639 indicate that the condition it was testing is always true.
7640 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7641 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7642 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7643
7644 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7645
7646 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7647 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7648 tdep->jb_pc and tdep->jb_elt_size.
7649 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7650 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7651 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7652 * alpha-nat.c (get_longjmp_target): Remove.
7653 (JB_ELEMENT_SIZE): Ditto.
7654 (JB_PC): Ditto.
7655 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7656 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7657 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7658 to alpha_get_longjmp_target.
7659 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7660 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7661 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7662
7663 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7664
7665 * README: Update to GDB 5.2.
7666
7667 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7668
7669 * gdbarch.sh (LC_ALL): Set to `c'.
7670
7671 2002-04-25 Theodore A. Roth <troth@verinet.com>
7672
7673 * avr-tdep.c: Ran through gdb_indent.sh.
7674
7675 2002-04-25 Theodore A. Roth <troth@verinet.com>
7676
7677 * MAINTAINERS: Add myself as AVR maintainer.
7678 * NEWS: Note new target avr.
7679
7680 2002-04-25 Theodore A. Roth <troth@verinet.com>
7681
7682 * Makefile.in: Add support for AVR target.
7683 * configure.tgt: Add support for AVR target.
7684 * avr-tdep.c: New file
7685 * config/avr/avr.mt: New file.
7686
7687 2002-04-25 Theodore A. Roth <troth@verinet.com>
7688
7689 * MAINTAINERS: Add myself to write-after-approval.
7690
7691 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7692
7693 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7694 with fprintf_unfiltered (gdb_stderr,....
7695
7696 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7697
7698 Fix PR gdb/508.
7699 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7700
7701 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7702
7703 * p-exp.y: Also use new prev_lexptr variable
7704 to improve error reporting. Based on Michael Snyder
7705 2002-04-24 dated patch to c-exp.y.
7706
7707 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7708
7709 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7710 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7711 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7712 to 0.
7713 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7714 and struct value.
7715 (FUNCTION_START_OFFSET): Remove.
7716 (BREAKPOINT): Ditto.
7717
7718 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7719
7720 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7721 * NEWS: Ditto.
7722
7723 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7724
7725 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7726 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7727 alpha_linux_pc_in_sigtramp.
7728 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7729 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7730 alpha_osf1_pc_in_sigtramp.
7731 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7732 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7733 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7734 alphafbsd_pc_in_sigtramp.
7735 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7736 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7737 alphanbsd_pc_in_sigtramp.
7738 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7739 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7740
7741 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7742
7743 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7744
7745 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7746
7747 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7748 alphanbsd-tdep.c.
7749 (alphanbsd-nat.o): New dependency list.
7750 (alphanbsd-tdep.o): Ditto.
7751 * NEWS: Note new native NetBSD/alpha configuration.
7752 * alphanbsd-nat.c: New file.
7753 * alphanbsd-tdep.c: Ditto.
7754 * configure.host (alpha*-*-netbsd*): New host.
7755 * configure.tgt (alpha*-*-netbsd*): New target.
7756 * config/alpha/nbsd.mh: New file.
7757 * config/alpha/nbsd.mt: Ditto.
7758 * config/alpha/nm-nbsd.h: Ditto.
7759 * config/alpha/tm-nbsd.h: Ditto.
7760
7761 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7762
7763 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7764 (alpha-osf1-tdep.o): New dependency list.
7765 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7766 and skip_sigtramp_frame members.
7767 * alpha-linux-tdep.c: Include gdbcore.h.
7768 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7769 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7770 * alpha-osf1-tdep.c: New file.
7771 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7772 alpha-osf1-dep.c.
7773 (alpha_frame_past_sigtramp_frame): New function.
7774 (alpha_dynamic_sigtramp_offset): Ditto.
7775 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7776 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7777 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7778 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7779 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7780 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7781 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7782 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7783 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7784 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7785 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7786 to find_solib_trampoline_target.
7787 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7788 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7789 (SKIP_TRAMPOLINE_CODE): Remove.
7790 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7791 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7792 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7793 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7794 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7795 (PROC_SIGTRAMP_MAGIC): Ditto.
7796 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7797 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7798 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7799 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7800 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7801
7802 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7803
7804 * NEWS: Note that Alpha targets are now multi-arch.
7805
7806 2002-04-24 Michael Snyder <msnyder@redhat.com>
7807
7808 * parser-defs.h (prev_lexptr): New external variable.
7809 * parse.c (parse_exp_1): Set prev_lexptr to null before
7810 calling the language-specific parser.
7811 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7812 (yyerror): Use prev_lexptr in error reporting.
7813
7814 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
7815
7816 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7817 * gregset.h: If FILL_FPXREGSET is defined, provide
7818 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7819 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7820 is defined, call fill_fpxregset.
7821
7822 2002-04-24 Roland McGrath <roland@frob.com>
7823
7824 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7825 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7826 (supply_gregset, supply_fpregset): New functions.
7827
7828 * gnu-nat.c (gnu_find_memory_regions): New function.
7829 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7830 (gnu_xfer_memory): Add a cast.
7831
7832 2002-04-24 Michael Snyder <msnyder@redhat.com>
7833
7834 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
7835 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7836 of argument regs ("str r(0123), [r11, #-nn"]).
7837 (arm_skip_prologue): Better handling for frameless functions.
7838 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7839 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7840
7841 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7842
7843 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7844 NUM_PSEUDO_REGS can be used.
7845
7846 2002-04-24 Andrew Cagney <ac131313@redhat.com>
7847
7848 * arch-utils.h: Update copyright.
7849
7850 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7851 * gdbarch.h, gdbarch.c: Re-generate.
7852
7853 * inferior.h (IN_SIGTRAMP): Delete definition.
7854 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7855 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7856
7857 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7858 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7859 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7860 (find_proc_framesize): Ditto.
7861 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7862 (alpha_init_extra_frame_info): Ditto.
7863 * infrun.c (handle_inferior_event): Ditto.
7864 (handle_inferior_event): Ditto.
7865 (check_sigtramp2): Ditto.
7866 * blockframe.c (create_new_frame): Ditto.
7867 (get_prev_frame): Ditto.
7868 * ppc-linux-tdep.c: Update comments.
7869 * i386-linux-tdep.c: Update comments.
7870 * breakpoint.c (bpstat_what): Update comment.
7871
7872 2002-04-24 David S. Miller <davem@redhat.com>
7873
7874 * i960-tdep.c (register_in_window_p): New function.
7875 (i960_find_saved_register): Use it instead of
7876 REGISTER_IN_WINDOW_P.
7877 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7878
7879 * symtab.h (find_stab_function_addr): Kill extern.
7880 * minsyms.c (find_stab_function_addr): Remove from here...
7881 * dbxread.c: ... to here, and mark it static.
7882
7883 2002-04-20 David S. Miller <davem@redhat.com>
7884
7885 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7886 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7887
7888 2002-04-21 David S. Miller <davem@redhat.com>
7889
7890 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7891 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7892 (vx_write_register): Likewise.
7893
7894 2002-04-23 J. Brobecker <brobecker@gnat.com>
7895
7896 * source.c (is_regular_file): New function.
7897 (openp): Check wether file to open is a regular file
7898 to avoid opening directories.
7899
7900 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7901
7902 * findvar.c (extract_signed_integer): Cast printf argument
7903 to suppress format warning.
7904 (extract_unsigned_integer): Likewise.
7905 * infcmd.c (registers_info): Likewise.
7906 * top.c (get_prompt_1): Likewise.
7907 * valops.c (value_assign): Likewise.
7908 * valprint.c (print_decimal): Likewise.
7909
7910 2002-04-22 H.J. Lu (hjl@gnu.org)
7911
7912 * c-exp.y (typebase): Support
7913
7914 [long|long long|short] [signed|unsigned] [int|]
7915
7916 and
7917
7918 signed [long|long long|short] int
7919
7920 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7921
7922 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7923 and vax-tdep.h.
7924 * vax-tdep.h: New file.
7925 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7926 Make several routines static.
7927 (vax_get_saved_register): New function.
7928 (vax_gdbarch_init): New function.
7929 (_initialize_vax_tdep): Register vax_gdbarch_init.
7930 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7931 Remove macros now under the control of gdbarch.
7932
7933 2002-04-22 Michael Snyder <msnyder@redhat.com>
7934
7935 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7936 Some whitespace and coding standards tweaks.
7937
7938 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7939
7940 * vax-tdep.c: Include regcache.h.
7941 (vax_call_dummy_words): New.
7942 (sizeof_vax_call_dummy_words): New.
7943 (vax_fix_call_dummy): New function.
7944 (vax_saved_pc_after_call): Ditto.
7945 * config/vax/tm-vax.h: Don't include regcache.h.
7946 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7947 (CALL_DUMMY): Remove.
7948 (CALL_DUMMY_WORDS): Define.
7949 (SIZEOF_CALL_DUMMY_WORDS): Define.
7950 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7951
7952 2002-04-18 Michael Snyder <msnyder@redhat.com>
7953
7954 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7955
7956 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7957
7958 * vax-tdep.c (vax_frame_chain): New function.
7959 (vax_push_dummy_frame): Ditto.
7960 (vax_pop_frame): Ditto.
7961 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7962 (FRAMELESS_FUNCTION_INVOCATION): Use
7963 generic_frameless_function_invocation_not.
7964 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7965 (POP_FRAME): Use vax_pop_frame.
7966
7967 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7968
7969 * vax-tdep.c (vax_store_struct_return): New function.
7970 (vax_extract_return_value): Ditto.
7971 (vax_store_return_value): Ditto.
7972 (vax_extract_struct_value_address): Ditto.
7973 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7974 vax_store_struct_return.
7975 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7976 (STORE_RETURN_VALUE): Use vax_store_return_value.
7977 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7978
7979 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7980
7981 * vax-tdep.c (vax_frame_saved_pc): New function.
7982 (vax_frame_args_address_correct): Ditto.
7983 (vax_frame_args_address): Ditto.
7984 (vax_frame_locals_address): Ditto.
7985 (vax_frame_num_args): Move code to be in proximity to
7986 other frame-related functions.
7987 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7988 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7989 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7990 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7991 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7992
7993 2002-04-22 H.J. Lu (hjl@gnu.org)
7994
7995 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7996 includedir.
7997
7998 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7999
8000 * vax-tdep.c (vax_frame_init_saved_regs): New function.
8001 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
8002 (FRAME_INIT_SAVED_REGS): New macro.
8003
8004 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8005
8006 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
8007
8008 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8009
8010 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
8011 where needed.
8012 (fetch_osf_core_registers): Likewise.
8013 (supply_gregset): Likewise.
8014
8015 2002-04-22 J. Brobecker <brobecker@gnat.com>
8016
8017 * symfile.h (get_section_index): Define.
8018 * symfile.c (get_section_index): New function.
8019 * mdebugread.c (SC_IS_SBSS): New macro.
8020 (SC_IS_BSS): Return true for the scBss storage class only, as
8021 the scSBss storage class refers to the .sbss section.
8022 (parse_partial_symbols): Discard the symbols which associated
8023 section does not exist.
8024 Make sure to use the .sbss section index for symbols which
8025 storage class is scBss, rather than using the .bss section index.
8026
8027 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8028
8029 * vax-tdep.c: Update copyright years.
8030 (vax_register_name): New function.
8031 (vax_register_byte): Ditto.
8032 (vax_register_raw_size): Ditto.
8033 (vax_register_virtual_size): Ditto.
8034 (vax_register_virtual_type): Ditto.
8035 * config/vax/tm-vax.h: Update copyright years.
8036 (REGISTER_NAMES): Remove.
8037 (REGISTER_NAME): Define.
8038 (REGISTER_BYTE): Use vax_register_byte.
8039 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
8040 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
8041 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
8042
8043 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8044
8045 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
8046 declaration
8047 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
8048
8049 2002-04-21 David S. Miller <davem@redhat.com>
8050
8051 * arch-utils.c (generic_prologue_frameless_p): Kill
8052 SKIP_PROLOGUE_FRAMELESS_P code.
8053 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8054 references.
8055 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
8056 * arc-tdep.c (arc_prologue_frameless_p): Implement.
8057 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8058 references.
8059 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
8060 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
8061 (sparc_gdbarch_init): Pass it to
8062 set_gdbarch_prologue_frameless_p.
8063
8064 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8065
8066 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
8067 (alphabsd-nat.o): New dependency list.
8068
8069 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8070
8071 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8072 alphafbsd-tdep.c.
8073 (alpha-linux-tdep.o): New dependency list.
8074 (alphafbsd-tdep.o): Likewise.
8075
8076 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8077
8078 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
8079 to here...
8080 * alpha-tdep.c: ...from here.
8081 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8082
8083 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8084
8085 * config/alpha/tm-alpha.h: Move alpha_software_single_step
8086 prototype from here...
8087 * alpha-tdep.h: ...to here.
8088
8089 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8090
8091 * frame.h (selected_frame_level): Document as deprecated.
8092 (frame_relative_level): Declare.
8093 * stack.c (frame_relative_level): New function.
8094 (selected_frame_level): Document as deprecated.
8095 (select_frame): Do not set the selected_frame_level.
8096
8097 * stack.c (frame_info, record_selected_frame): Update.
8098 (frame_command, current_frame_command): Update.
8099 (up_silently_base, up_command, down_silently_base): Update.
8100 (down_command): Update.
8101 * inflow.c (kill_command): Update.
8102 * tracepoint.c (finish_tfind_command): Update.
8103 * corelow.c (core_open): Update.
8104 * thread.c (info_threads_command): Update.
8105 (do_captured_thread_select): Update.
8106 * infcmd.c (finish_command): Update.
8107 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8108
8109 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8110
8111 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8112
8113 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8114
8115 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8116 type const.
8117
8118 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8119
8120 * alphafbsd-tdep.c: Update copyright years. Include
8121 alpha-tdep.h.
8122 (alphafbsd_use_struct_convention): Make static.
8123 (alphafbsd_init_abi): New function.
8124 (_initialize_alphafbsd_tdep): New function.
8125 * config/alpha/tm-fbsd.h: Update copyright years.
8126 (USE_STRUCT_CONVENTION): Remove.
8127
8128 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8129
8130 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8131 an Alpha ABI variant.
8132 (alpha_abi_handler_list): Declare.
8133 (alpha_gdbarch_register_os_abi): New function.
8134 (alpha_gdbarch_init): Give registered ABI variant handlers a
8135 chance to tweak the gdbarch once we have set up defaults.
8136 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8137
8138 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8139
8140 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8141 to standard_coerce_float_to_double.
8142 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8143
8144 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8145
8146 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8147 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8148 from gdbarch_tdep rather than a constant.
8149 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8150 the default text address for all Alpha Unix ABIs.
8151 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8152 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8153
8154 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8155
8156 * alpha-tdep.h: New file. Includes several Alpha target constants
8157 taken from...
8158 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8159 let gdbarch deal with.
8160 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8161 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8162 to dependency list.
8163 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8164 Alpha target register names.
8165 * alphabsd-nat.c: Likewise.
8166 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8167 Alpha target register names. Make serveral routines static.
8168 (alpha_get_saved_register): New function.
8169 (alpha_abi_names): New.
8170 (process_note_abi_tag_sections): New function.
8171 (get_elfosabi): New function.
8172 (alpha_gdbarch_init): New function.
8173 (alpha_dump_tdep): New function.
8174 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8175
8176 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8177
8178 * frame.c (find_saved_register): Delete #ifdef
8179 HAVE_REGISTER_WINDOWS code.
8180 * config/sparc/tm-sparc.h: Update comments.
8181 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8182
8183 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8184
8185 * i960-tdep.c (i960_find_saved_register): New function.
8186 (i960_get_saved_register): New function.
8187 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8188 (i960_get_saved_register): Declare.
8189 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8190
8191 2002-04-20 David S. Miller <davem@redhat.com>
8192
8193 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8194
8195 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8196
8197 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8198 instead of NUM_PSEUDO_REGS.
8199
8200 2002-04-20 David S. Miller <davem@redhat.com>
8201
8202 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8203 GDB_MULTI_ARCH_PARTIAL
8204 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8205 define, let tm-sp64.h do it.
8206
8207 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8208
8209 * frame.c (find_saved_register): Avoid a NULL pointer
8210 dereference and actually walk the frame list.
8211
8212 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8213
8214 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8215 sorted in most most-recent-used order. Document.
8216 * gdbarch.h, gdbarch.c: Regenerate.
8217
8218 2002-04-19 Andrew Cagney <ac131313@redhat.com>
8219
8220 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8221 instead of ->prev.
8222 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8223 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8224 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8225 instead of ->prev.
8226
8227 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
8228
8229 Fix PR gdb/471.
8230 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8231 (build_builtin_type_vec128): Ditto.
8232 (append_composite_type_field): Fix calculation of type length in
8233 union case.
8234
8235 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8236
8237 * config/djgpp/README: Update.
8238
8239 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8240 compiler warnings.
8241
8242 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8243
8244 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8245 (alpha_setup_arbitrary_frame): ...to this.
8246 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8247 for alpha_setup_arbitrary_frame.
8248
8249 2002-04-18 Andrew Cagney <cagney@redhat.com>
8250
8251 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8252 * gdbarch.h, gdbarch.c: Regenerate.
8253
8254 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8255 * target.h (memory_breakpoint_from_pc): Update declaration.
8256 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8257
8258 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8259 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8260 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8261 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8262 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8263 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8264 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8265 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8266 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8267 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8268 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8269 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8270
8271 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8272 const pointer.
8273 * monitor.c (monitor_insert_breakpoint): Ditto.
8274 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8275
8276 * config/mcore/tm-mcore.h: Update copyright.
8277 * mem-break.c: Ditto.
8278 * xstormy16-tdep.c: Ditto.
8279
8280 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8281
8282 * p-exp.y: Add precedence rule for '^' token.
8283 This removes the shift/reduce conflicts.
8284 Remove the comment concerning these shift/reduce conflicts.
8285
8286 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
8287
8288 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8289 (registers_powerpc_nofp): New register set for processors
8290 without floating point unit.
8291
8292 2002-04-18 David S. Miller <davem@redhat.com>
8293
8294 * MAINTAINERS: Add myself to write-after-approval.
8295
8296 2002-04-17 Michael Snyder <msnyder@redhat.com>
8297
8298 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8299
8300 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8301
8302 * rs6000-tdep.c (frame_initial_stack_address): Use
8303 frame_register_read to read the alloca_reg.
8304
8305 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8306
8307 * frame.c (find_saved_register): Find saved registers in the next
8308 not prev frame.
8309 Fix PR gdb/365.
8310
8311 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8312
8313 * gdbarch.sh (LANG): Set to ``c''.
8314
8315 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8316
8317 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8318
8319 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8320
8321 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8322 Update copyright.
8323
8324 * hpread.c (hpread_get_lntt): Add declaration.
8325 Also fix PR gdb/391.
8326
8327 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8328
8329 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8330 * aclocal.m4, configure: Re-generate.
8331 Fix PR gdb/391.
8332
8333 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8334
8335 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8336 instead of tm_print_insn.
8337
8338 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8339
8340 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8341
8342 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8343
8344 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8345 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8346 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8347
8348 2002-04-12 Don Howard <dhoward@redhat.com>
8349
8350 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8351 max_user_call_depth.
8352 (init_cmd_lists): Initialize the new value;
8353 * cli/cli-script.c (execute_user_command): Limit the call depth of
8354 user defined commands. This avoids a core-dump when user commands
8355 are infinitly recursive.
8356
8357 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8358
8359 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8360 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8361 from tdep struct instead of DEFAULT_LR_SAVE.
8362 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8363 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8364 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8365
8366 2002-04-12 Michael Snyder <msnyder@redhat.com>
8367
8368 * Remote.c: Spelling fix.
8369 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8370 If no symbol found for "sbrk", try "_sbrk".
8371 (make_output_phdrs): Use bfd_section_name.
8372 (gcore_copy_callback): Use bfd_section_name.
8373 * eval.c: Indentation fix-ups.
8374 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8375 in case it gets applied to an address that is already
8376 in the instruction space.
8377 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8378 * symfile.c: Fix indentation, long lines.
8379 * source.c: White space fix-up.
8380
8381 2002-04-12 Andrew Cagney <cagney@redhat.com>
8382
8383 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8384 * frame.c (frame_register_read): New function. Return non-zero on
8385 success.
8386 (read_relative_register_raw_bytes_for_frame): Delete.
8387 (read_relative_register_raw_bytes): Delete.
8388 * frame.h (frame_register_read): Declare.
8389 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8390 * sh-tdep.c: Ditto.
8391 * infcmd.c (do_registers_info): Ditto.
8392 * hppa-tdep.c: Ditto.
8393 * rs6000-tdep.c: Ditto.
8394 * h8500-tdep.c: Ditto.
8395 * mips-tdep.c: Ditto.
8396 * h8300-tdep.c: Ditto.
8397 * z8k-tdep.c: Ditto.
8398
8399 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8400
8401 From Jimi X <jimix@watson.ibm.com>:
8402 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8403 64-bit SysV ABI.
8404
8405 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8406
8407 From Jimi X <jimix@watson.ibm.com>:
8408 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8409 bfd info.
8410
8411 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8412
8413 From Jimi X <jimix@watson.ibm.com>:
8414 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8415 register sets for these processor variants.
8416
8417 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
8418
8419 * regformats/reg-ppc.dat: Support FPSCR.
8420
8421 2002-04-11 Kevin Buettner <kevinb@redhat.com>
8422
8423 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8424 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8425 Add fpscr as an invalid/unfetchable register.
8426 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8427 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8428 (fill_fpregset): Add support for register fpscr.
8429 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8430 (fill_gregset): Account for the fact that register ``mq'' might
8431 not exist.
8432 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8433 (registers_power): Add fpscr to register set at slot 71.
8434 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8435 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8436
8437 2002-04-11 Michael Snyder <msnyder@redhat.com>
8438
8439 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8440 * configure: Regenerate.
8441 * config.in: Regenerate.
8442 * acconfig.h: Add define for _SYSCALL32.
8443 * core-sol2.c: Remove #define _SYSCALL32.
8444 * solib-legacy.c: Remove #define _SYSCALL32.
8445
8446 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8447
8448 * stack.c (select_frame): Cleanup internal error message, do not
8449 use %p.
8450
8451 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8452
8453 * stack.c (select_frame): Check that selected_frame and the
8454 specified level are as expected.
8455 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8456 Update copyright.
8457 * frame.h (struct frame_info): Add field `level'. Update
8458 copyright.
8459 Work-in-progress PR gdb/464.
8460
8461 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8462
8463 * maint.c (maint_print_section_info): Rename print_section_info.
8464 (print_bfd_section_info, print_objfile_section_info): Update.
8465 * inferior.h (struct gdbarch): Add opaque declaration.
8466 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8467 * gdbarch.h: Regenerate.
8468
8469 2002-04-10 Michal Ludvig <mludvig@suse.cz>
8470
8471 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8472 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8473 (kernel_u_size): Added.
8474 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8475 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8476
8477 2002-04-04 Jim Ingham <jingham@apple.com>
8478
8479 * valarith.c (find_size_for_pointer_math): New function, either returns
8480 the size for a pointer's target, returns 1 for void *, or errors for
8481 incomplete types.
8482 (value_add, value_sub): use find_size_for_pointer_math.
8483
8484 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8485
8486 * linux-low.c (linux_look_up_symbols): New hook.
8487 (linux_target_ops): Add linux_look_up_symbols.
8488 * remote-utils.c (decode_address): New function.
8489 (look_up_one_symbol): New function.
8490 * server.c (handle_query): Call target look_up_symbols hook.
8491 * server.h (look_up_one_symbol): Add prototype.
8492 * target.h (struct target_ops): Add look_up_symbols hook.
8493
8494 2002-04-09 Andrew Cagney <ac131313@redhat.com>
8495
8496 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8497 override FP_REGNUM with frame->fp. Update copyright.
8498 * parse.c (num_std_regs, std_regs): Delete.
8499 (target_map_name_to_register): Do not search std_regs. Update
8500 function description.
8501 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8502 declarations. Update copyright.
8503 Fix PR gdb/251.
8504
8505 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8506
8507 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8508 after the last symbol in a block.
8509
8510 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8511
8512 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8513 is non zero as a found symbol.
8514
8515 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8516
8517 * findvar.c: Include "builtin-regs.h".
8518 (value_of_register): Call value_of_builtin_reg when applicable.
8519 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8520 (target_map_name_to_register): Call
8521 builtin_reg_map_name_to_regnum.
8522 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8523 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8524 (builtin_regs_h): Define.
8525 (builtin-regs.o): New target.
8526 (findvar.o): Add $(builtin_regs_h).
8527 * builtin-regs.c, builtin-regs.h: New files.
8528 * std-regs.c: New file.
8529 Partial fix for PR gdb/251.
8530
8531 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8532
8533 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8534 it's no longer required.
8535
8536 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8537
8538 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8539
8540 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8541
8542 From Jimi X <jimix@watson.ibm.com>:
8543 * rs6000-tdep.c (rs6000_software_single_step): Use
8544 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8545 and size. Use target_insert_breakpoint() and
8546 target_remove_breakpoint() to insert and remove breakpoints
8547 instead of explicit memory reads and writes.
8548
8549 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8550
8551 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8552 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8553 ELF_OBJECT_FORMAT ifdef.
8554
8555 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8556
8557 From Jimi X <jimix@watson.ibm.com>:
8558 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8559
8560 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8561
8562 From Jimi X <jimix@watson.ibm.com>:
8563 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8564 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8565
8566 2002-04-07 Mark Kettenis <kettenis@gnu.org>
8567
8568 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8569 s/asprintf/xasprintf/.
8570 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8571
8572 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8573
8574 I believe Jeff Law denies responsability for this one:
8575 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8576 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8577 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8578 Work-around for PR gdb/366.
8579
8580 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8581
8582 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8583 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8584 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8585
8586 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8587
8588 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8589 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8590 information.
8591
8592 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8593
8594 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8595 maintainer.
8596
8597 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8598
8599 * README (Reporting Bugs in GDB): Document the bug web page as the
8600 prefered way of submitting bugs.
8601 Fix PR gdb/402.
8602
8603 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8604
8605 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8606 -1. Update comment.
8607 * gdbarch.h, gdbarch.c: Re-generate.
8608
8609 2002-04-07 Andreas Schwab <schwab@suse.de>
8610
8611 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8612 buffer to regcache_collect.
8613
8614 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8615
8616 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8617 * gdbarch.c, gdbarch.h: Re-generate.
8618
8619 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8620
8621 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8622 declaration. Fix -Werror.
8623
8624 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
8625
8626 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8627 * gdbarch.c: Regenerate.
8628
8629 2002-04-05 Michael Snyder <msnyder@redhat.com>
8630
8631 * breakpoint.c (clear_command): Rewrite middle section to
8632 combine two loops with identical control conditions.
8633 Add a cleanup to eliminate a memory leak.
8634 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8635
8636 2002-04-05 H.J. Lu (hjl@gnu.org)
8637
8638 * solib-svr4.c (bkpt_names): Add "__start".
8639
8640 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8641
8642 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8643 as test for 64 bit target.
8644
8645 2002-04-05 Andrew Cagney <ac131313@redhat.com>
8646
8647 * h8500-tdep.c (h8500_write_fp): Delete function.
8648 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8649 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8650 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8651 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8652 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8653 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8654 (s390_write_fp):
8655 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8656 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8657 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8658 (d10v_write_fp): Delete function.
8659 * inferior.h (write_fp, generic_target_write_fp): Delete
8660 declarations.
8661 * regcache.c (generic_target_write_fp): Delete function.
8662 (write_fp): Delete function.
8663 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8664 * gdbarch.h, gdbarch.c: Regenerate.
8665 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8666 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8667 (sparc64_write_fp): Delete declaration.
8668 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8669 (h8500_write_fp): Delete declaration.
8670
8671 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8672
8673 * sparc-tdep.c (sparc64_write_fp): Delete.
8674 (sparc_push_dummy_frame): Replace write_fp call with code to store
8675 the FP directly.
8676 (sparc_gdbarch_init): Do not initialize write_fp.
8677
8678 2002-04-05 Kevin Buettner <kevinb@redhat.com>
8679
8680 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8681 clause.
8682
8683 2002-03-29 Jim Blandy <jimb@redhat.com>
8684
8685 * stack.c (get_selected_block): Add new argument `addr_in_block',
8686 used to return the exact code address we used to select the block,
8687 not just the block.
8688 * blockframe.c (get_frame_block, get_current_block): Same.
8689 * frame.h (get_frame_block, get_current_block,
8690 get_selected_block): Update declarations.
8691 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8692 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8693
8694 2002-04-05 Michael Snyder <msnyder@redhat.com>
8695
8696 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8697 warning message.
8698
8699 2002-04-05 J. Brobecker <brobecker@gnat.com>
8700
8701 * utils.c (xfullpath): New function.
8702 * defs.h (xfullpath): Add declaration.
8703 * source.c (openp): Use xfullpath in place of gdb_realpath to
8704 avoid resolving the basename part of filenames when the
8705 associated file is a symbolic link. This fixes a potential
8706 inconsistency between the filenames known to GDB and the
8707 filenames it prints in the annotations.
8708 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8709 to be able to match a filename with either the real filename, or
8710 the name of any symbolic link to this file.
8711 (lookup_partial_symtab): Ditto.
8712
8713 2002-04-04 Michael Snyder <msnyder@redhat.com>
8714
8715 * breakpoint.c: Add support for hardware breakpoints in overlays.
8716 (overlay_events_enabled): New state variable.
8717 (insert_breakpoints): Use overlay_events_enabled to decide
8718 whether to attempt to set a breakpoint at the overlay load addr.
8719 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8720 (remove_breakpoint): Use overlay_events_enabled to decide
8721 whether breakpoints need to be removed from overlay load addr.
8722 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8723 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8724 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8725 disable_overlay_breakpoints): Update overlay_events_enabled.
8726
8727 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
8728
8729 * dwarf2read.c (struct function_range): New.
8730 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8731 (check_cu_functions): New.
8732 (read_file_scope): Initialize global function lists.
8733 Call dwarf_decode_line after processing children.
8734 (read_func_scope): Add to global function list.
8735 (dwarf_decode_lines): Call check_cu_functions everywhere
8736 record_line is called. Call record_line with a linenumber
8737 of 0 to mark sequence ends.
8738
8739 2002-04-04 Michal Ludvig <mludvig@suse.cz>
8740
8741 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8742 change sync with glibc.
8743
8744 2002-04-03 Jim Blandy <jimb@redhat.com>
8745
8746 * configure.in: Call AC_C_INLINE.
8747 * configure: Regenerated.
8748
8749 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
8750
8751 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8752 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8753
8754 2002-03-31 Mark Kettenis <kettenis@gnu.org>
8755
8756 * NEWS: Mention gcore support on FreeBSD/i386.
8757
8758 * fbsd-proc.c: New file.
8759 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8760 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8761
8762 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8763 while statement.
8764
8765 2002-03-29 Jim Blandy <jimb@redhat.com>
8766
8767 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8768 unescaped newlines in string literals, but newer ones don't. So
8769 escape them.
8770
8771 2002-03-26 Michael Snyder <msnyder@redhat.com>
8772 Andrew Cagney <cagney@redhat.com>
8773
8774 * cli/cli-dump.c: New file. Dump memory to file,
8775 restore file to memory.
8776 * cli/cli-dump.h: New file.
8777 * Makefile.in: Add rules, dependencies for cli-dump.o.
8778 * NEWS: Mention new commands.
8779
8780 2002-03-28 Michael Snyder <msnyder@redhat.com>
8781
8782 * symfile.c (symbol_file_add): Move test for null symbols to later.
8783
8784 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8785
8786 From veksler at il.ibm.com:
8787 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8788 the xstrduped original path.
8789 Fix PR gdb/417.
8790
8791 2002-03-27 Michael Snyder <msnyder@redhat.com>
8792
8793 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8794 * infcmd.c (_initialize_infcmd): Ditto.
8795 * language.c (_initialize_language): Ditto.
8796 * symfile.c (_initialize_symfile): Ditto.
8797 * top.c (_init_main): Ditto.
8798 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8799
8800 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
8801
8802 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8803 vector registers handling.
8804 (skip_prologue): Handle new AltiVec instructions. Fill in new
8805 fields of frame data.
8806 (frame_get_saved_regs): Fill in information for AltiVec registers.
8807
8808 2002-03-27 Jim Blandy <jimb@redhat.com>
8809
8810 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8811 a function; leave this macro here to invoke that function.
8812 (symbol_init_mangled_name): Declaration for that function.
8813 * symtab.c (symbol_init_mangled_name): New function.
8814
8815 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8816
8817 * valarith.c: Replace strerror with safe_strerror.
8818 * tracepoint.c: Ditto.
8819 * lin-lwp.c: Ditto.
8820 * go32-nat.c: Ditto.
8821 * inflow.c: Ditto.
8822 * gnu-nat.c: Ditto.
8823
8824 2002-03-27 Andreas Schwab <schwab@suse.de>
8825
8826 * event-top.c (command_line_handler): Remove useless if.
8827
8828 2002-03-27 Andreas Jaeger <aj@suse.de>
8829
8830 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8831 comment.
8832
8833 2002-03-27 Michal Ludvig <mludvig@suse.cz>
8834
8835 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8836 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8837 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8838 (x86_64_linux_dr_get_status, supply_gregset),
8839 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8840 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8841 (x86_64_register_info_table): Add.
8842 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8843 (x86_64_register_raw_size, x86_64_register_virtual_type),
8844 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8845 general x86_64_register_info_table.
8846 (i386_gdbarch_init): gdbarch_register_bytes is now set
8847 dynamicaly during initialization.
8848 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8849 * gdbserver/linux-x86-64-low.c: Ditto.
8850
8851 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8852
8853 * gdbserver/server.c (main): Call target_signal_to_host_p
8854 and target_signal_to_host on signals received from the remote.
8855 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8856 target_signal_from_host on signals sent to the remote.
8857 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8858 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8859
8860 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8861
8862 * signals/signals.c: Include "server.h" in gdbserver build.
8863 (target_signal_from_name): Don't use STREQ.
8864 (_initialize_signals): Likewise. Don't include function in
8865 gdbserver build.
8866
8867 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8868
8869 * signals.c: Moved to...
8870 * signals/signals.c: Here.
8871 * Makefile (signals.o): Update.
8872
8873 2002-03-26 Jeff Law (law@redhat.com)
8874
8875 * somread.c (som_symtab_read): Remove some commented out code and
8876 updated related comments. Do not set the minimal symbol table to
8877 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8878 in a dynamic executable.
8879 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8880 where we are unable to find the minimal symbol for the given
8881 PC value.
8882
8883 2002-03-25 Jeff Law (law@redhat.com)
8884
8885 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8886
8887 2002-03-25 Michal Ludvig <mludvig@suse.cz>
8888
8889 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8890
8891 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8892
8893 * command.h: Update copyright.
8894 (struct cmd_list_element): Replace definition with opaque
8895 declaration.
8896 (enum cmd_types): Document that it will eventually be moved to
8897 cli/cli-decode.h
8898 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8899 (MALLOCED_REPLACEMENT): Delete macro.
8900 * Makefile.in (cli_decode_h): Add $(command_h).
8901 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8902 * top.c: Include "cli/cli-decode.h".
8903 * completer.c: Include "cli/cli-decode.h".
8904 * maint.c: Include "cli/cli-decode.h".
8905 * cli/cli-decode.h: Include "command.h".
8906 (enum command_class): Delete.
8907 (enum cmd_types): Comment out.
8908 (enum cmd_auto_boolean): Delete.
8909 (enum var_types): Delete.
8910
8911 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8912
8913 * cli/cli-decode.c: Include "gdb_assert.h".
8914 (add_set_or_show_cmd): New static function.
8915 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8916 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8917 all fields, such as func, from the set command.
8918
8919 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8920
8921 * MAINTAINERS (sh-elf): Change warning flag to -w.
8922
8923 2002-03-23 Andrew Cagney <cagney@redhat.com>
8924
8925 * defs.h (error): Add printf format attribute.
8926 * thread-db.c (thread_from_lwp): Fix error format string.
8927 * stack.c (parse_frame_specification): Ditto.
8928 * cli/cli-decode.c (undef_cmd_error): Ditto.
8929 * scm-lang.c (scm_lookup_name): Ditto.
8930 * tracepoint.c (trace_error): Ditto.
8931 * remote-utils.c (usage): Ditto.
8932 * remote.c (compare_sections_command): Ditto.
8933 Fix PR gdb/328.
8934
8935 2002-03-22 Andrew Cagney <ac131313@redhat.com>
8936
8937 * gdbtypes.c (append_composite_type_field): New function.
8938 (init_composite_type): New function.
8939 * gdbtypes.h (append_composite_type_field): Declare.
8940 (init_composite_type): Ditto.
8941
8942 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
8943
8944 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
8945 function.
8946 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8947 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8948 structure returning convention for SYSV ABI case, but not
8949 for GNU/Linux, FreeBSD, or NetBSD.
8950
8951 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
8952
8953 * symtab.h (lookup_block_symbol): Add mangled_name argument
8954 to prototype.
8955
8956 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8957 with new mangled_name argument.
8958 * linespec.c (decode_line_1): Likewise.
8959 * valops (value_of_this): Likewise.
8960 * symtab.c (lookup_transparent_type): Likewise.
8961 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8962 (lookup_symbol): If we are given a mangled name, pass it down
8963 to lookup_symbol_aux.
8964 (lookup_block_symbol): If we are given a mangled name to check
8965 against, only return symbols which match it.
8966
8967 2002-03-22 Christopher Faylor <cgf@redhat.com>
8968
8969 * win32-nat.c (child_create_inferior): Check for proper shell to use
8970 here, in case the user changes it on the fly.
8971 (_initialize_inftarg): Remove shell path considerations.
8972
8973 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
8974
8975 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8976 for gdbarch_max_register_raw_size and max_register_virtual_size.
8977 Adjust copyright year.
8978
8979 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
8980
8981 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8982 in a function to cover the entire beginning of the function
8983 as well if it does not already.
8984
8985 2002-03-21 Tom Rix <trix@redhat.com>
8986
8987 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8988 (rs6000_ptrace64): Renamed from ptrace64.
8989
8990 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8991
8992 * gdbserver/remote-utils.c (remote_open): Don't call
8993 getprotobyname, we're all using TCP here so just use
8994 IPPROTO_TCP.
8995 * gdbserver/gdbreplay.c (remote_open): Ditto.
8996
8997 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8998
8999 * regcache.c (_initialize_regcache): No need to call
9000 build_regcache() at this time; it gets called whenever
9001 the gdbarch changes.
9002
9003 2002-03-20 David O'Brien <obrien@FreeBSD.org>
9004
9005 * sparc-nat.c: Include sys/param.h where possible.
9006
9007 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
9008
9009 Fix PR gdb/422.
9010 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
9011 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
9012 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
9013 complex types.
9014 * stabsread.c (rs6000_builtin_type): Likewise.
9015 (read_sun_floating_type): Likewise.
9016
9017 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9018
9019 * stabsread.c (read_member_functions): Remove skip code for duplicate
9020 constructor/destructor methods. Use standard parsing for these
9021 methods and just do not chain them to the list of methods after
9022 parsing.
9023
9024 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
9025
9026 * coffread.c: Remove redundant static declarations. Replace
9027 occurrences of `PTR' with `void *'.
9028 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
9029 * top.h (quit_cover): Likewise.
9030 * defs.h (catch_errors): Likewise.
9031
9032 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9033
9034 * defs.h (XMALLOC): Define.
9035 * gdb-events.sh (XMALLOC): Delete macro.
9036 * gdb-events.c, gdb-events.h: Regenerate.
9037 * gdbarch.sh (XMALLOC): Delete macro.
9038 * gdbarch.c: Regenerate.
9039 * serial.c (XMALLOC): Delete macro.
9040 * ui-file.c (XMALLOC): Ditto.
9041 * ser-unix.h (XMALLOC): Ditto.
9042 * sh-tdep.c (XMALLOC): Ditto.
9043 * ui-out.c (XMALLOC): Ditto.
9044 * utils.c (XMALLOC): Ditto.
9045 * i386-tdep.c (XMALLOC): Ditto.
9046 * gdb-events.c (XMALLOC): Ditto.
9047 * d10v-tdep.c (XMALLOC): Ditto.
9048 * cli-out.c (XMALLOC): Ditto.
9049
9050 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
9051 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
9052 * ui-file.c, ui-out.c: Ditto.
9053
9054 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9055
9056 * command.h (struct cmd_list_element): Add field context.
9057 (set_cmd_context, get_cmd_context): Declare.
9058 * cli/cli-decode.h: Ditto.
9059 * cli/cli-decode.c (get_cmd_context): New function.
9060 (set_cmd_context): New function.
9061 (add_cmd): Initialize context.
9062 Part of fixing PR gdb/145 and PR gdb/146.
9063
9064 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9065
9066 * cli/cli-decode.c (cmd_type): New function.
9067 * command.h (cmd_type): Declare.
9068 * infrun.c (set_schedlock_func): Call function cmd_type.
9069 * kod.c (kod_set_os): Call cmd_type.
9070 * cris-tdep.c (cris_version_update): Use function cmd_type.
9071 (cris_mode_update, cris_abi_update): Ditto.
9072
9073 * command.h: (execute_cmd_post_hook): Declare.
9074 (execute_cmd_pre_hook): Declare.
9075 * cli/cli-script.c (clear_hook_in_cleanup): New function.
9076 (execute_cmd_post_hook, execute_cmd_pre_hook): New
9077 functions. Execute pre/post hook while ensuring that afterwords
9078 hook_in is cleared.
9079 * top.c (execute_command): Use execute_cmd_post_hook, and
9080 execute_cmd_pre_hook to execute pre/post commands.
9081 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
9082 hook_stop_stub.
9083 (hook_stop_stub): Call execute_cmd_pre_hook.
9084
9085 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9086
9087 * kod.c (kod_set_os): Revert previous change. Is called by ``info
9088 set'' and this leads to a core dump. Move xstrdup of
9089 operating_system to after check that it is not NULL.
9090
9091 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9092
9093 * kod.c (kod_set_os): Remove unnecessary check that
9094 ``command->type'' is set_cmd.
9095
9096 * valprint.c (set_input_radix): Use input_radix.
9097 (set_output_radix): Use output_radix.
9098 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9099 isn't reverted.
9100
9101 2002-03-16 Andrew Cagney <ac131313@redhat.com>
9102
9103 * value.h (struct value): Delete field ``substring_addr''. Change
9104 aligner fields to force_doublest_align, force_longest_align,
9105 force_core_addr_align and force_pointer_aligh.
9106
9107 * value.h (struct value): Fix typo in above change.
9108
9109 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9110
9111 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9112 to fix internal_error from ``maintenance print architecture''.
9113
9114 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9115
9116 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9117 for gcc versions after gcc-2.8.1.
9118
9119 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9120
9121 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9122 for method resolution. Restore adjustment of ``this'' pointer after
9123 calling value_struct_elt, which was accidentally removed during the
9124 HP merge.
9125
9126 2002-03-15 Andrew Cagney <ac131313@redhat.com>
9127
9128 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9129 value_of_register.
9130 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9131 get_saved_register.
9132 * value.h (value_of_register): Update.
9133
9134 2002-03-14 Richard Henderson <rth@redhat.com>
9135
9136 * configure.in: Detect declaration for canonicalize_file_name.
9137 * utils.c (canonicalize_file_name): Declare, if needed.
9138 (gdb_realpath): Prefer realpath if available and usable.
9139 * config.in, configure: Rebuild.
9140
9141 2002-03-14 Richard Henderson <rth@redhat.com>
9142
9143 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9144 a constant array bound.
9145
9146 * MAINTAINERS: Add myself to write-after-approval.
9147
9148 2002-03-14 Michael Snyder <msnyder@redhat.com>
9149
9150 * symfile.c (syms_from_objfile): Return immediately if no syms.
9151 (symbol_file_add): Return immediately if no syms.
9152 (find_sym_fns): Return immediately if no syms.
9153
9154 2002-03-13 Michal Ludvig <mludvig@suse.cz>
9155
9156 * gdbserver/remote-util.c (remote_open): Print remote-side's
9157 IP address when remote debugging over the network.
9158
9159 2002-03-12 David O'Brien <obrien@FreeBSD.org>
9160
9161 * config/sparc/fbsd.mh: Fix copyright.
9162 * config/sparc/fbsd.mt: Likewise.
9163
9164 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
9165
9166 * MAINTAINERS: Fix typo in name of gdb warnings option.
9167 (x86-64): Fix formating so that this can be parsed by awk.
9168
9169 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9170
9171 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9172 * defs.h: Include "gdb/signals.h".
9173 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9174
9175 2002-03-10 Michal Ludvig <mludvig@suse.cz>
9176
9177 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
9178 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
9179 from x86-64-tdep.h
9180
9181 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9182 Don Howard <dhoward@redhat.com>
9183
9184 * mips-tdep.c (ST0_FR): Define.
9185 (mips2_fp_compat): New function, temporarily disabled.
9186 (mips_read_fp_register_single): New function.
9187 (mips_read_fp_register_double): New function.
9188 (mips_print_register): Use them.
9189 (do_fp_register_row): Likewise.
9190
9191 2002-03-09 Andrew Cagney <ac131313@redhat.com>
9192
9193 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9194 approval''.
9195
9196 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9197
9198 * stabsread.c (read_member_functions): Fix is_stub test for
9199 static member functions, improve comment.
9200
9201 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
9202
9203 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9204 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9205 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9206 commands that set boolean values.
9207 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9208 (arm_rdi_resume): Always initialize PC.
9209 (arm_rdi_open): Don't use rslt as a boolean.
9210 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9211 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9212 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9213 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9214
9215 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
9216
9217 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9218 * configure: Rebuilt.
9219
9220 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9221
9222 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9223 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9224
9225 2002-03-06 Andrew Cagney <ac131313@redhat.com>
9226
9227 * cli/cli-decode.c (set_cmd_completer): New function.
9228 * command.h (set_cmd_completer): Declare.
9229 * cli/cli-decode.h (set_cmd_completer): Ditto.
9230
9231 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9232 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9233 * win32-nat.c (_initialize_inftarg): Ditto.
9234 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9235 * proc-api.c (_initialize_proc_api): Ditto.
9236 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9237 * source.c (_initialize_source): Ditto.
9238 * exec.c (_initialize_exec): Ditto.
9239 * solib.c (_initialize_solib): Ditto.
9240 * top.c (init_main): Ditto.
9241 * tracepoint.c (_initialize_tracepoint): Ditto.
9242 * symfile.c (_initialize_symfile): Ditto.
9243 * printcmd.c (_initialize_printcmd): Ditto.
9244 * infcmd.c (_initialize_infcmd): Ditto.
9245 * corefile.c (_initialize_core): Ditto.
9246
9247 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9248
9249 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9250
9251 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9252
9253 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9254
9255 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9256
9257 * NEWS: Update headings, 5.2 has branched.
9258
9259 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
9260
9261 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9262 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9263 (register_addr, REGISTER_RAW_SIZE): Likewise.
9264 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9265 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9266
9267 2002-03-03 Michal Ludvig <mludvig@suse.cz>
9268
9269 * MAINTAINERS (x86-64): Add myself.
9270 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9271 changed value_ptr -> struct value *
9272
9273 2002-03-01 David O'Brien <obrien@FreeBSD.org>
9274
9275 * configure.host (sparc64-*-freebsd): Add.
9276 * configure.tgt: Likewise.
9277 * config/sparc/fbsd.mh: New file.
9278 * config/sparc/fbsd.mt: Likewise.
9279 * config/sparc/nm-fbsd.h: Likewise.
9280 * config/sparc/tm-fbsd.h: Likewise.
9281
9282 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
9283
9284 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9285 regformats/reg-s390x.dat.
9286
9287 2002-03-01 Andrew Cagney <ac131313@redhat.com>
9288
9289 * utils.c: Add FIXME explaining true/false problem.
9290
9291 2002-02-28 Andrew Cagney <ac131313@redhat.com>
9292
9293 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9294
9295 2002-02-28 Michael Chastain <mec@shout.net>
9296
9297 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9298
9299 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
9300
9301 * gdbserver/linux-s390-low.c: New file.
9302 * regformats/reg-s390.dat: New file.
9303 * regformats/reg-s390x.dat: New file.
9304 * gdbserver/configure.srv: Add S/390.
9305 * gdbserver/Makefile.in: Add S/390.
9306 * configure.tgt: Enable gdbserver for S/390.
9307
9308 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9309
9310 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9311 first line of the doc string for "info dos", except at the end of
9312 the sentence, since the short help stops at the first period.
9313
9314 2002-02-28 Jason Merrill <jason@redhat.com>
9315
9316 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9317
9318 2002-02-27 Fred Fish <fnf@redhat.com>
9319
9320 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9321 comment (dumy -> dummy).
9322
9323 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9324
9325 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9326
9327 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
9328
9329 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9330
9331 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9332
9333 * gdbserver/acconfig.h: New file.
9334 * gdbserver/i387-fp.c: New file.
9335 * gdbserver/i387-fp.h: New file.
9336 * gdbserver/linux-x86-64.c: New file.
9337 * regformats/reg-x86-64.dat: New file.
9338 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9339 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9340 * gdbserver/configure.in: Add support for regsets.
9341 * gdbserver/config.in: Regenerate.
9342 * gdbserver/configure: Regenerate.
9343 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9344 * gdbserver/linux-low.h: New file.
9345 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9346 for regsets.
9347 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9348 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9349 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9350 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9351 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9352 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9353 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9354 "i387-fp.h". Add PTRACE_GETREGS and friends.
9355 * gdbserver/regcache.c (supply_register): New function.
9356 (supply_register_by_name): New function.
9357 (collect_register): New function.
9358 (collect_register_by_name): New function.
9359
9360 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9361
9362 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9363 (config.status): Add configure.srv dependency.
9364 (server_h): Add config.h dependency.
9365
9366 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9367
9368 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9369 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9370 * gdbserver/configure.srv: Change i386-*-linux* to use
9371 reg-i386-linux.o.
9372
9373 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9374
9375 * x86-64-tdep.c: Re-indent. Update copyright date.
9376
9377 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9378
9379 From Michal Ludvig <mludvig@suse.cz>:
9380 * x86-64-tdep.c (value.h): Delete.
9381 (gdb_assert.h): Include.
9382 (x86_64_register_convert_to_virtual,
9383 x86_64_register_convert_to_raw ): Add check which lets only
9384 floating-point values to be converted.
9385 (value_push): Delete.
9386 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9387 (i386_gdbarch_init): Number of register_bytes fixed.
9388
9389 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9390
9391 * MAINTAINERS: Add x86-64 target.
9392
9393 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9394
9395 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9396 * osfsolib.c (solib_map_sections): Ditto.
9397 * irix5-nat.c (solib_map_sections): Ditto.
9398 * corelow.c (gdb_check_format): Ditto.
9399 * symfile.c (symfile_bfd_open): Ditto.
9400 * solib.c (solib_map_sections): Ditto.
9401 Fix PR gdb/354.
9402
9403 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9404
9405 * remote.c (_initialize_remote): By default, disable ``e'' and
9406 ``E'' step out-of-range packets.
9407
9408 2002-02-26 Andreas Schwab <schwab@suse.de>
9409
9410 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9411 m68k_linux_frame_saved_pc.
9412 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9413 in_sigtramp.
9414 (SIGCONTEXT_PC_OFFSET): Remove.
9415 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9416 m68k_linux_sigtramp_saved_pc): New functions.
9417 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9418 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9419 (UCONTEXT_PC_OFFSET): Define.
9420 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9421 non-RT and RT signal trampolines.
9422
9423 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
9424
9425 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9426 (TARGET_NBPG, STACK_END_ADDR): Delete
9427 (VARIABLES_INSIDE_BLOCK): Delete.
9428
9429 2002-02-25 Andrew Cagney <ac131313@redhat.com>
9430
9431 * utils.c (perror_with_name): Make string parameter constant.
9432 (print_sys_errmsg): Ditto.
9433 (query): Ditto.
9434 * defs.h (perror_with_name): Update.
9435 (print_sys_errmsg): Update.
9436 (query): Update.
9437
9438 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
9439
9440 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9441 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9442
9443 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9444
9445 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9446 if it already matches the current architecture from the exec file.
9447 Include arch-utils.h for gdbarch_info_init prototype.
9448 * Makefile.in (rs6000-nat.o): Update dependencies.
9449
9450 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9451
9452 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9453 list of exported variables.
9454
9455 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
9456
9457 * gdbserver/configure.srv: New file.
9458 * gdbserver/configure.in: Use configure.srv instead
9459 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9460 from it.
9461 * gdbserver/configure: Regenerated.
9462 * gdbserver/terminal.h: New file.
9463 * gdbserver/Makefile.in: Update for configure changes. Remove
9464 more unneeded include paths.
9465
9466 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9467
9468 From wiz at danbala:
9469 * config/sparc/tm-sp64.h: Fix grammar and typos.
9470 Fix PR gdb/287.
9471
9472 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9473
9474 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9475 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9476 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9477 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9478 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9479 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9480 * s390-tdep.c: Ditto.
9481 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9482 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9483 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9484 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9485 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9486 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9487 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9488 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9489 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9490 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9491 Fix PR gdb/378.
9492
9493 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9494
9495 * lin-thread.c: Delete file.
9496 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9497 to gdb_proc_service.h.
9498 * configure: Re-generate.
9499
9500 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9501 * serial.c (serial_open): Delete check for "ocd".
9502 Fix PR gdb/349.
9503
9504 * Makefile.in (linux-thread.o): Delete target.
9505 * linux-thread.c: Delete file.
9506
9507 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9508 renamed SH files to be consistent.
9509
9510 * symtab.c (sort_search_symbols): Use xfree.
9511
9512 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9513
9514 * arm-linux-tdep.c (arm_linux_init_abi): Register
9515 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9516 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9517 definition with undef, since we don't want the sysvr4 definition.
9518 (SKIP_TRAMPOLINE_CODE): Likewise.
9519
9520 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9521
9522 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9523
9524 * configure.in: (AC_CHECK_FUNCS) Added test for
9525 canonicalize_file_name Regenerated.
9526 * config.in, configure: Regenerated.
9527 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9528 defined use canonicalize_file_name.
9529
9530 2002-02-23 Michael Chastain <mec@shout.net>
9531
9532 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9533
9534 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9535
9536 * README: Remove references to cygnus.com.
9537 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9538 dot com'' form. Remove references to cygnus.com and sourceware.
9539
9540 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9541
9542 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9543 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9544 1003.1-2001 no longer allows "head -1".
9545 * gdb/Makefile.in (version.c): Likewise.
9546 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9547 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9548 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9549
9550 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9551
9552 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9553 * command.h (cmd_cfunc_eq): Declare.
9554 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9555
9556 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9557 ``struct cmd_list_element *''.
9558 * cli/cli-cmds.c (is_complete_command): Update. Use
9559 cmd_cfunc_eq.
9560 * top.c (execute_command): Pass the command to
9561 is_complete_command.
9562 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9563
9564 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9565
9566 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9567 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9568 architecture defines.
9569 * s390-tdep.c (s390_gdbarch_init): Likewise.
9570
9571 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9572
9573 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9574 (arm_linux_push_arguments): Likewise.
9575 (arm_linux_init_abi): Register them. Also register linux-specific
9576 call_dummy_words.
9577 (find_minsym_and_objfile): Use strcmp, not STREQ.
9578 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9579 (arm_linux_call_dummy_words): Delete declaration.
9580 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9581 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9582 declarations.
9583 (LOWEST_PC): Delete.
9584
9585 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9586
9587 * maint.c (print_section_info): Do not prepend `0x' to filepos
9588 output, it will be handled by local_hex_string_custom.
9589
9590 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9591
9592 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9593 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9594 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9595
9596 2002-02-22 Jim Blandy <jimb@redhat.com>
9597
9598 Indicate that the bcache functions don't change the strings
9599 they're passed.
9600 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9601 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9602
9603 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9604
9605 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9606
9607 2002-02-21 Christopher Faylor <cgf@redhat.com>
9608
9609 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9610 find the complete path to a loaded DLL.
9611
9612 2002-02-21 Fred Fish <fnf@redhat.com>
9613
9614 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9615 that marks the end of the range of a function, enter a line number
9616 entry that has a line number of zero and a PC offset that matches
9617 the end of the function. This starts a range of PC's for which no
9618 line number information is known.
9619 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9620 PC's for which no line number info is found (line number is zero)
9621 then we didn't find any valid line information.
9622 * symtab.h: Document use of zero line number entry.
9623
9624 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
9625
9626 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9627 (have_ptrace_getvrregs): Define for run time checks.
9628 (gdb_vrregset_t): New type for Altivec register handling.
9629 (fetch_register, store_register): Fetch/store altivec register
9630 when needed.
9631 (fetch_altivec_register, store_altivec_register): New functions.
9632 (supply_vrregset, fill_vrregset): New functions.
9633 (fetch_altivec_registers, store_altivec_registers): New functions.
9634 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9635 registers as well.
9636
9637 2002-02-21 Jiri Smid <smid@suse.cz>
9638
9639 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9640
9641 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9642
9643 * Makefile.in (armnbsd-nat.o): Update dependencies.
9644 * armnbsd-nat.c (supply_gregset): New function. Common code to
9645 supply the integer register set.
9646 (supply_fparegset): New function. Similar for FPA registers.
9647 (fetch_regs, fetch_fp_regs): Use them.
9648 (fetch_core_registers): Likewise.
9649 (fetch_elfcore_registers): New function.
9650 (arm_netbsd_elfcore_fns): New core-file type specification.
9651 (_initialize_arm_netbsd_nat): Register it.
9652
9653 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9654
9655 * armnbsd-nat.c: Include gdbcore.h.
9656 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9657 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9658 'void' to declaration, to shut up ARI.
9659 (fetch_core_registers): Make static. Rewrite using supply_register.
9660 (arm_netbsd_core_fns): New core-file type specification.
9661 (_initialize_arm_netbsd_nat): New function.
9662
9663 2002-02-21 Christopher Faylor <cgf@redhat.com>
9664
9665 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9666 value.
9667
9668 2002-02-20 Christopher Faylor <cgf@redhat.com>
9669
9670 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9671 fails.
9672
9673 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9674
9675 * jv-exp.y (parse_number): Change type of implicit longs
9676 to builtin_type_uint64.
9677
9678 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9679
9680 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9681 to be an integer instead of a `union wait'.
9682
9683 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9684
9685 * mips-linux-nat.c: Call the operating system GNU/Linux.
9686 * mips-linux-tdep.c: Likewise.
9687 * mips-tdep.c: Likewise.
9688
9689 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9690
9691 Fix PR gdb/265.
9692 * jv-exp.y (parse_number): Handle 64-bit integers.
9693
9694 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9695
9696 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9697 AC_STDC_HEADERS to AC_HEADER_STDC.
9698 * gdbserver/configure: Regenerated.
9699
9700 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9701
9702 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9703 is defined.
9704 * sparc-tdep.c (get_longjmp_target): Likewise.
9705
9706 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9707
9708 * News: Add news about ARM and Multi-arch. Mention the new target
9709 arm*-*-netbsd*.
9710
9711 2002-02-19 Jim Blandy <jimb@redhat.com>
9712
9713 * stabsread.c (error_type_complaint): Improve error message.
9714
9715 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
9716
9717 * gdbserver/README: Update documentation.
9718 * gdbserver/configure.in: Update configury to match documentation.
9719 * gdbserver/Makefile.in: Likewise.
9720 * gdbserver/configure: Regenerated.
9721 * gdbserver/aclocal.m4: New file, generated by aclocal.
9722 * gdbserver/config.in: New file, generated by autoheader.
9723
9724 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9725
9726 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9727 armnbsd-nat.c.
9728
9729 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9730
9731 * arm-tdep.h (enum arm_float_model): New enum.
9732 (struct gdbarch_tdep): Add fp_model.
9733 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9734 up floating-point conversions until we know the floating-point model
9735 in use by the inferior. Don't complain about being unable to
9736 determine the ABI of the inferior when we don't have one.
9737 (arm_extract_return_value): Support different floating-point models.
9738 (arm_store_return_value): Likewise.
9739 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9740 ARM_FLOAT_SOFT.
9741 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9742
9743 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9744
9745 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9746 of ``current_gdbarch''.
9747
9748 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9749
9750 * armnbsd-nat.c : ANSIfy all function declarations.
9751 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9752 (fetch_inferior_registers): Re-implement in terms of above.
9753 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9754 (store_inferior_registers): Re-implement in terms of above.
9755
9756 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9757
9758 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9759 kernel.
9760 * arm-linux-tdep.c: Likewise.
9761 * config/arm/tm-linux.h: Likewise.
9762
9763 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9764
9765 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9766 * config/arm/nbsd.mt (TM_FILE): Delete.
9767 * config/arm/tm-nbsd.h: Delete.
9768
9769 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9770
9771 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9772 Initialize CALL_DUMMY_LENGTH.
9773
9774 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9775
9776 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9777 function.
9778 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
9779 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
9780 defines one thing and that is incorrect for this port.
9781 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9782
9783 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9784
9785 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9786
9787 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9788
9789 * win32-nat.c (display_selector): New function. Displays information
9790 about the information returned by GetThreadSelectorEntry API function.
9791 (display_selectors): New function. Displays the infomation of
9792 the selector given as argument, or of CS, DS ans FS selectors
9793 if no argument is given.
9794 ( _initialize_inftarg): Add "w32" as info prefix command.
9795 Add "info w32 selector" as command calling display_selectors.
9796
9797 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9798
9799 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9800 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9801 if not defined.
9802
9803 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9804
9805 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9806
9807 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9808
9809 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9810 (arm_fix_call_dummy): Call it.
9811 (arm_call_dummy_breakpoint_offset): Delete.
9812 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9813 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9814
9815 2002-02-18 Andrew Cagney <ac131313@redhat.com>
9816
9817 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9818 Default to func_frame_chain_valid.
9819 * gdbarch.h, gdbarch.c: Re-generate.
9820 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9821
9822 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
9823
9824 * ppc-linux-nat.c: Update copyright.
9825 (fetch_register, store_register): Add tid parameter, don't compute
9826 tid here.
9827 (fetch_ppc_registers, store_ppc_registers): Add tid
9828 parameter. Pass it along to callees.
9829 (fetch_inferior_registers, store_inferior_registers): Compute tid
9830 here, and pass it to calleed functions.
9831 (fill_gregset, supply_fpregset): Clean up formatting.
9832
9833 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9834
9835 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9836 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9837
9838 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9839
9840 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9841 * gdbarch.c gdbarch.h: Regenerate.
9842 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9843 function.
9844 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9845 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9846 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9847
9848 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9849 * arm-tdep.c (arm_get_longjmp_target): New function.
9850 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9851 this to a positive value register arm_get_longjmp_target as the
9852 longjmp handler.
9853 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9854 (arm_linux_init_abi): Set up longjmp description in tdep.
9855 * armnbsd-nat.c (get_longjmp_target): Delete.
9856 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9857 description in tdep.
9858 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9859 (get_longjmp_target): Delete declaration.
9860 (GET_LONGJMP_TARGET): Delete.
9861 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9862 (GET_LONGJMP_TARGET): Delete.
9863
9864 2002-02-17 Kevin Buettner <kevinb@redhat.com>
9865
9866 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9867 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9868 of ``current_gdbarch''.
9869
9870 2002-02-17 Tom Tromey <tromey@redhat.com>
9871
9872 * cli/cli-cmds.c (compare_strings): New function.
9873 (complete_command): Only print each unique item once.
9874 * completer.h (complete_line): Declare.
9875 * completer.c (complete_line): New function.
9876 (line_completion_function): Use it.
9877
9878 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9879
9880 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9881 * gdbarch.h, gdbarch.c: Re-generate.
9882
9883 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9884
9885 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9886
9887 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9888
9889 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9890 * valops.c (value_arg_coerce): Don't take the address of a reference
9891 to convert an argument to a reference.
9892
9893 2002-02-15 Christopher Faylor <cgf@redhat.com>
9894
9895 * win32-nat.c (get_image_name): New function.
9896 (handle_load_dll): Use get_image_name function.
9897 (get_child_debug_event): Avoid registering debug events until possibly
9898 execed process is started.
9899 (child_create_inferior): Allow invocation via shell so that command
9900 line redirection, etc. works ok.
9901 (_initialize_inftarg): Add new command: "set shell" to control whether
9902 a shell is used to start a process.
9903
9904 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9905
9906 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9907 instead of find_register_by_number.
9908 (cannot_store_register): Likewise.
9909
9910 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9911
9912 * dwarf2read.c: Replace fprintf (stderr, ...) by
9913 fprintf_unfiltered (gdb_stderr, ...).
9914
9915 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9916
9917 * gdbserver/gdbserver.1: Document --attach.
9918
9919 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9920
9921 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9922 descriptions.
9923 * arm-tdep.c (arm_default_arm_le_breakpoint)
9924 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9925 (arm_default_thumb_be_breakpoint): New. Initialize them from
9926 traditional breakpoint defines.
9927 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9928 (arm_gdbarch_init): Initialize new breakpoint variables.
9929 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9930 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9931 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9932 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9933 code out to ...
9934 (arm_netbsd_init_abi_common): ... here; new function.
9935 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9936 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9937 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9938 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9939
9940 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9941
9942 * arm-tdep.h (enum arm_abi): New enum.
9943 (struct gdbarch_tdep): New structure.
9944 (LOWEST_PC): Provide a default.
9945 (arm_gdbarch_register_os_abi): Declare new function.
9946 * arm-tdep.c (arm_abi_names): New array.
9947 (process_note_abi_tag_sections): New function.
9948 (get_elfosabi): New function.
9949 (arm_gdbarch_register_os_abi): New function.
9950 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9951 support for that ABI has been built in, then call the appropriate
9952 configuration routine. Use gdbarch_num_regs() to get the number
9953 of registers.
9954 (arm_dump_tdep): New function.
9955 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9956 place-holder functions.
9957 (_initialize_arm_tdep): Register them.
9958 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9959
9960 * armnbsd-tdep.c: New file.
9961 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9962 * config/arm/nbsd.mt (TDEPFILES): Add it.
9963 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9964
9965 * armnbsd-nat.c: Include regcache.h.
9966 * Makefile.in (armnbsd-nat.o): Update dependency list.
9967
9968 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9969
9970 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9971
9972 * gdbserver/Makefile.in: Fix typos in target rules.
9973
9974 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9975
9976 Fix part of PR gdb/267.
9977 * linespec.c (find_methods): Handle constructors specially for now.
9978
9979 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
9980
9981 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9982 handling.
9983 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9984 standard_coerce_float_to_double().
9985
9986 2002-02-14 Christopher Faylor <cgf@redhat.com>
9987
9988 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9989 GDBINIT_FILENAME.
9990
9991 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
9992
9993 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9994 find_variant_by_name, because it confuses the multiarch
9995 framework. Return NULL if there isn't an architecture with the
9996 user supplied name, instead of forcing a different one without
9997 recording the change with the multiarch machinery.
9998 (find_variant_by_name): Delete.
9999
10000 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10001
10002 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
10003 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
10004
10005 2002-02-13 Martin M. Hunt <hunt@redhat.com>
10006
10007 * stack.c (print_frame_info_base): When calling
10008 print_frame_info_listing_hook, set current_source_symtab.
10009
10010 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10011
10012 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
10013 and remove unused $(INCLUDE_DIR).
10014 Add regcache.c to OBS.
10015 Add generated register protocol files to clean target.
10016 Update dependencies for new objects, obsolete old target code.
10017
10018 * gdbserver/linux-low.c: Remove all platform-specific code to
10019 new files. Remove various dead code. Update to use regcache
10020 functionality.
10021 * gdbserver/remote-utils.c (fromhex): Add return statement
10022 to quiet warning.
10023 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
10024 constant.
10025 (input_interrupt): Add integer parameter to match prototype
10026 of a signal handler.
10027 (outreg): Use register_data ().
10028 (prepare_resume_reply): Use gdbserver_expedite_regs.
10029 * gdbserver/server.c (main): Dynamically allocate own_buf because
10030 PBUFSIZ is no longer constant. Use registers_to_string () and
10031 registers_from_string ().
10032 * gdbserver/server.h: No longer include "defs.h". Add prototypes
10033 for error (), fatal (), and warning (). Update definition of
10034 PBUFSIZ to use regcache functionality. Add include guard.
10035 * gdbserver/utils.c (fatal): Add missing ``const''.
10036 (warning): New function.
10037
10038 * regformats/regdat.sh: Include "regcache.h" in generated files.
10039 Provide init_registers () function.
10040 * regformats/regdef.h: Add prototype for set_register_cache ().
10041 Add include guard.
10042
10043 * gdbserver/linux-arm-low.c: New file.
10044 * gdbserver/linux-i386-low.c: New file.
10045 * gdbserver/linux-ia64-low.c: New file.
10046 * gdbserver/linux-m68k-low.c: New file.
10047 * gdbserver/linux-mips-low.c: New file.
10048 * gdbserver/linux-ppc-low.c: New file.
10049 * gdbserver/linux-sh-low.c: New file.
10050
10051 * gdbserver/regcache.c: New file.
10052 * gdbserver/regcache.h: New file.
10053
10054 * gdbserver/low-linux.c: Removed obsolete file.
10055
10056 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10057
10058 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
10059 * config/i386/linux.mt: Likewise.
10060 * config/ia64/linux.mt: Likewise.
10061 * config/m68k/linux.mh: Likewise.
10062 * config/powerpc/linux.mh: Likewise.
10063 * config/mips/linux.mt: Likewise.
10064
10065 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
10066
10067 * config/i386/i386lynx.mh: Mark gdbserver variables
10068 as (currently) obsolete for this target.
10069 * config/i386/nbsd.mt: Likewise.
10070 * config/i386/nbsdelf.mt: Likewise.
10071 * config/m32r/m32r.mt: Likewise.
10072 * config/m68k/m68klynx.mh: Likewise.
10073 * config/m68k/nbsd.mt: Likewise.
10074 * config/m68k/sun3os4.mh: Likewise.
10075 * config/mips/vr5000.mt: Likewise.
10076 * config/ns32k/nbsd.mt: Likewise.
10077 * config/pa/hppabsd.mh: Likewise.
10078 * config/pa/hppaosf.mh: Likewise.
10079 * config/powerpc/nbsd.mt: Likewise.
10080 * config/rs6000/rs6000lynx.mh: Likewise.
10081 * config/s390/s390.mt: Likewise.
10082 * config/s390/s390x.mt: Likewise.
10083 * config/sparc/sparclynx.mh: Likewise.
10084 * config/sparc/sun4os4.mh: Likewise.
10085 * config/i386/x86-64linux.mt: Likewise.
10086 * config/sparc/linux.mh: Likewise.
10087
10088 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10089
10090 * configure.tgt: Configure gdbserver only for known working
10091 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
10092 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
10093 SUBDIRS if it is configured. Update comment for ${nativefile}.
10094 * configure: Regenerated.
10095
10096 2002-02-13 Michael Snyder <msnyder@redhat.com>
10097
10098 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10099
10100 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10101 (default_gcore_mach): Just return 0, work around a problem in bfd.
10102 (default_gcore_target): OK to return NULL if exec_bfd is null.
10103 (make_mem_sec): Use a cast, avoid a warning.
10104
10105 * procfs.c (find_memory_regions_callback): Use a cast instead of
10106 calling host_pointer_to_address (which complains if
10107 sizeof (host pointer) != sizeof (target pointer)).
10108 (procfs_make_note_section): Avoid overflow in psargs string.
10109
10110 * procfs.c (procfs_make_note_section): Make the default
10111 implementation return an error.
10112
10113 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
10114
10115 * procfs.c (procfs_make_note_section): Provide a default definition
10116 (for alpha-dec-osf4.0f). Fix typos.
10117
10118 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
10119
10120 * linux-proc.c: Add include of regcache.h.
10121 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10122
10123 2002-02-13 Andrew Cagney <ac131313@redhat.com>
10124
10125 From 2002-01-18 Greg McGary <greg@mcgary.org>:
10126 * memattr.c (create_mem_region): Disallow useless empty region.
10127 Regions are half-open intervals, so allow [A..B) [B..C) as
10128 non-overlapping.
10129
10130 2002-02-13 Michael Chastain <mec@shout.net>
10131
10132 * defs.h: Kill CONST_PTR.
10133 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10134 * c-lang.c (c_builtin_types): Likewise.
10135 * ch-lang.c (ch_builtin_types): Likewise.
10136 * f-lang.c (f_builtin_types): Likewise.
10137 * language.c (unknown_builtin_types): Likewise.
10138 * m2-lang.c (m2_builtin_types): Likewise.
10139 * p-lang.c (pascal_builtin_types): Likewise.
10140 * scm-lang.c (c_builtin_types): Likewise.
10141
10142 2002-02-13 Keith Seitz <keiths@redhat.com>
10143
10144 * arm-tdep.h (arm_get_next_pc): Add declaration.
10145
10146 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
10147
10148 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10149 with other related struct-returning functions.
10150 (arm_extract_struct_value_address): New function.
10151 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10152 initialize float_format, double_format and long_double_format as
10153 appropriate to the endianness of the target.
10154 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10155 (arm_use_struct_convention): Delete declaration.
10156 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10157
10158 2002-02-13 Keith Seitz <keiths@redhat.com>
10159
10160 * defs.h (core_addr_to_string_nz): New function.
10161
10162 2002-02-13 Mark Kettenis <kettenis@gnu.org>
10163
10164 Apply missing bits of 2002-01-15 patch.
10165 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10166 (fill_fpregset): Use i387_fill_fsave.
10167
10168 2002-02-12 Keith Seitz <keiths@redhat.com>
10169
10170 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10171 (core_addr_to_string_nz): New function.
10172
10173 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10174
10175 * arm-linux-nat.c: Really include arm-tdep.h.
10176 * config/arm/tm-linux.h (struct type, struct value): Declare.
10177
10178 2002-02-11 Michael Snyder <msnyder@redhat.com>
10179
10180 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10181 (gcore section): Ifdef for Solaris and Unixware only.
10182 (procfs_do_thread_registers): Unixware needs one lwpstatus
10183 per thread (not one prstatus or pstatus).
10184 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10185 not over all gdb threads. For unixware, call elfcore_write_pstatus
10186 once before iterating over threads.
10187
10188 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10189
10190 * arm-tdep.h: New file.
10191 * arm-tdep.c: Include arm-tdep.h.
10192 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10193 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10194 (arm_print_float_info, arm_register_type, convert_to_extended)
10195 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10196 (arm_extract_return_value, arm_register_name): Make static.
10197 (arm_software_single_step): Similarly. Fix types in declaration.
10198 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10199 (arm_store_return_value, arm_store_struct_return): New functions.
10200 (arm_gdbarch_init): Register the above functions. Also register
10201 call_dummy_start_offset, sizeof_call_dummy_words,
10202 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10203 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
10204 max_register_virtual_size, register_size. Set up
10205 prologue_cache.saved_regs here, rather than ...
10206 (_initialize_arm_tdep): ... here.
10207 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10208 declarations.
10209 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10210 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10211 (arm_print_float_info, arm_register_type, convert_to_extended)
10212 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10213 (arm_extract_return_value, arm_register_name): Delete declarations.
10214 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10215 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10216 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10217 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10218 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10219 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10220 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10221 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10222 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10223 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10224 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10225 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10226 interface.
10227 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10228 * remote-rdi.c remote-rdp.c: Likewise.
10229 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10230 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10231 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10232 definition.
10233
10234 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10235 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10236 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10237 from non-ARM_ prefixed definitions.
10238 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10239 all uses of above.
10240 * remote-rdi.c remote-rdp.c: Likewise.
10241 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10242
10243 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10244
10245 * arm-tdep.c (arm_frameless_function_invocation)
10246 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10247 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10248 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10249 (arm_pop_frame, arm_get_next_pc): Make static.
10250 (arm_gdbarch_init): Register above in gdbarch structure.
10251 (arm_read_fp): Renamed from arm_target_read_fp.
10252 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10253 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10254 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10255 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10256 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10257 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10258 (arm_pc_is_thumb_dummy): Delete declarations.
10259 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10260 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10261 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10262 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
10263
10264 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
10265
10266 * symtab.c (compare_search_syms): New function.
10267 (sort_search_symbols): New function.
10268 (search_symbols): Sort symbols after searching rather than
10269 before.
10270
10271 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10272
10273 * NEWS: Linux -> GNU/Linux.
10274
10275 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10276
10277 * gdbarch.sh: For for level one methods, disallow a definition
10278 when partially multi-arched. Add comments explaining rationale.
10279 * gdbarch.h: Re-generate.
10280
10281 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10282
10283 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10284 multi-arch partial.
10285
10286 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10287
10288 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10289 field. Use diff -u.
10290 * gdbarch.c: Re-generate.
10291
10292 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10293
10294 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
10295 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10296 partial.
10297
10298 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10299
10300 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10301 multi-arch partial.
10302 (PUSH_ARGUMENTS): Switch to using predefault.
10303 * gdbarch.c: Regenerate.
10304
10305 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10306
10307 * valops.c (PUSH_ARGUMENTS): Delete definition.
10308 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10309 partial. Default to default_push_arguments.
10310 * gdbarch.h, gdbarch.c: Regenerate.
10311
10312 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10313
10314 * defs.h (throw_exception): Rename return_to_top_level. Update
10315 comments.
10316 * utils.c (error_stream, internal_verror, quit): Ditto.
10317 * top.c (throw_exception, catcher): Ditto.
10318 * sparclet-rom.c (sparclet_load): Ditto.
10319 * remote.c (interrupt_query, minitelnet): Ditto.
10320 * remote-sds.c (interrupt_query): Ditto.
10321 * remote-mips.c (mips_error, mips_kill): Ditto.
10322 * ocd.c (interrupt_query): Ditto.
10323 * monitor.c (monitor_interrupt_query): Ditto.
10324 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10325 * target.h: Update comment.
10326
10327 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10328
10329 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10330
10331 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10332 default_double_format.
10333 * gdbarch.h, gdbarch.c: Re-generate.
10334 * findvar.c (floatformat_unknown): Delete variable definition.
10335 * doublest.h (floatformat_unknown): Delete variable declaration.
10336
10337 2002-02-09 Jim Blandy <jimb@redhat.com>
10338
10339 * stabsread.c (read_type): Add code to parse Sun's syntax for
10340 prototyped function types.
10341
10342 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10343
10344 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10345 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10346
10347 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10348
10349 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10350 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10351 now _initialize_xcoffsolib gets called again and overrides the
10352 commands from solib.c in a native configuration.
10353
10354 2002-02-09 Mark Kettenis <kettenis@gnu.org>
10355
10356 * doublest.c (store_typed_floating): Don't try to return a value.
10357 Fixes PR gdb/290.
10358
10359 2002-02-08 Jim Blandy <jimb@redhat.com>
10360
10361 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10362 is prototyped and has no arguments, print its argument list as
10363 `(void)'.
10364
10365 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10366
10367 * MAINTAINERS (write-after-approval): Add myself.
10368 (paper-trail): I've escaped!
10369
10370 2002-02-08 Christopher Faylor <cgf@redhat.com>
10371
10372 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10373 changes.
10374 (_initialize_check_for_gdb_ini): Ditto.
10375
10376 2002-02-08 Martin M. Hunt <hunt@redhat.com>
10377
10378 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10379 xaprintf -> xasprintf.
10380
10381 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10382
10383 * win32-nat.c: Remove use of printf and sprintf functions.
10384
10385 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
10386
10387 * arm-tdep.c (arm_frame_chain_valid): Make static.
10388 (arm_push_arguments): Likewise.
10389 (arm_gdbarch_init): New function.
10390 (_initialize_arm_tdep): Call it.
10391 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10392 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10393 (FRAME_CHAIN_VALID): Delete.
10394 (arm_frame_chain_valid): Delete declaration.
10395 (PUSH_ARGUMENTS): Delete.
10396 (arm_push_arguments): Delete declaration.
10397 (CALL_DUMMY_P): Delete.
10398
10399 2002-02-08 Andrew Cagney <ac131313@redhat.com>
10400 Corinna Vinschen <vinschen@redhat.com>
10401
10402 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10403 on builtin float types.
10404
10405 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
10406
10407 * utils.c: Include <curses.h> before "bfd.h".
10408 * tui/tui-hooks.c: Likewise.
10409 * tui/tui.c: Likewise.
10410 * tui/tuiCommand.c: Likewise.
10411 * tui/tuiData.c: Likewise.
10412 * tui/tuiDataWin.c: Likewise.
10413 * tui/tuiDisassem.c: Likewise.
10414 * tui/tuiGeneralWin.c: Likewise.
10415 * tui/tuiIO.c: Likewise.
10416 * tui/tuiLayout.c: Likewise.
10417 * tui/tuiRegs.c: Likewise.
10418 * tui/tuiSource.c: Likewise.
10419 * tui/tuiSourceWin.c: Likewise.
10420 * tui/tuiStack.c: Likewise.
10421 * tui/tuiWin.c: Likewise.
10422
10423 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
10424
10425 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10426 to include space for pseudoregs as well. Update loops accordingly.
10427 (sh_fp_frame_init_saved_regs): Ditto.
10428 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10429
10430 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10431
10432 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10433 Add Richard Earnshaw to Arm maintainers.
10434
10435 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10436
10437 * defs.h (warning_begin): Delete declaration.
10438
10439 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10440 Delete macro.
10441
10442 2002-02-07 Michael Snyder <msnyder@redhat.com>
10443
10444 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10445 Logic bug, remove misplaced else.
10446
10447 2002-02-07 Klee Dienes <klee@apple.com>
10448
10449 * fork-inferior.c (fork_inferior): Add '!' to the list of
10450 characters that need to be quoted when building a string for the
10451 shell. Quote '!' specifically with a backslash, since CSH chokes
10452 when trying to evaluate "str!str".
10453
10454 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10455
10456 * rdi-share/host.h: Only provide a typedef for bool if it is not
10457 defined.
10458
10459 2002-02-04 Michael Snyder <msnyder@redhat.com>
10460
10461 * breakpoint.h (enum bptype): Add new overlay event bp type.
10462 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10463
10464 * breakpoint.c (create_internal_breakpoint): New function.
10465 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10466 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10467 (create_thread_event_breakpoint): Ditto.
10468 (create_solib_event_breakpoint): Ditto.
10469 (create_overlay_event_breakpoint): New function.
10470 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10471 (update_breakpoints_after_exec): Delete and re-initialize
10472 overlay event breakpoints after an exec. Add FIXME comment
10473 about longjmp breakpoint.
10474 (print_it_typical): Ignore overlay event breakpoints.
10475 (print_one_breakpoint): Ditto.
10476 (mention): Ditto.
10477 (bpstat_what): Do not stop for overlay event breakpoints.
10478 (delete_breakpoint): Don't delete overlay event breakpoints.
10479 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10480 (breakpoint_re_set): Re-create overlay event breakpoint.
10481
10482 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10483 (overlay_manual_command): Disable overlay breakpoints.
10484 (overlay_off_command): Disable overlay breakpoints.
10485
10486 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10487
10488 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10489 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10490 to here from config/tm-arm.h.
10491 (coff_sym_is_thumb): Make static.
10492 (arm_elf_make_msymbol_special): New function.
10493 (arm_coff_make_msymbol_special): New function.
10494 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10495 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10496 (coff_sym_is_thumb): Delete declaration.
10497 (arm_elf_make_msymbol_special): Declare.
10498 (arm_coff_make_msymbol_special): Declare.
10499 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10500 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10501
10502 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10503
10504 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10505
10506 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10507
10508 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10509 * gdbarch.c gdbarch.h: Regenerate.
10510 * arch-utils.c (default_print_float_info): New function.
10511 * arch-utils.h (default_print_float_info): Prototype it.
10512 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10513 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10514 (PRINT_FLOAT_INFO): Document it.
10515
10516 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10517 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10518 (PRINT_FLOAT_INFO): Define.
10519
10520 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10521
10522 * win32-nat.c (_initialize_check_for_gdb_ini):
10523 Add typecast to sprintf argument to suppress a warning.
10524
10525 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10526
10527 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10528 to allow easier handling of pass state.
10529 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10530 that gives exception name and address.
10531 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10532 and set last_sig value to ourstatus->value.sig. Some missing
10533 exceptions added.
10534 (child_continue): Correctly report continue_status.
10535 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10536 TARGET_SIGNAL_0 (new default value).
10537 (child_resume): consider sig argument passed to decide if
10538 the exception should be passed to debuggee or not.
10539
10540 2002-02-05 Michael Snyder <msnyder@redhat.com>
10541
10542 * regcache.c (fetch_register): Call target_fetch_register
10543 only if we don't call FETCH_PSEUDO_REGISTER.
10544 (store_register): Call target_store_register only if we
10545 don't call STORE_PSEUDO_REGISTER.
10546
10547 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
10548
10549 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10550 ELF_MAKE_MSYMBOL_SPECIAL.
10551 * gdbarch.c, gdbarch.h: Regenerate.
10552 * arch-utils.c (default_make_msymbol_special): New function.
10553 * arch-utils.h (default_make_msymbol_special): Export.
10554 * elfread.c (elf_symtab_read): Compile use of
10555 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10556 multiarched.
10557 * coffread.c (coff_symtab_read): Ditto, for
10558 COFF_MAKE_MSYMBOL_SPECIAL.
10559
10560 2002-02-05 Jim Blandy <jimb@redhat.com>
10561
10562 * solib-svr4.c (svr4_truncate_ptr): New function.
10563 (svr4_relocate_section_addresses): Do the address arithmetic with
10564 the appropriate truncation for target addresses, even when
10565 CORE_ADDR is larger than a target address.
10566
10567 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10568
10569 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10570 to (int *).
10571
10572 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10573
10574 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10575 code.
10576
10577 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10578
10579 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10580
10581 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10582
10583 * gdbserver/linux-low.c: Remove unused include files.
10584
10585 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10586
10587 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10588 (read_inferior_memory): Use it.
10589 (write_inferior_memory): Likewise.
10590
10591 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10592
10593 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10594 grubbing through sys_errlist.
10595
10596 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10597
10598 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10599
10600 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10601 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10602
10603 2002-02-04 Andrew Cagney <ac131313@redhat.com>
10604
10605 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10606 (do_sfunc, set_cmd_sfunc): New functions.
10607
10608 * command.h (struct cmd_list_element): Add field func.
10609 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10610 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10611 * cli/cli-decode.h: Ditto.
10612
10613 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10614 (help_all, help_cmd_list): Ditto.
10615 (find_cmd, complete_on_cmdlist): Ditto.
10616 * top.c (execute_command): Ditto.
10617
10618 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10619 function.sfunc.
10620
10621 * infcmd.c (notice_args_read): Fix function signature.
10622
10623 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10624 * cli/cli-decode.c (add_set_cmd): Ditto.
10625 * utils.c (initialize_utils): Ditto.
10626 * maint.c (_initialize_maint_cmds): Ditto.
10627 * infrun.c (_initialize_infrun): Ditto.
10628 * demangle.c (_initialize_demangler): Ditto.
10629 * remote.c (add_packet_config_cmd): Ditto.
10630 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10631 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10632 * proc-api.c (_initialize_proc_api): Ditto.
10633 * kod.c (_initialize_kod): Ditto.
10634 * valprint.c (_initialize_valprint): Ditto.
10635 * top.c (init_main): Ditto.
10636 * infcmd.c (_initialize_infcmd): Ditto.
10637 * corefile.c (_initialize_core): Ditto.
10638 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10639 * arch-utils.c (initialize_current_architecture): Ditto.
10640 (_initialize_gdbarch_utils): Ditto.
10641 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10642
10643 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10644 * wince.c (_initialize_inftarg): Ditto.
10645 * symfile.c (_initialize_symfile): Ditto.
10646 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10647 * language.c (_initialize_language): Ditto.
10648 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10649
10650 2002-02-04 Michael Snyder <msnyder@redhat.com>
10651
10652 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10653
10654 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10655
10656 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10657 Add rules for building the register data files.
10658
10659 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10660
10661 * regformats/regdat.sh: Add braces to the definition of
10662 expedite_regs_${arch}.
10663
10664 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10665
10666 * regformats/regdef.h (struct reg): Add comment describing the
10667 requirements for offset and size fields.
10668
10669 2002-02-04 Andreas Schwab <schwab@suse.de>
10670
10671 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10672 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10673
10674 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
10675
10676 * gdbarch.sh (copyright): Update years in generated header.
10677 (SMASH_TEXT_ADDRESS): Add rule.
10678 * gdbarch.h, gdbarch.c: Re-generate.
10679 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10680 * dbxread.c: Likewise.
10681 * dwarfread.c: Likewise.
10682 * elfread.c: Likewise.
10683 * somread.c: Likewise.
10684
10685 * arm-tdep.c (arm_smash_text_address): New function.
10686 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10687
10688 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10689
10690 Add support for hardware watchpoints on win32 native.
10691 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10692 CONTEXT_DEBUG_REGISTERS.
10693 (dr variable): New variable. Static array containing a local copy
10694 of debug registers.
10695 (debug_registers_changed): New variable. Reflects when debug registers
10696 are changed and need to be written to inferior.
10697 (debug_registers_used): New variable. Reflects when any debug register
10698 was set, used when new threads are created.
10699 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10700 i386-nat code.
10701 (thread_rec): Set dr array if id is the thread of current_event .
10702 (child_continue, child_resume): Change the debug registers for all
10703 threads if debug_registers_changed.
10704 (child_add_thread): Change the debug registers if debug_registers_used.
10705 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10706 Link nm.h to new nm-cygwin.h file.
10707 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10708 of hardware registers.
10709
10710 2002-02-03 Andrew Cagney <ac131313@redhat.com>
10711
10712 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10713 Restore behavour broken by 2002-01-20 Andrew Cagney
10714 <ac131313@redhat.com> IEEE_FLOAT removal.
10715
10716 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10717
10718 * c-valprint.c (c_val_print): Pass a proper valaddr to
10719 cp_print_class_method.
10720 * valops.c (search_struct_method): If there is only one method
10721 and args is NULL, return that method.
10722
10723 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10724
10725 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10726 accessing tag_name directly.
10727
10728 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10729
10730 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10731 of accessing tag_name directly.
10732
10733 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10734
10735 PR gdb/280
10736 * gdbtypes.c (replace_type): New function.
10737 * gdbtypes.h (replace_type): Add prototype.
10738 * stabsread.c (read_type): Use replace_type.
10739
10740 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
10741
10742 * Makefile.in (memattr.o): Add missing dependencies rule.
10743
10744 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10745
10746 * breakpoint.c (break_at_finish_command): Really export.
10747 (break_at_finish_at_depth_command): Ditto.
10748 (tbreak_at_finish_command): Ditto.
10749 * hppa-tdep.c: Include completer.h.
10750 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10751 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10752
10753 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10754
10755 * utils.c (do_write): New function.
10756 (error_stream): Rewrite combining the code from error_begin and
10757 verror.
10758 (verror): Rewrite using error_stream.
10759 (error_begin): Delete function.
10760
10761 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10762
10763 * utils.c (error_begin): Make static.
10764 * defs.h (error_begin): Delete declaration.
10765
10766 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10767 (decode_line_1): Use cplusplus_error instead of error_begin,
10768 cplusplus_hint and return_to_top_level.
10769 * coffread.c (coff_symfile_read): Use error instead of error_begin
10770 and return_to_top_level.
10771 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10772
10773 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10774
10775 * language.h (type_error, range_error): Make string parameter
10776 constant.
10777 * language.c (warning_pre_print): Delete extern declaration.
10778 * dwarfread.c (warning_pre_print): Ditto.
10779 * language.c (type_error, range_error): Rewrite to use verror and
10780 vwarning instead of warning_begin.
10781
10782 2002-02-01 Michael Snyder <msnyder@redhat.com>
10783
10784 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10785 (set_ignore_count): Move misplaced comment back where it belongs.
10786
10787 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10788
10789 * command.h (NO_FUNCTION): Delete macro.
10790 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10791 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10792 * tracepoint.c (_initialize_tracepoint): Ditto.
10793 * cli/cli-decode.c (add_set_cmd): Ditto.
10794 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10795
10796 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10797
10798 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10799 Update ``this'' pointer when calling virtual functions.
10800
10801 2002-02-01 Michael Snyder <msnyder@redhat.com>
10802
10803 * breakpoint.c (create_temp_exception_breakpoint): Delete.
10804 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10805
10806 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10807
10808 * regformats/reg-arm.dat: New file.
10809 * regformats/reg-i386.dat: New file.
10810 * regformats/reg-ia64.dat: New file.
10811 * regformats/reg-m68k.dat: New file.
10812 * regformats/reg-mips.dat: New file.
10813 * regformats/reg-ppc.dat: New file.
10814 * regformats/reg-sh.dat: New file.
10815 * regformats/regdef.h: New file.
10816 * regformats/regdat.sh: New file.
10817
10818 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
10819
10820 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10821 (arm_frame_args_address, arm_frame_locals_address): New functions.
10822 (arm_frame_num_args): New function.
10823 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10824 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10825 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10826
10827 2002-01-31 Michael Snyder <msnyder@redhat.com>
10828
10829 * breakpoint.c (break_at_finish_command): Export.
10830 (break_at_finish_at_depth_command): Export.
10831 (tbreak_at_finish_command): Export.
10832 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
10833 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10834 "txbreak" commands, which are HPPA specific.
10835
10836 * printcmd.c (disassemble_command): Remove an ancient
10837 artifact of an old merge.
10838
10839 * symfile.h (enum overlay_debugging_state):
10840 Define enum constant values for overlay mode.
10841 * symfile.c (overlay_debugging): Use enums instead of literals.
10842 (overlay_is_mapped, overlay_auto_command,
10843 overlay_manual_command): Ditto.
10844
10845 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10846 breakpoint_here_p, breakpoint_inserted_here_p,
10847 breakpoint_thread_match, bpstat_stop_status,
10848 describe_other_breakpoints, check_duplicates, clear_command):
10849 Coding standard fixes.
10850
10851 * target.c (target_xfer_memory): Add spaces, coding standard.
10852 (do_xfer_memory): Add missing line to trust-readonly
10853 code: check bfd SEC_READONLY flag for section.
10854
10855 2002-01-31 Andrew Cagney <ac131313@redhat.com>
10856
10857 * PROBLEMS: Fix typo, 5.1->5.1.1.
10858
10859 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
10860
10861 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10862 data symbols, since we search based on textlow and texthigh.
10863 (find_pc_sect_symtab): Likewise.
10864
10865 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10866
10867 * defs.h (vwarning): Declare.
10868 * utils.c (vwarning): New function.
10869 (warning): Call vwarning.
10870 (warning_begin): Delete function.
10871
10872 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10873 the warning message.
10874 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10875 warning_begin.
10876
10877 2002-01-30 Michael Snyder <msnyder@redhat.com>
10878
10879 * NEWS: Mention "set trust-readonly-sections" command.
10880 Mention generate-core-file command.
10881
10882 2002-01-15 Michael Snyder <msnyder@redhat.com>
10883
10884 * target.c: New command, "set trust-readonly-sections on".
10885 (do_xfer_memory): Honor the suggestion to trust readonly sections
10886 by reading them from the object file instead of from the target.
10887 (initialize_targets): Register command "set trust-readonly-sections".
10888
10889 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10890
10891 * parse.c (target_map_name_to_register): Simplify, search regs and
10892 pseudo-regs using a single loop.
10893
10894 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10895
10896 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10897
10898 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
10899
10900 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10901 * config/i386/i386v42mp.mh: Add i387-nat.o .
10902 * i386v4-nat.c: Include i387-nat.h.
10903 (supply_fpregset): Use i387_supply_fsave.
10904 (fill_fpregset): Use i387_fill_fsave.
10905
10906 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
10907
10908 * arm-tdep.c (arm_call_dummy_words): Define.
10909 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10910 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10911 (CALL_DUMMY_WORDS): Define.
10912 (arm_call_dummy_words): Declare.
10913 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10914 (arm_linux_call_dummy_words): Declare.
10915
10916 2002-01-30 Andreas Schwab <schwab@suse.de>
10917
10918 * m68klinux-nat.c: Fix last change to use regcache_collect
10919 instead of referencing registers[] directly.
10920
10921 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10922
10923 * parse.c (target_map_name_to_register): Delete code wrapped in
10924 #ifdef REGISTER_NAME_ALIAS_HOOK.
10925
10926 2002-01-28 Michael Snyder <msnyder@redhat.com>
10927
10928 * regcache.c (legacy_read_register_gen): Need to be able to
10929 read pseudo-register as well as real register.
10930 (legacy_write_register_gen): Ditto.
10931
10932 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10933
10934 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10935 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10936 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10937 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10938 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10939 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10940 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10941 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10942 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10943 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10944 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10945 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10946 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10947 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10948 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10949 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10950 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10951 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10952 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10953 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10954
10955 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10956
10957 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10958 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10959 (initialize_current_architecture): Update target_byte_order using
10960 information from BFD.
10961 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
10962 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10963
10964 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10965
10966 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10967 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10968
10969 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10970 #ifdef INVALID_FLOAT.
10971 * infcmd.c (do_registers_info): Ditto.
10972 * values.c (unpack_double): Ditto. Add comment.
10973
10974 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10975 already commented out.
10976
10977 2002-01-26 Andreas Schwab <schwab@suse.de>
10978
10979 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10980 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10981 registers and add support for PTRACE_GETREGS.
10982
10983 2002-01-24 Andrew Cagney <ac131313@redhat.com>
10984
10985 GDB 5.1.1 released from 5.1 branch.
10986 * NEWS: Add 5.1.1 news.
10987 * README: Sync with 5.1 branch.
10988
10989 2002-01-23 Fred Fish <fnf@redhat.com>
10990
10991 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10992 stabstring on initial malloc. Reallocing will copy it for us,
10993 if necessary.
10994
10995 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10996
10997 * Makefile.in (hpread_h): Delete.
10998 (HFILES_NO_SRCDIR): Remove hpread.h.
10999 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
11000 (hpread.o): Update dependencies.
11001 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
11002
11003 * hp-psymtab-read.c: Remove file.
11004 * hp-symtab-read.c: Remove file.
11005 * hpread.h: Remove file.
11006
11007 * hpread.c: Merge all contents of hp-psymtab-read.c,
11008 hp-symtab-read.c and hpread.h into this file, as it was prior to
11009 January 1999.
11010
11011 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
11012 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
11013 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
11014 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
11015
11016 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11017
11018 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
11019 fill_gregset): Call gdbarch_tdep() just once, assign result to
11020 variable and use that, instead of calling the function several
11021 times.
11022
11023 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11024
11025 * configure.host: Accept sparcv9 as alias for sparc64.
11026 * configure.tgt: Likewise.
11027
11028 2002-01-22 Kevin Buettner <kevinb@redhat.com>
11029
11030 * solib-aix5.c (build_so_list_from_mapfile)
11031 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
11032 arguments is not reversed.
11033 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
11034 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
11035
11036 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
11037
11038 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
11039 modified version of obsolete sh_fetch_pseudo_register.
11040 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
11041 (sh4_register_read): New function.
11042 (sh_pseudo_register_write): New function. Renamed and modified
11043 version of obsolete sh_store_pseudo_register.
11044 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
11045 (sh4_register_write): New function.
11046 (sh_gdbarch_init): Remove setting of gdbarch function
11047 fetch_pseudo_register and store_pseudo_register. Remove setting of
11048 register_convert_to_raw, register_convert_to_virtual,
11049 register_convertible.
11050 (sh_sh4_register_convertible): Delete. No longer needed. All is
11051 taken care by architecture specific functions
11052 register_read/register_write.
11053 (sh_sh4_register_convert_to_virtual): Make static.
11054 (sh_sh4_register_convert_to_raw): Ditto.
11055
11056 2002-01-22 Andrew Cagney <ac131313@redhat.com>
11057
11058 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
11059 (floatformat_is_nan, floatformat_mantissa): Ditto.
11060
11061 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
11062 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
11063 builtin_type_ieee_double_little,
11064 builtin_type_ieee_double_littlebyte_bigword,
11065 builtin_type_m68881_ext, builtin_type_i960_ext,
11066 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
11067 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
11068 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
11069 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
11070
11071 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
11072
11073 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
11074 parameter. Set frameless flag if it exists and depended of
11075 whether the scanned function is frameless or not.
11076 (xstormy16_skip_prologue): If function is frameless, return
11077 result of xstormy16_scan_prologue().
11078 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
11079 call.
11080
11081 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
11082
11083 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11084 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11085 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11086 sh_sh4_register_byte, sh_sh4_register_raw_size,
11087 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11088 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11089 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11090 sh_store_pseudo_register, sh_do_pseudo_register): Call
11091 gdbarch_tdep() just once, assign result to variable and use that,
11092 instead of calling the function several times.
11093
11094 2002-01-20 Mark Kettenis <kettenis@gnu.org>
11095
11096 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11097 macros instead of LAST_FPU_CTRL_REGNUM.
11098 (store_register): Likewise.
11099
11100 2002-01-21 Jim Blandy <jimb@redhat.com>
11101
11102 * infcmd.c (run_command): Check that the `exec' target layer's BFD
11103 is up-to-date before running the program, not just when a program
11104 exits.
11105
11106 2002-01-21 Fred Fish <fnf@redhat.com>
11107
11108 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11109 when we have found all instructions we are looking for.
11110
11111 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11112
11113 * arm-tdep.c (arm_register_name): New function.
11114 (arm_registers_names): Make static.
11115 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11116 (arm_register_name): Declare.
11117 (REGISTER_NAME): Use it.
11118
11119 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11120 Kevin Buettner <kevinb@redhat.com>
11121
11122 Convert arm targets to new FRAME interface.
11123 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11124 (arm_frame_find_save_regs): Delete.
11125 (arm_frame_init_saved_regs): New.
11126 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11127 Allocate extra_info as required. Convert all uses of fsr.regs
11128 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11129 to use extra_info.
11130 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11131 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11132 (check_prologue_cache, save_prologue_cache): Likewise.
11133 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11134 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11135 (FRAME_FIND_SAVED_REGS): Delete.
11136 (arm_frame_find_saved_regs): Delete prototype.
11137 (arm_frame_init_saved_regs): New prototype.
11138 (FRAME_INIT_SAVED_REGS): Define.
11139
11140 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11141
11142 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11143
11144 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11145
11146 From Jeff Law <law@redhat.com>:
11147 * infttrace.c: Include <sys/pstat.h>.
11148 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11149 exec file if the ttrace equivalent fails.
11150
11151 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11152
11153 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11154 (closeLogFile): Ditto.
11155
11156 2002-01-20 Michael Chastain <mec@shout.net>
11157
11158 * top.c (print_gdb_version): Bump copyright year to 2002.
11159
11160 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11161
11162 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11163 Zannoni and Eli Zaretskii.
11164
11165 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11166
11167 * buildsym.c: Update copyright years.
11168 * c-typeprint.c: Likewise.
11169 * dwarf2read.c: Likewise.
11170 * f-typeprint.c: Likewise.
11171 * gdbtypes.c: Likewise.
11172 * gdbtypes.h: Likewise.
11173 * hp-symtab-read.c: Likewise.
11174 * hpread.c: Likewise.
11175 * mdebugread.c: Likewise.
11176 * p-typeprint.c: Likewise.
11177
11178 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11179
11180 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11181 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11182 byte-order selectable.
11183 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11184 * arch-utils.c: Ditto.
11185 (set_endian): Ditto.
11186 (set_endian_from_file): Ditto.
11187 * gdbserver/low-sim.c (create_inferior): Ditto.
11188 * gdbarch.sh: Ditto.
11189 * gdbarch.h: Re-generate.
11190 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11191 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11192 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11193 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11194 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11195 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11196 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
11197 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11198 macro definition.
11199 * config/mips/tm-wince.h: Remove #undef of macro
11200 TARGET_BYTE_ORDER_SELECTABLE.
11201 * config/sh/tm-wince.h: Ditto.
11202
11203 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11204
11205 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11206 member function fields. Add accessor macro
11207 TYPE_FN_FIELD_ARTIFICIAL.
11208 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11209 * c-typeprint.c (c_type_print_base): Skip artificial member
11210 functions.
11211
11212 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11213
11214 * f-typeprint.c: Delete unused function f_type_print_args.
11215 * p-typeprint.c: Delete unused function pascal_type_print_args.
11216
11217 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11218
11219 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11220 comment. Add ``artificial'' to ``union field_location''.
11221
11222 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11223
11224 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11225 * mdebugread.c (parse_symbol): Likewise.
11226 * stabsread.c (define_symbol): Likewise.
11227 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11228 initializing TYPE_FIELD_BITPOS to n (obsolete).
11229 (hpread_doc_function_type): Likewise.
11230 * hpread.c (hpread_function_type): Likewise.
11231
11232 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11233
11234 * configure.in (host_makefile_frag): Only require a host makefile
11235 fragment when a native build.
11236 * configure: Re-generate.
11237
11238 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11239
11240 * doublest.h (floatformat_from_type): Declare.
11241 * doublest.c (floatformat_from_type): New function.
11242 (convert_typed_floating): Use.
11243
11244 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11245 call to function floatformat_from_type.
11246
11247 * gdbarch.sh (IEEE_FLOAT): Delete.
11248 * gdbarch.h, gdbarch.c: Re-generate.
11249 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11250 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11251 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11252 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11253 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11254 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11255 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11256 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11257 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11258 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11259 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
11260 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11261
11262 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11263 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11264 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11265 * sh-tdep.c (sh_gdbarch_init): Ditto.
11266 * mips-tdep.c (mips_gdbarch_init): Ditto.
11267 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11268 * cris-tdep.c (cris_gdbarch_init): Ditto.
11269
11270 2002-01-20 Jiri Smid <smid@suse.cz>
11271
11272 * configure.host, configure.tgt: Support x86-64.
11273 * NEWS: Note new target x86-64.
11274
11275 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11276 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11277 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11278 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11279 x86-64-linux-nat.o): Fix dependencies.
11280
11281 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11282
11283 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11284 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11285 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11286 * config/sparc/xm-sun4os4.h: Delete file.
11287 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
11288
11289 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11290
11291 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11292 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11293 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11294 * config/i386/i386lynx.mh (XM_FILE): Delete.
11295 * config/rs6000/xm-rs6000ly.h: Delete file.
11296 * config/sparc/xm-sparclynx.h: Delete file.
11297 * config/m68k/xm-m68klynx.h: Delete file.
11298 * config/i386/xm-i386lynx.h: Delete file.
11299 * config/xm-lynx.h: Delete file.
11300 * config/djgpp/fnchange.lst: Update.
11301
11302 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11303
11304 * alpha-tdep.c (alpha_register_byte): New function.
11305 (alpha_register_raw_size): Ditto.
11306 (alpha_register_virtual_size): Ditto.
11307 (alpha_skip_prologue_internal): Renamed from
11308 alpha_skip_prologue.
11309 (alpha_skip_prologue): New version that calls
11310 alpha_skip_prologue_internal.
11311 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11312 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11313 second argument from alpha_skip_prologue.
11314 (REGISTER_BYTE): Use alpha_register_byte.
11315 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11316 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11317 (FRAMELESS_FUNCTION_INVOCATION): Use
11318 generic_frameless_function_invocation_not.
11319 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11320 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11321
11322 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11323
11324 * config/mips/xm-news-mips.h: Delete file.
11325 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11326
11327 * config/m88k/xm-m88k.h: Delete file.
11328 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11329 * config/m88k/xm-delta88v4.h: Ditto.
11330 * config/m88k/xm-delta88.h: Ditto.
11331
11332 * config/alpha/xm-fbsd.h: Delete file.
11333 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11334
11335 * config/sparc/xm-sparc.h: Delete file.
11336 * Makefile.in (xm-sun4os4.h): Delete dependency.
11337 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11338 * config/sparc/xm-sun4os4.h: Ditto.
11339 * config/sparc/xm-linux.h: Ditto.
11340
11341 * config/i386/xm-windows.h: Delete file.
11342
11343 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11344
11345 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11346 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11347
11348 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11349
11350 * alpha-tdep.c (alpha_call_dummy_words): New.
11351 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11352 (CALL_DUMMY_P): Define.
11353 (CALL_DUMMY_WORDS): Define.
11354 (SIZEOF_CALL_DUMMY_WORDS): Define.
11355
11356 2002-01-19 Per Bothner <per@bothner.com>
11357
11358 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11359 isn't NULL, which can happen with some gcj-3.x-produced code.
11360
11361 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11362
11363 * alpha-tdep.c (alpha_register_virtual_type): New function.
11364 (alpha_init_frame_pc_first): Ditto.
11365 (alpha_fix_call_dummy): Ditto.
11366 (alpha_store_struct_return): Ditto.
11367 (alpha_extract_struct_value_address): Ditto.
11368 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11369 alpha_register_virtual_type.
11370 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11371 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11372 alpha_extract_struct_value_address.
11373 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11374 (INIT_FRAME_PC): Use init_frame_pc_noop.
11375 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11376
11377 2002-01-19 Mark Kettenis <kettenis@gnu.org>
11378
11379 * i386gnu-nat.c: Include "i386-tdep.h".
11380 (fetch_fpregs): Simplify code dealing with uninitialized floating
11381 point states such that it doesn't require FP7_REGNUM.
11382
11383 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11384
11385 * alpha-tdep.c (frame_extra_info): New.
11386 (alpha_find_saved_regs): Make static. Use
11387 frame->extra_info.
11388 (alpha_frame_init_saved_regs): New function.
11389 (alpha_frame_saved_pc): Use frame->extra_info.
11390 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11391 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11392 (init_extra_frame_info): Rename to...
11393 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
11394 (alpha_print_extra_frame_info): New function.
11395 (alpha_frame_locals_address): Ditto.
11396 (alpha_frame_args_address): Ditto.
11397 (alpha_pop_frame): Use frame->extra_info.
11398 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11399 alpha_frame_args_address.
11400 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11401 (alpha_find_saved_regs): Remove prototype.
11402 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11403 (EXTRA_FRAME_INFO): Remove.
11404 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11405 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11406
11407 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11408
11409 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11410 (alpha_cannot_fetch_register): Ditto.
11411 (alpha_cannot_store_register): Ditto.
11412 (alpha_register_convertible): Ditto.
11413 (alpha_use_struct_convention): Ditto.
11414 * config/alpha/tm-alpha.h: Update copyright years.
11415 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11416 (INNER_THAN): Use core_addr_lessthan.
11417 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11418 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11419 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11420 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11421 (FRAME_CHAIN): Remove unnecessary cast.
11422
11423 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11424
11425 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11426 obsolete.
11427
11428 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11429
11430 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11431 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11432 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11433 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11434 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11435 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11436 * x86-64-linux-nat.c: Ditto.
11437
11438 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11439
11440 * alpha-tdep.c (alpha_register_name): New function.
11441 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11442 (REGISTER_NAME): Define.
11443
11444 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11445
11446 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11447
11448 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11449
11450 * alpha-tdep.c: Update copyright years.
11451 (alpha_next_pc): New function.
11452 (alpha_software_single_step): Ditto.
11453 * config/alpha/tm-alpha.h: Add prototype for
11454 alpha_software_single_step.
11455
11456 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11457
11458 * alphabsd-nat.c: Update copyright years.
11459 (fill_gregset): Use regcache_collect.
11460 (fill_fpregset): Likewise.
11461 (fetch_inferior_registers): Only fetch integer registers
11462 if requested to do so.
11463 (store_inferior_registers): Only store integer registers
11464 if requested to do so.
11465
11466 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11467
11468 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11469 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11470 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11471 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11472 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11473 * config/arm/linux.mh (XDEPFILES): Delete.
11474 * config/arm/nbsd.mh (XDEPFILES): Delete.
11475 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11476 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11477 * config/i386/i386m3.mh (XDEPFILES): Delete.
11478 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11479 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11480 * config/i386/fbsd.mh (XDEPFILES): Delete.
11481 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11482 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11483 * config/i386/i386v4.mh (XDEPFILES): Delete.
11484 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11485 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11486 * config/i386/i386aix.mh (XDEPFILES): Delete.
11487 * config/i386/go32.mh (XDEPFILES): Delete.
11488 * config/i386/cygwin.mh (XDEPFILES): Delete.
11489 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11490 * config/i386/i386mach.mh (XDEPFILES): Delete.
11491 * config/i386/i386v32.mh (XDEPFILES): Delete.
11492 * config/i386/linux.mh (XDEPFILES): Delete.
11493 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11494 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11495 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11496 * config/i386/i386sco.mh (XDEPFILES): Delete.
11497 * config/i386/i386v.mh (XDEPFILES): Delete.
11498 * config/i386/nbsd.mh (XDEPFILES): Delete.
11499 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11500 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11501 * config/i386/symmetry.mh (XDEPFILES): Delete.
11502 * config/i386/obsd.mh (XDEPFILES): Delete.
11503 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11504 * config/ia64/linux.mh (XDEPFILES): Delete.
11505 * config/ia64/aix.mh (XDEPFILES): Delete.
11506 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11507 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11508 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11509 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11510 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11511 * config/m68k/linux.mh (XDEPFILES): Delete.
11512 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11513 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11514 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11515 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11516 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11517 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11518 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11519 * config/m88k/delta88.mh (XDEPFILES): Delete.
11520 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11521 * config/m88k/m88k.mh (XDEPFILES): Delete.
11522 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11523 * config/mips/linux.mh (XDEPFILES): Delete.
11524 * config/mips/irix6.mh (XDEPFILES): Delete.
11525 * config/mips/irix5.mh (XDEPFILES): Delete.
11526 * config/mips/irix4.mh (XDEPFILES): Delete.
11527 * config/mips/irix3.mh (XDEPFILES): Delete.
11528 * config/mips/decstation.mh (XDEPFILES): Delete.
11529 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11530 (NATDEPFILES): Move core-aout.o to here.
11531 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11532 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11533 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11534 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11535 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11536 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11537 * config/pa/hpux11.mh (XDEPFILES): Delete.
11538 * config/powerpc/aix.mh (XDEPFILES): Delete.
11539 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11540 * config/powerpc/linux.mh (XDEPFILES): Delete.
11541 * config/romp/rtbsd.mh: Rename XDEPFILES.
11542 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11543 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11544 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11545 * config/s390/s390.mh (XDEPFILES): Delete.
11546 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11547 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11548 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11549 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11550 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11551 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11552 * config/sparc/linux.mh (XDEPFILES): Delete.
11553 * config/vax/vaxult.mh (XDEPFILES): Delete.
11554 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11555 * Makefile.in (DEPFILES): Remove XDEPFILES.
11556
11557 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11558
11559 * utils.c (internal_verror): Fix comments, default is yes not no.
11560 Update queries to match. Default to quit and dump core.
11561
11562 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11563
11564 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11565 copyright.
11566 * defs.h, event-top.c, gdbcmd.h: Ditto.
11567 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11568 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11569 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11570 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11571 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11572 * mi/mi-main.c:Ditto.
11573
11574 * stack.c, symfile.c: Update copyright.
11575
11576 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11577
11578 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11579 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11580 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11581 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11582
11583 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11584
11585 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11586 * gdbserver/low-lynx.c (myattach): Likewise.
11587 * gdbserver/low-nbsd.c (myattach): Likewise.
11588 * gdbserver/low-sim.c (myattach): Likewise.
11589 * gdbserver/low-sparc.c (myattach): Likewise.
11590 * gdbserver/low-sun3.c (myattach): Likewise.
11591
11592 * gdbserver/low-linux.c (myattach): New function.
11593
11594 * gdbserver/server.c (attach_inferior): New function.
11595 (main): Handle "--attach".
11596
11597 2002-01-16 Andrew Cagney <ac131313@redhat.com>
11598
11599 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11600 maintainer.
11601
11602 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
11603
11604 * c-typeprint.c (is_type_conversion_operator): Add additional
11605 check for non-conversion operators.
11606
11607 2002-01-15 Michael Snyder <msnyder@redhat.com>
11608
11609 * linux-proc.c: Add "info proc" command, a la procfs.c.
11610 (read_mapping): New function, abstract and re-use code.
11611 (linux_find_memory_regions): Use new func read_mapping.
11612 (linux_info_proc_cmd): New function, implement "info proc".
11613 (_initialize_linux_proc): Add new command "info proc".
11614
11615 2002-01-15 Michael Snyder <msnyder@redhat.com>
11616
11617 * symfile.c (generic_load): Use bfd_map_over_sections method
11618 instead of manipulating bfd structure members directly.
11619 (add_section_size_callback): New function, bfd sections callback
11620 used by generic_load.
11621 (load_sections_callback): New function, bfd sections callback
11622 used by generic_load.
11623
11624 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
11625
11626 [Based on work by Jim Blandy]
11627 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11628 (builtin_type_vec128): Export.
11629 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11630 types.
11631 (builtin_type_vec128): New builtin type for 128 bit vector
11632 registers.
11633 (build_gdbtypes): Initialize builtin_type_v16qi and
11634 builtin_type_v8hi. Create the vec128 register builtin type
11635 structure.
11636 (build_builtin_type_vec128): New function.
11637 (_initialize_gdbtypes): Register builtin_type_v16qi and
11638 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11639 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11640 AltiVec register to new builtin type.
11641
11642 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
11643
11644 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11645 to make_cv_type.
11646
11647 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11648
11649 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11650 CLEAN_UP_REGISTER_VALUE.
11651 * regcache.c (supply_register): Update only call.
11652
11653 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11654
11655 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11656 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11657 a29k-*-vxworks* targets as obsolete.
11658
11659 2002-01-14 Michael Snyder <msnyder@redhat.com>
11660
11661 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11662 until we can resolve portability issues.
11663 * gregset.h: Remove references to fpxregs.
11664 * gcore.c (gcore_command): Initialize note_sec to NULL.
11665
11666 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11667
11668 * signals.c (target_signal_to_name): Rewrite. Only use
11669 signals[].name when in bounds and non-NULL.
11670
11671 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11672
11673 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11674 * signals.c (target_signal_to_name): Verify that SIG is within the
11675 bounds of the signals array.
11676
11677 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11678
11679 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11680
11681 2002-01-13 Keith Seitz <keiths@redhat.com>
11682
11683 * stack.c (print_frame_info_base): Print the frame's pc
11684 only if when print_frame_info_listing_hook is not defined.
11685
11686 2002-01-13 Keith Seitz <keiths@redhat.com>
11687
11688 * varobj.c (varobj_set_value): Make sure that there were no
11689 errors evaluating the object before attempting to set its
11690 value.
11691 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11692 so this offset adjustment is no longer necessary.
11693 (create_child): Don't set the error flag if the child is
11694 a CPLUS_FAKE_CHILD.
11695 (value_of_child): If value_fetch_lazy fails, return NULL
11696 so that callers will be notified that an error occurred.
11697 (c_value_of_variable): Delay check of variable's validity
11698 until later. We actually want all structs and unions to have
11699 the value "{...}".
11700 Do not return "???" for variables which could not be evaluated.
11701 This error condition must be returned to the caller so that it
11702 can get the error condition from gdb.
11703 (cplus_name_of_child): Adjust index for vptr before figuring
11704 out the name of the child.
11705 (cplus_value_of_child): If a child's (real) parent is not valid,
11706 don't even bother trying to give a value for it. Just return
11707 an error. Change all instances in this function.
11708 (cplus_type_of_child): If our parent is one of the "fake"
11709 parents, we need to get at the type of the real parent, and
11710 derive the child's true type using this information.
11711
11712 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11713
11714 From 2002-01-09 John Marshall <johnm@falch.net>:
11715 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11716 sources.redhat.com, and tweak some related URLs which had
11717 suffered from linkrot.
11718
11719 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11720
11721 From Jeff law:
11722 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11723 structures passed in registers.
11724
11725 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11726
11727 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11728 white space which prevented compilation. Reported by DSK
11729 <dsk@student.unsw.edu.au>.
11730
11731 2002-01-11 Michael Snyder <msnyder@redhat.com>
11732
11733 * symfile.c (build_section_addr_info_from_section_tab):
11734 Use bfd access method instead of manipulating bfd directly.
11735 (syms_from_objfile): Ditto.
11736 (simple_overlay_update_1): Ditto.
11737 (simple_overlay_update): Ditto.
11738 (generic_load): Ditto.
11739 (overlay_unmapped_address): FIXME comment, bfd access methods.
11740 (sections_overlap): FIXME comment, bfd access methods.
11741 (pc_in_mapped_range): FIXME comment, bfd access methods.
11742 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11743 (section_is_mapped): FIXME comment, bfd access methods.
11744 (section_is_overlay): FIXME comment, bfd access methods.
11745
11746 * symfile.c (generic_load): Whitespace and long line cleanups.
11747 Remove duplicate variable, change several local variables to
11748 more appropriate data types.
11749 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11750
11751 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11752
11753 From Peter Schauer:
11754 * language.c (longest_local_hex_string_custom): Use phex_nz to
11755 convert NUM to a hex string.
11756
11757 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
11758
11759 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11760 the function.
11761 Update Copyright year.
11762
11763 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11764
11765 * language.c (longest_raw_hex_string): Delete unused function.
11766
11767 2002-01-11 Petr Sorfa <petrs@caldera.com>
11768
11769 * MAINTAINERS (write-after-approval): Add myself.
11770 * dwarf2read.c (read_tag_string_type): Handling of
11771 DW_AT_byte_size.
11772 (read_tag_string_type): FORTRAN fix to prevent propagation of
11773 first string size.
11774 (set_cu_language): Handling of DW_LANG_Fortran95
11775
11776 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
11777
11778 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11779 GETPID(inferior_ptid).
11780 (store_inferior_registers): Likewise.
11781
11782 2002-01-10 Jason Merrill <jason@redhat.com>
11783
11784 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11785 Fix DW_OP_minus.
11786
11787 2002-01-10 Andrew Cagney <ac131313@redhat.com>
11788
11789 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11790 and bfd/elf32-sh-nbsd.c.
11791
11792 2002-01-10 Michael Snyder <msnyder@redhat.com>
11793
11794 * NEWS: Mention --pid and corefile/proc-id behavior change.
11795
11796 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11797 * gcore.c: Include cli/cli-decode.h instead of command.h.
11798
11799 * main.c (captured_main): Add new command line option "--pid".
11800 If the second command line argument (following the symbol-file)
11801 begins with a digit, try to attach to it before trying to open
11802 it as a corefile.
11803 (print_gdb_help): Document the "--pid" argument.
11804
11805 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11806
11807 * completer.c (command_completer): New function.
11808
11809 * completer.h <command_completer>: Add prototype.
11810
11811 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11812 completer for the "help" command.
11813
11814 2002-01-09 Jason Merrill <jason@redhat.com>
11815
11816 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11817
11818 2002-01-09 Michael Snyder <msnyder@redhat.com>
11819
11820 * i386-linux-nat.c (fill_fpxregset): Make global.
11821 (store_fpxregset): Ditto.
11822
11823 * gregset.h (gdb_fpxregset_t): Define.
11824 (supply_fpxregset): Prototype.
11825 (fill_fpxregset): Prototype.
11826
11827 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11828
11829 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11830
11831 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11832 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11833 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11834
11835 2002-01-09 Andrew Cagney <ac131313@redhat.com>
11836
11837 * MAINTAINERS: Update target maintainer rules so that any
11838 Maintainer can approve a tested patch for a maintenance-only
11839 target.
11840
11841 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11842
11843 * MAINTAINERS (write-after-approval): Add myself.
11844
11845 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
11846 IN_SIGTRAMP.
11847
11848 2002-01-08 Michael Snyder <msnyder@redhat.com>
11849
11850 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11851 real name of the executable, rather than the /proc name.
11852
11853 2002-01-03 Michael Snyder <msnyder@redhat.com>
11854
11855 Implement a "generate-core-file" command in gdb, save target state.
11856 * gcore.c: New file. Implement new command 'generate-core-file'.
11857 Save a corefile image of the current state of the inferior.
11858 * linux-proc.c: Add linux-specific code for saving corefiles.
11859 * target.h (struct target_ops): Add new target vectors for saving
11860 corefiles; to_find_memory_regions and to_make_corefile_notes.
11861 (target_find_memory_regions): New macro.
11862 (target_make_corefile_notes): New macro.
11863 * target.c (update_current_target): Inherit new target methods.
11864 (dummy_find_memory_regions): New place-holder method.
11865 (dummy_make_corefile_notes): New place-holder method.
11866 (init_dummy_target): Initialize new dummy target vectors.
11867 * exec.c (exec_set_find_memory_regions): New function.
11868 Allow the exec_ops vector for memory regions to be taken over.
11869 (exec_make_note_section): New function, target vector method.
11870 * defs.h (exec_set_find_memory_regions): Export prototype.
11871 * procfs.c (proc_find_memory_regions): New function, corefile method.
11872 (procfs_make_note_section): New function, corefile method.
11873 (init_procfs_ops): Set new target vector pointers.
11874 (find_memory_regions_callback): New function.
11875 (procfs_do_thread_registers): New function.
11876 (procfs_corefile_thread_callback): New function.
11877 * sol-thread.c (sol_find_memory_regions): New function.
11878 (sol_make_note_section): New function.
11879 (init_sol_thread_ops): Initialize new target vectors.
11880 * inftarg.c (inftarg_set_find_memory_regions): New function.
11881 Allow to_find_memory_regions vector to be taken over.
11882 (inftarg_set_make_corefile_notes): New function.
11883 Allow to_make_corefile_notes vector to be taken over.
11884 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11885 interface layer if not target_has_execution (may be a corefile).
11886 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11887 * config/sparc/sun4sol2.mh: Ditto.
11888 * config/alpha/alpha-linux.mh: Ditto.
11889 * config/arm/linux.mh: Ditto.
11890 * config/i386/x86-64linux.mh: Ditto.
11891 * config/ia64/linux.mh: Ditto.
11892 * config/m68k/linux.mh: Ditto.
11893 * config/mips/linux.mh: Ditto.
11894 * config/powerpc/linux.mh: Ditto.
11895 * config/sparc/linux.mh: Ditto.
11896
11897 2002-01-07 Michael Snyder <msnyder@redhat.com>
11898
11899 * arm-linux-nat.c: Remove references to regcache.c internal data
11900 (registers[] and register_valid[]).
11901
11902 2002-01-07 Michael Snyder <msnyder@redhat.com>
11903
11904 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11905 so that attaching to a pid will automatically read the process's
11906 symbol file and shlibs.
11907 * Makefile.in: Add rule for linux-proc.o.
11908 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11909 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11910 * config/arm/linux.mh: Ditto.
11911 * config/i386/linux.mh: Ditto.
11912 * config/i386/x86-64linux.mh: Ditto.
11913 * config/ia64/linux.mh: Ditto.
11914 * config/m68k/linux.mh: Ditto.
11915 * config/mips/linux.mh: Ditto.
11916 * config/powerpc/linux.mh: Ditto.
11917 * config/sparc/linux.mh: Ditto.
11918
11919 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11920
11921 * win32-nat.c: Add i386-tdep.h dependency.
11922
11923 2002-01-07 Michael Snyder <msnyder@redhat.com>
11924
11925 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11926 instead of bfd_get_arch_size. Don't bail out just because
11927 there's no exec_bfd.
11928
11929 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11930 * p-valprint.c (pascal_object_print_value): Ditto.
11931 * somread.c (som_symtab_read): Ditto.
11932 * symfile.c (simple_free_overlay_region_table): Ditto.
11933 * valops.c (value_assign): Ditto.
11934
11935 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11936 use tilde_expand and strerror for opening save-tracepoints file.
11937
11938 * thread-db.c (thread_db_new_objfile): Indendation fix.
11939
11940 * infptrace.c (GDB_MAX_ALLOCA): New define.
11941 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
11942 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
11943 can be overridden with whatever value is appropriate to the host).
11944 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11945 alloca to allocate potentially large buffer.
11946 * rs6000-nat.c (child_xfer_memory): Ditto.
11947 * symm-nat.c (child_xfer_memory): Ditto.
11948 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11949
11950 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11951
11952 From Nick Clifton <nickc@redhat.com>
11953 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11954
11955 2002-01-07 Michael Snyder <msnyder@redhat.com>
11956
11957 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11958 Don't use exec_bfd if it's NULL.
11959
11960 2002-01-06 Mark Kettenis <kettenis@gnu.org>
11961
11962 * valops.c (value_arg_coerce): Fix formatting.
11963
11964 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11965
11966 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11967 * gnu-nat.c: Ditto.
11968
11969 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11970
11971 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11972 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11973 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11974 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11975 z8k-coff have not been multi-arched. Update z8k-coff build
11976 status.
11977
11978 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11979
11980 * MAINTAINERS: Mark a29k target as obsolete.
11981 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11982 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11983 comments.
11984 * NEWS: Note that a29k targets are obsolete.
11985 * a29k-tdep.c: Mark as obsolete.
11986 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11987 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11988 a29k-*-vxworks* targets as obsolete.
11989 * remote-adapt.c: Obsolete.
11990 * remote-eb.c: Obsolete.
11991 * remote-mm.c: Obsolete.
11992 * remote-udi.c: Obsolete.
11993 * config/a29k/a29k-udi.mt: Obsolete.
11994 * config/a29k/a29k.mt: Obsolete.
11995 * config/a29k/tm-a29k.h: Obsolete.
11996 * config/a29k/tm-vx29k.h: Obsolete.
11997 * config/a29k/vx29k.mt: Obsolete.
11998
11999 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12000
12001 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
12002 with BFD_ENDIAN_BIG.
12003
12004 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12005
12006 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
12007 * configure, config.in: Re-generate.
12008 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
12009 * defs.h: Do not include <endian.h>.
12010
12011 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
12012
12013 * acconfig.h (HAVE_PT_GETXMMREGS): New.
12014 * config.in: Regenerate.
12015 * configure.in: Update copyright years.
12016 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
12017 * configure: Regenerate.
12018 * i386bsd-nat.c: Update copyright years.
12019 (fill_gregset): Use regcache_collect.
12020 (fetch_inferior_registers): Only fetch integer registers
12021 if requested to do so. Add support for XMM registers
12022 using PT_GETXMMREGS.
12023 (store_inferior_registers): Only store integer registers
12024 if requested to do so. Add support for XMM registers
12025 using PT_SETXMMREGS.
12026 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
12027 (store_inferior_registers): Remove.
12028 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
12029 (fetch_elfcore_registers): New function.
12030 (i386nbsd_elfcore_fns): New.
12031 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
12032 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
12033 i386bsd-nat.o.
12034 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
12035 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
12036 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
12037 * config/i386/tm-nbsd.h: Update copyright years.
12038 (HAVE_SSE_REGS): Define.
12039 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
12040 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
12041 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
12042 (SIGCONTEXT_PC_OFFSET): Remove.
12043 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
12044
12045 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12046
12047 * configure.tgt: Remove powerpc-*-macos* target.
12048 * config/m68k/xm-mpw.h: Delete file.
12049 * config/xm-mpw.h: Delete file.
12050 * ser-mac.c: Delete file.
12051 * mpw-make.sed: Delete file.
12052 * mpw-config.in: Delete file.
12053 * mac-xdep.c: Delete file.
12054 * mac-gdb.r: Delete file.
12055 * mac-defs.h: Delete file.
12056 * mac-nat.c: Delete file.
12057 * config/powerpc/macos.mh: Delete file.
12058 * config/powerpc/macos.mt: Delete file.
12059 * config/powerpc/nm-macos.h: Delete file.
12060 * config/powerpc/tm-macos.h: Delete file.
12061 * source.c (openp, open_source_file): Remove obsolete code.
12062 * top.c (gdb_readline): Ditto.
12063 * utils.c (query): Ditto.
12064 * event-top.c (display_gdb_prompt): Ditto.
12065 * Makefile.in (ser-mac.o): Delete obsolete target.
12066 * NEWS: Update.
12067
12068 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12069
12070 * defs.h (BIG_ENDIAN): Delete macro definition.
12071 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
12072 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
12073 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
12074 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
12075 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
12076 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
12077 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
12078 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
12079 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
12080 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
12081 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
12082 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12083 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12084 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12085 * gdbarch.c: Re-generate.
12086
12087 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12088
12089 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12090 for core files.
12091
12092 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12093
12094 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12095
12096 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12097
12098 * value.h (value_ptr): Delete typedef.
12099
12100 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12101
12102 * i386nbsd-nat.c: Update copyright years.
12103 Include i386-tdep.h.
12104
12105 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
12106
12107 * stabsread.c: Update copyright years.
12108
12109 From Debashis Mahata <debashis.mahata@wipro.com>:
12110 (read_struct_fields): Deal with Sun C compiler erroneous stab
12111 output for structs and unions.
12112 Fix PR gdb/269.
12113
12114 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12115
12116 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12117 prototype.
12118
12119 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12120
12121 * cp-abi.c: Fix whitespace.
12122 (baseclass_offset): New wrapper function.
12123 * cp-abi.h (baseclass_offset): Add prototype.
12124 (struct cp_abi_ops): Add baseclass_offset pointer.
12125
12126 * valops.c (vb_match): Move to...
12127 * gnu-v2-abi.c (vb_match): here.
12128 * valops.c (baseclass_offset): Move to...
12129 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12130
12131 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12132
12133 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12134 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12135 * hpacc-abi.c (init_hpacc_ops): Likewise.
12136
12137 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12138
12139 * valops.c (find_overload_match): Accept obj as a
12140 reference parameter. Update it before returning.
12141 * value.h (find_overload_match): Update prototype.
12142 * eval.c (evaluate_subexp_standard): Pass object to
12143 find_overload_match by reference.
12144
12145 2002-01-03 Andrew Cagney <ac131313@redhat.com>
12146
12147 * valarith.c: Replace value_ptr with struct value pointer. Remove
12148 register attribute from value declarations.
12149 * valops.c: Ditto.
12150 * value.h: Ditto.
12151 * scm-lang.c (scm_lookup_name): Ditto.
12152
12153 2002-01-03 Michael Snyder <msnyder@redhat.com>
12154
12155 Abstract the functionality of iterating over mapped memory
12156 regions into a general purpose iterator function.
12157 * procfs.c (iterate_over_mappings): New function, general purpose
12158 iterator for memory sections.
12159 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12160 (solib_mappings_callback): New function, callback for above.
12161 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12162 (info_mappings_callback): New function, callback for above.
12163
12164 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12165
12166 2002-01-01 Mark Kettenis <kettenis@gnu.org>
12167
12168 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12169 * i386-tdep.c: Include "elf-bfd.h".
12170 (process_note_abi_tag_sections): New function.
12171 (i386_gdbarch_init): Add code to recognize various OS/ABI
12172 combinations.
12173
12174 * maint.c (_initialize_maint_cmds): Add missing \ in
12175 string-literal.
12176
12177 For older changes see ChangeLog-2001
12178 \f
12179 Local Variables:
12180 mode: change-log
12181 left-margin: 8
12182 fill-column: 74
12183 version-control: never
12184 End: