1 2002-10-24 Martin M. Hunt <hunt@redhat.com>
3 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
5 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
7 * symtab.h (INIT_SAL): Delete macro.
9 * symtab.c (init_sal): New function.
11 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
12 to init_sal function call.
13 (find_sal_from_funcs_and_line): Ditto.
14 (all_sals_for_line): Ditto.
15 * breakpoint.c (create_internal_breakpoint): Ditto.
16 (create_fork_vfork_event_catchpoint): Ditto.
17 (create_exec_event_catchpoint): Ditto.
18 (parse_breakpoint_sals): Ditto.
19 (watch_command_1): Ditto.
20 (handle_gnu_4_16_catch_command): Ditto.
21 (clear_command): Ditto.
22 * hppa-tdep.c (child_enable_exception_callback): Ditto.
23 * infcmd.c (run_stack_dummy): Ditto.
24 * infrun.c (process_event_stop_test): Ditto.
25 (check_sigtramp2): Ditto.
26 (step_over_function): Ditto.
27 * linespec.c (decode_line_2): Ditto.
28 (decode_line_1): Ditto.
29 * source.c (line_info): Ditto.
30 * symtab.c (find_pc_sect_line): Ditto.
32 2002-10-24 Michal Ludvig <mludvig@suse.cz>
34 * dwarf2cfi.c (struct context)
35 (struct context_reg): Moved to dwarf2cfi.h
36 (context_alloc, frame_state_alloc, context_cpy):
37 Made extern instead of static, removed prototypes.
38 * dwarf2cfi.h (struct context)
39 (struct context_reg): New, moved from dwarf2cfi.c
40 (context_alloc, frame_state_alloc, context_cpy):
42 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
43 Changed from static to extern.
44 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
45 (LINUX_SIGCONTEXT_FP_OFFSET)
46 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
47 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
48 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
49 * x86-64-tdep.c (x86_64_gdbarch_init): Several
50 set_gdbarch_*() calls now use x86-64 specific functions
51 instead of DWARF2 CFI ones.
52 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
53 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
54 (x86_64_init_extra_frame_info): New prototypes.
56 2002-10-23 David Carlton <carlton@math.stanford.edu>
58 * linespec.c: #include "parser-defs.h".
59 Delete prototype for find_template_name_end.
60 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
62 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
64 * NEWS: add recent mi fixes.
65 * varobj.c (struct varobj): Add new "updated" flag.
66 (new_variable): Default "updated" flag to 0.
67 (varobj_set_value): Set "updated" flag to 1 if value
69 (varobj_update): Check varobj "updated" flag before
70 comparing old and refreshed values. Fix for
73 2002-10-23 David Carlton <carlton@math.stanford.edu>
75 * parse.c (parse_exp_1): Use BLOCK_START.
76 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
78 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
80 2002-10-23 David Carlton <carlton@math.stanford.edu>
82 * symtab.c: Delete cplusplus_hint.
83 Delete prototype for find_template_name_end.
85 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
87 * symtab.h: Update comment.
89 2002-10-23 Michael Snyder <msnyder@redhat.com>
91 * printcmd.c (address_info): Restore quotes in output.
92 * valops.c (value_of_local): Restore quotes in error message.
94 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
96 * symtab.c (symbol_demangled_name): New function.
97 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
98 turning most of it into a function.
99 (symbol_demangled_name): Export.
101 2002-10-23 Michael Snyder <msnyder@redhat.com>
103 * valops.c (value_of_local): Restore quotes in error message.
105 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
107 * symtab.c (symbol_init_language_specific): New function.
108 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
109 turning most of it into a function.
110 (symbol_init_language_specific): Export.
112 2002-10-23 David Carlton <carlton@math.stanford.edu>
114 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
115 (dwarf_attr_name): Ditto.
116 (dwarf_type_encoding_name): Ditto.
117 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
118 (process_die): Handle DW_TAG_namespace,
119 DW_TAG_imported_declaration, DW_TAG_imported_module.
120 (read_namespace): New function.
122 2002-10-22 Joel Brobecker <brobecker@gnat.com>
124 * configure.in: Define NEW_PROC_API on Interix too.
125 * configure: Regenerate.
127 2002-10-21 Joel Brobecker <brobecker@gnat.com>
129 * configure: Regenerate using the proper version of autoconf.
131 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
133 * findvar.c (read_var_value): Temporarily disable TLS code, until
134 complete TLS support is added.
136 2002-10-21 Jim Blandy <jimb@redhat.com>
137 Elena Zannoni <ezannoni@redhat.com>
139 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
140 for thread local storage locations.
141 (struct symbol): Add objfile field.
142 (SYMBOL_OBJFILE): Define.
143 * dwarf2read.c (is_thread_local): New static variable.
144 (new_symbol): If variable is in thread local fill in address class
145 and objfile appropriately.
146 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
148 * printcmd.c (address_info): Print the information for thread
149 local storage variable.
150 * findvar.c (read_var_value): In case of thread local variable,
151 defer to the target vector code to compute address.
153 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
155 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
156 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
158 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
160 * symtab.h (address_class): Rename
161 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
162 * hpread.c (hpread_process_one_debug_symbol): Ditto.
163 * printcmd.c (address_info): Ditto.
164 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
166 2002-10-20 Mark Kettenis <kettenis@gnu.org>
168 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
169 DBREG_DRX macro to acces debug registers.
171 * Makefile.in (i386obsd-tdep.o): New target.
173 * solib-sunos.c: Include "bcache.h" and "regcache.h".
174 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
176 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
177 * config/i386/obsd.mt: New file.
178 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
179 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
180 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
181 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
182 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
183 * i386obsd-tdep.c: New file.
185 2002-10-19 Adam Fedor <fedor@gnu.org>
187 * objc-exp.y (name_not_typename): Fix invalid comment.
189 2002-10-20 Mark Kettenis <kettenis@gnu.org>
191 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
192 to allocate partial syms and macro byte caches.
194 2002-10-18 David Carlton <carlton@math.stanford.edu>
196 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
198 2002-10-18 Adam Fedor <fedor@gnu.org>
200 * stabsread.c (find_name_end): New function.
201 (define_symbol): Use it.
203 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
205 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
206 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
207 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
208 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
210 2002-10-17 David Carlton <carlton@math.stanford.edu>
212 * symfile.h: Add opaque declaration for struct obstack.
213 Declare obsavestring to take a const char *.
214 * symfile.c (obsavestring): Make first argument a const char *.
216 2002-10-16 Adam Fedor <fedor@gnu.org>
218 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
219 names when matching breakpoints in current file.
221 2002-10-16 Kevin Buettner <kevinb@redhat.com>
223 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
224 (read_tag_pointer_type): Add address class support.
225 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
226 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
228 * gdbarch.h, gdbarch.c: Regenerate.
229 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
230 (make_type_with_address_space, recursive_type_dump): Add address
232 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
233 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
234 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
236 2002-10-16 Klee Dienes <kdienes@apple.com>
238 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
239 to get the last character of a char[] buffer, not
240 name[sizeof(vptr_name)-1].
242 2002-10-14 Adam Fedor <fedor@gnu.org>
244 * symtab.h: New objc_specific struct.
245 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
246 (SYMBOL_DEMANGLED_NAME): Likewise.
248 2002-10-14 Adam Fedor <fedor@gnu.org>
250 * symfile.c (init_filename_language_table): Add ObjC file extension.
252 2002-10-14 Adam Fedor <fedor@gnu.org>
254 * utils.c (puts_filtered_tabular): New function.
255 (fprintf_symbol_filtered): Get ObjC demangled name.
256 * defs.h (puts_filtered_tabular): Declared.
258 2002-10-14 Kevin Buettner <kevinb@redhat.com>
260 * c-lang.h (c_type_print_varspec_prefix): Delete.
261 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
262 ``need_post_space'' parameter. Adjust all callers.
264 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
266 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
267 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
268 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
269 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
271 2002-10-13 Adam Fedor <fedor@gnu.org>
273 * source.c (print_source_lines): Update comments.
275 2002-10-13 Adam Fedor <fedor@gnu.org>
277 * valops.c (value_of_local): New function.
278 (value_of_this): Use it.
279 * value.h (value_of_local): Declared.
281 2002-10-13 Adam Fedor <fedor@gnu.org>
283 * parse.c: (length_of_subexp, prefixify_subexp): Handle
284 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
286 2002-10-12 Adam Fedor <fedor@gnu.org>
288 * language.c (binop_result_type): Add language_objc to case.
289 (integral_type): Likewise.
290 (character_type): Likewise.
291 (string_type): Likewise.
292 (boolean_type): Likewise.
293 (structured_type): Likewise.
294 (binop_type_check): Likewise.
296 2002-10-11 Adam Fedor <fedor@gnu.org>
298 * printcmd.c (address_info): Print 'self' for ObjC.
300 2002-10-11 Adam Fedor <fedor@gnu.org>
302 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
305 2002-10-11 Adam Fedor <fedor@gnu.org>
307 * language.h (CAST_IS_CONVERSION): Add language_objc.
309 2002-10-11 Adam Fedor <fedor@gnu.org>
311 * defs.h (enum language): Add language_objc.
313 2002-10-11 Klee Dienes <kdienes@apple.com>
315 * findvar.c (read_memory_typed_address): New function.
316 * gdbcore.h (read_memory_typed_address): Add prototype.
317 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
318 to read a value destined for a CORE_ADDR, not read_memory_integer.
319 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
320 (f77_get_dynamic_lowerbound): Ditto.
322 2002-10-11 Martin M. Hunt <hunt@redhat.com>
324 * utils.c (string_to_core_addr): After turning string into
325 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
326 which will do necessary sign-extension, etc.
328 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
330 * c-exp.y (THIS): Delete token and grammar rule.
331 (yylex): Don't return THIS.
332 * cp-valprint.c (vtbl_ptr_name_old): Delete.
333 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
334 * demangle.c (cplus_markers): Update comment. Put '$'
335 first. Remove CPLUS_MARKER.
336 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
337 * jv-exp.y (THIS): Delete token and grammar rule.
338 (yylex): Don't return THIS.
339 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
340 * objc-exp.y (THIS): Delete token and grammar rule.
341 (yylex): Don't return THIS.
342 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
343 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
344 (read_member_functions): Likewise for opname.
345 (read_tilde_fields): Use is_cplus_marker.
347 * defs.h (CPLUS_MARKER): Don't define.
348 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
349 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
350 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
351 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
352 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
354 * config/i386/tm-i386v4.h: Delete file.
355 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
356 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
357 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
358 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
359 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
360 * config/i386/i386sco5.mt (TM_FILE): Likewise.
361 * config/i386/i386v4.mt (TM_FILE): Likewise.
362 * config/i386/ncr3000.mt (TM_FILE): Likewise.
364 2002-10-10 Marko Mlinar <markom@opencores.org>
366 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
367 accidentially not commited 2002-10-09
368 * gdbarch.h, gdbarch.c: Re-generate.
370 2002-10-09 Marko Mlinar <markom@opencores.org>
372 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
373 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
374 * gdbarch.h, gdbarch.c: Re-generate.
376 2002-10-08 Petr Sorfa <petrs@caldera.com>
378 Revised and re-submitted by John Wolfe <jlw@caldera.com>
380 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
381 so we can work on more than one compilation unit at a time. This
382 helps prepare GDB to handle inter-CU die references.
383 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
384 the code to be defined before struct comp_unit_head.
385 (comp_unit_head): Added new members - offset, cu_head,
386 begin_die, next and dwarf2_abbrevs.
387 (dwarf2_abbrevs): Removed single static var; now member of
388 struct comp_unit_head.
389 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
391 (psymtab_to_symtab_1): Changed to work with the new
392 struct comp_unit_head.
393 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
394 constructs the dwarf2_abbrevs[] inside the cu_header.
395 (dwarf2_empty_abbrev_table): Now expects a ptr to a
396 dwarf2_abbrev table to clean up.
397 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
398 handling of dwarf2_abbrevs inside the cu_header.
399 (read_partial_die): Now supports the call to the new
400 dwarf2_lookup_abbrev.
401 (read_full_die): Now supports the call to the new
402 dwarf2_lookup_abbrev.
404 2002-10-06 Christopher Faylor <cgf@redhat.com>
406 * Makefile.in (install-gdbtk): Add missing continuation backslash to
407 insure that shell variables, such as "transformed_name" are propagated
408 to later shell statements in rule.
410 2002-10-06 Mark Kettenis <kettenis@gnu.org>
412 * config/i386/nm-i386sco.h: Add protection against
413 multiple-inclusion. Include "i386/nm-i386v.h".
414 (REGISTER_U_ADDR): Remove define.
415 (i386_register_u_addr): Remove prototype.
417 2002-10-04 Michael Snyder <msnyder@redhat.com>
419 * m32r-stub.c (handle_exception): Make sure exception is "trap"
420 before treating it as a single-step event.
422 2002-10-03 Adam Fedor <fedor@gnu.org>
424 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
425 (objc_demangle): Remove assignment in if statements, Replace
427 (add_msglist): Likewise.
428 (end_msglist): Likewise.
429 (complare_selectors): Likewise.
430 (selectors_info): Likewise.
431 (compare_classes): Likewise.
432 (classes_info): Likewise.
433 (print_object_command): Likewise.
434 (find_objc_msgcall_submethod): Replace PTR with void *.
435 * objc-lang.h: Remove check for __STDC__.
437 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
439 * ui-out.h (ui_out_field_fmt_int): New prototype.
440 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
441 of field width and alignment.
442 * stack.c (print_frame_info_base): When printing frame level, use
443 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
446 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
448 * MAINTAINERS: Add self to Write After Approval list.
450 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
452 * infcmd.c (interrupt_target_command_wrapper): Delete.
453 (interrupt_target_command): Make non static.
454 (nofp_registers_info): Make static.
455 * stack.c (return_command_wrapper): Delete.
456 (return_command): Make non static.
458 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
460 * event-top.c (gdb_setup_readline): New function. Code moved from
461 _initialize_event_loop().
462 (_initialize_event_loop): Call gdb_setup_readline().
464 2002-10-02 Andrew Cagney <ac131313@redhat.com>
466 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
467 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
468 * gdbarch.h, gdbarch.c: Re-generate.
470 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
473 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
475 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
476 of fill_in_vptr_fieldno.
478 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
480 * inferior.h (registers_info, stepi_command, nexti_command,
481 continue_command, interrupt_target_command): Export from infcmd.c.
482 * frame.h (args_info, selected_frame_level_changed_hook,
483 return_command): Export from stack.c.
484 * v850ice.c (stepi_command, nexti_command, continue_command): use
485 prototypes from inferior.h.
486 * tracepoint.c (registers_info, args_info, locals_info): Use
487 prototypes from frame.h and inferior.h.
488 * Makefile.in (mi-main.o): Add dependency on frame.h.
490 2002-10-02 Andrew Cagney <ac131313@redhat.com>
492 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
493 value in register 3 adjusted by ppc_gp0_regnum.
495 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
497 2002-10-02 Marko Mlinar <markom@opencores.org>
499 * MAINTAINERS: Add myself to the Write After Approval list.
501 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
503 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
504 of the section for the N64 ABI, fixed.
506 * config/mips/tm-irix6.h: Include solib.h.
508 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
510 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
513 2002-10-01 Andrew Cagney <ac131313@redhat.com>
515 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
516 and that "mi0" syntax has been removed.
518 2002-09-30 David Carlton <carlton@math.stanford.edu>
520 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
521 * ppc-sysv-tdep.c: #include "gdb_string.h".
522 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
525 2002-10-01 Andrew Cagney <ac131313@redhat.com>
527 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
528 "vrsave"'s register number.
530 2002-09-30 Andrew Cagney <ac131313@redhat.com>
532 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
533 use frame_unwind_signed_register to obtain the PC.
534 (mips_frame_chain): Handle a generic dummy frame.
535 (mips_init_extra_frame_info): When a generic dummy frame, don't
536 re-compute the frame base.
537 (mips_pop_frame): Handle generic dummy frames.
538 (mips_gdbarch_init): When generic dummy frames, set
539 use_generic_dummy_frames, push_dummy_frame to
540 generic_push_dummy_frame, pc_in_call_dummy to
541 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
542 generic_save_dummy_frame_tos.
544 2002-09-30 Andrew Cagney <ac131313@redhat.com>
546 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
547 against TOP when TOP was explictly set.
548 (generic_push_dummy_frame): Set TOP to zero.
550 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
552 * event-loop.c (start_event_loop): Rename variable 'result' to
553 'gdb_result', to avoid conflicts with upcoming intepreters changes.
555 2002-09-30 Keith Seitz <keiths@redhat.com>
557 * gdb-events.sh (selected_thread_changed): New event.
558 * gdb-events.c: Regenerated.
559 * gdb-events.h: Regenerated.
561 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
563 * MAINTAINERS: Add self to Write After Approval list.
565 2002-09-30 Fernando Nasser <fnasser@redhat.com>
567 * disasm.c: New file.
568 * disasm.h: New file.
569 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
570 (compare_lines): Ditto.
572 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
574 (do_assembly_only): Ditto.
575 (do_disassembly): Renamed to gdb_disassembly and moved to
576 disasm.c. Sdded uiout argument.
577 * Makefile.in: Add new files. Reorder SFILES list. Update
578 dependencies. Include libgdb.a later in the insight executable.
580 2002-09-29 Andrew Cagney <ac131313@redhat.com>
582 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
583 bfd/elf64-alpha-fbsd.c.
585 2002-09-29 Andrew Cagney <ac131313@redhat.com>
587 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
590 2002-09-29 Andrew Cagney <ac131313@redhat.com>
592 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
594 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
596 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
597 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
598 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
599 (S_msg_sig_post_reply): Ditto.
601 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
603 * sh-tdep.c (sh_use_struct_convention): Use definition according
605 (sh_push_arguments): Store in register with correct endianess.
606 (sh_default_store_return_value): Ditto.
607 (sh_gdbarch_init): Set sizeof long double to 8.
609 2002-09-27 Mark Kettenis <kettenis@gnu.org>
611 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
612 Fix some whitespace problems.
614 2002-09-27 David Carlton <carlton@math.stanford.edu>
616 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
617 (mcore-tdep.o): Ditto.
618 (ns32k-tdep.o): Ditto.
619 (ns32knbsd-tdep.o): Ditto.
622 * cris-tdep.c: #include "gdb_string.h"
623 * mcore-tdep.c: Ditto.
624 * ns32k-tdep.c: Ditto.
625 * ns32knbsd-tdep.c: Ditto.
629 2002-09-27 David Carlton <carlton@math.stanford.edu>
631 * config/djgpp/fnchange.lst: Add entries for
632 gdb/testsuite/gdb.c++/m-static files.
634 2002-09-27 Jim Wilson <wilson@redhat.com>
636 * MAINTAINERS: Add myself to the Write After Approval list.
638 2002-09-26 Martin M. Hunt <hunt@redhat.com>
640 * mips-tdep.c (find_proc_desc): Initialize startaddr.
643 2002-09-26 Andrew Cagney <ac131313@redhat.com>
645 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
648 2002-09-26 Andrew Cagney <ac131313@redhat.com>
650 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
651 (rs6000_struct_return_address): Delete variable.
652 (rs6000_store_struct_return): Update.
653 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
654 deprecated_extract_struct_value_address.
655 (rs6000_frame_align): New function.
656 (rs6000_gdbarch_init): Set frame_align.
658 2002-09-26 Andrew Cagney <ac131313@redhat.com>
660 From Grace Sainsbury <graces@redhat.com>:
661 * Makefile.in (gdbtk-main.o): New target.
664 (main.o): Update dependencies.
665 (gdb$(EXEEXT)): Add gdb.o.
666 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
667 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
668 (SUBDIR_GDBTK_CLEAN): Set.
669 (install-gdbtk): Install the insight binary.
670 (uninstall-gdbtk): New target.
671 (all-gdbtk, clean-gdbtk): New rule.
672 * top.c (use_windows): Default to zero.
673 * main.c: Include "main.h".
675 (struct captured_main_args): Delete.
676 (gdb_main): New function.
680 2002-09-25 Andrew Cagney <cagney@redhat.com>
682 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
683 (frame_map_regnum_to_name): New function.
684 (frame_map_name_to_regnum): New function.
685 * frame.h (frame_map_name_to_regnum): Declare.
686 (frame_map_regnum_to_name): Declare.
687 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
688 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
689 * parse.c: Do not include "builtin-regs.h".
690 (target_map_name_to_register): Delete function.
691 (write_dollar_variable): Use frame_map_name_to_regnum.
692 * parser-defs.h (target_map_name_to_register): Delete declaration.
693 * expprint.c: Include "frame.h".
694 (print_subexp): Use frame_map_regnum_to_name.
695 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
696 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
698 2002-09-25 Andrew Cagney <ac131313@redhat.com>
700 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
701 wasn't saved, and the next innermost frame is a dummy, return the
702 dummy frame's link register.
704 2002-09-24 Jim Blandy <jimb@redhat.com>
707 * main.c (captured_main): Add a `break' after the case for 'b'.
709 2002-09-24 Keith Seitz <keiths@redhat.com>
711 * varobj.c (c_type_of_child): Use get_target_type instead
714 2002-09-22 Fernando Nasser <fnasser@redhat.com>
716 * source.c (get_current_or_default_source_symtab_and_line): Remove
718 (set_default_source_symtab_and_line): New function. Attempts to
719 determine a source file to list lines from if one is not currently
721 (get_current_source_symtab_and_line): Initialize sal.pc and
723 (set_current_source_symtab_and_line): Mark argument as const.
724 * source.h: Update declarations and comments.
725 * linespec.c (decode_line_1): Replace call to removed routine above.
726 * stack.c (print_frame_info_base): Ditto.
727 * cli/cli-cmds.c (edit_command): Ditto.
728 (list_command): Ditto.
730 2002-09-22 Fernando Nasser <fnasser@redhat.com>
732 * source.c (get_current_or_default_source_symtab_and_line): Initialize
733 sal.pc and sal.end fields.
734 (get_current_or_default_source_symtab_and_line): Ditto.
735 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
736 so we do not cause a new source symtab to be searched for (reverting an
737 unintentional change from the 2002-09-20 patch).
738 * scm-lang.c (scm_unpac): Ditto.
740 2002-09-21 Andrew Cagney <cagney@redhat.com>
742 * complaints.c (symfile_explanations): Remove new-line from
743 ``isolated_message''.
744 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
745 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
747 2002-09-20 Nick Clifton <nickc@redhat.com>
749 * NEWS: Announce that V850EA ISA is no longer supported.
750 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
752 2002-09-20 David Carlton <carlton@math.stanford.edu>
754 * Makefile.in (c-lang.o): Correct dependencies.
755 (utils.o): Gather dependencies.
757 * c-lang.c: #include "gdb_string.h"
759 2002-09-20 Fernando Nasser <fnasser@redhat.com>
761 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
762 * cli/cli-cmds.c (list_command): New function. Implements the new
764 (_init_cli_cmds): Add new command definition.
765 * gdb.1: Document edit command.
766 * doc/gdb.texinfo: Document edit command.
768 2002-09-20 Fernando Nasser <fnasser@redhat.com>
770 * source.c: Make global variables current_source_symtab and
771 current_source_line static.
772 (list_command): Moved to cli/cli-cmds.c.
773 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
774 (get_first_line_listed): New accessor function.
775 (get_lines_to_list): New accessor function.
776 (get_current_source_symtab_and_line): New function. Retrieves the
777 position in the source code that we consider current.
778 (get_current_or_default_source_symtab_and_line): New function.
779 Like the above but attempts to determine a default position if one
780 is not currently defined.
781 (set_current_source_symtab_and_line): New function. Sets the source
782 code position considered current and returns the previously set one.
783 (clear_current_source_symtab_and_line): Reset stored information about
784 a current source line.
785 (_initialize_source): Remove registration for the "list" command and
787 * source.h: Add declarations for the new functions above.
788 * symtab.h: Remove declarations for the global variables mentioned
790 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
791 obtain current source line.
792 * linespec.c (decode_line_1): Ditto.
793 * macroscope.c (default_macro_scope): Ditto.
794 * scm-lang.c (scm_unpac): Ditto.
795 * stack.c (print_frame_info_base): Ditto.
796 * symfile.c (clear_symtab_users): Ditto.
797 * symtab.c (decode_line_spec): Ditto.
798 * cli/cli-cmds.c (list_command): Moved here from source.c.
799 (ambiguous_line_spec): Moved here from source.c.
800 (_init_cli_cmds): Add definition for "list" and its alias.
801 * Makefile.in: Update dependencies.
803 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
805 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
806 with what gcc thinks is correct.
808 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
810 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
811 multiple register push instruction.
813 2002-09-19 Jim Blandy <jimb@redhat.com>
815 Add support for distinct host and target character sets.
816 * charset.c, charset.h: New files.
817 * c-exp.y: #include "charset.h".
818 (yylex): Convert character and string literals to the target
819 character set, before returning them as the semantic value of the
821 * c-lang.c: #include "charset.h".
822 (c_emit_char): Use charset-specific methods to recognize
823 characters with backslash escape forms, to decide which characters
824 to print literally and which to print using numeric escape
825 sequences, and to convert target characters to host characters
827 * utils.c: #include "charset.h".
828 (no_control_char_error): New function.
829 (parse_escape): Use charset-specific methods to recognize
830 backslash escapes, parse `control character' notation, and convert
831 characters from the host character set to the target character set.
832 * configure.in: Set the default host character set.
833 Check where to find iconv, and what its argument types might be.
834 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
835 * Makefile.in (SFILES): List charset.c.
836 (COMMON_OBS): List charset.o.
837 (charset.o): New rule.
838 (charset_h): New header dependency variable.
839 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
840 (LIBICONV): New variable, set by configure.
841 (CLIBS): Include $(LIBICONV) here.
842 * aclocal.m4, config.in, configure: Regenerated.
844 2002-09-19 Joel Brobecker <brobecker@gnat.com>
846 * ada-exp.y: Add missing semicolons to end rules. Fixes a
849 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
851 * gdb_mbuild.sh: New file.
853 2002-09-19 Andrew Cagney <ac131313@redhat.com>
855 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
857 2002-09-18 Andrew Cagney <ac131313@redhat.com>
859 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
860 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
861 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
862 valops.c, value.h: Revert previous change.
864 2002-09-18 Michael Snyder <msnyder@redhat.com>
866 Preliminary support for Objective-C:
867 * defs.h (language_objc): New enum value.
868 (puts_filtered_tabular): Declaration only, exported from utils.c.
869 (skip_quoted): Delete, declared in completer.h.
870 * c-exp.y: Include completer.h.
873 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
874 New operator enum values.
875 * language.h (CAST_IS_CONVERSION): Test for language_objc.
876 * language.c (binop_result_type): Handle language_objc case.
877 (integral_type, character_type, string_type, boolean_type,
878 structured_type, binop_type_check): Ditto.
879 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
880 (struct objc_specific): Add to general_symbol_info.
881 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
882 (SYMBOL_DEMANGLED_NAME): Handle objc case.
883 * parser-defs.h (struct objc_class_str): New struct type.
884 (start_msglist, end_msglist, add_msglist): Declaration only,
885 exported from objc-lang.c.
886 * value.h (value_of_local, value_nsstring,
887 call_function_by_hand_expecting_type): Exported from valops.c.
888 * valops.c (find_function_addr): Export.
889 (call_function_by_hand_expecting_type): New function.
890 (value_of_local): New function.
891 * symfile.c (init_filename_language_table): Add ".m" extension
893 * utils.c (puts_filtered_tabular): New function.
894 (fprintf_symbol_filtered): Add objc demangling support (disabled).
895 (set/show demangle): Extend help-string to refer to ObjC.
896 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
897 * stabsread.c (symbol_reference_defined): Objective-C symbols
898 may contain colons: make allowances when scanning stabs strings
900 (objc_find_colon): New function.
901 * printcmd.c (address_info): If language == objc then print
902 "self" instead of "this".
903 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
904 OP_NSSTRING, and OP_SELF.
905 (prefixify_subexp): Ditto.
906 * source.c (print_source_lines): Mention objc in comment.
907 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
910 2002-09-18 Andrew Cagney <ac131313@redhat.com>
912 * complaints.h: Update copyright.
913 (struct complaints): Declare.
914 (struct complaint): Make `message' constant.
915 (internal_complaint): Declare.
916 (complaint): Declare.
917 (complaint_root): Delete declaration.
918 (symfile_complaints): Delete declaration.
919 (struct complaints): Add opaque declaration.
920 (clear_complaints): Add a complaints parameter.
921 * complaints.c: Update copyright.
922 (enum complaint_series): Define.
923 (complaint_root): Delete.
924 (struct complaints): Define.
925 (complaint_sentinel, symfile_complaint_book): New variables.
926 (symfile_explanations, symfile_complaints): New variables.
928 (get_complaints): New function.
929 (vcomplaint): New function.
930 (complaint): New function.
931 (internal_complaint): New function.
932 (complain): Call vcomplain with symfile_complaint.
933 (clear_complaints): Rewrite.
934 (_initialize_complaints): Use add_setshow_command.
935 * Makefile.in (complaints.o): Update dependencies.
936 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
937 to call to clear_complaints.
938 (new_symfile_objfile, reread_symbols): Ditto.
939 (oldsyms_complaint): Delete.
940 (empty_symtab_complaint, unknown_option_complaint): Delete.
941 (free_named_symtabs): Use complaint instead of complain.
943 2002-09-18 Michael Snyder <msnyder@redhat.com>
945 Contributed by Apple Computer, Inc. Merged with current sources
946 by Adam Fedor <fedor@doc.com> [cagney].
948 * objc-lang.c: First clean-up round: comments, indentation.
949 * objc-lang.h: Ditto.
950 * objc-lang.y: Ditto.
952 2002-09-18 Andrew Cagney <ac131313@redhat.com>
954 * maint.c (maintenance_internal_error): Print the parameter as the
956 (maintenance_internal_warning): New function.
957 (_initialize_maint_cmds): Add command `maint internal-warning'.
959 * defs.h (internal_warning, internal_vwarning): Declare.
960 * utils.c (struct internal_problem): Define.
961 (internal_vproblem): New function.
962 (internal_warning): New function.
963 (internal_vwarning): New function.
964 (internal_warning_problem, internal_error_problem): New variables.
965 (internal_verror): Just call internal_vproblem.
967 2002-09-18 Michael Snyder <msnyder@redhat.com>
969 * objc-lang.c: New file, support for Objective-C.
970 Preliminary check-in, not yet integrated into gdb.
971 * objc-lang.h: New file.
972 * objc-exp.y: New file.
974 2002-09-18 Andrew Cagney <ac131313@redhat.com>
976 * infrun.c (signal_stop_update): Convert definition to ISO C.
977 (signal_print_update): Ditto.
978 (signal_pass_update): Ditto.
979 * inflow.c (terminal_save_ours): Ditto.
981 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
984 * config/djgpp/fnchange.lst: Handle name clashes between
985 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
988 * i386-linux-tdep.h: Fix tipo.
990 2002-09-18 Adam Fedor <fedor@gnu.org>
992 * MAINTAINERS: Add myself to the Write After Approval list.
994 2002-09-18 Jim Blandy <jimb@redhat.com>
996 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
997 texthigh and textlow to reader-specific structs caused
998 objfile_relocate to miss them. This is fixable, but the work that
999 the change was supposed to prepare GDB for never got done anyway.
1001 2002-09-18 David Carlton <carlton@math.stanford.edu>
1003 * MAINTAINERS: Alphabetize Write After Approval list.
1005 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
1008 * values.c (value_static_field): Call read_var_value.
1010 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1012 * valops.c (hand_function_call): Align the initial stack pointer
1013 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
1014 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
1016 * mips-tdep.c (mips_frame_align): New function.
1017 (mips_gdbarch_init): Set frame_align.
1018 * gdbarch.sh (FRAME_ALIGN): New method.
1019 * gdbarch.h, gdbarch.c: Re-generate.
1021 2002-09-18 Michal Ludvig <mludvig@suse.cz>
1023 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
1026 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1028 * NEWS: Mention that MIPS $fp behavior changed.
1029 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
1030 reference to FP_REGNUM.
1031 (mipsnbsd_cannot_store_register): Ditto.
1032 * mips-linux-nat.c: Update copyright.
1033 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
1034 (mips_linux_cannot_store_register): Ditto.
1035 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
1036 * config/mips/tm-mips.h: Update copyright.
1037 (FP_REGNUM): Delete macro.
1038 (MIPS_REGISTER_NAMES): Replace "fp" with "".
1039 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
1040 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
1041 (mips_r3041_reg_names, mips_r3051_reg_names)
1042 (mips_r3081_reg_names): Replace "fp" with "".
1045 2002-09-17 Theodore A. Roth <troth@verinet.com>
1047 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
1048 generic_read_register_dummy() (PR gdb/703).
1049 (avr_push_return_address): #if 0 out unused vars.
1050 (avr_gdbarch_init): Enable use of avr_push_return_address().
1052 2002-09-17 Michael Snyder <msnyder@redhat.com>
1054 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
1055 RTE will take care of it.
1057 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1059 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
1060 invalid, return SP_REGNUM.
1062 2002-09-17 Michael Snyder <msnyder@redhat.com>
1064 * mips-tdep.c (mips_pop_frame): Read saved values of floating
1065 point registers without sign extension.
1067 2002-09-17 Andrew Cagney <cagney@redhat.com>
1069 * blockframe.c (deprecated_read_register_dummy): Rename
1070 generic_read_register_dummy.
1071 * frame.c (frame_unwind_signed_register): New function.
1072 (frame_unwind_unsigned_register): New function.
1073 * frame.h (frame_unwind_signed_register): Declare.
1074 (frame_unwind_unsigned_register): Declare.
1075 (deprecated_read_register_dummy): Rename
1076 generic_read_register_dummy.
1078 * h8300-tdep.c (h8300_frame_chain): Update.
1079 (h8300_frame_saved_pc): Update.
1080 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1081 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1082 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1083 (s390_frame_chain): Update.
1084 * v850-tdep.c (v850_find_callers_reg): Update.
1085 (v850_frame_saved_pc): Update.
1086 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1087 (m32r_find_callers_reg): Update.
1088 (m32r_frame_saved_pc): Update.
1089 * sh-tdep.c (sh_find_callers_reg): Update.
1090 (sh64_get_saved_pr): Update.
1091 (sh_init_extra_frame_info): Update.
1092 (sh_init_extra_frame_info): Update.
1093 (sh64_init_extra_frame_info): Update.
1094 (sh64_init_extra_frame_info): Update.
1095 * mcore-tdep.c (mcore_find_callers_reg): Update.
1096 (mcore_frame_saved_pc): Update.
1097 (mcore_init_extra_frame_info): Update.
1098 * i386-tdep.c (i386_frame_saved_pc): Update.
1099 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1100 (ia64_init_extra_frame_info): Update.
1101 (ia64_init_extra_frame_info): Update.
1102 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1103 * cris-tdep.c (cris_init_extra_frame_info): Update.
1104 * avr-tdep.c (avr_frame_chain): Update.
1105 (avr_init_extra_frame_info): Update.
1106 (avr_frame_saved_pc): Update.
1107 * arm-tdep.c (arm_find_callers_reg): Update.
1108 (arm_init_extra_frame_info): Update.
1109 (arm_frame_saved_pc): Update.
1111 2002-09-17 Tom Tromey <tromey@redhat.com>
1113 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1116 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
1118 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1119 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1121 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1124 2002-09-16 Joel Brobecker <brobecker@gnat.com>
1126 * osfsolib.c: Remove file, replaced by solib-osf.c.
1127 * Makefile.in: Remove compilation rules for osfsolib.c.
1129 2002-09-16 David Carlton <carlton@math.stanford.edu>
1131 * cp-valprint.c (cp_print_class_method): Correct args to
1132 check_stub_method_group.
1134 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
1136 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1137 `set architecture'. Unify naming convention of functions.
1138 (h8300_skip_prologue): Improve prologue analysis.
1139 (h8300_push_arguments): Rewritten to more closely match GCC's
1140 bizarre argument-passing behavior, along with the comment describing
1142 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1143 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1144 sim, remote-e7000.c, remote-hms.c and remote.c
1146 2002-09-15 Mark Kettenis <kettenis@gnu.org>
1148 * i386-tdep.c (gdb_print_insn_i386): Removed.
1149 (i386_print_insn): New function.
1150 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1151 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1154 2002-09-14 Mark Kettenis <kettenis@gnu.org>
1156 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1159 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
1161 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1162 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1163 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1165 2002-09-13 Christopher Faylor <cgf@redhat.com>
1167 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1169 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
1171 * gdbtypes.c (check_stub_method): Make static.
1172 (check_stub_method_group): New function.
1173 * gdbtypes.h: Update prototypes.
1174 * cp-support.c: New file.
1175 * cp-support.h: New file.
1177 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1178 (update_method_name_from_physname): New function.
1179 (read_member_functions): Correct method names for operators
1180 and v3 constructors/destructors. Separate v2 constructors and
1182 * Makefile.in (stabsread.o): Update dependencies.
1183 (SFILES): Add cp-support.c.
1184 (COMMON_OBS): Add cp-support.o.
1185 (cp_support_h, cp-support.o): Add.
1187 * cp-valprint.c (cp_print_class_method): Call
1188 check_stub_method_group instead of check_stub_method. Remove
1190 * p-valprint.c (pascal_object_print_class_method): Likewise.
1191 * valops.c (search_struct_method): Likewise.
1192 (find_method_list, value_struct_elt_for_reference): Likewise.
1194 2002-09-13 Andrew Cagney <cagney@redhat.com>
1196 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1197 * gdbarch.h, gdbarch.c: Regenerate.
1199 2002-09-13 Andrew Cagney <ac131313@redhat.com>
1201 * frame.c (find_saved_register): Delete function.
1202 * frame.h (find_saved_register): Delete declaration.
1205 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1207 * mips-tdep.c (read_next_frame_reg): Re-hack using
1208 frame_register_unwind.
1210 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1212 * mips-tdep.c (mips_get_saved_register): Re-hack using
1213 frame_register_unwind.
1215 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1217 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1218 vector. Will be useful for Interix.
1219 * gdbarch.h, gdbarch.c: Regenerate.
1221 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1222 name of the malloc function by NAME_OF_MALLOC.
1224 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1226 * value.h (find_function_in_inferior): Add const keyword to
1227 one of the parameters. Allows us to invoke this function with
1229 * valops.c (find_function_in_inferior): Likewise.
1231 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1233 * exec.c (xfer_memory): Fix compilation warning with old versions
1235 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1237 2002-09-12 David Carlton <carlton@math.stanford.edu>
1239 * symtab.h: Run through gdb_indent.h.
1240 Add 2002 to Copyright year list.
1242 2002-09-12 Alan Modra <amodra@bigpond.net.au>
1244 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1246 * MAINTAINERS: Add myself to write after approval list.
1248 2002-09-11 J. Brobecker <brobecker@gnat.com>
1250 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1252 2002-09-11 J. Brobecker <brobecker@gnat.com>
1254 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1257 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1259 * procfs.c (do_detach): Clear current signal, not just fault.
1260 Corrects problem with breakpoint trap signal leaking to detached
1263 2002-09-10 Michael Snyder <msnyder@redhat.com>
1265 * buildsym.c (finish_block): Protect against null pointer.
1267 2002-09-10 Andrew Cagney <cagney@redhat.com>
1269 * infcmd.c (default_print_registers_info): Send all output to
1270 ``file'' instead of ``gdb_stdout''.
1272 2002-09-10 Michael Snyder <msnyder@redhat.com>
1274 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1275 LONGEST, and use signed register read (addresses are sign-
1278 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1280 * event-loop.c (gdb_do_one_event): Make public.
1281 * event-loop.h (gdb_do_one_event): Declare.
1283 2002-09-10 Jeff Law <law@redhat.com>
1285 * infttrace.c (child_resume): Simplify and rework to avoid
1288 2002-09-09 Fred Fish <fnf@intrinsity.com>
1290 * printcmd.c (print_scalar_formatted): "len" is the number of
1291 target bytes, NOT the number of target bits.
1293 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
1295 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1296 * top.c (init_main): Set rl_terminal_name.
1298 2002-09-08 Aidan Skinner <aidan@velvet.net>
1300 * ada-lang.c (ada_array_bound, ada_type_match,
1301 _initialize_ada_language): Fix K&R definitions.
1302 * ada-tasks.c (get_current_task): Fix K&R definitions.
1303 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1305 2002-09-07 Christopher Faylor <cgf@redhat.com>
1307 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1310 2002-09-06 Mark Kettenis <kettenis@gnu.org>
1312 * i386-tdep.c (i386_register_virtual_type,
1313 i386_register_convertible, i386_register_convert_to_virtual,
1314 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1315 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1316 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1317 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1318 Don't set push_arguments twice.
1320 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1321 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1322 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1323 sigtramp_end to NULL.
1324 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1326 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1328 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1331 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1332 * gdbarch.h, gdbarch.c: Re-generate.
1333 * blockframe.c (find_pc_sect_partial_function): Convert to use
1334 SIGTRAMP_START_P predicate.
1336 2002-09-05 Michael Snyder <msnyder@redhat.com>
1338 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1339 generic_dummy_frame method and old method. Also distinguish
1340 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1341 (arm_extract_return_value): Use new regcache method.
1343 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1344 adjustment that doesn't conform to the ABI.
1345 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1346 saved regcache, not from current regcache.
1348 2002-09-05 Andrew Cagney <ac131313@redhat.com>
1350 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1353 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1355 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1356 if arm_apcs_32 is false.
1358 2002-09-04 Andrew Cagney <ac131313@redhat.com>
1360 GDB 5.3 branch created.
1362 2002-09-03 Theodore A. Roth <troth@verinet.com>
1364 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1365 generic_unwind_get_saved_register.
1367 2002-09-03 David Carlton <carlton@math.stanford.edu>
1369 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1370 argument (PR gdb/653). Update call to smash_to_method_type.
1371 (read_structure_scope): Update call to dwarf2_add_member_fn.
1373 2002-09-03 Michal Ludvig <mludvig@suse.cz>
1375 * x86-64-linux-tdep.c: Include gdb_string.h
1376 * x86-64-linux-nat.c: Ditto.
1378 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1380 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1381 when YYDEBUG is set to 1.
1382 * c-exp.y: Likewise.
1383 * f-exp.y: Likewise.
1384 * jv-exp.y: Likewise.
1385 * m2-exp.y: Likewise.
1386 * p-exp.y: Likewise.
1388 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1390 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1392 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1393 solib_svr4_fetch_link_map_offsets to
1394 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1395 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1396 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1397 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1398 solib-svr4.o, and solib-legacy.o.
1399 * config/i386/tm-nbsd.h: Include solib.h.
1401 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1403 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1404 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1405 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1406 comment noting that this needs its own target configuration.
1407 * config/i386/nbsd.mt: New file.
1408 * config/i386/nbsdaout.mt: Remove.
1409 * config/i386/nbsdelf.mt: Ditto.
1410 * config/i386/tm-nbsdaout.h: Ditto.
1412 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1414 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1415 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1416 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1418 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1419 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1420 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1422 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1424 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1425 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1426 * i386-tdep.h (i386bsd_init_abi): New prototype.
1427 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1428 function declaration.
1429 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1430 for NetBSD-a.out or NetBSD-ELF.
1431 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1432 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1433 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1434 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1436 (i386nbsd_pc_in_sigtramp): New function.
1437 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1438 i386nbsd_pc_in_sigtramp.
1439 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1440 and i386nbsdelf_init_abi OS ABI handlers.
1441 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1442 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1444 2002-09-02 Mark Kettenis <kettenis@gnu.org>
1446 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1447 registers if the target really has them.
1449 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1451 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1454 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1456 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1458 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1459 (alphanbsd_skip_sigtramp_frame): New functions.
1460 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1461 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1462 to alphanbsd_sigcontext_addr.
1464 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1466 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1468 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1469 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1470 nbsd_pc_in_sigtramp.
1471 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1472 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1473 * nbsd-tdep.c: Include gdb_string.h.
1474 (nbsd_pc_in_sigtramp): New function.
1475 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1476 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1477 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1478 ppcnbsd_pc_in_sigtramp.
1479 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1480 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1481 shnbsd_pc_in_sigtramp.
1482 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1483 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1484 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1486 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1488 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1489 watchpoints to NULL.
1490 (insert_breakpoints): set val field of watchpoints if NULL.
1493 2002-08-29 Jim Blandy <jimb@redhat.com>
1495 * symtab.c (lookup_symbol_aux): In the cases where we find a
1496 minimal symbol of an appropriate name and use its address to
1497 select a symtab to read and search, use `name' (as passed to us)
1498 as the demangled name when searching the symtab's global and
1499 static blocks, not the minsym's name.
1501 2002-08-29 Keith Seitz <keiths@redhat.com>
1503 * stack.c (print_frame_info_base): Always set current_source_symtab
1504 and current_source_line.
1506 2002-08-29 Donn Terry <donnte@microsoft.com>
1508 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1510 2002-08-28 Keith Seitz <keiths@redhat.com>
1512 * stack.c (select_frame): Add FIXME concerning selected-frame
1514 (select_frame_command): Send selected-frame-level-changed
1515 event notification, but only if the level actually changed.
1516 (up_silently_base): Add selected-frame-level-changed event
1518 (down_silently_base): Likewise.
1520 2002-08-28 Andrew Cagney <ac131313@redhat.com>
1522 * Makefile.in: Update dependencies for all gdb/*.c files.
1524 2002-08-27 Tom Tromey <tromey@redhat.com>
1526 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1527 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1528 Update dependencies.
1529 * i387-tdep.c: Include gdb_string.h.
1530 * osabi.c: Likewise.
1531 * i386-linux-nat.c: Likewise.
1532 * lin-lwp.c: Likewise.
1533 * ax-gdb.c: Likewise.
1534 * signals/signals.c: Likewise.
1535 * jv-valprint.c: Likewise.
1536 * p-lang.c: Likewise.
1537 * c-valprint.c: Likewise.
1538 * cp-abi.c: Likewise.
1540 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
1542 * cli/cli-script.h (copy_command_lines): Export.
1543 * breakpoint.c: Include cli/cli-script.h.
1544 * Makefile.in (breakpoint.o): Update dependencies.
1546 2002-08-26 Michael Snyder <msnyder@redhat.com>
1548 * breakpoint.c (insert_breakpoints): Protect all references
1549 to 'process_warning'. Shorten long lines.
1551 2002-08-26 Joel Brobecker <brobecker@gnat.com>
1553 * cli/cli-script.c (copy_command_lines): New function.
1554 * defs.h (copy_command_lines): Export.
1555 * testsuite/gdb.base/commands.exp: New tests for commands
1556 attached to a temporary breakpoint, and for commands that
1557 delete the breakpoint they are attached to.
1559 2002-08-26 Michael Snyder <msnyder@redhat.com>
1561 * breakpoint.c (bpstat_stop_status): Instead of copying the
1562 pointer to the breakpoint commands struct, make a new copy
1563 of the struct and point to that.
1564 (bpstat_clear): Free the commands struct.
1565 (bpstat_clear_actions): Free the commands struct.
1566 (bpstat_do_actions): Free the command actions. Also execute
1567 the local cleanups, instead of deleting them.
1568 (delete_breakpoint): Leave the commands field of the bpstat
1569 chain alone -- it will be freed later.
1571 2002-08-26 Kevin Buettner <kevinb@redhat.com>
1573 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1574 deleted in 2002-08-20 commit. This function is still used by
1577 2002-08-26 Keith Seitz <keiths@redhat.com>
1579 * gdb-events.sh: Add selected-frame-level-changed event.
1580 * gdb-events.c: Regenerated.
1581 * gdb-events.h: Regenerated.
1583 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1586 * inflow.c (terminal_save_ours): New function to save terminal
1588 * inferior.h (terminal_save_ours): Declare.
1589 * target.c (debug_to_terminal_save_ours): New function.
1590 (cleanup_target): Defaults to_terminal_save_ours.
1591 (update_current_target): Inherit to_terminal_save_ours.
1592 (setup_target_debug): Set to_terminal_save_ours.
1593 * target.h (target_terminal_save_ours): New to save terminal settings.
1594 (target_ops): New member to_terminal_save_ours.
1595 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1596 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1597 * inftarg.c (init_child_ops): Likewise.
1598 * m3-nat.c (init_m3_ops): Likewise.
1599 * procfs.c (init_procfs_ops): Likewise.
1600 * wince.c (init_child_ops): Likewise.
1601 * win32-nat.c (init_child_ops): Likewise.
1602 * sol-thread.c (init_sol_thread_ops): Likewise.
1604 2002-08-26 Mark Kettenis <kettenis@gnu.org>
1606 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1607 use regcache_* functions.
1608 (i386_gdbarch_init): Set store_return_value instead of
1609 deprecated_store_return_value.
1611 * regcache.c (regcache_raw_write_signed,
1612 regcache_raw_write_unsigned): New functions.
1613 * regcache.h (regcache_raw_write_signed,
1614 regcache_raw_write_unsigned): New prototypes.
1616 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1618 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1619 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1620 source file dependencies. Cleanup corresponding generator rules.
1622 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1624 * regcache.h (register_offset_hack): Declare.
1625 (regcache_cooked_read_using_offset_hack): Declare.
1626 (regcache_cooked_write_using_offset_hack): Declare.
1628 * regcache.c (register_offset_hack): New function.
1629 (regcache_cooked_read_using_offset_hack): New function.
1630 (regcache_cooked_write_using_offset_hack): New function.
1631 (regcache_dump): Check that the registers, according to their
1632 offset, are packed hard against each other.
1633 (cooked_xfer_using_offset_hack): New function.
1635 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1637 * regcache.c (struct regcache_descr): Add field register_type.
1638 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1640 (init_regcache_descr): Initialize register_type. Pass the descr
1641 to init_legacy_regcache_descr. Use register_type instead of
1642 REGISTER_VIRTUAL_TYPE.
1643 (register_type): New function.
1644 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1645 * regcache.h (register_type): Declare.
1647 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1649 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1650 instead of deprecated_store_return_value. Fix fallout from
1651 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1653 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1655 * regcache.c (max_register_size): New function.
1656 (init_legacy_regcache_descr): Ensure that max_register_size is
1657 large enough for REGISTER_VIRTUAL_SIZE.
1658 * regcache.h (max_register_size): Declare.
1660 2002-08-24 Andrew Cagney <ac131313@redhat.com>
1662 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1664 (e500_extract_return_value): Change type of valbuf pointer to
1667 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1669 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1672 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1673 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1674 long long) to prevent compiler warning on 64-bit systems.
1676 2002-08-23 Andrew Cagney <cagney@redhat.com>
1678 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1679 (DEPRECATED_STORE_RETURN_VALUE): New method.
1680 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1681 * gdbarch.h, gdbarch.c: Re-generate.
1683 * values.c (set_return_value): Pass current_regcache to
1685 * arch-utils.h (legacy_store_return_value): Declare.
1686 * arch-utils.c (legacy_store_return_value): New function.
1687 (legacy_extract_return_value): Update parameters.
1689 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1691 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1692 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1693 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1694 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1695 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1696 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1697 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1698 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1699 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1700 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1702 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1703 * i386-tdep.c (i386_extract_return_value): Update.
1704 * arch-utils.c (legacy_extract_return_value): Update.
1705 * frv-tdep.c (frv_gdbarch_init): Update.
1706 * cris-tdep.c (cris_gdbarch_init): Update.
1707 * d10v-tdep.c (d10v_gdbarch_init): Update.
1708 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1709 * m68k-tdep.c (m68k_gdbarch_init): Update.
1710 * mcore-tdep.c (mcore_gdbarch_init): Update.
1711 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1712 * s390-tdep.c (s390_gdbarch_init): Update.
1713 * sparc-tdep.c (sparc_gdbarch_init): Update.
1714 * sh-tdep.c (sh_gdbarch_init): Update.
1715 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1716 * v850-tdep.c (v850_gdbarch_init): Update.
1717 * avr-tdep.c (avr_gdbarch_init): Update.
1718 * ia64-tdep.c (ia64_gdbarch_init): Update.
1719 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1720 * vax-tdep.c (vax_gdbarch_init): Update.
1721 * alpha-tdep.c (alpha_gdbarch_init): Update.
1722 * arm-tdep.c (arm_gdbarch_init): Update.
1723 * mips-tdep.c (mips_gdbarch_init): Update.
1724 * i386-tdep.c (i386_gdbarch_init): Update.
1726 2002-08-23 Andrew Cagney <ac131313@redhat.com>
1728 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1729 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1731 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1733 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1736 2002-08-23 Joel Brobecker <brobecker@gnat.com>
1738 * infrun.c (handle_inferior_event): Move a comment outside of a
1739 function call, in order to avoid indent reformatting this part
1740 of the code in an unreadable way.
1742 2002-08-23 Grace Sainsbury <graces@redhat.com>
1744 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1745 when breakpoints fail. Move general breakpoint error messages to
1747 * breakpoint.c (insert_breakpoints): Change warnings when
1748 breakpoints are nto inserted to specify the type. Remove call to
1749 memory_error when hardware breakpoints can't be inserted. Remove
1750 multiple calls to warning so all messages are sent to the user at
1752 (delete_breakpoints): Make insert error messsages more explicit.
1754 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
1756 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1757 gdbserver/ChangeLog.
1759 2002-08-23 Mark Kettenis <kettenis@gnu.org>
1761 * i386-tdep.c: Include "objfiles.h".
1762 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1763 skip_trampoline_code.
1764 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1765 (CPLUS_MARKER): Define to '.'.
1767 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1769 (linux_corefile_thread_callback): Increase args->num_notes.
1770 (linux_make_note_section): Initialize thread_args.num_notes, and
1771 use it to determine whether notes for any threads were created.
1773 2002-08-23 Donn Terry <donnte@microsoft.com>
1775 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1776 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1778 (write_with_trace): Conditionalize out the switch branch handling
1779 PCSHOLD if the corresponding macro is not defined. Likewise for
1780 PRSABORT and PRSTOP.
1781 This change will be needed by the Interix port.
1783 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1785 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1786 write_register wherever possible instead of manipulating the
1787 register bytes directly.
1788 Assign VALUE_CONTENTS to a variable and use that.
1789 The GPR numbers are now dependent on the architecture.
1791 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1793 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1795 (skip_prologue): Add support for BookE/e500 instructions.
1796 (e500_extract_return_value): New function.
1797 (frame_get_saved_regs): Add support for saving ev registers and
1799 (e500_store_return_value): New function.
1800 (rs6000_gdbarch_init): Move up default intializations of
1801 deprecated_extract_return_value and store_return_value. Overwrite
1802 init of store_return_value with e500 specific version.
1803 Set extract_return_value for e500.
1805 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1807 * blockframe.c (generic_call_dummy_register_unwind): Use
1808 regcache_cooked_read to catch cases in which the variable is
1809 stored in a pseudo register.
1811 2002-08-22 Andrew Cagney <cagney@redhat.com>
1813 * NEWS: Mention that the i960 has been made obsolete.
1814 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1816 (remote-nrom.o): Obsolete target.
1817 (remote-nindy.o, i960-tdep.o): Ditto.
1818 * remote-nrom.c: Make file obsolete.
1819 * remote-nindy.c, remote-vx960.c: Ditto.
1820 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1821 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1822 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1823 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1824 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1825 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1826 i960-*-vxworks* obsolete.
1827 * MAINTAINERS: Note that the i960 is obsolete.
1829 2002-08-21 Corinna Vinschen <vinschen@redhat.com
1831 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1832 detach to allow reinitialization.
1834 2002-08-22 Andrew Cagney <ac131313@redhat.com>
1836 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1839 2002-08-22 Jim Blandy <jimb@redhat.com>
1841 * coffread.c (coff_symfile_read): Don't try to read the line
1842 number table from disk if the image file doesn't have a symbol
1843 table; we'll never actually look at the info anyway, and Windows
1844 ships DLL's with bogus file offsets for the line number data.
1846 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1848 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1851 2002-08-21 Michael Snyder <msnyder@redhat.com>
1853 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1854 (MSYMBOL_SIZE): Replace macro with function.
1855 (DEFAULT_MIPS_TYPE): Delete unused macro.
1856 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1857 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1859 2002-08-21 Jim Blandy <jimb@redhat.com>
1861 * valops.c (value_cast): Simplify and correct logic for doing a
1862 static cast from a pointer to a base class to a pointer to a
1865 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1867 * infcmd.c (default_print_registers_info): Replace
1869 (registers_info): Use gdbarch_print_registers_info instead of
1871 * inferior.h (default_print_registers_info): Replace
1873 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1874 (DO_REGISTERS_INFO): Change to a predicate function.
1875 * gdbarch.h, gdbarch.c: Regenerate.
1877 2002-08-21 Keith Seitz <keiths@redhat.com>
1879 * gdb-events.sh: Add target-changed event.
1880 * gdb-events.c: Regenerated.
1881 * gdb-events.c: Regenerated.
1882 * valops.c (value_assign): Add target-changed event notification
1883 to inlval_register, lval_memory, and lval_reg_frame_relative.
1885 2002-08-21 Joel Brobecker <brobecker@gnat.com>
1887 * NEWS: Add an entry regarding the improvement of the next/step
1888 operation on Alpha Tru64 multi-processor machines.
1890 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1892 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1894 * Makefile.in: Update all _h macro definitions.
1895 * Makefile.in (install-gdbtk): Move to install section.
1896 (rdi-share/libangsd.a): Move to end of file.
1898 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1900 * frame.c (frame_register_unwind): When a register, set addrp to
1901 the register's byte.
1903 2002-08-20 Michael Snyder <msnyder@redhat.com>
1905 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1906 used locally, so move them from the target machine header to here.
1907 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1908 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1910 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1912 2002-08-20 Andrew Cagney <cagney@redhat.com>
1914 * NEWS: Mention that the Apollo line was made obsolete.
1915 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1916 m68*-hp-hpux* obsolete.
1917 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1918 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1919 * buildsym.c (make_blockvector): Make static.
1920 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1921 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1922 (ALLDEPFILES): Remove dstread.c.
1923 (dstread.o): Obsolete make rule.
1924 * dstread.c: Makefile obsolete.
1926 * config/m68k/hp300hpux.mt: Ditto.
1927 * config/m68k/hp300hpux.mh: Ditto.
1928 * config/m68k/hp300bsd.mt: Ditto.
1929 * config/m68k/hp300bsd.mh: Ditto.
1930 * config/m68k/apollo68b.mt: Ditto.
1931 * config/m68k/apollo68v.mh: Ditto.
1932 * config/m68k/apollo68b.mh: Ditto.
1934 2002-08-20 Michael Snyder <msnyder@redhat.com>
1936 * mips-tdep.c (mips_in_return_stub): Make static.
1937 (mips_gdbarch_init): Set in_solib_return_trampoline.
1938 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1940 2002-08-20 Michael Snyder <msnyder@redhat.com>
1942 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1943 * gdbarch.c, gdbarch.h: Regenerate.
1944 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1946 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1948 2002-08-20 Michael Snyder <msnyder@redhat.com>
1950 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1951 (mips_gdbarch_init): Set skip_trampoline_code,
1952 in_solib_call_trampoline.
1953 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1954 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1956 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1958 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1960 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1961 vector type for ev registers.
1962 (e500_pseudo_register_read): New function.
1963 (e500_pseudo_register_write): New function.
1964 (e500_dwarf2_reg_to_regnum): New function.
1965 (PPC_UISA_NOFP_SPRS): New macro.
1966 (PPC_EV_REGS): New macro.
1967 (PPC_GPRS_PSEUDO_REGS): New macro.
1968 (registers_e500): New register set for e500.
1969 (variants): Add e500 variant.
1970 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1971 before setting architectural dependent variations. Initialize ev
1972 registers numbers. Add case for e500 architecture. Set the
1973 number of pseudo registers.
1975 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1977 * rs6000-tdep.c: Clean up comments.
1979 2002-08-20 Andrew Cagney <cagney@redhat.com>
1981 * h8300-tdep.c: Re-indent file.
1983 2002-08-20 Jim Blandy <jimb@redhat.com>
1985 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1988 2002-08-20 Keith Seitz <keiths@redhat.com>
1990 * breakpoints.c (watch_command_1): Use internal breakpoint
1991 when setting a watchpoint_scope breakpoint.
1993 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1995 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1996 (build_builtin_type_vec64i): Ditto.
1997 (build_builtin_type_vec128): Ditto.
1998 (build_builtin_type_vec128i): Ditto.
2000 2002-08-19 Michael Snyder <msnyder@redhat.com>
2002 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
2003 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
2004 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
2005 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
2006 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
2007 CALL_DUMMY_ADDRESS): Delete.
2008 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
2009 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
2010 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
2011 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
2012 push_return_address.
2013 (mips_register_raw_size, mips_eabi_use_struct_convention,
2014 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
2015 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
2016 mips_init_extra_frame_info, mips_eabi_push_arguments,
2017 mips_n32n64_push_arguments, mips_push_return_address,
2018 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
2019 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
2021 2002-08-19 Michael Snyder <msnyder@redhat.com>
2023 * mips-tdep.c (mips_frame_num_args): New function.
2024 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
2025 frame_saved_pc, frame_args_address, frame_locals_address,
2026 frame_num_args, and frame_args_skip.
2027 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
2028 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
2029 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
2030 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
2032 2002-08-20 Michael Snyder <msnyder@redhat.com>
2034 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
2035 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2036 * mips-tdep.c (mips_store_struct_return): New function.
2037 (mips_extract_struct_value_address): New function.
2038 (mips_gdbarch_init): Set store_struct_return and
2039 extract_struct_value_address.
2041 2002-08-20 David Carlton <carlton@math.stanford.edu>
2043 * dwarf2read.c (dwarf2_build_psymtabs): Check that
2044 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
2045 (read_file_scope): Check that line_header is nonzero before
2046 decoding macro information.
2048 2002-08-20 Mark Kettenis <kettenis@gnu.org>
2050 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
2051 flag the general-purpose registers as floating-point on targets
2052 that don't support the floating-point registers.
2054 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2056 * rs6000-tdep.c (altivec_register_p): Delete.
2057 (rs6000_do_altivec_registers): Delete.
2058 (rs6000_altivec_registers_info): Delete.
2059 (rs6000_do_registers_info): Delete.
2060 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
2061 (rs6000_gdbarch_init): Remove setting of do_registers_info.
2063 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2065 * infcmd.c (do_registers_info): Print vector registers in hex
2067 (print_vector_info): Check that printing registers
2069 (print_float_info): Ditto.
2071 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2073 * mips-tdep.c (mips_gdbarch_init): Update.
2074 (mips_o32_extract_return_value): Rewrite.
2075 (mips_o32_store_return_value): Rewrite.
2076 (mips_o32_xfer_return_value): New function.
2077 (mips_xfer_register): Tweak debug print message. Allow for
2078 buf_offset when dumping the value transfered.
2080 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2082 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2083 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2084 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2085 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2086 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2088 2002-08-14 Michael Snyder <msnyder@redhat.com>
2090 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2092 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2094 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2096 (P): New macro to define a register as a pseudo register.
2097 (R, R4, R8, R16, FR32, R64, R0): Updated.
2098 (struct variant): Add new fields for number of pseudo registers
2099 and number of total registers.
2100 (tot_num_registers): New macro replacing....
2101 (num_registers): ...deleted macro.
2102 (num_registers): New function.
2103 (num_pseudo_registers): New function.
2104 (variants): Update all variants to intialize new fields correctly.
2105 Postpone initialization of number of pseudo regs and real regs.
2106 (init_variants): New function.
2107 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2110 2002-08-19 David Carlton <carlton@math.stanford.edu>
2112 * valops.c (search_struct_field): Change error message to treat
2113 return value of 0 from value_static_field as meaning that field is
2115 (value_struct_elt_for_reference): Ditto.
2116 * values.c (value_static_field): Treat an unresolved location the
2117 same as a nonexistent symbol. Fix PR gdb/635.
2118 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2119 enclosed. Fix PR gdb/574.
2120 * MAINTAINERS: Add self to Write After Approval list.
2122 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2124 * mips-tdep.c (mips_xfer_register): New function.
2125 (mips_n32n64_extract_return_value): Rewrite.
2126 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2127 instead of deprecated_extract_return_value.
2129 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2131 * rs6000-tdep.c (TDEP): Delete macro.
2132 (branch_dest): Replace use of TDEP macro with its body.
2133 (rs6000_pop_frame): Ditto.
2134 (rs6000_push_arguments): Ditto.
2135 (rs6000_skip_trampoline_code): Ditto.
2136 (rs6000_frame_saved_pc): Ditto.
2137 (rs6000_frame_chain): Ditto.
2138 (rs6000_register_name): Ditto.
2139 (rs6000_register_byte): Ditto.
2140 (rs6000_register_raw_size): Ditto.
2141 (rs6000_register_virtual_type): Ditto.
2142 (rs6000_register_convertible): Ditto.
2143 (rs6000_convert_from_func_ptr_addr): Ditto.
2145 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
2147 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2149 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2150 MIPS_LINUX_JB_ELEMENT_SIZE.
2151 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2152 for MAX_REGISTER_RAW_SIZE arrays.
2153 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2154 MIPS_LINUX_JB_ELEMENT_SIZE.
2156 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2158 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2160 2002-08-19 Aidan Skinner <aidan@velvet.net>
2162 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2163 ada-valprint.c ada-tasks.c.
2164 (YYFILES): Add ada-exp.y.
2165 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2166 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2167 (ada-exp.tab.o): New target.
2169 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2171 * regcache.c (regcache_xfer_part): New function.
2172 (regcache_raw_read_part): New function.
2173 (regcache_raw_write_part): New function.
2174 (regcache_cooked_read_part): New function.
2175 (regcache_cooked_write_part): New function.
2176 * regcache.h (regcache_raw_read_part): Declare.
2177 (regcache_raw_write_part): Declare.
2178 (regcache_cooked_read_part): Declare.
2179 (regcache_cooked_write_part): Declare.
2181 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
2183 * remote.c (remote_open_1): Add async_p.
2184 (remote_async_open_1): Delete.
2185 (open_remote_target): Delete.
2186 (remote_open, extended_remote_open): Update calls to remote_open_1.
2187 (remote_async_open, extended_remote_async_open): Call
2188 remote_open_1 instead of remote_async_open_1.
2190 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2192 * blockframe.c: Fix a few coding standard violations.
2194 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2196 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2198 * config/i386/tm-i386sco5.h: ... here. File removed.
2199 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2201 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
2202 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2203 (TM_FILE): Set to tm-i386.h.
2204 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2205 * config/i386/tm-i386v.h: Remove file.
2206 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2207 instead of "i386/tm-i386v.h".
2208 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2209 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2211 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2212 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2215 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2217 * config/i386/nm-i386v.h: Add protection against
2219 (i386_register_u_addr): Remove prototype.
2220 (register_u_addr): New prototype.
2221 (REGISTER_U_ADDR): Redefine accordingly.
2222 * i386v-nat.c: Improve several comments.
2223 (i386_register_u_addr): Change signature and rename to
2224 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2227 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2229 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2230 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2231 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2232 deprecated_extract_return_value.
2233 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2234 rename mips_o32o64_push_arguments.
2235 (mips_gdbarch_init): Update.
2236 (mips_extract_return_value): Delete.
2237 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2238 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2239 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2240 (mips_n32n64_extract_return_value): Clone
2241 mips_extract_return_value.
2242 (mips_store_return_value): Delete.
2243 (mips_o32_store_return_value): Clone mips_store_return_value.
2244 (mips_o64_store_return_value): Clone mips_store_return_value.
2245 (mips_eabi_store_return_value): Clone mips_store_return_value.
2246 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2248 2002-08-18 Aidan Skinner <aidan@velvet.net>
2250 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2251 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2253 2002-08-18 Aidan Skinner <aidan@velvet.net>
2255 * ada-lang.c: Run through gdb_indent.sh.
2256 * ada-lang.h: Run through gdb_indent.sh.
2257 * ada-tasks.c: Run through gdb_indent.sh.
2258 * ada-typeprint.c: Run through gdb_indent.sh.
2259 * ada-valprint.c: Run through gdb_indent.sh.
2261 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2263 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2266 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2268 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2270 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2271 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2273 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2274 write_register_gen instead of write_register_bytes.
2276 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2277 i[3456]-*-osf1mk* configurations have been made obsolete.
2278 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2279 i[3456]86-*-osf1mk* hosts obsolete.
2280 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2282 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2283 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2284 config/i386/i386m3.mt, config/i386/nm-m3.h,
2285 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2286 config/i386/i386mk.mh, config/i386/i386mk.mt,
2287 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2289 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2290 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2291 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2293 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2295 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2296 (hppa_value_returned_from_stack): Declare.
2297 (hppa_extract_return_value): Declare.
2298 * config/pa/hppa.mt: New file.
2299 * configure.tgt: Recognize hppa*-*-*.
2300 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2302 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2304 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2307 2002-08-17 Mark Kettenis <kettenis@gnu.org>
2309 * top.c (gdb_rl_operate_and_get_next): Make sure
2310 operate-and-get-next functions correctly even when the history
2311 list is completely filled.
2313 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2315 * MAINTAINERS (Target Instruction Set Architectures): Rename
2316 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2317 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2318 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2319 already listed under Host/Native.
2321 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2322 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2325 2002-08-17 Andrew Cagney <ac131313@redhat.com>
2327 * config/ia64/ia64.mt: New file.
2328 * config/alpha/alpha.mt: New file.
2329 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2330 ia64-linux-gnu. Mention that ia64-elf is broken.
2331 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2333 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2335 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2336 generic_func_frame_valid instead of func_frame_valid.
2338 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2340 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2341 procfs appears to be broken when debugging on multi-processor
2342 machines. So enable software single stepping in order to avoid
2343 using the procfs interface to do next/step operations, using
2344 internal breakpoints instead.
2346 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2347 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2348 make this pc address equal to the value it would have if the
2349 system stepping capability was used. Also set a new flag used
2350 to ensure that we don't readjust the PC one more time later.
2352 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2353 address by DECR_PC_AFTER_BREAK when software single step is
2354 in use for this architecture, as this has already been taken
2355 care of in handle_inferior_event().
2357 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2359 * infrun.c (handle_inferior_event): Minor reformatting, to make
2360 a rather long condition expression easier to read.
2362 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2364 * Makefile.in (gdbtk.o): Move to end of file.
2365 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2366 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2367 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2368 (gdbtk-wrapper.o, gdbres.o): Ditto.
2370 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2372 * Makefile.in (copying.o): Separate out compile rule.
2373 (hpux-thread.o, procfs.o, signals.o): Ditto.
2374 (v850ice.o, z8k-tdep.o): Ditto.
2375 (tui-file.o): Move to TUI section.
2376 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2377 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2379 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2381 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2382 skip_trampoline_code, for better namespace-proofing.
2384 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2386 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2388 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2390 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2392 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2393 signal, check whether we hit a breakpoint before checking for a
2394 single step breakpoint. Otherwise, GDB fails to notice that a
2395 breakpoint has been hit when stepping onto a breakpoint.
2397 2002-08-16 Keith Seitz <keiths@redhat.com>
2399 * gdb-events.sh (clear_gdb_event_hooks): New function.
2400 * gdb-events.c: Regenerate.
2401 * gdb-events.h: Regenerate.
2403 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2405 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2406 not_a_sw_breakpoint.
2407 * breakpoint.h (bpstat_stop_status): Add parameter names.
2409 2002-08-16 Grace Sainsbury <graces@redhat.com>
2411 * remote.c (remote_insert_hw_breakpoint)
2412 (remote_remove_hw_breakpoint): Fix calculation of length field
2415 2002-08-15 Michael Snyder <msnyder@redhat.com>
2417 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2418 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2419 (supply_fpregset): Ditto.
2421 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2422 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2423 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2424 (TARGET_READ_SP): Delete.
2425 (DO_REGISTERS_INFO): Delete.
2426 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2428 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2429 from macros to functions.
2431 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2432 (mips_register_convertible, mips_register_convert_to_virtual,
2433 mips_register_convert_to_raw): Make static.
2434 (mips_read_sp): New function.
2435 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2436 (mips_do_registers_info): Make static.
2437 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2438 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2439 (mips_register_convert_from_type, mips_register_convert_to_type):
2441 (mips_gdbarch_init): Set up function_start_offset,
2442 register_virtual_size, pc_in_sigtramp.
2444 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2446 * infcmd.c (vector_info): New function.
2447 (_initialize_infcmd): Add command "info vector".
2448 (print_vector_info): New function.
2450 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2451 * gdbarch.h, gdbarch.c: Regenerate.
2453 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2455 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2456 ``print_all''. Only print vector registers when ``print_all''.
2458 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2460 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2461 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2463 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2464 Add `args' parameter.
2465 * gdbarch.h, gdbarch.c: Regenerate.
2467 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2469 * infcmd.c (float_info): Call print_float_info.
2470 (print_float_info): New function. By default, print the
2471 floating-point registers.
2473 * arch-utils.h (default_print_float_info): Delete declaration.
2474 * arch-utils.c (default_print_float_info): Delete function.
2476 2002-08-16 Mark Kettenis <kettenis@gnu.org>
2478 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2481 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2484 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2485 * configure.host: Make i[3456]86-*-aix host obsolete.
2486 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2487 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2488 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2489 config/i386/xm-i386aix.h: Make files obsolete.
2490 * i386aix-nat.c: Make file obsolete.
2491 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2492 (i386aix-nat.o): Make target obsolete.
2494 * config/i386/nm-gnu.h: Removed.
2495 * config/i386/nm-i386gnu.h: New file.
2496 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2497 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2499 * config/i386/tm-i386gnu.h: ... here. Removed.
2500 * config/i386/xm-i386gnu.h: Removed.
2501 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2502 (NAT_FILE): Set to nm-i386gnu.h.
2503 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2504 * i386-tdep.c: New file.
2505 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2506 (i386gnu-tdep.o): Specify dependencies.
2508 2002-08-15 Mark Kettenis <kettenis@gnu.org>
2510 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2511 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2512 Adjust a few comments to reflect reality a bit closer.
2513 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2514 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2515 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2516 target_insert_watchpoint, target_remove_watchpoint):
2518 * config/i386/nm-i386sco5.h: ... here.
2519 (kernel_u_size): Add prototype. Improve a few comments and add
2520 protection against multiple inclusion.
2522 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2525 * uw-thread.c (SP_ARG0): Define if not already defined.
2526 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2528 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2530 * config/i386/tm-i386.h: Don't include "regcache.h".
2532 * i387-tdep.h (i387_print_float_info): New prototype.
2533 * i387-tdep.c (print_i387_value, print_i387_ext,
2534 print_i387_status_word, print_i387_control_word): Add `struct
2535 ui_file *' argument and use it for output.
2536 (i387_print_float_info): Renamed from i387_float_info. Add
2537 `struct gdbarch *' and `struct ui_file *' arguments and use the
2539 * i386-tdep.c: Include "i387-tdep.h".
2540 (i386_gdbarch_init): Set print_float_info.
2541 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2542 (FLOAT_INFO): Remove define.
2544 2002-08-13 Michael Snyder <msnyder@redhat.com>
2546 * mips-tdep.c (mips_push_arguments): Rename to
2547 mips_eabi_push_arguments, and tune for EABI.
2548 (MIPS_REGS_HAVE_HOME_P): Delete.
2549 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2550 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2551 Delete references to mips_regs_have_home_p.
2553 2002-08-14 Keith Seitz <keiths@redhat.com>
2555 * Makefile.in (install-gdbtk): Create insight plugin directory.
2556 Install plugins.tcl file.
2558 2002-08-14 Keith Seitz <keiths@redhat.com>
2560 * configure.in: Move SUBDIRS to near top of the file so that
2561 --enable options may add things to it.
2562 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2563 * configure: Regenerate.
2565 2002-08-13 Michael Snyder <msnyder@redhat.com>
2567 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2568 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2569 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2571 2002-08-13 Andrew Cagney <ac131313@redhat.com>
2573 * vax-tdep.c (vax_get_saved_register): Delete function.
2574 (vax_gdbarch_init): Update.
2575 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2576 (ns32k_gdbarch_init): Update.
2577 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2578 (alpha_gdbarch_init): Update.
2580 2002-08-13 Andrew Cagney <cagney@redhat.com>
2582 * regcache.c (init_regcache_descr): Overallocate the
2583 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2584 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2586 (set_register_cached): Add range checking assertions. Use
2589 2002-08-13 Mark Kettenis <kettenis@gnu.org>
2591 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2592 numbers for MMX registers.
2594 2002-08-13 Andrew Cagney <cagney@redhat.com>
2596 * i386-tdep.c (i386_gdbarch_init): Use
2597 generic_unwind_get_saved_register.
2599 2002-08-13 Kevin Buettner <kevinb@redhat.com>
2601 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2602 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2604 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2605 Delete. Add comment regarding this now-deleted target method.
2607 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2609 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2610 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2611 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2612 real PC and the page number (if it's within the memory bank window).
2613 (m68hc11_pseudo_register_write): Likewise when saving.
2614 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2615 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2616 (m68hc11_register_raw_size): And use 32-bit for it.
2617 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2618 16K memory bank is used by the prog; also use the virtual pc.
2620 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2622 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2623 (m68hc11_gdbarch_init): Install it in gdbarch.
2624 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2625 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2626 (MSYMBOL_SIZE): New for documentation.
2627 (insn_return_kind): Enum to specify how a function returns.
2628 (frame_extra_info): Cleanup and record the return mode.
2629 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2630 register in address computation.
2631 (m68hc11_get_return_insn): New to obtain the return instruction used
2633 (m68hc11_frame_init_saved_regs): Take into account the return
2634 instruction used by the function for far and interrupt functions.
2635 (m68hc11_init_extra_frame_info): Take into account page register.
2636 (m68hc11_frame_args_address): Adjust according to the return mode.
2637 (show_regs): Print page register only when it's used.
2639 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2641 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2642 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2643 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2645 (m68hc11_register_raw_size): Likewise.
2647 2002-08-13 Andrew Cagney <cagney@redhat.com>
2649 * i386-tdep.c (i386_register_name): Handle mmx registers.
2650 (mmx_regnum_p): New function.
2651 (i386_mmx_names): New array.
2652 (mmx_num_regs): New variable.
2653 (i386_pseudo_register_read): New function.
2654 (i386_pseudo_register_write): New function.
2655 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2657 * regcache.c (regcache_raw_read_unsigned): New function.
2658 (regcache_raw_read_signed): New function.
2659 * regcache.h (regcache_raw_read_unsigned): Declare.
2660 (regcache_raw_read_signed): Declare.
2662 2002-08-13 Andrew Cagney <cagney@redhat.com>
2664 * regcache.c (regcache_raw_read_as_address): Delete function.
2665 (regcache_cooked_read_signed): New function.
2666 (regcache_cooked_read_unsigned): New function.
2667 * regcache.h (regcache_cooked_read_signed): Declare.
2668 (regcache_cooked_read_unsigned): Declare.
2669 (regcache_raw_read_as_address): Delete declaration.
2671 * blockframe.c (generic_read_register_dummy): Use
2672 regcache_cooked_read_unsigned.
2673 * i386-tdep.c (i386_extract_struct_value_address): Use
2674 regcache_cooked_read_unsigned.
2676 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2678 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2679 double sizes according to ELF ABI flags.
2680 (gdbarch_tdep): Record elf_flags.
2682 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2684 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2685 (m6812_prolog): They can appear in 68HC12 function prologue.
2686 (m68hc11_frame_chain): Cleanup.
2688 2002-08-12 Andrew Cagney <cagney@redhat.com>
2690 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2692 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2693 (i386_linux_register_raw_size): Delete function.
2694 (i386_linux_init_abi): Update.
2695 * i386-tdep.c (i386_register_raw_size): Delete function.
2696 (i386_register_byte): Delete function.
2697 (i386_gdbarch_init): Update.
2698 (i386_register_size): Delete array.
2699 (i386_register_offset): Delete array.
2701 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2702 (REGISTER_RAW_SIZE): Delete macro.
2703 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2704 (REGISTER_BYTE): Delete macro.
2706 2002-08-11 Aidan Skinner <aidan@velvet.net>
2708 * ada-lang.c (ada_lookup_partial_symbol)
2709 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2710 prototype names so that grep ^func works properly.
2712 * ada-lang.c (ada_array_element_type)
2713 (ada_lookup_partial_symbol): Fix typos in parameter list.
2715 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2716 Fix prototype names so that grep ^func works properly.
2718 2002-08-10 Andrew Cagney <cagney@redhat.com>
2719 Elena Zannoni <ezannoni@redhat.com>
2720 Martin M. Hunt <hunt@redhat.com>
2722 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2723 (build_builtin_type_vec128i): Set the vector bit.
2724 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2725 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2726 (build_builtin_type_vec64): New function.
2727 (build_builtin_type_vec64i): New function.
2728 (build_gdbtypes): Initialize builtin_type_vec64 and
2729 builtin_type_vec64i.
2731 2002-08-09 Andrew Cagney <cagney@redhat.com>
2733 * regcache.c (regcache_dump): Compare the register offset
2735 * arch-utils.c (generic_register_byte): New function.
2736 * arch-utils.h (generic_register_byte): Declare.
2737 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2738 * gdbarch.h, gdbarch.c: Regenerate.
2740 2002-08-09 Andrew Cagney <cagney@redhat.com>
2742 * regcache.c: Include "gdbcmd.h"
2743 (_initialize_regcache): Add commands "maintenance print
2744 registers", "maintenance print raw-registers" and "maintenance
2745 print cooked-registers".
2746 (enum regcache_dump_what): Define.
2747 (dump_endian_bytes): New function.
2748 (regcache_dump): New function.
2749 (regcache_print): New function.
2750 (maintenance_print_registers): New function.
2751 (maintenance_print_raw_registers): New function.
2752 (maintenance_print_cooked_registers): New function.
2753 * Makefile.in (regcache.o): Update dependencies.
2755 2002-08-09 Michael Snyder <msnyder@redhat.com>
2757 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2758 (mips_push_arguments): Correct some comments. Use paddr_nz
2759 for printing addresses in debug output. Replace static
2760 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2761 (mips_n32n64_push_arguments): New function, cloned from
2762 mips_push_arguments and tuned for the n32/n64 ABI.
2763 (mips_push_register): Buffer needs dynamic allocation.
2764 (mips_print_register): Ditto.
2765 (do_gp_register_row): Ditto.
2766 (mips_store_return_value): Ditto.
2767 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2769 2002-08-09 Don Howard <dhoward@redhat.com>
2771 * memattr.c (mem_info_command): Print special case of upper bound
2772 as max CORE_ADDR + 1.
2774 2002-08-08 Michael Snyder <msnyder@redhat.com>
2776 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2777 returns structs by ref if they're too big to fit in two registers.
2779 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2781 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2783 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2784 mips_find_saved_regs().
2785 (mips_pop_frame): Likewise.
2787 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2789 * blockframe.c (frame_saved_regs_register_unwind): Revise
2790 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2793 2002-08-09 Grace Sainsbury <graces@redhat.com>
2795 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2796 T-packets; the 'a' is not taken as a register number.
2797 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2798 (remote_stopped_data_address): New functions; add to target
2800 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2801 prototypes to match other implementations of this
2802 function. replace integer argument with pointer -- the length
2803 field in the Z-packet is the length of what is pointed to or 1 if
2804 pointer is null. Add to target vector.
2805 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2809 * remote.c (remote_wait): Add support to extract optional
2810 watchpoint information from T-packet. Ignore unrecognized
2811 optional info in T-packet.
2812 (remote_async_wait): Ditto.
2814 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
2816 * cli/cli-dump.c: Change fopen modes to use binary open modes
2817 as defined in include/fopen-bin.h throughout.
2819 2002-08-08 Michael Snyder <msnyder@redhat.com>
2821 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2823 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2825 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2826 assertion failure by returning early after a warning.
2828 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2830 * mips-tdep.c (mips_find_saved_regs): Make static.
2831 (mips_frame_init_saved_regs): New function.
2832 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2833 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2834 (mips_find_saved_regs): Delete declaration.
2836 2002-08-08 Grace Sainsbury <graces@redhat.com>
2838 * remote.c (remote_wait, remote_async_wait): Change
2839 thread_num from int to ULONGEST.
2840 (unpack_varlen_hex): Change result parameter from
2841 int * to ULONGEST *.
2843 2002-08-08 Andrew Cagney <ac131313@redhat.com>
2845 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2846 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2848 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2850 2002-08-08 Andrew Cagney <cagney@redhat.com>
2852 * gcore.c (override_derive_stack_segment): Delete variable.
2853 (preempt_derive_stack_segment): Delete function.
2854 (derive_stack_segment): Delete function.
2855 (default_derive_stack_segment): Renamed to derive_stack_segment.
2856 (override_derive_heap_segment): Delete variable.
2857 (preempt_derive_heap_segment): Delete function.
2858 (derive_heap_segment): Delete function.
2859 (default_derive_heap_segment): Rename to derive_heap_segment.
2861 2002-08-06 Michael Snyder <msnyder@redhat.com>
2863 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2864 * mips-tdep.c (mips_EABI_use_struct_convention,
2865 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2866 New functions. (mips_use_struct_convention): Delete.
2867 (mips_gdbarch_init): set use_gdbarch_convention.
2869 2002-08-06 Michael Snyder <msnyder@redhat.com>
2871 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2872 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2873 mips_o32_reg_struct_has_addr): New functions.
2874 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2876 2002-08-07 Andrew Cagney <ac131313@redhat.com>
2878 * regcache.c (pseudo_register): Delete function.
2879 (fetch_register): Delete function.
2880 (store_register): Delete function.
2881 (regcache_raw_read, legacy_read_register_gen): Use
2882 target_fetch_registers instead of fetch_register.
2883 (legacy_write_register_gen, regcache_raw_write): Use
2884 target_store_register instead of store_register.
2885 (write_register_bytes): Ditto.
2887 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2888 (STORE_PSEUDO_REGISTER): Delete.
2889 * gdbarch.h, gdbarch.c: Regenerate.
2891 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
2893 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2894 write dump file binary.
2896 2002-08-05 Michael Snyder <msnyder@redhat.com>
2898 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2899 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2900 (mips_gdbarch_init): Set N32 target to be mips64.
2902 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2904 * frame.c (find_saved_register): Break out of loop once saved
2905 register address is found. Don't mention sparc in loop comment
2908 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2910 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2911 mips_default_saved_regsize to 8.
2913 2002-08-06 Andrew Cagney <ac131313@redhat.com>
2915 * gcore.c: Do not include <sys/procfs.h>.
2916 * Makefile.in (gcore.o): Update dependencies.
2918 2002-08-06 Andrew Cagney <cagney@redhat.com>
2920 * configure.tgt: Make arc-*-* obsolete.
2921 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2922 * MAINTAINERS: Make arc-elf obsolete.
2923 * arc-tdep.c: Make file obsolete.
2924 * config/arc/arc.mt: Ditto.
2925 * config/arc/tm-arc.h: Ditto.
2927 2002-08-05 Theodore A. Roth <troth@verinet.com>
2929 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
2931 2002-08-05 Andrew Cagney <ac131313@redhat.com>
2933 * mcore-tdep.c (mcore_gdbarch_init): Use
2934 generic_unwind_get_saved_register instead of
2935 generic_get_saved_register.
2936 * v850-tdep.c (v850_gdbarch_init): Ditto.
2937 * frv-tdep.c (frv_gdbarch_init): Ditto.
2938 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2939 * s390-tdep.c (s390_gdbarch_init): Ditto.
2940 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2941 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2942 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2944 2002-08-05 Joel Brobecker <brobecker@gnat.com>
2946 * objfiles.h: Add missing #include "symfile.h"
2948 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2950 2002-08-04 Andrew Cagney <ac131313@redhat.com>
2952 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2953 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2956 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
2958 * NEWS: Cleanup and nitpick.
2960 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2962 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2964 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2966 * Makefile.in (gdbtk-bp.o): Update dependencies.
2967 (gdbtk-register.o): Ditto.
2968 (gdbtk-varobj.o): Ditto.
2970 2002-08-03 Andrew Cagney <cagney@redhat.com>
2972 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2973 m68hc11_fetch_pseudo_register.
2974 (m68hc11_pseudo_register_write): Replace
2975 m68hc11_store_pseudo_register.
2976 (m68hc11_gdbarch_init): Update.
2978 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2980 * gdbarch.sh: Include "gdb_string.h".
2981 * gdbarch.c: Regenerate.
2983 * regcache.c: Include "gdb_string.h".
2984 * ax-general.c: Ditto.
2986 * std-regs.c: Ditto.
2987 * fbsd-proc.c: Ditto.
2990 * Makefile.in (regcache.o): Update dependencies.
2991 (thread.o, gdbarch.o): Ditto.
2992 (ax-general.o, gdbarch.o): Ditto.
2993 (varobj.o, std-regs.o): Ditto.
2994 (fbsd-proc.o): Specify dependencies.
2996 2002-08-02 Andrew Cagney <cagney@redhat.com>
2998 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
3000 (regcache_cooked_write): Ditto.
3002 2002-08-02 Andrew Cagney <ac131313@redhat.com>
3004 * regcache.c (regcache_cooked_read): New function.
3005 (regcache_cooked_write): New function.
3006 (read_register_gen): Rewrite using regcache_cooked_read.
3007 (write_register_gen): Rewrite using regcache_cooked_write.
3009 * regcache.h (regcache_cooked_read, regcache_cooked_write):
3012 2002-08-02 Andrew Cagney <cagney@redhat.com>
3014 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
3015 Replace the architecture methods register_read and register_write.
3016 * gdbarch.h, gdbarch.c: Regenerate.
3017 * regcache.c (init_regcache_descr): Update.
3018 (read_register_gen): Update.
3019 (write_register_gen): Update.
3020 (supply_register): Update comment.
3022 * sh-tdep.c (sh_gdbarch_init): Update.
3023 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
3024 `regcache' and `gdbarch' parameters. Make `buffer' a void
3025 pointer. Update code.
3026 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
3027 `regcache' and `gdbarch' parameters. Make `buffer' a constant
3028 void pointer. Update code.
3029 (sh64_register_write): Delete.
3030 (sh4_register_read): Delete.
3031 (sh64_register_read): Delete.
3032 (sh4_register_write): Delete.
3033 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
3034 void pointer, `to' parameter a void pointer.
3035 (sh_sh64_register_convert_to_raw): Ditto.
3037 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3039 * mips-tdep.c (mips_register_virtual_type): Use architecture
3040 invariant return values.
3042 2002-08-01 Andrew Cagney <cagney@redhat.com>
3044 * linux-proc.c: Include "gdb_string.h".
3045 * Makefile.in (linux-proc.o): Update dependency list.
3047 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3049 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
3052 2002-08-01 Grace Sainsbury <graces@redhat.com>
3054 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3055 to_insert_watchpoint, to_remove_watchpoint,
3056 to_stopped_by_watchpoint, to_stopped_data_address,
3057 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
3058 target vecctor. Define their corresponding macros so they call
3061 * target.c: Add default and debug versions of for
3062 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3063 to_insert_watchpoint, to_remove_watchpoint,
3064 to_stopped_by_watchpoint, to_stopped_data_address,
3065 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
3067 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3069 * mips-tdep.c (mips_register_virtual_type): New function.
3070 (mips_gdbarch_init): Register mips_register_virtual_type()
3071 with gdbarch machinery.
3072 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3073 this file instead of tm-bigmips.h.
3074 (MIPS_REGSIZE): Delete this macro.
3075 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
3076 multiarch version in mips-tdep.c will be found.
3078 2002-08-01 Andrew Cagney <cagney@redhat.com>
3080 * NEWS: Menion that CHILL has been made obsolete.
3082 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
3083 * stabsread.c (read_range_type): Ditto.
3084 * gdbtypes.h: Ditto.
3085 * language.c (binop_type_check): Ditto.
3086 (binop_result_type): Ditto.
3087 (integral_type): Ditto.
3088 (character_type): Ditto.
3089 (string_type): Ditto.
3090 (boolean_type): Ditto.
3091 (structured_type): Ditto.
3092 (lang_bool_type): Ditto.
3093 (binop_type_check): Ditto.
3094 * language.h (_LANG_chill): Ditto.
3095 * dwarfread.c (set_cu_language): Ditto.
3096 * dwarfread.c (CHILL_PRODUCER): Ditto.
3097 * dwarfread.c (handle_producer): Ditto.
3098 * expression.h (enum exp_opcode): Ditto.
3099 * eval.c: Ditto for comments.
3100 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3101 * expprint.c (print_subexp): Ditto.
3102 (print_subexp): Ditto.
3103 * valops.c (value_cast): Ditto.
3104 (search_struct_field): Ditto.
3105 * value.h (COERCE_VARYING_ARRAY): Ditto.
3106 * symfile.c (init_filename_language_table): Ditto.
3107 (add_psymbol_with_dem_name_to_list): Ditto.
3108 * valarith.c (value_binop): Ditto.
3110 * valops.c (value_slice): Ditto.
3111 * symtab.h (union language_specific): Ditto.
3112 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3113 (SYMBOL_DEMANGLED_NAME): Ditto.
3114 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3115 * defs.h (enum language): Ditto.
3116 * symtab.c (got_symtab): Ditto.
3117 * utils.c (fprintf_symbol_filtered): Ditto.
3119 * ch-typeprint.c: Make file obsolete.
3120 * ch-valprint.c: Make file obsolete.
3121 * ch-lang.h: Make file obsolete.
3122 * ch-exp.c: Make file obsolete.
3123 * ch-lang.c: Make file obsolete.
3125 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3127 (TARGET_FLAGS_TO_PASS): Ditto.
3128 (CHILLFLAGS): Obsolete.
3130 (CHILL_FOR_TARGET): Obsolete.
3131 (CHILL_LIB): Obsolete.
3132 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3134 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3135 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3137 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3140 2002-07-31 Joel Brobecker <brobecker@gnat.com>
3142 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3143 This does not change anything at the moment, but will be helpful
3144 later when full Ada support is integrated.
3146 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3148 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3151 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3153 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3154 and save it in a local variable. Use variable in later test.
3156 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3158 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3159 test. (Thanks to Daniel Jacobowitz.)
3161 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3163 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3164 (mips_abi_strings): Add "n64".
3165 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3167 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3169 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3170 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3172 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3174 * utils.c (host_pointer_to_address, address_to_host_pointer):
3175 Use gdb_assert() instead of explicit call to internal_error().
3177 2002-07-30 Kevin Buettner <kevinb@redhat.com>
3179 * Makefile.in (rs6000-nat.o): Update dependencies.
3181 From Nicholas Duffek:
3182 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3183 (aix-thread.o): New rule.
3184 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3185 * config/powerpc/aix432.mh: New file.
3187 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3189 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3190 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3191 (fetch_core_registers, ppc_linux_supply_gregset)
3192 (ppc_linux_supply_fpregset): New functions.
3193 (ppc_linux_regset_core_fns): New.
3194 (_initialize_ppc_linux_tdep): Call add_core_fns.
3195 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3196 and ppc_linux_supply_gregset.
3197 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3198 (supply_fpregset): Call ppc_linux_supply_fpregset.
3199 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3201 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3203 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3205 * symtab.c (lookup_symbol): Demangle before lowercasing.
3207 2002-07-30 Andrew Cagney <ac131313@redhat.com>
3209 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3211 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3212 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3213 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3214 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3216 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3217 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3218 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3219 (avr-tdep.o, mon960-rom.o): Ditto.
3220 (aout_stabs_gnu_h): Define.
3221 (symtab_h): Remove $(gdb_obstack_h).
3223 2002-07-30 Jim Blandy <jimb@redhat.com>
3225 Patch from David Carlton <carlton@math.stanford.edu>:
3226 * gdbinit.in: Move the `dir' commands that add GDB's own source
3227 directory to the search path to the end, so that the `gdb' source
3228 directory will be searched first.
3230 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3232 * gdb_obstack.h: New file.
3233 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3234 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3235 * objfiles.h: Include "gdb_obstack.h".
3236 * Makefile.in (gdb_obstack_h): Define.
3237 (symtab_h): Add $(gdb_obstack_h).
3238 (objfiles_h): Add $(gdb_obstack_h).
3240 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3241 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3242 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3243 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3244 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3245 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3246 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3247 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3249 * Makefile.in (bcache.o): Update dependencies.
3250 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3251 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3252 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3253 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3254 (stabsread.o, symfile.o, symmisc.o): Ditto.
3255 (symtab.o, typeprint.o, macroexp.o): Ditto.
3256 (macrotab.o, mdebugread.o): Ditto.
3257 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3258 (coff_ecoff_h, aout_aout64_h): Define.
3259 (aout_stabs_gnu_h, libaout_h): Define.
3261 2002-07-29 Andrew Cagney <cagney@redhat.com>
3263 * regcache.c (struct regcache_descr): Rename nr_registers to
3264 nr_cooked_registers. Revise comments describing the structure
3266 (init_regcache_descr): Update.
3267 (init_legacy_regcache_descr): Update.
3268 (read_register_gen, write_register_gen): When a cooked register in
3269 the raw register range, directly access the value from the raw
3272 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3274 * z8k-tdep.c: Do not include "obstack.h".
3275 * h8300-tdep.c, h8500-tdep.c: Ditto.
3276 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3277 * valprint.c, v850-tdep.c: Ditto.
3278 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3279 * mn10200-tdep.c: Ditto.
3281 * Makefile.in (z8k-tdep.o): Update dependencies.
3282 (m68hc11-tdep.o, valprint.o): Ditto.
3283 (v850-tdep.o, d10v-tdep.o): Ditto.
3284 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3285 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3286 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3287 (sh_opc_h, gdb_sim_sh_h): Define.
3288 (elf_sh_h, elf_bfd_h): Define.
3289 (opcode_m68hc11_h): Define.
3290 (OPCODES_SRC, OPCODES_DIR): define.
3291 (OPCODES): Use $(OPCODES_DIR).
3292 (gdb_sim_d10v_h): Rename sim_d10v_h.
3293 (gdb_sim_arm_h): Rename sim_arm_h.
3295 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3297 * utils.c (host_pointer_to_address, address_to_host_pointer):
3298 Change internal_error() message to indicate function responsible
3301 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3303 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3304 calls to local_hex_string_custom().
3306 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3308 * irix5-nat.c: Move IRIX shared library support from here...
3309 * solib-irix.c: ...to here. Revised substantially to work with
3310 generic solib framework.
3312 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3313 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3314 * mips-irix-tdep.c: New file.
3316 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3317 (mips-irix-tdep.o, solib-irix.o): New rules.
3318 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3320 * config/mips/irix6.mt (TDEPFILES): Likewise.
3321 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3323 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3325 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3326 disabled (via ``#if 0'') includes.
3328 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3330 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3331 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3332 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3333 Add support for the fpscr register.
3334 * rs6000-nat.c (regmap, fetch_inferior_registers)
3335 (store_inferior_registers, fetch_core_registers): Likewise.
3337 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3339 * rs6000-nat.c (language.h): Include.
3340 (special_regs): Delete this array.
3341 (regmap): New function.
3342 (fetch_register, store_register): Use regmap() to map gdb
3343 register numbers to ptrace register numbers. Also, use
3344 outputs from regmap() to make decisions regarding type of
3345 ptrace() call to make. In particular, don't compare against
3346 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3347 (fetch_inferior_registers, store_inferior_registers): Where
3348 possible, obtain register numbers from tdep struct. Don't
3349 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3350 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3351 (LAST_UISA_SP_REGNUM): Delete.
3353 2002-07-25 Kevin Buettner <kevinb@redhat.com>
3355 * rs6000-nat.c (ppc-tdep.h): Include.
3356 (fetch_registers, store_register, fetch_core_registers): Don't
3357 access registers[] directly. Instead, use supply_register() or
3358 regcache_collect() as appropriate.
3359 (find_toc_address): Format hex address with local_hex_string().
3361 2002-07-25 Andrew Cagney <ac131313@redhat.com>
3363 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3366 2002-07-24 Tom Tromey <tromey@redhat.com>
3368 * jv-exp.y: Marked all strings with _().
3369 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3371 (MethodInvocation, CastExpression, parse_number, yyerror,
3372 java_type_from_name, push_expression_name, yylex): Typo fixes.
3374 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
3376 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3377 (tee_file_flush, tee_file_write, tee_file_fputs)
3378 (tee_file_isatty): New.
3379 * ui-file.h (tee_file_new): Add prototype.
3381 2002-07-24 Aidan Skinner <aidan@velvet.net>
3383 * ada-lang.c: Change k&r style function definitions to prototyped
3385 * ada-typeprint.c: Change k&r style function definitions to prototyped
3387 * ada-valprint.c: Change k&r style function definitions to prototyped
3390 2002-07-24 Andrew Cagney <cagney@redhat.com>
3392 * README: Remove reference to remote-bug.
3393 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3395 (m88k-nat.o): Delete rule.
3396 (m88k-tdep.o): Delete rule.
3397 (remote-bug.o): Delete rule.
3398 * MAINTAINERS: Mark as obsolete.
3399 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3400 * m88k-tdep.c: Make file obsolete.
3401 * config/m88k/m88k.mh: Ditto.
3402 * config/m88k/delta88v4.mh: Ditto.
3403 * config/m88k/delta88v4.mt: Ditto.
3404 * config/m88k/delta88.mt: Ditto.
3405 * config/m88k/delta88.mh: Ditto.
3406 * remote-bug.c: Ditto.
3407 * config/m88k/tm-delta88.h: Ditto.
3408 * config/m88k/nm-delta88v4.h: Ditto.
3409 * config/m88k/xm-delta88.h: Ditto.
3410 * config/m88k/xm-dgux.h: Ditto.
3411 * config/m88k/tm-m88k.h: Ditto.
3412 * config/m88k/nm-m88k.h: Ditto.
3413 * config/m88k/tm-delta88v4.h: Ditto.
3414 * m88k-nat.c: Ditto.
3415 * cxux-nat.c: Ditto.
3416 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3417 and m88*-*-* obsolete.
3418 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3421 2002-07-24 Andrew Cagney <cagney@redhat.com>
3423 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3424 constant. Same for local pointer variables.
3425 (extract_signed_integer): Ditto.
3426 * defs.h (extract_unsigned_integer): Update.
3427 (extract_signed_integer): Update.
3429 2002-07-24 Andrew Cagney <cagney@redhat.com>
3431 * regcache.c (regcache_raw_write): Change buf parameter to a
3432 constant void pointer.
3433 (regcache_raw_read): Change buf parameter to a void pointer.
3434 (legacy_write_register_gen): Change myaddr parameter a constant
3436 (supply_register): Change val parameter to a const void pointer.
3437 * regcache.h (regcache_raw_write): Update declaration.
3438 (regcache_raw_read): Update declaration.
3439 (supply_register): Update declaration.
3441 2002-07-24 Tom Tromey <tromey@redhat.com>
3443 * defs.h (gdb_readline_wrapper): Declare.
3444 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3445 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3446 * top.c (gdb_readline_wrapper): New function.
3447 (command_line_input): Use it.
3449 2002-07-24 Andrew Cagney <cagney@redhat.com>
3451 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3452 regcache_read and regcache_write.
3453 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3454 * regcache.c: Update.
3455 * sh-tdep.c (sh64_push_arguments): Update comment.
3456 (sh_pseudo_register_read): Update.
3457 (sh_pseudo_register_write): Update.
3458 (sh4_register_read): Update.
3459 (sh4_register_write): Update.
3460 (sh64_pseudo_register_read): Update.
3461 (sh64_pseudo_register_write): Update.
3462 (sh64_register_read): Update.
3463 (sh64_register_write): Update.
3464 * i386-tdep.c (i386_extract_return_value): Update.
3465 (i386_extract_struct_value_address): Update.
3466 (i386_extract_return_value): Update.
3467 * blockframe.c (generic_read_register_dummy): Update.
3468 (generic_call_dummy_register_unwind): Update
3469 * infrun.c (write_inferior_status_register): Update.
3471 2002-07-23 Jim Blandy <jimb@redhat.com>
3473 * parser-defs.h (expression_context_pc): Make this extern.
3474 (Thanks to Michael Snyder.)
3476 2002-07-23 Andrew Cagney <ac131313@redhat.com>
3478 GDB 5.2.1 released from 5.2 branch.
3479 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3480 * README: Update to mention 5.2.1.
3482 2002-07-23 Mark Salter <msalter@redhat.com>
3484 * remote.c (remote_read_bytes): Fix check for error.
3486 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3488 * aix-thread.c (language.h): Include.
3489 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3490 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3491 Print newlines at end of debug messages.
3492 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3493 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3495 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3497 * aix-thread.c (ppc-tdep.h): Include.
3498 (special_register_p): New function.
3499 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3500 (store_regs_user_thread): Use register number information from
3501 gdbarch_tdep struct instead of hardcoded offsets relative to
3502 FIRST_UISA_SP_REGNUM.
3503 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3504 special_register_p() instead of using FPLAST_REGNUM and
3505 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3506 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3507 will be MQ's register number.
3509 2002-07-22 Michael Snyder <msnyder@redhat.com>
3511 * aix-thread.c (ops): Rename to aix_thread_ops.
3512 (base_ops): Rename to base_target.
3513 (ops_attach): Rename to aix_thread_attach.
3514 (ops_detach): Rename to aix_thread_detach.
3515 (ops_resume): Rename to aix_thread_detach.
3516 (ops_wait): Rename to aix_thread_wait.
3517 (ops_kill): Rename to aix_thread_kill.
3518 (init_ops): Rename to init_aix_thread_ops.
3519 (ops_fetch_register): Rename to aix_thread_fetch_register.
3520 (ops_store_register): Rename to aix_thread_store_register.
3521 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3522 (ops_thread_alive): Rename to aix_thread_thread_alive.
3523 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3524 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3525 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3526 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3527 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3528 (store_regs_lib): Rename to store_regs_user_thread.
3529 (store_regs_kern): Rename to store_regs_kernel_thread.
3531 2002-07-22 Michael Snyder <msnyder@redhat.com>
3533 * aix-thread.c (ops_prepare_to_store): Eliminate.
3534 (init_ops): Don't initialize ops.prepare_to_store.
3535 (store_regs_kern): Pre-fetch register buffers from child,
3536 because some registers may not be in the cache. Copy
3537 regs from register cache only if they are cached.
3538 (store_regs_lib): Copy regs from register cache only
3540 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3541 fill_gprs64): Ditto.
3543 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3545 * aix-thread.c (gdb_assert.h): Include.
3546 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3547 register sizes (from register cache) match size of buffer holding
3549 (fill_sprs32): Change parameter types to match those in the ptrace()
3551 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3552 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3554 2002-07-22 Michael Snyder <msnyder@redhat.com>
3556 * aix-thread.c (supply_sprs64): Cosmetic change.
3557 (supply_sprs32): Cosmetic change.
3558 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3559 (fill_sprs64): Use regcache_collect instead of read_register.
3560 (store_regs_lib): Use regcache_collect instead of
3561 read_register. Use fill_sprs32 instead of fill_sprs64,
3562 if debugging a 32-bit architecture.
3563 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3564 out of the register cache, instead of passing a pointer into
3565 the register cache directly to ptrace. Use regcache_collect
3566 insteaad of read_register.
3567 (ops_prepare_to_store): Use target_read_registers instead
3568 of read_register_bytes.
3570 2002-07-20 Aidan Skinner <aidan@velvet.net>
3572 * MAINTAINERS: Add self under write after approval.
3574 2002-07-20 Aidan Skinner <aidan@velvet.net>
3576 * ada-tasks.c: Change k&r style function definitions to prototyped
3579 2002-07-19 Andrew Cagney <ac131313@redhat.com>
3581 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3582 * x86-64-tdep.c: Include "objfiles.h".
3583 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3584 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3586 2002-07-17 Michal Ludvig <michal@suse.cz>
3588 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3589 (update_context): Initialise cfa variable.
3591 2002-07-17 Michael Snyder <msnyder@redhat.com>
3593 * aix-thread.c: Shorten some long lines.
3594 Bring comments into line with code spec.
3596 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3598 * infrun.c: Re-indent using gdb_indent.sh.
3600 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3602 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3603 Leave the indentation temporarily untouched, to minimize the diffs.
3605 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
3607 * stabsread.c: Make os9k sections of the code obsolete,
3609 * stabsread.h: Make os9k sections of the code obsolete.
3611 2002-07-18 Michal Ludvig <mludvig@suse.cz>
3613 * linux-low.c (regsets_store_inferior_registers): Add free()
3614 at the end of a loop to prevent memory leak.
3615 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3616 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3617 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3619 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3621 2002-07-17 Jim Blandy <jimb@redhat.com>
3623 * macrocmd.c (info_macro_command): Remove newline from error
3626 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
3628 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3629 (sh_gdbarch_init): Use it for sh-dsp.
3631 2002-07-16 Kevin Buettner <kevinb@redhat.com>
3633 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3634 64-bit DWARF2 format.
3636 2002-07-16 Joel Brobecker <brobecker@gnat.com>
3638 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3639 <sys/proc.h> when not available.
3641 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3643 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3644 * stabsread.c: Make os9k sections of the code obsolete.
3645 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3646 * config/i386/i386os9k.mt: Make file obsolete.
3647 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3648 (COMMON_OBS): Remove os9kread.o
3649 (SFILES): Remove os9kread.c.
3650 (os9kread.o, remote-os9k.o): Make target obsolete.
3651 * remote-os9k.c: Make file obsolete.
3652 * os9kread.c: Make file obsolete.
3655 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3657 * NEWS: Mention that the FR30 has been made obsolete.
3658 * fr30-tdep.c: Make file obsolete.
3659 * config/fr30/tm-fr30.h: Ditto.
3660 * config/fr30/fr30.mt: Ditto.
3661 * configure.tgt: Make fr30-*-elf obsolete.
3662 * MAINTAINERS: Make fr30-elf obsolete.
3664 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3666 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3667 found is not inside a section.
3669 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3671 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3673 (pdc_realloc): Use xrealloc() instead of realloc().
3675 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3677 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3678 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3679 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3682 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3684 * aix-thread.c (ptrace_check): Eliminate goto.
3685 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3688 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3690 * aix-thread.c (gdbcmd.h): Include.
3691 (DEBUG, DBG, DBG2, dbg): Eliminate.
3692 (debug_aix_thread): New static global.
3693 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3694 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3695 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3696 invocations to DBG and DBG2 macros to test against
3697 ``debug_aix_thread'' and call fprintf_unfiltered().
3698 (_initialize_aix_thread): Add new command "set debug aix-thread".
3700 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3702 From Gerhard Tonn <TON@de.ibm.com>:
3703 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3704 instead of supply_register.
3706 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3708 * dwarf2cfi.c: Include "gdb_assert.h".
3709 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3711 (update_context): Do not use __func__. Add missing ``break''.
3712 (update_context): Do not use __func__.
3714 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
3716 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3717 and its setting. Set gdbarch instruction printing functions
3718 directly. For non-rs6000 case use new function
3719 gdb_print_insn_powerpc.
3720 (gdb_print_insn_powerpc): New function.
3722 2002-07-13 Andrew Cagney <ac131313@redhat.com>
3724 * NEWS: Mention that the d30v has been marked obsolete.
3725 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3726 * configure.tgt: Mark d30v-*-* as obsolete.
3727 * d30v-tdep.c: Mark file as obsolete.
3728 * config/d30v/d30v.mt: Ditto.
3729 * config/d30v/tm-d30v.h: Ditto.
3731 2002-07-13 Aidan Skinner <aidan@velvet.net>
3733 * ada-tasks.c (add_task_entry): replace calls to
3734 malloc() with xmalloc
3735 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3737 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3738 ada_finish_decode_line_1, all_sals_for_line
3739 ada_breakpoint_rewrite): replace calls to free() with xfree()
3741 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3743 From Nicholas Duffek (with minor changes by Martin Hunt,
3744 Louis Hamilton, and Kevin Buettner):
3745 * aix-thread.c: New file.
3747 2002-07-12 Petr Sorfa <petrs@caldera.com>
3749 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3750 complaint for invalid attribute class or form.
3751 (read_func_scope): DW_AT_frame_base
3752 better handling of DW_AT_block*.
3753 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3754 better handling of DW_AT_block*.
3755 (read_common_block): DW_AT_location
3756 better handling of DW_AT_block*.
3757 (read_partial_die): DW_AT_location better handling
3759 (new_symbol): DW_AT_external better handling of
3760 DW_AT_block*. Proper initialization of variable
3762 (attr_form_is_block): New function that returns true
3763 if the attribute's form is of DW_FORM_block*.
3765 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3767 * valops.c (find_method_list): Remove comment about
3768 removed STATIC_MEMFUNCP argument.
3769 (value_find_oload_method_list): Likewise.
3771 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3773 From Nicholas Duffek:
3774 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3775 target_new_objfile_hook.
3777 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3779 From Nicholas Duffek:
3780 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3783 2002-07-12 Andrew Cagney <cagney@redhat.com>
3785 * MAINTAINERS: Mention --enable-sim-build-warnings.
3786 (m68hc11-elf): Disable sim build warnings.
3787 (m32r-elf): Mark as broken obsolete candidate.
3788 (x86_64-linux-gnu): Mark as buildable with -Werror.
3789 (arm-elf): Change -w to ``,'' which enables warnings but not
3792 2002-07-12 Andrew Cagney <ac131313@redhat.com>
3794 * bcache.h: Update copyright.
3795 (struct bstring, struct bcache): Move definition to "bcache.c".
3796 Replaced by opaque declaration.
3797 (bcache_xfree): Replace free_bcache.
3798 (bcache_xmalloc, bcache_memory_used): Declare.
3800 * bcache.c: Update copyright.
3801 (struct bstring, struct bcache): Moved to here from "bcache.h".
3803 (bcache_xmalloc, bcache_memory_used): New functions.
3804 (bcache_xfree): Replace function free_bcache.
3806 * Makefile.in (objfiles.o): Add $(bcache_h).
3807 (objfiles_h): Remove $(bcache_h).
3808 (symfile.o): Add $(bcache_h).
3810 * symmisc.c: Update copyright.
3811 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3812 (print_objfile_statistics): Use bcache_memory_used.
3814 * symfile.c: Include "bcache.h".
3815 (reread_symbols): Use bcache_xfree.
3816 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3817 (add_psymbol_to_list): Pass psymbol_cache by value.
3818 (add_psymbol_with_dem_name_to_list): Ditto.
3820 * objfiles.h: Update copyright.
3821 (struct bcache): Declare opaque. Do not include "bcache.h".
3822 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3824 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3826 * objfiles.c: Include "bcache.h". Update copyright.
3827 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3829 (free_objfile): Use bcache_xfree.
3831 2002-07-11 Grace Sainsbury <graces@redhat.com>
3833 * monitor.c (monitor_fetch_register): Make name a constant.
3834 (monitor_store_register): Same.
3836 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
3838 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3839 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3840 (finish_block) For non-function blocks, hash the symbol table. For
3841 function blocks, mark the symbol table as unhashed.
3842 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3843 (msymbol_hash_iw): Likewise.
3844 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3846 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3847 (lookup_minimal_symbol): Likewise for both.
3848 * symtab.h (struct block): Add `hashtable' flag. Comment the
3850 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3851 (ALL_BLOCK_SYMBOLS): Update.
3852 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3853 (struct symbol): Add `hash_next' pointer.
3854 * symtab.c (lookup_block_symbol): Search using the hash table when
3856 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3857 (search_symbols, find_addr_symbol): Likewise.
3859 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3860 (read_dst_symtab): Likewise.
3861 * jv-lang.c (get_java_class_symtab): Likewise.
3862 * mdebugread.c: Include "gdb_assert.h".
3863 (shrink_block): Assert that the block being modified is not hashed.
3864 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3865 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3867 (dump_symtab): Recognize hashed blocks.
3868 * printcmd.c (print_frame_args): Assert that function blocks do not
3869 have hashed symbol tables.
3870 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3871 (fill_in_ada_prototype, debug_print_block): Likewise.
3872 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3874 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
3876 * stack.c (print_frame): Use result of frame_address_in_block()
3877 instead of fi->pc when evaluating symbols.
3878 (backtrace_command_1): Ditto.
3880 2002-07-11 Andrew Cagney <cagney@redhat.com>
3882 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3885 * arm-tdep.c (arm_register_name): Make return type constant.
3887 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3889 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3891 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3892 * s390-tdep.c (s390_fp_regnum): Ditto.
3893 (s390_read_fp): Ditto.
3894 (s390_pop_frame): Ditto.
3895 (_initialize_s390_tdep): Ditto.
3896 * remote.c (get_remote_state): Ditto.
3897 * procfs.c (mappingflags): Ditto.
3898 * memattr.c (_initialize_mem): Ditto.
3899 * mcore-tdep.c (mcore_pop_frame): Ditto.
3900 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3901 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3902 * language.c (set_case_str): Ditto.
3903 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3904 * frv-tdep.c (new_variant): Ditto.
3905 (frv_stopped_data_address): Ditto.
3906 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3907 (context_alloc): Ditto.
3908 (frame_state_alloc): Ditto.
3909 (unwind_tmp_obstack_init): Ditto.
3910 (unwind_tmp_obstack_free): Ditto.
3911 (cfi_read_fp): Ditto.
3912 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3913 (cris_pop_frame): Ditto.
3914 * c-lang.c (scanning_macro_expansion): Ditto.
3915 (finished_macro_expansion): Ditto.
3916 (c_preprocess_and_parse): Ditto.
3917 * gdbarch.sh: Ditto.
3918 * gdbarch.h, gdbarch.c: Regenerate.
3919 * config/mn10200/tm-mn10200.h: Adjust indentation.
3920 * target.c: Adjust indentation.
3921 * symtab.h: Adjust indentation.
3922 * stabsread.h: Adjust indentation.
3923 * remote-es.c: Adjust indentation.
3924 * os9kread.c: Adjust indentation.
3926 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3928 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3929 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3931 2002-07-10 Grace Sainsbury <graces@redhat.com>
3933 * NEWS: Mention m68k, mcore multi-arching.
3934 * MAINTAINERS: Change status of m68k, mcore to reflect
3937 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
3939 * valops.c (find_overload_match): Free oload_syms.
3941 2002-07-09 Joel Brobecker <brobecker@gnat.com>
3943 Define HAVE_SYS_PROC_H if sys/proc.h exists
3944 * configure.in: Add check for sys/proc.h
3945 * config.in: Regenerate.
3946 * configure: Regenerate.
3948 2002-07-09 Grace Sainsbury <graces@redhat.com>
3950 * config/m68k/tm-m68k.h: Remove macros wrapped in
3951 #if !GDB_MULTI_ARCH.
3953 2002-07-08 Andrew Cagney <ac131313@redhat.com>
3955 * config.in, configure: Regenerate.
3957 2002-07-08 Mark Kettenis <kettenis@gnu.org>
3959 * dwarf2cfi.c: Include "gcore.h".
3960 (execute_stack_op): Fix implementation of the
3961 DW_OP_deref and DW_OP_deref_size operators by letting do their
3962 lookup in the target.
3964 2002-07-07 Mark Kettenis <kettenis@gnu.org>
3966 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3967 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3970 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
3972 Fix PR gdb/595, gdb/602
3973 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3974 Don't call value_cast, just read the vtable pointer; update comments
3977 2002-07-05 Grace Sainsbury <graces@redhat.com>
3979 * config/mcore/tm-mcore.h: Remove file.
3980 * config/mcore/mcore.mt: Remove definition of TM_FILE
3981 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3983 2002-07-05 Mark Kettenis <kettenis@gnu.org>
3985 * i386bsd-tdep.c: Include "gdb_string.h".
3987 2002-07-04 Grace Sainsbury <graces@redhat.com>
3989 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3990 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3992 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3993 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3994 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3995 (RETVAL_REGNUM): Move macros from tm-mcore.h
3996 (mcore_reg_struct_has_addr): New function.
3997 (mcore_gdbarch_init): Added initializations for the macros removed
4000 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4002 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
4003 traditonal string branding within the ELF header.
4005 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
4007 * symtab.c (remove_params): New function.
4008 (make_symbol_overload_list): Use it instead of cplus_demangle.
4009 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
4011 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4013 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
4015 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
4017 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
4018 and tdep->sigtramp_end.
4019 * i386obsd-nat.c: New file.
4020 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
4022 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
4023 Don't call get_current_frame().
4025 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
4027 * i386-nat.c (child_post_startup_inferior): New function
4028 calling i386_cleanup_dregs if
4029 I386_USE_GENERIC_WATCHPOINTS is defined.
4030 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
4031 conditional to acknowledge that i386-nat.c has its
4032 own child_post_startup_inferior function.
4034 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4036 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
4037 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
4038 instead of MAX_REGISTER_RAW_SIZE.
4039 (i386_extract_return_value, i386_extract_struct_value_address):
4040 Convert to use regcache.
4041 (i386_gdbarch_init): Set max_register_raw_size and
4042 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
4043 Set extract_return_value and extract_struct_value_address instead
4044 of their deprecated variants.
4046 Convert i386 target to generic dummy frames.
4047 * i386-tdep.c: Include "symfile.h".
4048 (i386_frameless_signal_p): Consider a function to be frameless if
4049 the pc points at the first instruction of the function.
4050 (i386_frame_chain): Handle (generic) call dummies.
4051 (i386_frame_saved_pc): Likewise.
4052 (i386_frame_init_saved_regs): Remove code dealing with call
4053 dummies on the stack.
4054 (i386_push_dummy_frame): Removed.
4055 (i386_call_dummy_words): Removed.
4056 (i386_fix_call_dummy): Removed.
4057 (i386_push_return_address): New function.
4058 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
4059 parameter, and don't call get_current_frame.
4060 (i386_pop_frame): New function.
4061 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
4062 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
4063 entry_point_address, set call_dummy_breakpoint_offset to 0, set
4064 call_dummy_length to 0, set call_dummy_words to NULL, set
4065 sizeof_call_dummy_words to 0, set fix_call_dummy to
4066 generic_fix_call_dummy, set pc_in_call_dummy to
4067 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
4068 generic_push_dummy_frame, set push_return_address to
4069 i386_push_return_address and set frame_chain_valid to
4070 generic_file_frame_chain_valid.
4072 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4074 * gdbarch.sh (struct regcache): Add opaque declaration.
4075 (EXTRACT_RETURN_VALUE): New architecture method.
4076 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4077 * gdbarch.h, gdbarch.c: Regenerate.
4078 * arch-utils.c (legacy_extract_return_value): New function.
4079 * arch-utils.h (legacy_extract_return_value): Declare.
4080 * values.c (value_being_returned): Re-enable code handling
4081 EXTRACT_STRUCT_VALUE_ADDRESS. Move
4082 deprecated_grub_regcache_for_registers call to block handling
4083 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4084 (EXTRACT_RETURN_VALUE): Do not define.
4086 2002-07-03 Grace Sainsbury <graces@redhat.com>
4088 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4089 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4090 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4091 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4092 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4093 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4094 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4095 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4096 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4097 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4098 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4099 argument so the function fits the prototype in the architecture
4101 (mcore_pop_frame): Remove argument so the function fits the
4102 prototype. Use get_current_frame instead of the argument.
4103 (mcore_push_arguments): Change type of struct_return so the
4104 function can be used in the architecture vector.
4105 (mcore_store_struct_return): Add.
4106 (mcore_frame_init_saved_regs): Add.
4107 (mcore_gdbarch_init): Add function calls to replace the macros
4108 removed from tm-mcore.h
4110 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4112 * infcmd.c (print_return_value): Remove compatibility code calling
4113 deprecated_grub_regcache_for_registers.
4115 * values.c: Include "regcache.h".
4116 (value_being_returned): Update. Use
4117 deprecated_grub_regcache_for_registers to extract the register
4119 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4120 ``struct regcache''.
4121 * Makefile.in (values.o): Add dependency on $(regcache_h).
4123 * inferior.h (run_stack_dummy): Change type of second parameter to
4124 a ``struct regcache''.
4125 * valops.c (hand_function_call): Change type of retbuf to ``struct
4126 regcache''. Allocate using regcache_xmalloc, clean using
4127 make_cleanup_regcache_xfree.
4128 * infcmd.c (run_stack_dummy): Update. Use
4129 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4131 * regcache.c (do_regcache_xfree): New function.
4132 (make_cleanup_regcache_xfree): New function.
4133 * regcache.h (make_cleanup_regcache_xfree): Declare.
4135 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4137 * event-top.c (command_line_handler): Don't read past
4138 beginning of buffer.
4140 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4142 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4144 (varobj_create): Store frame_id for root.
4145 (varobj_gen_name): Use xasprintf.
4146 (varobj_update): Save and restore frame using get_frame_id() and
4148 (create_child): Use xasprintf.
4149 (new_root_variable): Initialize frame_id.
4150 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4151 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4152 to prevent memory leak.
4154 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4156 * valops.c (hand_function_call): Move declaration of retbuf to
4157 start of function, allocate using malloc, add a cleanup but before
4158 the inf_status cleanup, cleanup the buffer. Rename local variable
4159 old_chain to inf_status_cleanup.
4161 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4163 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4165 * cli/cli-decode.c (cmd_func_p): New function.
4166 (cmd_func): New function.
4168 * command.h: Add cmd_func() and cmd_func_p().
4170 2002-07-03 Grace Sainsbury <graces@redhat.com>
4172 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4173 (REGISTER_SIZE): Remove.
4174 (MAX_REGISTER_RAW_SIZE): Remove.
4175 (REGISTER_VIRTUAL_TYPE): Remove.
4176 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4177 (REGISTER_NAME): Remove.
4178 (USE_GENERIC_DUMMY_FRAMES): Remove.
4179 (CALL_DUMMY): Remove.
4180 (CALL_DUMMY_START_OFFSET): Remove.
4181 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4182 (CALL_DUMMY_LOCATION): Remove.
4183 (FIX_CALL_DUMMY): Remove.
4184 (CALL_DUMMY_ADDRESS): Remove.
4185 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4186 (SAVE_DUMMY_FRAME_TOS): Remove.
4187 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4188 (mcore_register_virtual_type): New function.
4189 (mcore_register_byte): New function.
4190 (mcore_register_size): New function.
4191 (mcore_register_name): New function.
4192 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4193 macros removed from tm-mcore.h.
4194 (mcore_dump_tdep): Add.
4195 (_initialize_mcore_tdep): Add gdbarch_register call.
4197 2002-07-03 Mark Kettenis <kettenis@gnu.org>
4199 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4200 frameless_look_for_prologue, such that we actually call this
4203 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4205 * frame.h (frame_address_in_block): New function.
4207 * blockframe.c (frame_address_in_block): New function extracted
4208 from get_frame_block().
4209 (get_frame_block): Use frame_address_in_block().
4210 (block_innermost_frame): Use frame_address_in_block() to match
4211 the frame pc address against the block boundaries rather than
4212 the frame pc directly. This prevents a failure when a frame pc
4213 is actually a return-address pointing immediately after the end
4216 2002-07-02 Grace Sainsbury <graces@redhat.com>
4218 * MAINTAINERS: Add self under write after approval.
4220 2002-07-02 Grace Sainsbury <graces@redhat.com>
4222 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4223 used in architecture vector. The default is
4224 m68k_local_breakpoint_from_pc.
4225 (m68k_local_breakpoint_from_pc): Add.
4226 (enum): Add register numbers from tm-m68k.h.
4227 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4229 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4230 GDB_MULTI_ARCH_PARTIAL.
4231 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4232 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4234 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4235 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4236 to enum in m68k-tdep.c
4238 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4240 * solib-osf.c (open_map): Compute the list of shared libraries
4241 loaded by the inferior, rather than the list of libraries loaded
4242 by GDB itself. Otherwise, GDB ends up reading the symbols from
4243 the wrong shared libraries...
4245 2002-07-02 Mark Kettenis <kettenis@gnu.org>
4247 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4248 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4250 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4252 (FRAMELESS_SIGNAL): Remove function.
4253 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4254 i386_linux_saved_pc_after_call): Removed.
4255 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4256 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4257 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4259 * i386-tdep.c (i386_frameless_signal_p): New function.
4260 (i386_frame_chain): Deal with frameless signals.
4261 (i386_sigtramp_saved_sp): New function.
4262 (i386_frame_saved_pc): Deal with frameless signals.
4263 (i386_saved_pc_after_call): Make sure the correct value is
4264 returned just after entry into a sigtramp.
4265 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4266 i386fbsd4_sc_sp_offset): New variables.
4267 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4268 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4269 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4270 similiar to what we already did for sc_pc_offset.
4271 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4274 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4276 2002-07-02 Michal Ludvig <mludvig@suse.cz>
4278 * config/i386/tm-x86-64linux.h: New.
4279 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4281 * config/i386/nm-x86-64.h: Rename to ...
4282 * config/i386/nm-x86-64linux.h: ... this one.
4283 * config/i386/x86-64linux.mh: Reflect the above change.
4285 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4287 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4288 with sigcontext_addr. Add sc_sp_offset.
4289 (i386bsd_sigtramp_saved_pc): Remove prototype.
4290 (i386bsd_sicontext_addr): Add prototype.
4291 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4292 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4293 (i386_svr4_sigtramp_saved_pc): Removed.
4294 (i386_svr4_sigcontext_addr): New function.
4295 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4296 Initialize tdep->sigcontext_addr instead. Initialize
4297 tdep->sc_pc_offset and tdep->sc_sp_offset.
4298 (i386_gdbarch_init): Likewise.
4299 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4301 (i386bsd_sigtramp_saved_pc): Remove function.
4302 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4303 Initialize tdep->sigcontext_addr instead. Initialize
4305 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4306 of tdep->sigtramp_saved_pc.
4307 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4308 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4311 * i386-tdep.c (i386_frameless_function_invocation,
4312 i386_frame_num_args, i386_frame_init_saved_regs,
4313 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4314 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4315 i386_extract_return_value, i386_store_return_value,
4316 i386_extract_struct_value_address, i386_register_virtual_type,
4317 i386_register_convertible, i386_register_convert_to_virtual,
4318 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4319 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4322 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4324 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4326 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4327 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4328 this macro. Include "value.h".
4330 2002-06-30 Aidan Skinner <aidan@velvet.net>
4332 * ada-exp.tab.c: remove as it's a generated file
4333 * ada-lex.c: remove as it's a generated file
4335 2002-06-30 Mark Kettenis <kettenis@gnu.org>
4337 * config/i386/tm-i386.h (struct frame_info, struct
4338 frame_saved_regs, struct value, struct type): Remove forward
4341 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4342 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4343 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4344 (FILL_FPXREGSET): Define.
4346 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4348 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4349 i[3456]86-*-netbsd* case.
4350 * config/i386/tm-obsd.h: Removed.
4351 * config/i386/obsd.mt: Removed.
4352 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4354 (MH_CFLAGS): Add -DYYDEBUG=0.
4356 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4357 i386nbsd_sc_pc_offset on OpenBSD too.
4359 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4360 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4361 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4363 * i386bsd-tdep.c: Include "arch-utils.h".
4364 (i386bsd_aout_in_solib_call_trampoline): New function.
4365 (i386bsd_init_abi): Set in_solib_call_trampoline to
4366 i386bsd_aout_in_solib_call_trampoline.
4367 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4368 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4370 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4372 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4373 (struct obstack, struct bcache): Add opaque declarations.
4374 * Makefile.in (macrotab_h): Update
4376 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4378 * blockframe.c (generic_find_dummy_frame): Change return type to
4379 ``struct regcache''.
4380 (struct dummy_frame): Replace field ``registers'' with regcache, a
4381 struct regcache object.
4382 (generic_find_dummy_frame): Update.
4383 (generic_push_dummy_frame): Update. Use regcache_xfree,
4384 regcache_xmalloc and regcache_cpy.
4385 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4387 (deprecated_generic_find_dummy_frame): Update.
4388 (generic_read_register_dummy): Update. Use
4389 regcache_read_as_address.
4390 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4391 (generic_get_saved_register): Update. Use regcache_read.
4393 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4395 * Makefile.in (objfiles_h): Add $(bcache_h).
4396 * objfiles.h: Include "bcache.h".
4398 * Makefile.in (symtab_h): Remove $(bcache_h).
4399 * symtab.h: Do not include "bcache.h".
4401 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4403 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4404 generic_func_frame_chain_valid.
4406 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4408 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4409 * config/i386/tm-fbsd.h: Likewise.
4411 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4413 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4414 generic_unwind_get_saved_register.
4416 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4418 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4419 * regcache.c (supply_register): Add missing argument to
4420 register_buffer call.
4422 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4424 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4425 Solaris /bin/grep does not not like it. From Peter Schauer.
4427 2002-06-26 Tom Tromey <tromey@redhat.com>
4429 * command.h (add_setshow_cmd): Declare.
4430 (add_setshow_cmd_full): Declare.
4431 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4432 returns void. Use add_setshow_cmd_full.
4433 (add_setshow_cmd_full): New function.
4434 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4435 (add_setshow_boolean_cmd): Likewise.
4437 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4439 * config/vax/tm-vax.h: Protect from multiple inclusion.
4440 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4441 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4442 * config/vax/tm-vaxbsd.h: ...here. New file.
4443 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4445 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4447 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4448 (BELIEVE_PCC_PROMOTION): Remove.
4449 (AP_REGNUM): Move to...
4450 * config/vax/nm-vax.h: ...here.
4451 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4452 (vax_breakpoint_from_pc): New function.
4453 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4454 and gdbarch_believe_pcc_promotion.
4456 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4458 * Makefile.in (vax_tdep_h): Define.
4459 (vax-tdep.o): Use $(vax_tdep_h).
4460 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4461 (vax_dump_tdep): New function.
4462 (_initialize_vax_tdep): Register vax_dump_tdep.
4463 * vax-tdep.h: Include osabi.h.
4464 (struct gdbarch_tdep): New.
4466 2002-06-26 Andrew Cagney <cagney@redhat.com>
4468 * frame.h (deprecated_generic_find_dummy_frame): Rename
4469 generic_find_dummy_frame.
4470 * blockframe.c (generic_find_dummy_frame): Make static.
4471 (deprecated_generic_find_dummy_frame): New function.
4472 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4473 generic_find_dummy_frame with deprecated_find_dummy_frame.
4474 (sh64_nofp_frame_init_saved_regs): Ditto.
4475 (sh_fp_frame_init_saved_regs): Ditto.
4476 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4477 (s390_frame_chain): Ditto.
4478 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4480 2002-06-26 Grace Sainsbury <graces@redhat.com>
4482 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4483 gdbarch vector are at the top.
4485 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4486 (FRAME_ARGS_ADDRESS): Remove.
4487 (FRAME_LOCALS_ADDRESS): Remove.
4488 (FRAME_NUM_ARGS): Remove.
4489 (FRAME_ARGS_SKIP): Remove.
4490 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4491 (m68k_gdbarch_init): Add gdbarch initializations for macros
4492 undefined in tm-m68k.h
4494 2002-06-26 Grace Sainsbury <graces@redhat.com>
4496 * monitor.h: Add the function regname to monitor_ops
4497 structure. This way NUM_REGS does not have to be a constant.
4498 * monitor.c (monitor_fetch_register): Added support for regname
4499 function. The function is called if the array regnames is NULL.
4500 (monitor_store_register): Same.
4501 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4503 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4504 cpu32bug_cmds.regname to point to new function.
4505 * abug-rom.c (abug_regname): Same as above.
4506 (init_abug_cmds): Same.
4507 * dbug-rom.c (dbug_regname): Same as above.
4508 (init_dbug_cmds): Same.
4509 * remote-est.c (est_regname): Same.
4510 (init_est_cmds): Same.
4511 * rom68k-rom.c (rom68k_regname): Same.
4512 (init_rom68k_cmds): Same.
4514 2002-06-25 Tom Tromey <tromey@redhat.com>
4516 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4518 2002-06-25 Andrew Cagney <cagney@redhat.com>
4520 * infrun.c (stop_registers): Change variable's type to ``struct
4522 (xmalloc_inferior_status): Delete function.
4523 (free_inferior_status): Delete function.
4524 (normal_stop): Use regcache_cpy.
4525 (struct inferior_status): Change type of fields ``stop_registers''
4526 and ``registers'' to ``struct regcache''.
4527 (write_inferior_status_register): Use regcache_write.
4528 (save_inferior_status): Instead of calling
4529 xmalloc_inferior_status, allocate the inf_status buffer directly.
4530 Use regcache_dup_no_passthrough and regcache_dup to save the
4532 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4533 Replace the stop_registers regcache instead of overriding it. Use
4534 regcache_xfree. Instead of calling free_inferior_status, xfree
4535 the buffer directly.
4536 (discard_inferior_status): Use regcache_xfree. Instead of calling
4537 free_inferior_status, xfree the buffer directly.
4538 (build_infrun): Use regcache_xmalloc.
4539 (_initialize_infrun): Delete redundant call to build_infrun.
4541 * Makefile.in (infcmd.o): Add $(regcache_h).
4543 * infcmd.c: Include "regcache.h".
4544 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4545 obtain the address of `stop_registers' register buffer.
4546 (print_return_value): Ditto.
4548 * inferior.h (struct regcache): Add opaque declaration.
4549 (stop_registers): Change variable's declared type to ``struct
4552 2002-06-24 Tom Tromey <tromey@redhat.com>
4554 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4555 * target.c (initialize_targets): Fixed typo in
4556 trust-readonly-sections `show' documentation.
4558 * main.c: Marked all strings with _().
4560 2002-06-24 Don Howard <dhoward@redhat.com>
4562 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4563 that means max CORE_ADDR+1.
4564 (lookup_mem_region): Ditto.
4565 (mem_info_command): Ditto.
4567 2002-06-24 Grace Sainsbury <graces@redhat.com>
4569 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4570 (REGISTER_BYTES_OK): Remove.
4571 (REGISTER_BYTES): Remove.
4572 (STORE_STRUCT_RETURN): Remove.
4573 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4574 (STORE_RETURN_VALUE): Remove.
4575 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4576 (FRAME_CHAIN): Remove.
4577 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4578 (FRAME_SAVED_PC): Remove.
4579 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4580 (m68k_store_struct_return): Add.
4581 (m68k_deprecated_extract_return_value): Add.
4582 (m68k_deprecated_extract_struct_value_address): Add.
4583 (m68k_store_return_value): Add.
4584 (m68k_frame_chain): Add.
4585 (m68k_frameless_function_invocation): Add.
4586 (m68k_frame_saved_pc): Add.
4587 (m68k_gdbarch_init): added set_gdbarch calls for new
4588 functions and deleted macros.
4590 2002-06-23 Tom Tromey <tromey@redhat.com>
4592 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4593 (ALLDEPFILES): Likewise.
4594 (udiheaders): Removed.
4595 (udip2soc.o): Likewise.
4596 (udi2go32.o): Likewise.
4598 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4600 2002-06-22 Andrew Cagney <ac131313@redhat.com>
4602 * infrun.c (_initialize_infrun): Delete unnecessary call to
4605 * regcache.h: Update comments describing the regcache_cpy family
4607 (regcache_save, regcache_restore): Delete declaration.
4608 (regcache_save_no_passthrough): Delete declaration.
4609 (regcache_restore_no_passthrough): Delete declaration.
4610 * regcache.c (regcache_save): Delete function.
4611 (regcache_save_no_passthrough): Delete function.
4612 (regcache_restore): Delete function.
4613 (regcache_restore_no_passthrough): Delete function.
4615 2002-06-21 Andrew Cagney <ac131313@redhat.com>
4617 * config/m68k/tm-m68k.h: Fix typo.
4618 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4619 (m68k_frame_init_saved_regs): Declare.
4621 2002-06-21 Jim Blandy <jimb@redhat.com>
4623 Remove some vestiges of Harris 88k support.
4624 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4625 register numbering quirk.
4626 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4627 odd symbols occurring in Harris 88k ELF targets.
4629 2002-06-21 Tom Tromey <tromey@redhat.com>
4631 * gdb_locale.h: New file.
4632 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4633 (defs_h): Added gdb_locale.h.
4634 * configure, config.in: Rebuilt.
4635 * configure.in (PACKAGE): Define.
4636 * defs.h: Include gdb_locale.h.
4637 * main.c (captured_main): Call setlocale, bindtextdomain,
4640 2002-06-21 Dave Brolley <brolley@redhat.com>
4642 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4643 * config/frv/frv.mt: New file.
4644 * config/frv/tm-frv.h: New file.
4645 * configure.tgt: Support frv-*-*.
4646 * Makefile.in (frv-tdep.o): New target.
4647 * frv-tdep.c: New file.
4648 * NEWS: Mention frv.
4650 2002-06-21 Dave Brolley <brolley@redhat.com>
4652 * MAINTAINERS: Add self to "Write After Approval" list.
4654 2002-06-21 Grace Sainsbury <graces@redhat.com>
4656 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4657 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4658 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4659 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4660 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4662 * m68k-tdep.c: Include arch-utils.h
4663 (m68k_register_raw_size): Add.
4664 (m68k_register_virtual_size): Add.
4665 (m68k_register_virtual_type): Add.
4666 (m68k_register_name): Add.
4667 (m68k_stack_align): Add.
4668 (m68k_register_byte): Add.
4669 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4672 2002-06-21 Grace Sainsbury <graces@redhat.com>
4674 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4675 m68k_find_saved_regs.
4676 (m68k_pop_frame): Removed saved_regs structure, and replaced
4677 references to it with frame->saved_regs.
4678 (m68k_gdbarch_init): Added function calls to initialize the
4680 (m68k_fix_call_dummy): Add.
4681 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4682 (CALL_DUMMY): Remove.
4683 (CALL_DUMMY_LENGTH): Remove.
4684 (CALL_DUMMY_START_OFFSET): Remove.
4685 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4686 (FIX_CALL_DUMMY): Remove.
4687 (PUSH_DUMMY_FRAME): Remove.
4688 (POP_FRAME): Remove.
4690 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4692 * parse.c (parse_fprintf): New function used to avoid calls to
4693 fprintf in bison parser generated debug code.
4694 * parser-defs.h: Declaration of new parse_fprintf function.
4695 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4696 Set YYDEBUG to 1 by default.
4697 Set YYFPRINTF as parse_fprintf.
4699 2002-06-21 Michal Ludvig <mludvig@suse.cz>
4701 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4703 (pointer_encoding, enum ptr_encoding): New.
4704 (execute_cfa_program): Take care about pointer encoding.
4705 (dwarf2_build_frame_info): Only call parse_frame_info for
4706 .debug_frame and .eh_frame.
4707 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4708 fixed augmentation handling, added relative addressing,
4709 ignore duplicate FDEs. Added comments.
4710 * dwarf2cfi.c: Reindented.
4712 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
4714 * event-top.c (command_handler): Don't use space_at_cmd_start
4715 unless there is sbrk() on the host. Assign time and space data
4716 to union fields of the appropriate length.
4718 2002-06-20 Michal Ludvig <mludvig@suse.cz>
4720 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4721 x86_64_register_name. Return type changed to 'const char *'.
4722 (x86_64_register_name2nr): Rename to x86_64_register_number.
4723 (x86_64_gdbarch_init): Update to reflect the change.
4724 * x86-64-tdep.h: Ditto.
4725 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4726 (supply_fpregset): Ditto.
4728 2002-06-19 Andrew Cagney <cagney@redhat.com>
4730 * regcache.h: Update copyright.
4731 (struct regcache, struct gdbarch): Add opaque declarations.
4732 (current_regcache): Declare global variable.
4733 (regcache_read, regcache_write): Add gdbarch parameter.
4734 (regcache_save, regcache_save_no_passthrough)
4735 (regcache_restore, regcache_restore_no_passthrough)
4736 (regcache_dup, regcache_dup_no_passthrough)
4737 (regcache_cpy, regcache_cpy_no_passthrough)
4738 (deprecated_grub_regcache_for_registers)
4739 (deprecated_grub_regcache_for_register_valid)
4740 (regcache_valid_p): Add function declarations.
4742 * regcache.c: Update copyright.
4743 (regcache_descr_handle): New global variable.
4744 (struct regcache_descr): Define.
4745 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4746 (regcache_descr, xfree_regcache_descr): New functions.
4747 (struct regcache): Define.
4748 (regcache_xmalloc, regcache_xfree): New functions.
4749 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4750 (regcache_dup, regcache_dup_no_passthrough): New functions.
4751 (regcache_valid_p, regcache_read_as_address): New functions.
4752 (deprecated_grub_regcache_for_registers): New function.
4753 (deprecated_grub_regcache_for_register_valid): New function.
4754 (current_regcache): New global variable.
4755 (register_buffer): Add regcache parameter. Update calls.
4756 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4757 (read_register_gen, write_register_gen): Update register_buffer
4758 call. Test for legacy_p instead of gdbarch_register_read_p or
4759 gdbarch_register_write_p.
4760 (regcache_collect): Update register_buffer call.
4761 (build_regcache): Rewrite. Use deprecated grub functions.
4762 (regcache_save, regcache_save_no_passthrough): New functions.
4763 (regcache_restore, regcache_restore_no_passthrough): New
4765 (_initialize_regcache): Create the regcache_data_handle. Swap
4766 current_regcache global variable.
4768 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4769 parameter to regcache_read and regcache_write calls.
4770 (sh4_register_read): Ditto.
4771 (sh64_pseudo_register_read): Ditto.
4772 (sh64_register_read): Ditto.
4773 (sh_pseudo_register_write): Ditto.
4774 (sh4_register_write): Ditto.
4775 (sh64_pseudo_register_write): Ditto.
4776 (sh64_register_write): Ditto.
4778 * defs.h (XCALLOC): Define.
4780 2002-06-19 Grace Sainsbury <graces@redhat.com>
4782 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4783 * m68k-tdep.c (m68k_gdbarch_init): Added.
4784 (m68k_dump_tdep): Added.
4786 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4788 * ada-lang.c (fill_in_ada_prototype): Update comment.
4790 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4792 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4794 (mips_abi_string, mips_abi_strings): New.
4795 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4796 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4797 tdep->mips_abi_string. Honor mips_abi_string. Default to
4798 O32 if no ABI is found.
4799 (mips_dump_tdep): Use mips_abi_strings.
4800 (mips_abi_update): New function.
4801 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4802 ``set mips abi'' and ``show mips abi''. Check the size of
4805 2002-06-19 Andrew Cagney <cagney@redhat.com>
4807 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4810 2002-06-18 Joel Brobecker <brobecker@gnat.com>
4812 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4813 current frame using only the first stack size adjustment. All
4814 subsequent size adjustments are not considered to be part of
4815 the "static" part of the current frame.
4816 Compute the address of the saved registers relative to the
4817 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4818 in use in this frame.
4820 2002-06-18 Don Howard <dhoward@redhat.com>
4822 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4823 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4824 suggesting this solution.
4826 2002-06-18 Andrew Cagney <ac131313@redhat.com>
4828 * config/romp/xm-rtbsd.h: Delete file.
4829 * config/romp/rtbsd.mh: Delete file.
4831 2002-06-18 Keith Seitz <keiths@redhat.com>
4833 * breakpoint.c (condition_command): Post breakpoint_modify
4834 when a condition is added to an existing breakpoint.
4835 (commands_command): Likewise for commands.
4836 (set_ignore_count): Likewise for ignore counts.
4837 If no tty, do not simply return, still need to send event
4839 (ignore_command): Only print a newline if the command came
4841 Don't call breakpoints_changed, since this is now properly
4842 handled by set_ignore_count.
4844 2002-06-18 Andrew Cagney <cagney@redhat.com>
4846 * MAINTAINERS: Note that cris-elf target can be compiled with
4848 * cris-tdep.c (cris_register_name): Make return type constant.
4849 (cris_breakpoint_from_pc): Ditto.
4851 2002-06-18 Michal Ludvig <mludvig@suse.cz>
4853 * frame.h (struct frame_info): Change type of context to
4856 2002-06-17 Andrew Cagney <cagney@redhat.com>
4858 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4860 * gdbarch.h, gdbarch.c: Regenerate.
4861 * config/mips/tm-mips.h (mips_register_name): Update.
4862 * i386-tdep.h (i386_register_name): Update.
4863 * mips-tdep.c (mips_register_name): Update
4864 * alpha-tdep.c (alpha_register_name): Update.
4865 * arch-utils.c (legacy_register_name): Update.
4866 * arch-utils.h (legacy_register_name): Update.
4867 * avr-tdep.c (avr_register_name): Update.
4868 * ia64-tdep.c (ia64_register_name): Update.
4869 * i386-tdep.c (i386_register_name): Update.
4870 * sparc-tdep.c (sparc32_register_name): Update.
4871 (sparc64_register_name): Update.
4872 (sparclite_register_name): Update.
4873 (sparclet_register_name): Update.
4874 * sh-tdep.c (sh_generic_register_name): Update.
4875 (sh_sh_register_name): Update.
4876 (sh_sh3_register_name): Update.
4877 (sh_sh3e_register_name): Update.
4878 (sh_sh_dsp_register_name): Update.
4879 (sh_sh3_dsp_register_name): Update.
4880 (sh_sh4_register_name): Update.
4881 (sh_sh64_register_name): Update.
4882 * s390-tdep.c (s390_register_name): Update.
4883 * rs6000-tdep.c (rs6000_register_name): Update.
4884 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4885 (ns32k_register_name_32382): Update.
4886 * d10v-tdep.c (d10v_ts2_register_name): Update.
4887 (d10v_ts3_register_name): Update.
4888 * xstormy16-tdep.c (xstormy16_register_name): Update.
4889 * vax-tdep.c (vax_register_name): Update.
4890 * v850-tdep.c (v850_register_name): Update.
4891 * m68hc11-tdep.c (m68hc11_register_name): Update.
4892 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4893 (am33_register_name): Update.
4895 2002-06-17 Grace Sainsbury <graces@redhat.com>
4897 * m68k-tdep.c: Reindented.
4899 2002-06-17 Andrew Cagney <ac131313@redhat.com>
4901 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4902 list of predefined types.
4904 2002-06-16 Mark Kettenis <kettenis@gnu.org>
4906 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4907 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4908 REGISTER_CONVERT_TO_RAW): Remove defines.
4909 (i386_register_virtual_type, i386_register_convertible,
4910 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4912 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4913 macros mentioned above.
4915 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4916 (i386lynx_saved_pc_after_call): Remove prototype.
4917 * i386ly-tdep.c: Include "i386-tdep.h".
4918 (i386lynx_saved_pc_after_call): Make static. Use
4919 read_memory_nobpt instead of read_memory. Use
4920 read_memory_unsigned_integer instead of read_memory_integer.
4921 (i386lynx_init_abi): New function.
4922 (i386lynx_coff_osabi_sniffer): New function.
4923 (_initialize_i386bsd_tdep): New function.
4925 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4926 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4927 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4928 (i386_fix_call_dummy): Remove prototype.
4929 * i386-tdep.c (i386_call_dummy_words): New variable.
4930 (i386_gdbarch_init): Adjust for removal of the
4931 macros mentioned above.
4933 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4935 * command.h (add_setshow_auto_boolean_cmd): Replace
4936 add_set_auto_boolean_cmd.
4937 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4938 add_set_auto_boolean_cmd.
4939 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4940 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4941 mask-address'' command.
4942 (show_mask_address): Add cmd parameter.
4943 * remote.c (add_packet_config_cmd): Update. Change type of
4944 set_func and show_func to cmd_sfunc_ftype.
4945 (_initialize_remote): Update `set remote Z-packet'
4946 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4947 (show_remote_protocol_e_packet_cmd): Ditto.
4948 (show_remote_protocol_E_packet_cmd): Ditto.
4949 (show_remote_protocol_P_packet_cmd): Ditto.
4950 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4951 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4952 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4953 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4954 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4955 (show_remote_protocol_Z_packet_cmd): Ditto.
4956 (show_remote_protocol_binary_download_cmd): Ditto.
4957 (show_remote_cmd): Pass NULL to all of above.
4959 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4961 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4962 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4963 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4964 POP_FRAME): Remove defines.
4965 (i386_push_arguments, i386_store_struct_return,
4966 i386_extract_return_value, i386_store_return_value,
4967 i386_extract_struct_value_address, i386_push_dummy_frame,
4968 i386_pop_frame): Renove prototypes.
4969 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4970 macros mentioned above.
4972 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4974 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4975 add_set_boolean_cmd.
4976 (add_setshow_cmd): New function.
4977 * command.h (add_setshow_boolean_cmd): Replace
4978 add_set_boolean_cmd.
4979 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4980 and ``set rdiromatzero''.
4981 * maint.c (_initialize_maint_cmds): Update commented out code.
4982 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4983 * target.c (initialize_targets): Update `set
4984 trust-readonly-sections'.
4985 * remote.c (_initialize_remote): Update `set remotebreak'.
4987 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4989 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4990 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4991 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4992 fit into multi-arch framework.
4993 (i386_breakpoint_from_pc): New function.
4994 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4997 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4998 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4999 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
5000 (i386_frameless_function_invocation, i386_frame_num_args,
5001 i386_frame_init_saved_regs): Remove prototypes.
5002 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5003 macros mentioned above.
5005 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5007 * cli/cli-decode.c (set_cmd_cfunc): Update.
5008 (set_cmd_sfunc): Update.
5009 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
5010 (set_cmd_sfunc, set_cmd_cfunc): Update.
5011 * cli/cli-decode.h: Update.
5013 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5015 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
5016 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
5018 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5020 * defs.h (auto_boolean): Declare enum.
5021 * command.h (cmd_auto_boolean): Delete enum.
5022 * mips-tdep.c (mask_address_var): Update.
5023 (mips_mask_address_p): Update.
5024 (show_mask_address): Update.
5025 * remote.c (struct packet_config): Update.
5026 (update_packet_config): Update.
5027 (show_packet_config_cmd): Update.
5028 (packet_ok): Update.
5029 (add_packet_config_cmd): Update.
5030 (_initialize_remote):
5031 * command.h: Update.
5032 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
5033 (do_setshow_command): Update.
5034 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
5035 * cli/cli-decode.h: Update.
5037 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5039 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
5040 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
5041 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
5042 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
5043 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
5044 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
5046 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
5047 list of DJGPP COFF targets.
5049 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
5050 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
5051 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
5052 (FP0_REGNUM): Remove define.
5053 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5054 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
5055 (i386_register_virtual_size): Remove protoype.
5056 * i386-tdep.c (i386_register_virtual_size): Removed.
5057 (i386_extract_return_value, i386_store_return_value): Use
5058 FP0_REGNUM instead of NUM_FREGS to determine whether the
5059 floating-point registers are available.
5060 (i386_gdbarch_init): Tweak FIXME about FPU registers.
5061 Adjust for removal of macros mentioned above.
5063 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5065 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
5067 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5069 (supply_gregset, fill_gregset): Remove use of register keyword and
5070 remove declaration for regmap. Use I386_NUM_GREGS instead of
5071 NUM_REGS and NUM_FREGS.
5072 (FPREGSET_FSAVE_OFFSET): Remove.
5073 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5074 NUM_FREGS to determine whether the floating-point registers are
5077 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5078 gnu_store_registers): Replace usage of NUM_GREGS with
5081 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5082 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5083 usage of NUM_GREGS with I386_NUM_GREGS.
5085 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5087 * i386bsd-nat.c: Include "i386-tdep.h".
5088 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5091 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5092 and associated comment. They no longer make any sense, since we
5093 don't use this file anymore on Linux.
5095 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5096 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5097 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5098 elements in these arrays.
5099 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5102 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5104 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5105 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5107 2002-06-14 Andrew Cagney <cagney@redhat.com>
5109 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5110 EXTRACT_RETURN_VALUE.
5111 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5112 EXTRACT_STRUCT_VALUE_ADDRESS.
5113 * gdbarch.h, gdbarch.c: Regenerate.
5115 * values.c (value_being_returned): Handle
5116 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5117 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5119 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5120 * arm-tdep.c (arm_gdbarch_init): Update.
5121 * avr-tdep.c (avr_gdbarch_init): Update.
5122 * cris-tdep.c (cris_gdbarch_init): Update.
5123 * d10v-tdep.c (d10v_gdbarch_init): Update.
5124 * ia64-tdep.c (ia64_gdbarch_init): Update.
5125 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5126 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5127 * s390-tdep.c (s390_gdbarch_init): Update.
5128 * sh-tdep.c (sh_gdbarch_init): Update.
5129 * s390-tdep.c (s390_gdbarch_init): Update.
5130 * sparc-tdep.c (sparc_gdbarch_init): Update.
5131 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5132 * v850-tdep.c (v850_gdbarch_init): Update.
5133 * vax-tdep.c (vax_gdbarch_init): Update.
5134 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5135 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5137 * config/arc/tm-arc.h: Update.
5138 * config/d30v/tm-d30v.h: Update.
5139 * config/fr30/tm-fr30.h: Update.
5140 * config/h8300/tm-h8300.h: Update.
5141 * config/h8500/tm-h8500.h: Update.
5142 * config/i386/tm-i386.h: Update.
5143 * config/i386/tm-ptx.h: Update.
5144 * config/i386/tm-symmetry.h: Update.
5145 * config/i960/tm-i960.h: Update.
5146 * config/m32r/tm-m32r.h: Update.
5147 * config/m68k/tm-delta68.h: Update.
5148 * config/m68k/tm-linux.h: Update.
5149 * config/m68k/tm-m68k.h: Update.
5150 * config/m88k/tm-m88k.h: Update.
5151 * config/mcore/tm-mcore.h: Update.
5152 * config/mips/tm-mips.h: Update.
5153 * config/mn10200/tm-mn10200.h: Update.
5154 * config/pa/tm-hppa.h: Update.
5155 * config/pa/tm-hppa64.h: Update.
5156 * config/sparc/tm-sp64.h: Update.
5157 * config/sparc/tm-sparc.h: Update.
5158 * config/sparc/tm-sparclet.h: Update.
5159 * config/z8k/tm-z8k.h: Update.
5161 2002-06-14 Andrew Cagney <cagney@redhat.com>
5163 * Makefile.in (i386_linux_tdep_h): Define.
5164 (i386_tdep_h, i387_tdep_h): Define.
5165 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5166 $(i386_tdep_h) and $(i387_tdep_h).
5167 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5169 2002-06-14 Mark Kettenis <kettenis@gnu.org>
5171 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5172 Already covered by the default.
5174 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5175 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5176 (i386_gdbarch_init): Initialize long_double_format and long_double
5179 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5180 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5182 * config/i386/i386sol2.mh: ... here.
5183 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5184 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5185 (SIGCONTEXT_PC_OFFSET): Remove define.
5186 (IN_SIGTRAMP): Remove define.
5187 * i386-sol2-tdep.c: New file.
5189 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5190 * config/i386/tm-i386nw.h: Removed.
5192 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5193 USE_STRUCT_CONVENTION): Remove defines.
5194 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5195 (get_longjmp_target): Remove prototype.
5196 (IN_SIGTRAMP): Remove define.
5197 (i386bsd_in_sigtramp): Remove prototype.
5198 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5199 function. Update comment accordingly
5200 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5201 (FRAME_SAVED_PC): Remove define.
5202 (i386bsd_frame_saved_pc): Remove prototype.
5203 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5204 GET_LONGJMP_TARGET): Remove defines.
5205 (get_longjmp_target): Remove prototype.
5206 (IN_SIGTRAMP): Remove define.
5207 (i386bsd_in_sigtramp): Remove prototype.
5208 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5209 function. Update comment accordingly
5210 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5211 (FRAME_SAVED_PC): Remove define.
5212 (i386bsd_frame_saved_pc): Remove prototype.
5213 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5215 (USE_STRUCT_CONVENTION): Remove prototype.
5216 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5218 (_initialize_i386bsd_nat): Revise logic to determine some
5219 constants at compile time when compiling a native GDB. Warn if
5220 things don't match up with what we expect.
5221 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5223 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5224 to use date stored in `struct gdbarch_tdep'.
5225 (i386bsd_sigcontext_offset): Remove varaible.
5226 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5227 stored in `struct gdbarch_tdep'.
5228 (i386bsd_frame_saved_pc): Make static.
5229 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5230 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5231 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5232 i386fbsd4_sc_pc_offset): New variables.
5233 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5234 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5236 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5238 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5239 Modify the value of i386fbsd_sigtramp_start and
5240 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5241 i386fbsd_sigtramp_end.
5242 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5245 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5246 define to i386-linux-tdep.h.
5247 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5248 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5250 (i386_linux_register_name, i386_linux_register_byte,
5251 i386_linux_register_raw_size): Remove prototypes.
5252 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5253 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5254 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5255 TARGET_WRITE_PC): Remove defines.
5256 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5257 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5258 i386_linux_write_pc): Remove prototypes.
5259 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5260 (get_longjmp_target): Remove prototype.
5261 * i386-linux-tdep.h: New file.
5262 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5263 * i386-linux-tdep.c: Include "i386-tdep.h" and
5264 "i386-linux-tdep.h".
5265 (i386_linux_register_name, i386_linux_register_byte,
5266 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5267 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5269 (i386_linux_init_abi): New function.
5270 (_initialize_i386_linux_tdep): New function.
5272 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5273 (i386_saved_pc_after_call): Remove prototype.
5274 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5275 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5276 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5277 (i386_register_name, i386_stab_reg_to_regnum,
5278 i386_dwarf_reg_to_regnum): Remove prototypes.
5279 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5280 SIZEOF_SSE_REGS): Remove defines.
5281 (REGISTER_BYTES): Remove define.
5282 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5283 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5284 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5285 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5286 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5287 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5288 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5289 (get_longjmp_target): Remove prototype.
5290 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5291 (sigtramp_saved_pc): Remove define.
5292 (i386v4_sigtramp_saved_pc): Remove prototype.
5293 * config/i386/tm-go32.h (FRAME_CHAIN,
5294 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5295 (i386go32_frame_saved_pc): Remove prototype.
5296 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5297 (get_longjmp_target): Remove prototype.
5298 * i386-tdep.h: Include "osabi.h".
5299 (enum i386_abi): Removed.
5300 (enum struct_return): New enum.
5301 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5302 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5303 sc_pc_offset members.
5304 (i386_gdbarch_register_os_abi): Remove prototype.
5305 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5306 I386_SSE_NUM_REGS): New defines.
5307 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5308 I386_SSE_SIZEOF_REGS): New defines.
5309 (i386_register_name, i386_register_byte, i386_register_raw_size):
5311 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5312 (i386bsd_sigtramp_saved_pc): New prototype.
5313 * i386-tdep.c: Don't include "elf-bfd.h".
5314 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5315 i386_frame_chain, i386_saved_pc_after_call): Make static.
5316 (i386_frame_saved_pc): Rewrite to call architecture dependent
5317 function to deal with signal handlers. Make static.
5318 (i386go32_frame_saved_pc): Removed.
5319 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5321 (i386_get_longjmp_target): New function.
5322 (default_struct_convention, pcc_struct_convention,
5323 reg_struct_convention, valid_conventions, struct_convention): New
5325 (i386_use_struct_convention): New function.
5326 (i386v4_sigtramp_saved_pc): Renamed to
5327 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5328 (i386_pc_in_sigtramp): New function.
5329 (i386_abi_names): Removed.
5330 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5331 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5333 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5334 i386_gdbarch_register_os_abi): Removed.
5335 (struct i386_abi_handler): Removed.
5336 (i386_abi_handler_list): Removed.
5337 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5339 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5340 i386_nw_init_abi): New functions.
5341 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5342 Use set_gdbarch_xxx() calls instead of relying on macros for a
5344 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5345 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5346 Register the various architecture variants defined in this file.
5348 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
5350 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5351 (struct main_type): Remove arg_types member. Update comments for
5353 (TYPE_ARG_TYPES): Remove.
5354 (TYPE_FN_FIELD_ARGS): Update.
5355 (smash_to_method_type): Update prototype.
5357 * c-typeprint.c (cp_type_print_method_args): Take method type
5358 instead of argument list. Use new argument layout. Simplify.
5359 (c_type_print_args): Use new argument layout. Simplify.
5360 (c_type_print_base): Update call to cp_type_print_method_args.
5361 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5362 argument; use die->type instead. Update call to
5363 smash_to_method_type.
5364 (read_structure_scope): Update call to dwarf2_add_member_fn.
5365 * gdbtypes.c (allocate_stub_method): Update comment.
5366 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5367 Use new argument layout.
5368 (check_stub_method): Use new argument layout. Don't count
5369 void as an argument.
5370 (print_arg_types): Update comments. Use new argument layout.
5371 (recursive_dump_type): Don't print arg_types member.
5372 * hpread.c (hpread_read_struct_type): Use new argument layout.
5373 (fixup_class_method_type): Likewise.
5374 (hpread_type_lookup): Likewise.
5375 * stabsread.c (read_type): Update calls to read_args and
5376 smash_to_method_type.
5377 (read_args): Use new argument layout. Simplify.
5378 * valops.c (typecmp): Use new argument layout. Update parameters
5379 and comments. Simplify.
5380 (hand_function_call): Use new argument layout.
5381 (search_struct_method): Update call to typecmp.
5382 (find_overload_match): Use new argument layout.
5384 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5386 * NEWS: Mention multithreaded debug support for gdbserver.
5388 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5390 * MAINTAINERS: Mention NEWS.
5392 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5394 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5395 (struct mips_objfile_private, compare_pdr_entries): New.
5396 (non_heuristic_proc_desc): Read the ".pdr" section if it
5399 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5401 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5402 (arm_debug): New static variable.
5403 (_initialize_arm_tdep): Add ``set debug arm'' command.
5405 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5407 * Makefile.in (sim_arm_h): Define.
5408 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5409 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5410 (arm_register_sim_regno): New function, map an internal REGNUM
5411 onto a simulator register number.
5412 (arm_gdbarch_init): Set register_sim_regno.
5414 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
5416 * MAINTAINERS: Add self.
5418 2002-06-11 Jim Blandy <jimb@redhat.com>
5420 * source.c (source_info): Mention whether the symtab has
5421 information about preprocessor macros.
5423 Call the command `info macro', not `show macro'.
5424 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5426 (_initialize_macrocmd): Register `info_macro_command' in
5427 `infolist', not `showlist'.
5429 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
5431 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5432 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5433 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5434 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5435 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5437 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5438 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5439 (_initialize_mips_tdep): Remove dead code.
5440 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5441 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5442 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5443 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5444 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5445 MIPS_LAST_FP_ARG_REGNUM): Remove.
5447 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5449 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5450 (unwind_tmp_obstack_free, parse_frame_info)
5451 (update_context, cfi_read_fp, cfi_write_fp)
5452 (cfi_frame_chain, cfi_init_extra_frame_info)
5453 (cfi_virtual_frame_pointer): Use the above function.
5454 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5456 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
5458 * v850-tdep.c (v850_type_is_scalar): New function.
5459 (v850_use_struct_convention): Match current gcc implementation
5460 as close as possible.
5461 (v850_push_arguments): Fix stack_offset handling. Don't write
5462 struct_addr into register. This is done by v850_store_struct_return.
5463 (v850_extract_return_value): Care for structs.
5464 (v850_store_return_value): Ditto.
5465 (v850_store_struct_return): Actually write address.
5467 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5469 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5470 without debug information too.
5472 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5474 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5475 Make multi-arch pure.
5476 * gdbarch.h, gdbarch.c: Re-generate.
5477 * arm-tdep.c (arm_print_float_info): Update.
5478 * arch-utils.h (default_print_float_info): Update.
5479 * arch-utils.c (default_print_float_info): Update.
5480 * infcmd.c (float_info): Update call.
5482 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5484 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5485 the front of the initialize list.
5487 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5489 * infrun.c (struct inferior_status): Replace fields
5490 selected_frame_address and selected_level with field
5492 (save_inferior_status): Update. Use get_frame_id.
5493 (struct restore_selected_frame_args): Delete.
5494 (restore_selected_frame): Update. Use frame_find_by_id.
5495 (restore_inferior_status): Update.
5497 * breakpoint.h (struct breakpoint): Change type of
5498 watchpoint_frame to frame_id.
5499 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5500 call to get_current_frame.
5501 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5503 (watchpoint_check): Use frame_find_by_id.
5505 * frame.h (record_selected_frame): Delete declaration.
5506 * stack.c (record_selected_frame): Delete function.
5508 * frame.h (struct frame_id): Define.
5509 (get_frame_id): Declare.
5510 (frame_find_by_id): Declare.
5511 * frame.c (frame_find_by_id): New function.
5512 (get_frame_id): New function.
5514 2002-06-10 Andrey Volkov <avolkov@transas.com>
5516 * ser-e7kpc.c: Fix duplicated define and call of
5517 _initialize_ser_e7000pc
5519 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5521 * signals/signals.c (target_signal_from_host): Fix #ifdef
5523 (do_target_signal_to_host): Likewise.
5525 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5527 * mips-tdep.c (mips_find_abi_section): New function.
5528 (mips_gdbarch_init): Call it.
5530 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5532 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5533 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5534 after Andrew's 2002-06-08 gdbarch change.
5536 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5538 * i386-linux-nat.c (suppy_gregset): Don't supply
5539 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5541 (fill_gregset): Don't fetch it under the same circumstances.
5543 2002-06-09 Andrew Cagney <cagney@redhat.com>
5545 * Makefile.in (callback_h): Define.
5546 (remote_sim_h): Update path to remote-sim.h.
5547 (remote-rdp.o): Add $(callback_h).
5548 (remote-sim.o): Use $(callback_h).
5549 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5550 * remote-rdp.c: Include "gdb/callback.h".
5552 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5554 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5555 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5557 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5559 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5560 * rdi-share/serpardr.c: Ditto.
5561 * rdi-share/unixcomm.c: Ditto.
5562 * rdi-share/serdrv.c: Ditto.
5563 * rdi-share/hostchan.h: Ditto.
5564 * rdi-share/hostchan.c: Ditto.
5565 * rdi-share/host.h: Ditto.
5566 * rdi-share/devsw.c: Ditto.
5568 * objfiles.h: Change type of obj_private to void pointer.
5569 * pa64solib.c: Update copyright. Don't include "assert.h", use
5570 strcmp instead of STREQ, use LONGEST, do not use PTR
5571 * somsolib.c: Ditto.
5573 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5574 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5575 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5577 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5579 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5580 (default_get_saved_register): Delete function.
5581 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5582 generic_unwind_get_saved_register.
5583 * gdbarch.h, gdbarch.c: Re-generate.
5585 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5587 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5588 generic_func_frame_chain_valid.
5589 * gdbarch.h, gdbarch.c: Re-generate.
5590 * blockframe.c (generic_func_frame_chain_valid): Only check
5591 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5592 passing FP to PC_IN_CALL_DUMMY.
5595 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5597 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5598 (register_gdbarch_data): Initialize init_p.
5599 (gdbarch_data): Initialize data pointer using the init function.
5600 (init_gdbarch_data): Delete function.
5601 (gdbarch_update_p): Update.
5602 (initialize_non_multiarch): Update.
5603 (struct gdbarch): Add field initialized_p.
5604 * gdbarch.h, gdbarch.c: Re-generate.
5606 2002-06-07 Michal Ludvig <mludvig@suse.cz>
5608 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5609 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5610 better do the things actually here.
5611 * x86-64-tdep.c (x86_64_register_name2nr): New.
5612 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5613 (x86_64_gdbarch_init): Respect the above change.
5614 * x86-64-tdep.h (x86_64_register_name2nr)
5615 (x86_64_register_nr2name): Add prototypes.
5616 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5618 2002-06-06 Michael Snyder <msnyder@redhat.com>
5620 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5621 Delete extra braces and re-indent.
5622 (d10v_store_return_value): Char return values
5623 must be shifted over by one byte in R0.
5624 (d10v_extract_return_value): Delete extra braces, re-indent.
5626 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5628 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5629 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5630 (d10v_integer_to_address): Rewrite.
5631 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5632 the d10v specific functions which take care of converting to the
5635 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5637 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5638 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5640 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5642 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5644 * config/tm-linux.h: Ditto.
5645 * config/alpha/tm-alphalinux.h: Ditto.
5646 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5647 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5648 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5649 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5650 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5651 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5652 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5653 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5654 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5655 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5656 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5657 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5658 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5659 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5660 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5661 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5662 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5663 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5664 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5665 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5666 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5667 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5668 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5669 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5670 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5671 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5672 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5673 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5674 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5675 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5676 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5677 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5678 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5679 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5680 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5681 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5682 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5684 2002-05-04 Aidan Skinner <aidan@velvet.net>
5686 * ada-exp.tab.c: New file
5687 * ada-exp.y: New file
5688 * ada-lang.c: New file
5689 * ada-lang.h: New file
5690 * ada-lex.c: New file
5691 * ada-lex.l: New file
5692 * ada-tasks.c: New file
5693 * ada-typeprint.c: New file
5694 * ada-valprint.c: New file
5696 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5698 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5699 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5701 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5703 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5704 insetead of ppc-linux-tdep.o.
5705 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5706 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5708 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5710 2002-05-07 Christian Groessler <chris@groessler.org>
5711 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5712 bit register contents for little endian hosts.
5714 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5716 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5719 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5721 * gdbarch.h: Regenerate.
5723 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5725 * MAINTAINERS: Add everyone to write-after-approval list.
5727 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5729 * stack.c (frame_info): Use frame_register_unwind instead of
5730 saved_regs. Mention when the SP is on the stack or in a register.
5732 * frame.h (frame_register_unwind_ftype): Define. Document.
5733 (struct frame_info): Add field register_unwind and
5734 register_unwind_cache.
5735 (frame_register_unwind): Declare.
5736 (generic_unwind_get_saved_register): Declare.
5738 * frame.c (frame_register_unwind): New function.
5739 (generic_unwind_get_saved_register): New function.
5741 * blockframe.c (generic_call_dummy_register_unwind): New function.
5742 (frame_saved_regs_register_unwind): New function.
5743 (set_unwind_by_pc): New function.
5744 (create_new_frame): New function.
5745 (get_prev_frame): New function.
5747 2002-05-30 Andrew Cagney <ac131313@redhat.com>
5749 * a29k-share/: Delete directory.
5750 * remote-vx29k.c: Delete file.
5752 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5754 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5755 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5757 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5759 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5760 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5763 (sparcnbsd-tdep.o): New dependency lists.
5764 * NEWS: Note new UltraSPARC NetBSD native configuration.
5765 * configure.host (sparc64-*-netbsd*): New host.
5766 * configure.tgt (sparc-*-netbsdelf*)
5767 (sparc-*-netbsd*): Set gdb_target to nbsd.
5768 (sparc64-*-netbsd*): New target.
5769 * sparc64nbsd-nat.c: New file.
5770 * sparcnbsd-nat.c: New file.
5771 * sparcnbsd-tdep.c: New file.
5772 * sparcnbsd-tdep.h: New file.
5773 * config/sparc/nbsd.mt: New file.
5774 * config/sparc/nbsd64.mh: New file.
5775 * config/sparc/nbsd64.mt: New file.
5776 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5777 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5779 * config/sparc/nbsdaout.mt: Remove.
5780 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5781 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5783 * config/sparc/nbsdelf.mt: Remove.
5784 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5785 sparc-nat.c compatiblity defines.
5786 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5787 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5788 * config/sparc/tm-nbsd64.h: New file.
5789 * config/sparc/tm-nbsdaout.h: Remove.
5790 * config/sparc/xm-nbsd.h: Remove.
5792 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5794 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5795 * sparc-tdep.c: Include osabi.h.
5796 (gdbarch_tdep): Add osabi member.
5797 (_initialize_sparc_tdep): Use gdbarch_register.
5798 (sparc_gdbarch_init): Use generic OS ABI framework.
5799 (sparc_dump_tdep): New function.
5801 2002-05-30 Kevin Buettner <kevinb@redhat.com>
5803 * corefile.c (do_captured_read_memory_integer): Return non-zero
5805 (safe_read_memory_integer): Copy result of memory read when
5806 status is non-zero. Also, add comments.
5808 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5810 * Makefile.in (ppc_tdep_h): Define.
5813 (rs6000-tdep.o): Use $(ppc_tdep_h).
5816 (ppcnbsd-tdep.o): New dependency lists.
5817 * ppc-tdep.h: Use generic OS ABI framework.
5818 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5819 (ppc_linux_init_abi): New functions.
5820 (ppc_sysv_abi_broken_use_struct_convention)
5821 (ppc_sysv_abi_use_struct_convention)
5822 (ppc_sysv_abi_push_arguments): Move to...
5823 * ppc-sysv-tdep.c: ...here.
5824 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5825 * rs6000-tdep.c (process_note_abi_tag_sections)
5826 (get_elfosabi): Remove.
5827 (rs6000_gdbarch_init): Use generic OS ABI framework.
5828 (rs6000_dump_tdep): New function.
5829 (_initialize_rs6000_tdep): Use gdbarch_register.
5830 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5831 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5832 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5833 of ppc-linux-tdep.o.
5834 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5835 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5836 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5837 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5838 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5839 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5841 2002-05-29 Jim Blandy <jimb@redhat.com>
5843 * macroscope.c (default_macro_scope): Put `void' in empty argument
5846 2002-05-29 Andrew Cagney <ac131313@redhat.com>
5848 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5849 * arch-utils.c: Include "sim-regno.h".
5850 * gdbarch.sh: Don't include "sim-regno.h".
5851 * gdbarch.h, gdbarch.c: Regenerate.
5852 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5854 * arch-utils.h (legacy_register_sim_regno): To here.
5855 * remote-sim.c (legacy_register_sim_regno): Move function from
5857 * arch-utils.c (legacy_register_sim_regno): To here.
5859 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5861 * sim-regno.h: New file.
5862 * Makefile.in (sim_regno_h): Define.
5863 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5864 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5865 (legacy_register_sim_regno): New function.
5866 (one2one_register_sim_regno): New function.
5867 (gdbsim_fetch_register): Rewrite.
5868 (gdbsim_store_register): Only store a register when
5869 REGISTER_SIM_REGNO is valid.
5870 * d10v-tdep.c: Include "sim-regno.h".
5871 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5872 (d10v_ts3_register_sim_regno): Ditto.
5873 * gdbarch.sh: Include "sim-regno.h".
5874 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5875 * gdbarch.h, gdbarch.c: Regenerate.
5876 * arch-utils.h (default_register_sim_regno): Delete declaration.
5877 * arch-utils.c (default_register_sim_regno): Delete function.
5879 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5881 * ppcnbsd-nat.c: Rewrite.
5882 * ppcnbsd-tdep.c: New file.
5883 * ppcnbsd-tdep.h: New file.
5884 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5885 solib.o, and solib-svr4.o.
5886 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5887 nbsd-tdep.o, and corelow.o.
5889 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5891 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5892 `tr' and `sed'. Mention that `broken' targets are not expected to
5895 2002-05-27 Michal Ludvig <mludvig@suse.cz>
5897 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5898 Let PC point right after the prologue before looking up symbols.
5900 2002-05-27 Martin M. Hunt <hunt@redhat.com>
5902 * i386-tdep.c (i386_register_virtual_type): Return
5903 builtin_type_vec128i for SSE registers.
5905 * gdbtypes.h (builtin_type_vec128i): Declare.
5907 * gdbtypes.c (build_builtin_type_vec128i): New function.
5908 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5909 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5910 (build_gdbtypes): Initialize new builtin vector types.
5911 (_initialize_gdbtypes): Register new vector types with gdbarch.
5913 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5915 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5916 since it has been multi-arch'd.
5917 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5918 Move Alpha and VAX multi-arch news entries to same section
5919 as other multi-arch news.
5921 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5923 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5924 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5925 static. Rename some register numbers to put them in ns32k-tdep
5927 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5928 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5930 (_initialize_ns32k_tdep): Use gdbarch_register.
5931 * ns32k-tdep.h: New file.
5932 * ns32knbsd-tdep.c: New file.
5933 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5934 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5935 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5936 REGISTER_BYTES, REGISTER_BYTE): Remove.
5937 * config/ns32k/tm-ns32k.h: New file.
5938 * config/ns32k/tm-umax.h: Remove.
5940 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5942 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5943 ns32k_store_struct_return, ns32k_extract_return_value,
5944 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5946 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5947 ns32k_saved_pc_after_call.
5948 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5949 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5950 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5951 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5952 ns32k_extract_struct_value_address.
5954 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5956 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5957 ns32k_fix_call_dummy): New.
5958 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5959 ns32k_call_dummy_words.
5960 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5961 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5962 CALL_DUMMY_NARGS): Remove.
5963 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5965 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5967 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5968 ns32k_frame_saved_pc, ns32k_frame_args_address,
5969 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5970 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5971 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5972 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5973 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5974 (BREAKPOINT): Remove..
5975 (FRAME_CHAIN): Define as ns32k_frame_chain.
5976 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5977 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5978 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5979 (FRAME_FIND_SAVED_REGS): Remove.
5980 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5981 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5982 (POP_FRAME): Define as ns32k_pop_frame.
5984 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5986 * ns32k-tdep.c (ns32k_register_byte_32082,
5987 ns32k_register_byte_32382, ns32k_register_raw_size,
5988 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5990 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5991 ns32k_register_byte_32382.
5992 * config/ns32k/tm-umax.h: Update copyright years.
5993 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5994 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5995 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5996 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5997 (ns32k_get_enter_addr): Fix prototype.
5999 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6001 * ns32k-tdep.c: Update copyright years.
6002 (ns32k_register_name_32082): New function.
6003 (ns32k_register_name_32382): Ditto.
6004 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
6005 (REGISTER_NAME): Define as ns32k_register_name_32382.
6006 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
6007 (REGISTER_NAME): Define as ns32k_register_name_32082.
6009 2002-05-24 Jim Blandy <jimb@redhat.com>
6011 * dwarf2read.c (free_line_header): Use xfree, not free.
6013 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
6015 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
6016 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
6018 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6020 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
6022 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6024 From Ross Alexander at NEC Europe:
6025 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
6027 2002-05-23 Michael Snyder <msnyder@redhat.com>
6029 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
6030 for input, rather than parse_and_eval_address.
6032 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6034 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
6035 * Makefile.in (sim_d10v_h): Update definition.
6037 2002-05-24 Andrew Cagney <cagney@redhat.com>
6039 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
6040 change `2002-05-22 Michael Snyder' below.
6041 (d10v_push_arguments): Ditto.
6042 (d10v_extract_return_value): Ditto.
6044 2002-05-23 Jim Blandy <jimb@redhat.com>
6046 * macrotab.c (check_for_redefinition): Don't complain if the new
6047 definition is the same as the previous one. Take more arguments
6048 to allow the comparison.
6049 (macro_define_object, macro_define_function): Pass more arguments
6050 to check_for_redefinition.
6052 2002-05-22 Michael Snyder <msnyder@redhat.com>
6054 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
6055 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
6056 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
6057 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
6058 Don't bail if return_pc is PC_IN_CALL_DUMMY.
6059 Add a temp variable to save a call (and a memory read).
6060 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
6061 if possible (so that PC_IN_CALL_DUMMY will work).
6063 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
6065 * MAINTAINERS: Remove status `OBSOLETE' from v850.
6067 2002-05-22 Michal Ludvig <mludvig@suse.cz>
6069 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6071 (dwarf2_build_frame_info): Corrected handling of eh_frame.
6072 (dwarf2_build_frame_info): Add offset to fde->initial_location
6073 so that frames of shared libraries are mapped correctly.
6074 (execute_stack_op): Change type of 'result' from ULONGEST to
6077 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6079 * config/alpha/tm-nbsd.h: Include solib.h.
6081 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6083 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6084 assumptions about the host's byte order.
6086 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6088 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6090 * alphanbsd-tdep.c: Include solib-svr4.h.
6091 * shnbsd-tdep.c: Ditto.
6093 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6095 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6096 nbsd-tdep.h to dependency list.
6097 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6098 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6099 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6100 nbsdaout.mh and nbsdelf.mh consistently.
6101 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6102 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6103 nbsdaout.mt and nbsdelf.mh consistently.
6104 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6105 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6106 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6107 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6108 a.out shared library stuff from here...
6109 * config/nm-nbsdaout.h: ...to here.
6110 * config/tm-nbsd.h: Remove.
6111 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6112 * config/arm/nbsd.mh: Remove.
6113 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6115 * config/arm/nbsdaout.mh: New file.
6116 * config/arm/nbsdelf.mh: New file.
6117 * config/arm/nm-nbsdaout.h: New file.
6118 * config/i386/nbsd.mh: Remove.
6119 * config/i386/nbsd.mt: Remove.
6120 * config/i386/nbsdaout.mh: New file.
6121 * config/i386/nbsdaout.mt: New file.
6122 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6123 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6124 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6125 i386_register_u_addr): Remove.
6126 * config/i386/nm-nbsdaout.h: New file.
6127 * config/i386/nm-nbsdelf.h: Remove.
6128 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6129 (USE_STRUCT_CONVENTION): Remove.
6130 * config/i386/tm-nbsdaout.h: New file.
6131 * config/i386/tm-nbsdelf.h: Remove.
6132 * config/m68k/nbsd.mh: Remove.
6133 * config/m68k/nbsd.mt: Remove.
6134 * config/m68k/nbsdaout.mh: New file.
6135 * config/m68k/nbsdaout.mt: New file.
6136 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6137 * config/m68k/nm-nbsdaout.h: New file.
6138 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6139 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6140 * config/ns32k/nbsd.mh: Remove.
6141 * config/ns32k/nbsd.mt: Remove.
6142 * config/ns32k/nbsdaout.mh: New file.
6143 * config/ns32k/nbsdaout.mt: New file.
6144 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6145 * config/ns32k/nm-nbsdaout.h: New file.
6146 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6147 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6148 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6149 (SVR4_SHARED_LIBS): Remove.
6150 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6151 * config/sparc/nbsd.mh: Remove.
6152 * config/sparc/nbsd.mt: Remove.
6153 * config/sparc/nbsdaout.mh: New file.
6154 * config/sparc/nbsdaout.mt: New file.
6155 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6156 * config/sparc/nbsdelf.mt: New file.
6157 * config/sparc/nm-nbsdaout.h: New file.
6158 * config/sparc/nm-nbsdelf.h: Remove.
6159 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6160 * config/sparc/tm-nbsdaout.h: New file.
6162 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6164 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6166 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6168 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6170 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6172 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6174 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6176 * NEWS: Note new MIPS NetBSD native configuration.
6177 * configure.host (mips*-*-netbsd*): New host.
6178 * configure.tgt (mips*-*-netbsd*): New target.
6179 * mipsnbsd-nat.c: New file.
6180 * mipsnbsd-tdep.c: New file.
6181 * mipsnbsd-tdep.h: New file.
6182 * config/mips/nbsd.mh: New file.
6183 * config/mips/nbsd.mt: New file.
6184 * config/mips/nm-nbsd.h: New file.
6185 * config/mips/tm-nbsd.h: New file.
6187 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6189 * Makefile.in (SFILES): Add osabi.c.
6190 (COMMON_OBS): Add osabi.o.
6191 (osabi.o): New dependency list.
6192 * osabi.c: New file.
6193 * osabi.h: New file.
6194 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6196 * Makefile.in (alpha_tdep_h): Define and use instead of
6198 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6199 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6201 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6202 * alpha-tdep.h: Include osabi.h.
6203 (alpha_abi): Remove.
6204 (gdbarch_tdep): Use generic OS ABI framework.
6205 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6206 gdbarch_register_osabi.
6207 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6208 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6209 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6211 * Makefile.in (sh_tdep_h): Add osabi.h.
6212 * sh-tdep.h (sh_osabi): Remove.
6213 (gdbarch_tdep): Use generic OS ABI framework.
6214 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6215 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6216 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6217 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6219 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6220 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6221 gdbarch_register_osabi.
6222 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6223 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6224 (get_elfosabi): Rename to...
6225 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6226 ABI framework support routines.
6227 (arm_gdbarch_init): Use generic OS ABI framework.
6228 (arm_dump_tdep): Likewise.
6229 (_initialize_arm_tdep): Likewise.
6230 * arm-tdep.h: Include osabi.h.
6232 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6234 (arm_gdbarch_register_os_abi): Remove prototype.
6235 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6236 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6238 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6239 * mips-tdep.c: Include osabi.h.
6240 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6243 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6245 * h8300-tdep.c: Fix formatting.
6247 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
6249 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6250 printing vector registers.
6252 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6254 From Fernando Nasser:
6255 * remote.c (remote_async_open_1): Re-throw the exception when the
6257 (remote_cisco_open): Ditto.
6258 (remote_open_1): Ditto.
6260 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6262 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6263 (remote_start_remote): Add uiout parameter. Pass through to
6264 remote_start_remote_dummy.
6265 (remote_open_1): Use catch_exception instead of catch_errors.
6266 (remote_async_open_1): Ditto.
6267 (remote_cisco_open): Ditto.
6269 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6271 * remote.c (remote_start_remote): Replace PTR with void pointer.
6272 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6275 2002-05-18 Andrew Cagney <ac131313@redhat.com>
6277 * gdb_indent.sh: Allow the script to be run in the sim directory.
6279 2002-05-18 Mark Kettenis <kettenis@gnu.org>
6281 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6282 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6284 * corelow.c (core_open): Only call set_gdbarch_from_file if
6287 2002-05-17 Andrey Volkov <avolkov@transas.com>
6289 * h8300-tdep.c: Add support of EXR register
6290 * config/h8300/tm-h8300.h: Ditto.
6292 2002-05-17 Andrey Volkov <avolkov@transas.com>
6294 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6296 2002-05-17 Andrey Volkov <avolkov@transas.com>
6298 * h8300-tdep.c: Change literal regnums to REGNO.
6300 2002-05-17 Jim Blandy <jimb@redhat.com>
6302 * NEWS: Note addition of macro support.
6304 Expand preprocessor macros in C expressions.
6305 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6306 (scan_macro_expansion, scanning_macro_expansion,
6307 finished_macro_expansion): New function declarations.
6308 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6309 variable declarations.
6310 * parser-defs.h (expression_context_pc): New declaration.
6311 * parse.c (expression_context_pc): New variable.
6312 (parse_exp_1): Set expression_context_pc, as well as
6313 expression_context_block.
6314 * c-exp.y (yylex): If we're not already reading the result of a
6315 macro expansion, try to macro-expand the next token. When we're
6316 done scanning a macro expansion, switch back to the mainline text.
6317 Commas and `if's in a macro's expansion don't terminate the input.
6318 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6319 (macro_original_text, macro_expanded_text,
6320 expression_macro_lookup_func, expression_macro_lookup_baton): New
6322 (scan_macro_expansion, scanning_macro_expansion,
6323 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6324 c_preprocess_and_parse): New functions.
6325 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6326 c_preprocess_and_parse, instead of c_parse.
6327 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6328 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6330 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6332 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6333 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6334 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6336 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
6338 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6340 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6342 * Makefile.in (sh_tdep_h): Define and use.
6343 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6344 register enum): Move to...
6345 * * sh-tdep.h: ...here.
6346 * sh-tdep.c: Include sh-tdep.h.
6347 * sh3-rom.c: Likewise.
6348 * shnbsd-tdep.c: Likewise.
6350 2002-05-16 Michael Snyder <msnyder@redhat.com>
6352 * arm-tdep.c: Spelling fix in comment.
6354 2002-05-16 Jim Blandy <jimb@redhat.com>
6356 Add commands for manually expanding macros and showing their
6358 * macrocmd.c, macroscope.c, macroscope.h: New files.
6359 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6360 (macroscope_h): New variable.
6361 (HFILES_NO_SRCDIR): Add macroscope.h.
6362 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6363 (macroscope.o, macrocmd.o): New rules.
6365 Teach the Dwarf 2 reader to read macro information.
6366 * dwarf2read.c: #include "macrotab.h".
6367 (dwarf_macinfo_buffer): New variable.
6368 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6370 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6371 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6372 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6373 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6374 dwarf2_macro_spaces_in_definition): New complaints.
6375 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6376 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6377 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6378 the partial symbol table.
6379 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6380 from what's recorded in the partial symbol table.
6381 (read_file_scope): If the compilation unit has a
6382 `DW_AT_macro_info' attribute, read its macro information.
6383 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6385 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6388 * ser-tcp.c: Don't include <netinet/udp.h>.
6390 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6392 * MAINTAINERS: Update my email address.
6394 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
6396 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6397 include file of the same name.
6399 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6401 * configure.tgt: Mark v850 as multi-arched.
6402 * config/v850/tm-v850.h: Remove file.
6403 * config/v850/v850.mt: Eliminate TM_FILE.
6405 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6407 * v850-tdep.c: Full multi-arch.
6408 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6409 Define GDB_MULTI_ARCH to 2.
6411 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6413 * p-exp.y (current_type): New static variable.
6414 Carries the type of the expression at the position that is parsed.
6415 (push_current_type, pop_current_type): Two new functions. Used
6416 to store/restore current_type in expression on specific tokens.
6417 (search_field): New static variable. Set to one after parsing a point
6418 as at that point only a FIELDNAME token should be searched.
6419 (FIELDNAME): New token. After a point only a token belonging to
6420 current_type type definition is allowed.
6421 (all over token rules): reset and change current_type according
6423 (exp '[' rule): insert implicit array index field if
6424 exp is a pascal string type.
6426 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6428 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6429 frame info. Use frame_info's saved_regs instead of matching member
6430 in extra_frame_info throughout.
6431 (v850_frame_init_saved_regs): New function.
6432 (v850_init_extra_frame_info): Move most functionality into
6433 v850_frame_init_saved_regs().
6434 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6435 (v850_frame_find_saved_regs): Remove declaration.
6436 (FRAME_FIND_SAVED_REGS): Remove definition.
6437 (v850_frame_init_saved_regs): Add declaration.
6438 (FRAME_INIT_SAVED_REGS): Add definition.
6440 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6442 * v850-tdep.c: Begin multi-arch'ing v850.
6443 (v850_target_architecture_hook): Remove function.
6444 (v850_gdbarch_init): New function. Add code previously in
6445 v850_target_architecture_hook().
6446 (_initialize_v850_tdep): Don't set target_architecture_hook.
6447 Call register_gdbarch_init() instead.
6449 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6451 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6452 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6453 (fixup_class_method_type): Likewise.
6455 2002-05-15 Jim Blandy <jimb@redhat.com>
6457 Add macro structures to GDB's symbol tables. Nobody puts anything
6459 * symtab.h (struct symtab): New member: `macro_table'.
6460 * buildsym.h (pending_macros): New global variable.
6461 * buildsym.c: #include "macrotab.h".
6462 (buildsym_init): Initialize `pending_macros'.
6463 (end_symtab): If we found macro information while reading a CU's
6464 debugging info, do build a symtab structure for it. Make the
6465 symtab point to the macro information, and clear the
6466 `pending_macros' pointer which held it while we were reading the
6468 (really_free_pendings): Free any pending macro table.
6469 * objfiles.h (struct objfile): New member: `macro_cache'.
6470 * objfiles.c (allocate_objfile): Set allocate and free functions
6471 for the macro cache's objstack.
6472 (free_objfile): Empty the macro cache's obstack.
6473 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6474 set new allocate and free functions for it.
6475 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6476 free functions for the macro cache's objstack. (Why is this
6477 function building its own objfile?)
6478 * symmisc.c (print_objfile_statistics): Print statistics on the
6480 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6482 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6484 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6485 (REGISTER_U_ADDR): Delete definition.
6486 (arm_register_u_addr): Delete declaration.
6488 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6490 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6491 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6493 2002-05-14 Andrew Cagney <ac131313@redhat.com>
6495 * regcache.c (register_valid): Revise comments refering to "Not
6496 available" and "unavailable".
6497 * frame.c (frame_register_read): Ditto.
6498 * findvar.c (value_of_register): Ditto.
6500 2002-05-15 Andrew Cagney <cagney@redhat.com>
6502 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6503 (remote-sim.o): Update dependencies.
6504 (d10v-tdep.o): Specify dependencies.
6505 (sim_d10v_h): Define.
6507 2002-05-14 Jim Blandy <jimb@redhat.com>
6509 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6510 * macrotab.c (macro_lookup_inclusion, find_definition,
6511 new_macro_table): Same.
6513 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6514 not `! strcmp ()'. This is a dubious improvement.
6515 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6517 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6518 although it's not necessary, to avoid a warning.
6520 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6522 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6523 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6524 TYPE_INSTANCE_FLAGS.
6525 (struct main_type): New.
6526 (struct type): Move most members to struct main_type. Change
6527 cv_type and as_type to new type_chain member. Add instance_flags.
6528 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6529 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6530 (finish_cv_type): Remove prototype.
6531 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6533 (alloc_type_instance): New function.
6534 (smash_type): New function.
6535 (make_pointer_type, make_reference_type, make_function_type)
6536 (smash_to_member_type, smash_to_method_type): Call smash_type.
6537 (make_qualified_type): New function.
6538 (make_type_with_address_space): Call make_qualified_type.
6539 (make_cv_type): Likewise.
6540 (finish_cv_type): Remove unnecessary function.
6541 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6542 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6543 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6544 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6545 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6546 * hpread.c (hpread_read_struct_type): Likewise.
6547 * stabsread.c (read_struct_type): Likewise.
6549 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
6551 * configure.tgt: Add a catch all sh* target, for cases like
6552 sh[2,3,4]-elf and sh-hms.
6554 2002-05-14 Keith Seitz <keiths@redhat.com>
6556 * event-loop.c (create_file_handler): Don't do anything but
6557 update data when we are given a fd which we are already
6560 2002-05-14 Michal Ludvig <mludvig@suse.cz>
6562 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6563 (update_context): Use __func__ in warnings.
6565 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6567 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6568 and tcp_close to net_open and net_close.
6569 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6570 using UDP if requested. Don't try to disable Nagle on UDP
6572 * remote.c (remote_serial_open): New function. Warn about UDP.
6573 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6575 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6577 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6579 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6581 * configure.tgt: Remove sh-hms target.
6582 * MAINTAINERS: Don't list sh-hms as a separate target.
6584 2002-05-13 Jim Blandy <jimb@redhat.com>
6586 Add first preprocessor macro-expansion files.
6587 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6588 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6589 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6590 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6591 (COMMON_OBS): Add macrotab.o, macroexp.o.
6592 (macroexp.o, macrotab.o): New rules.
6594 2002-05-13 Andrew Cagney <ac131313@redhat.com>
6596 * config/m88k/tm-m88k.h: Update copyright.
6597 (m88k_target_write_pc): Declare
6598 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6599 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6600 (SHIFT_INST_REGS): Update definition.
6601 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6602 using old definition of TARGET_WRITE_PC.
6603 * regcache.c (generic_target_write_pc): Delete code handling
6605 * gdbarch.sh (NNPC_REGNUM): Delete.
6606 * gdbarch.h, gdbarch.c: Regenerate.
6608 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
6610 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6613 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
6615 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6616 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6617 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6619 * c-typeprint.c (cp_type_print_method_args): Likewise.
6620 (c_type_print_args): Likewise.
6621 * d10v-tdep.c (d10v_push_arguments): Likewise.
6622 (d10v_extract_return_value): Likewise.
6623 * expprint.c (print_subexp): Likewise.
6624 * gdbtypes.c (lookup_primitive_typename): Likewise.
6625 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6626 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6627 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6628 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6629 (TYPE_VECTOR): Likewise.
6630 * hpread.c (hpread_read_struct_type)
6631 (fix_static_member_physnames, fixup_class_method_type)
6632 (hpread_type_lookup): Likewise.
6633 * mdebugread.c (parse_symbol, parse_type): Likewise.
6634 * p-lang.c (is_pascal_string_type): Likewise.
6635 * valops.c (hand_function_call): Likewise.
6636 * x86-64-tdep.c (classify_argument): Likewise.
6638 * hpread.c (hpread_read_function_type)
6639 (hpread_read_doc_function_type): Call replace_type.
6640 * dstread.c (create_new_type): Delete.
6641 (decode_dst_structure, process_dst_function): Call alloc_type.
6642 Use type access macros.
6644 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6646 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6647 the're not supported by the current architecture.
6648 (i387_fill_fxsave): Likewise.
6650 2002-05-12 Fred Fish <fnf@redhat.com>
6652 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6653 sect_index_xxx members to index the first slot in section_offsets
6654 if all of the section_offsets are zero.
6656 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6658 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6659 checked in with last change.
6661 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6663 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6664 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6667 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
6669 * Makefile.in: Update dependencies.
6671 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6673 * language.c (local_hex_string_custom): Simplify. Do not depend
6674 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6676 * memattr.c (mem_info_command): Replace calls to
6677 longest_local_hex_string and longest_local_hex_string_custom.
6678 * buildsym.c (make_blockvector): Ditto.
6679 * solib.c (info_sharedlibrary_command): Ditto.
6680 * tracepoint.c (tracepoints_info): Ditto.
6681 * symtab.c (print_msymbol_info): Ditto.
6683 * language.c (local_hex_string): Delete.
6684 (local_hex_string_custom): Delete.
6685 (longest_local_hex_string): Rename to local_hex_string.
6686 (longest_local_hex_string_custom): Rename to
6687 local_hex_string_custom.
6688 * language.h (local_hex_string): Change parameter type to LONGEST.
6689 (local_hex_string_custom): Ditto.
6690 (longest_local_hex_string): Delete declaration.
6691 (longest_local_hex_string_custom): Ditto.
6693 * solib.c: Update copyright.
6694 * memattr.c: Update copyright.
6696 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6698 * arch-utils.h (legacy_register_to_value): Declare.
6699 (legacy_value_to_register): Declare.
6700 (legacy_convert_register_p): Declare.
6701 * arch-utils.c (legacy_register_to_value): New function.
6702 (legacy_value_to_register): New function.
6703 (legacy_convert_register_p): New function.
6705 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6706 (VALUE_TO_REGISTER): Define.
6707 (CONVERT_REGISTER_P): Define.
6708 * gdbarch.h, gdbarch.c: Regenerate.
6710 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6712 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6715 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
6716 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6718 * Makefile.in: Update dependencies for valops.c.
6719 * valops.c: Include "gdb_assert.h".
6720 (typecmp): Skip THIS parameter to methods.
6721 (find_method_list): Remove static_memfuncp argument,
6722 update callers. Check for stub methods.
6723 (find_value_oload_method_list): Don't set *static_memfuncp.
6724 (find_overload_match): Don't check for stub methods. Assert
6725 that methods are not stubbed. Handle static methods.
6726 (value_find_oload_method_list): Remove static_memfuncp argument.
6727 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6728 to the argument list for static stub methods.
6729 * value.h (value_find_oload_method_list): Update prototype.
6731 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6733 * arch-utils.h (generic_register_size): Declare.
6734 (generic_register_raw_size, generic_register_virtual_size): Delete
6736 * arch-utils.c (generic_register_raw_size): Delete.
6737 (generic_register_size): New function.
6738 (generic_register_virtual_size): Delete.
6740 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6741 default generic_register_size.
6742 * gdbarch.h, gdbarch.c: Re-generate.
6744 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6745 register_virtual_size.
6746 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6747 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6749 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6751 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6752 * gdbarch.h, gdbarch.c: Regenerate.
6753 * gnu-v3-abi.c: Update copyright.
6754 (vtable_address_point_offset): Update.
6755 (gnuv3_rtti_type): Update.
6756 (gnuv3_baseclass_offset): Update.
6757 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6758 (init_fetch_link_map_offsets): Update.
6759 * remote.c (get_remote_state): Update.
6761 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6763 * TODO: Remove value_headof/value_from_vtable_info comment.
6764 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6765 * values.c (value_headof, value_from_vtable_info): Delete.
6766 * value.h (value_from_vtable_info): Delete prototype.
6768 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6770 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6771 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6773 (gdb_assert_h): Define.
6774 (gdb_wait_h): Define.
6775 (gdb_regex_h): Define.
6777 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6779 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6780 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6782 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6784 * nbsd-tdep.c: Fix comment.
6786 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6788 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6789 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6790 (nbsd-tdep.o): New dependency list.
6791 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6793 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6794 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6795 * nbsd-tdep.c: New file.
6796 * nbsd-tdep.h: New file.
6797 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6799 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6800 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6801 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6802 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6804 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6806 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6807 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6808 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6809 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6810 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6811 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6813 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6815 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6816 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6817 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6818 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6819 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6820 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6821 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6823 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6825 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6826 fetch_elfcore_registers to...
6827 * i386nbsd-tdep.c: ...here.
6828 (i386nbsd_use_struct_convention): Rename to...
6829 (i386nbsd_aout_use_struct_convention): ...this.
6830 (i386nbsd_supply_reg): New function.
6831 (i386nbsd_fill_reg): New function.
6832 (fetch_core_registers): Use i386nbsd_supply_reg.
6833 (fetch_elfcore_registers): Likewise.
6834 (_initialize_i386nbsd_tdep): New function.
6835 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6836 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6837 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6838 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6839 (i386nbsd_aout_use_struct_convention): ...this.
6841 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6843 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6844 (store_inferior_registers): Use shnbsd_fill_reg.
6845 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6846 sh_nbsd_supply_register): Collapse into...
6847 (shnbsd_supply_reg): ...this.
6848 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6849 (shnbsd_fill_reg): ...this.
6850 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6851 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6852 (fetch_core_registers): Use shnbsd_supply_reg.
6853 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6854 (sh_nbsd_core_fns): Rename to...
6855 (shnbsd_core_fns): ...this.
6856 (sh_nbsd_elfcore_fns): Rename to...
6857 (shnbsd_elfcore_fns): ...this.
6858 (sh_nbsd_init_abi): Rename to...
6859 (shnbsd_init_abi): ...this.
6860 (_initialize_sh_nbsd_tdep): Rename to...
6861 (_initialize_shnbsd_tdep): ...this.
6862 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6863 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6864 sh_nbsd_fill_register): Remove prototypes.
6865 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6867 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6869 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6870 (i387-nat.o): Delete dependency list.
6871 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6872 (x86-64-linux-nat.o): Likewise.
6873 * i387-nat.c: Delete file, moving contents to...
6874 * i387-tdep.c: ...here.
6875 * i387-nat.h: Rename...
6876 * i387-tdep.h: ...to this.
6877 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6878 * i386-linux-nat.c: Likewise.
6879 * i386bsd-nat.c: Likewise.
6880 * i386gnu-nat.c: Likewise.
6881 * i386nbsd-nat.c: Likewise.
6882 * i386v4-nat.c: Likewise.
6883 * x86-64-linux-nat.c: Likewise.
6884 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6885 * config/i386/go32.mh (NATDEPFILES): Likewise.
6886 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6887 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6888 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6889 * config/i386/linux.mh (NATDEPFILES): Likewise.
6890 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6891 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6892 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6893 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6895 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6897 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6898 (alphanbsd-nat.o): Remove dependency list.
6899 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6900 * alphanbsd-nat.c: Delete. Contents moved to...
6901 * alphanbsd-tdep.c: ...here.
6902 (_initialize_alphanbsd_tdep): Register core functions.
6903 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6905 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6907 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6908 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6909 (alphanbsd-nat.o): Likewise.
6910 (alphabsd-tdep.o): New dependency list.
6911 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6912 (fill_gregset): Use alphabsd_fill_reg.
6913 (supply_fpregset): Use alphabsd_supply_fpreg.
6914 (fill_fpregset): Use alphabsd_fill_fpreg.
6915 (fetch_inferior_registers): Use struct reg and struct fpreg
6916 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6917 and alphabsd_supply_fpreg.
6918 (store_inferior_registers): Use struct reg and struct fpreg
6919 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6920 and alphabsd_fill_fpreg.
6921 * alphabsd-tdep.c: New file.
6922 * alphabsd-tdep.h: New file.
6923 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6924 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6925 alphabsd_supply_fpreg.
6926 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6927 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6929 2002-05-11 Eric Christopher <echristo@redhat.com>
6931 * mips-tdep.c (mips_double_register_type): Fix thinko.
6932 (mips_single_register_type): Ditto.
6933 * MAINTAINERS: Add self.
6935 2002-05-11 Mark Kettenis <kettenis@gnu.org>
6937 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6938 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6939 right thing on architectures with different endianness and/or
6942 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6944 From Christian Limpach <chris@Pin.LU>
6945 * configure.in: Change sed expression which comments out
6946 NATDEPFILES to also comment out continuation lines.
6947 * configure: Regenerate.
6949 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6951 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6954 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6956 * sh-tdep.c: Include correct file.
6958 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6960 New support for sh64-elf (sh5) target.
6962 * configure.tgt: For sh64-elf target, default to sh-elf.
6964 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6965 (struct gdbarch_tdep): Add new fields for new registers and ABI
6968 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6969 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6970 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6971 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6972 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6973 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6974 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6975 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6976 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6977 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6978 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6979 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6980 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6981 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6982 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6983 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6984 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6985 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6986 sign_extend, sh64_nofp_frame_init_saved_regs,
6987 sh64_init_extra_frame_info, sh64_get_saved_register,
6988 sh64_extract_struct_value_address, sh64_pop_frame,
6989 sh64_push_arguments, sh64_extract_return_value,
6990 sh64_store_return_value, sh64_show_media_regs,
6991 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6992 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6993 sh_sh64_register_virtual_type,
6994 sh_sh64_register_convert_to_virtual,
6995 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6996 sh64_register_read, sh64_pseudo_register_write,
6997 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6998 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6999 sh64_do_pseudo_register, sh_compact_do_registers_info,
7000 sh64_do_registers_info, sh_gdbarch_init): New functions.
7002 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7004 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
7006 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
7008 * linespec.c (decode_line_1): Check for a double quote after
7009 a filename correctly.
7011 2002-05-10 Jim Blandy <jimb@redhat.com>
7013 Properly track the size of the current objfile's .debug_line section.
7014 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
7015 (DWARF_LINE_SIZE): New macro.
7016 (dwarf2_build_psymtabs_hard): Record the line section's size in
7017 the partial symbol table.
7018 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
7021 2002-05-10 Petr Sorfa <petrs@caldera.com>
7023 * ia64-tdep.c: Handle breakpoints on L instruction type
7024 in MLX instruction bundle by moving the breakpoint to
7025 the third slot (X instruction type) as L holds only data.
7027 2002-05-10 Kevin Buettner <kevinb@redhat.com>
7029 * dbxread.c (discarding_local_symbols_complaint): New complaint.
7030 (process_one_symbol): Complain about discarding local symbols
7031 due to a misplaced N_LBRAC entry.
7033 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
7035 From Daniel Berlin <dan@cgsoftware.com>
7036 * linespec.c (find_toplevel_char): '<' and '>' also increase and
7037 decrease the depth we are at, in the case of templates.
7039 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7041 * mips-tdep.c (mips_float_register_type): New function.
7042 (mips_double_register_type): New function.
7043 (mips_print_register): Use them.
7044 (do_fp_register_row): Likewise.
7046 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7048 * signals/signals.c (signals): Remove conditional compilation around
7049 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
7050 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
7052 2002-05-09 Michael Snyder <msnyder@redhat.com>
7054 * remote-rdp.c (remote_rdp_can_run): Remove.
7056 2002-05-09 Tom Tromey <tromey@redhat.com>
7058 * jv-valprint.c (java_val_print): Handle `char' as a special case
7061 2002-05-09 Michael Snyder <msnyder@redhat.com>
7063 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
7064 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
7065 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
7066 str r(0123),[sp,#nn].
7067 (arm_skip_prologue): Ditto. Also make disassembly
7068 order-independent by placing it in a loop.
7070 2002-05-06 Michael Snyder <msnyder@redhat.com>
7072 * stabsread.c (read_type): Add recognition for new attribute:
7073 "@V;" means that an array type is actually a vector.
7074 This is analogous to the vector flag that's been added to dwarf2.
7076 2002-05-09 Mark Kettenis <kettenis@gnu.org>
7078 * i386-tdep.h (i386_abi): New enum.
7079 (struct gdbarch_tdep): Replace os_ident member with abi.
7080 (i386_gdbarch_register_os_abi): New prototype.
7081 * i386-tdep.c (i386_abi_names): New array.
7082 (process_note_abi_tag_sections): Removed.
7083 (process_note_sections): New function.
7084 (i386_elf_abi_from_note, i386_elf_abi): New functions.
7085 (struct i386_abi_handler): New struct.
7086 (i386_abi_handler_list): New variable.
7087 (i386_gdbarch_register_os_abi): New function.
7088 (i386_gdbarch_init): Adapt for the changes given above.
7090 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
7092 * gregset.h: Say "GNU/Linux".
7094 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
7096 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7097 (build_gdbtypes): Build builtin_type_v2_float.
7098 (_initialize_gdbtypes): Register new builtin type.
7100 2002-05-08 Andrew Cagney <ac131313@redhat.com>
7102 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7103 (clear_gdbarch_swap): New function.
7104 (initialize_non_multiarch): Call.
7105 (gdbarch_update_p): Before calling init(), swap out and clear the
7106 existing architecture.
7107 * gdbarch.c: Regenerate.
7109 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7111 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7114 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7116 * sh-nbsd-nat.c: Rename to...
7117 * shnbsd-nat.c: ...this.
7118 * sh-nbsd-tdep.c: Rename to...
7119 * shnbsd-tdep.c: ...this.
7120 * sh-nbsd-tdep.h: Rename to...
7121 * shnbsd-tdep.h: ...this.
7122 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7123 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7125 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
7127 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7128 concatenation for command help messages.
7130 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7132 * NEWS: Note new sh*-*-netbsdelf* configuration.
7133 * configure.host: Set gdb_host_cpu to sh for all sh*.
7134 (sh*-*-netbsdelf*): New host.
7135 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7136 (sh*-*-netbsdelf*): New target.
7137 * sh-nbsd-nat.c: New file.
7138 * sh-nbsd-tdep.c: New file.
7139 * sh-nbsd-tdep.h: New file.
7140 * config/sh/nbsd.mh: New file.
7141 * config/sh/nbsd.mt: New file.
7142 * config/sh/nm-nbsd.h: New file.
7143 * config/sh/tm-nbsd.h: New file.
7145 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7147 * sh-tdep.c (sh_osabi_names): Declare.
7148 (process_note_abi_tag_sections): New function.
7149 (get_elfosabi): Ditto.
7150 (sh_gdbarch_register_os_abi): Ditto.
7151 (sh_dump_tdep): Ditto.
7152 _initialize_sh_tdep): Use gdbarch_register to register
7153 sh_gdbarch_init and sh_dump_tdep.
7154 * config/sh/tm-sh.h (sh_osabi): Declare.
7155 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7157 2002-05-07 Andrew Cagney <ac131313@redhat.com>
7159 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7160 (thumb_scan_prologue): Ditto.
7161 (arm_find_callers_reg): Ditto.
7162 (arm_frame_chain): Ditto.
7163 (arm_init_extra_frame_info): Ditto.
7164 (arm_frame_saved_pc): Ditto.
7165 (arm_pop_frame): Ditto.
7166 (arm_push_return_address): New function.
7167 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7168 call_dummy_location, call_dummy_breakpoint_offset_p,
7169 call_dummy_breakpoint_offset, call_dummy_p,
7170 call_dummy_stack_adjust_p, call_dummy_words,
7171 sizeof_call_dummy_words, call_dummy_start_offset,
7172 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7173 call_dummy_address, push_return_address and push_dummy_frame for
7174 generic dummy frames.
7176 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7178 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7179 size computation for alloca.
7180 (sh_fp_frame_init_saved_regs): Likewise.
7182 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
7184 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7185 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
7186 * arm-tdep.c (arm_store_return_value): Use them.
7187 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7188 * remote-rdp.c (remote_rdp_fetch_register): Use
7189 ARM_MAX_REGISTER_RAW_SIZE.
7190 (remote_rdp_store_register): Likewise.
7192 2002-05-07 Michal Ludvig <mludvig@suse.cz>
7194 * dwarf2cfi.c: Code cleanup, removed unused variables,
7195 added default labels to switch {} statements.
7196 * x86-64-tdep.c: Ditto.
7197 * x86-64-linux-nat.c: Ditto.
7199 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7201 * solib.h: Protect against multiple inclusion.
7203 2002-05-06 Jim Blandy <jimb@redhat.com>
7205 Add first preprocessor macro-expansion files.
7206 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7207 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7208 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7209 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7210 (COMMON_OBS): Add macrotab.o, macroexp.o.
7211 (macroexp.o, macrotab.o): New rules.
7213 Separate the job of reading the line number info statement program
7214 header (...expialidocious) out into its own function.
7215 * dwarf2read.c (struct line_head, struct filenames, struct
7216 directories): Replace with...
7217 (struct line_header): New structure, containing the full
7218 contents of the statement program header, including the
7219 include directory and file name tables.
7220 (read_file_scope): If we have line number info, instead of just
7221 calling dwarf_decode_lines to do all the work, call
7222 dwarf_decode_line_header first to get a `struct line_header'
7223 containing the data in the statement program header, and then
7224 pass that to dwarf_decode_lines, which will pick up where that
7225 left off. Be sure to clean up the `struct line_header' object.
7226 (dwarf_decode_line_header, free_line_header, add_include_dir,
7227 add_file_name): New functions.
7228 (dwarf_decode_lines): Move all the code to read the statement
7229 program header into dwarf_decode_line_header. Take the line
7230 header it built as the first argument, instead of the offset to
7231 the compilation unit's line number info. Use the new `struct
7232 line_header' type instead of the old structures. No need to do
7233 cleanups here now, since we don't allocate anything.
7234 (dwarf2_statement_list_fits_in_line_number_section,
7235 dwarf2_line_header_too_long): New complaints.
7237 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
7239 * gdbtypes.c (init_vector_type): New function.
7240 (build_builtin_type_vec128): Simplify the representation of SIMD
7242 (build_gdbtypes): Initialize new builtin vector types.
7243 (_initialize_gdbtypes): Register new vector types with gdbarch.
7244 (builtin_type_v4_float, builtin_type_v4_int32,
7245 builtin_type_v8_int16, builtin_type_v16_int8,
7246 builtin_type_v2_int32, builtin_type_v4_int16,
7247 builtin_type_v8_int8): New (renamed) SIMD types.
7249 2002-05-06 Mark Kettenis <kettenis@gnu.org>
7251 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7252 (i387_fill_fxsave): Likewise.
7254 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
7256 * alpha-tdep.c (alpha_extract_return_value): Don't use
7257 non-constant array size in prototype.
7259 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7261 From Brian Taylor <briant at model dot com>:
7262 * ui-out.c (ui_out_field_core_addr): Use the function
7263 longest_local_hex_string_custom'to format addresses > 32 bits
7266 * ui-out.c (ui_out_field_core_addr): Update comment.
7268 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7270 * stack.c (select_and_print_frame): Make static. Delete the
7272 (func_command): Update call.
7273 (select_frame_command): Delete code computing the frame level.
7274 * frame.h (select_and_print_frame): Delete declaration.
7276 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7278 * sparc-tdep.c (sparc_get_saved_register): Comment why
7279 get_prev_frame call is safe.
7281 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7283 * frame.h (select_frame): Delete level parameter.
7284 * stack.c (select_frame): Update. Use frame_relative_level to
7285 obtain the frame's level.
7286 (select_and_print_frame): Update call.
7287 (select_frame_command): Ditto.
7288 (up_silently_base): Ditto.
7289 (down_silently_base): Ditto.
7290 * ocd.c (ocd_start_remote): Ditto.
7291 * remote-rdp.c (remote_rdp_open): Ditto.
7292 * remote-mips.c (mips_initialize): Ditto.
7293 (common_open): Ditto.
7294 * remote-e7000.c (e7000_start_remote): Ditto.
7295 * m3-nat.c (select_thread): Ditto.
7296 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7297 (child_get_current_exception_event): Ditto.
7298 * varobj.c (varobj_create): Ditto.
7299 (varobj_update): Ditto.
7300 (c_value_of_root): Ditto.
7301 * tracepoint.c (finish_tfind_command): Ditto.
7302 * corelow.c (core_open): Ditto.
7303 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7304 * thread.c (info_threads_command): Ditto.
7305 (switch_to_thread): Ditto.
7306 * infrun.c (normal_stop): Ditto.
7307 (restore_selected_frame): Ditto.
7308 (restore_inferior_status): Ditto.
7309 * breakpoint.c (insert_breakpoints): Ditto.
7310 (watchpoint_check): Ditto.
7311 (bpstat_stop_status): Ditto.
7312 (do_enable_breakpoint): Ditto.
7313 * blockframe.c (flush_cached_frames): Ditto.
7314 (reinit_frame_cache): Ditto.
7316 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7318 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7321 2002-05-04 Jim Blandy <jimb@redhat.com>
7323 * gdbtypes.c (replace_type): Doc fix.
7325 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7327 * valprint.c (strcat_longest): Delete commented out function.
7330 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7332 * MAINTAINERS: Mark a29k as deleted.
7333 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7334 Move new configurations to the top.
7335 * configure.tgt: Remove a29k.
7336 * config/a29k/tm-vx29k.h: Delete.
7337 * config/a29k/vx29k.mt: Delete.
7338 * config/a29k/tm-a29k.h: Delete.
7339 * config/a29k/a29k-udi.mt: Delete.
7340 * config/a29k/a29k.mt: Delete.
7341 * a29k-tdep.c: Delete.
7342 * remote-udi.c: Delete.
7343 * remote-mm.c: Delete.
7344 * remote-eb.c: Delete.
7345 * remote-adapt.c: Delete.
7346 * Makefile.in: Remove obsolete code.
7347 * config/s390/s390x.mt: Ditto.
7348 * config/s390/s390.mt: Ditto.
7349 * config/sparc/sparclynx.mh: Ditto.
7350 * config/sparc/linux.mh: Ditto.
7351 * config/pa/hppaosf.mh: Ditto.
7352 * config/pa/hppabsd.mh: Ditto.
7353 * config/ns32k/nbsd.mt: Ditto.
7354 * config/mips/vr5000.mt: Ditto.
7355 * config/m68k/sun3os4.mh: Ditto.
7356 * config/m68k/nbsd.mt: Ditto.
7357 * config/m68k/m68klynx.mh: Ditto.
7358 * config/m32r/m32r.mt: Ditto.
7359 * config/i386/x86-64linux.mt: Ditto.
7360 * config/i386/nbsdelf.mt: Ditto.
7361 * config/i386/nbsd.mt: Ditto.
7362 * config/i386/i386lynx.mh: Ditto.
7364 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7366 * target.c (debug_print_register): New function. Handle oversize
7368 (debug_to_fetch_registers): Call.
7369 (debug_to_store_registers): Call.
7371 2002-05-03 Jim Blandy <jimb@redhat.com>
7373 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7374 (read_type): Doc fix.
7375 * gdbtypes.c (replace_type): Doc fix.
7377 * stabsread.c (multiply_defined_struct): New complaint.
7378 (read_struct_type): If the type we were passed isn't empty, or
7379 incomplete, don't read the new struct type into it; complain,
7380 and return the original type unchanged. Take a new `type_code'
7381 argument, which is the type code for the new type.
7382 (read_type): Rather than storing the type's type code here, pass
7383 it as an argument to read_struct_type, and let that take care of
7384 storing it. That way, we don't overwrite the original type code,
7385 so read_struct_type can use it to decide whether we're overwriting
7386 something we shouldn't.
7387 (complain_about_struct_wipeout): New function.
7389 2002-05-03 Andrew Cagney <ac131313@redhat.com>
7391 * gdbarch.sh: Assert that gdbarch is non-NULL.
7392 * gdbarch.c: Regenerate.
7394 2002-05-03 Jason Merrill <jason@redhat.com>
7396 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7399 2002-05-03 Michal Ludvig <mludvig@suse.cz>
7401 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7402 (x86_64_dwarf2gdb_regno_map_length),
7403 (x86_64_dwarf2_reg_to_regnum): Added.
7404 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7405 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7406 (_initialize_x86_64_tdep): Synced with the change above.
7407 (x86_64_skip_prologue): Reformulated message.
7409 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7411 * f-exp.y: Also use new prev_lexptr variable
7412 to improve error reporting. Based on Michael Snyder
7413 2002-04-24 dated patch to c-exp.y.
7414 * jv-exp.y: Likewise.
7415 * m2-exp.y: Likewise.
7417 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
7419 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7420 we are dealing with vectors.
7422 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7424 * config/m68k/tm-nbsd.h: Obvious fix,
7425 correct machine name.
7427 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7429 * p-typeprint.c (pascal_type_print_base): Add support
7430 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7432 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7434 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7435 for fondamental pascal 'char' type.
7437 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7439 * p-lang.h (is_pascal_string_type): Declaration changed,
7440 new sixth argument of type char ** added.
7441 * p-lang.c (is_pascal_string_type): Implementation
7442 changed. Args length_pos, length_size, string_pos, char_size
7443 can now be NULL. New argument arrayname set to the field
7444 name of the char array. Return value set to char array
7445 field index plus one.
7446 * p-valprint.c (pascal_val_print): Adapt to new declaration of
7447 is_pascal_string_type function.
7449 2002-05-02 Andrew Cagney <cagney@redhat.com>
7451 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7452 <cagney@redhat.com> change.
7453 * gdbarch.c: Regenerate.
7455 2002-05-02 Andrew Cagney <cagney@redhat.com>
7457 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7458 before probing for a new one. Detect errorenous gdbarch_init
7460 * gdbarch.c: Regenerate.
7462 2002-05-01 Andrew Cagney <cagney@redhat.com>
7464 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7465 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7466 * config/v850/tm-v850.h: Ditto. Update copyright.
7468 2002-04-30 Andrew Cagney <ac131313@redhat.com>
7470 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7473 2002-04-30 Michael Snyder <msnyder@redhat.com>
7475 * arm-tdep.c: Whitespace clean-ups.
7476 (arm_skip_prologue): Fix thinko; two lines
7477 should have been removed as part of 4/24 change.
7479 2002-04-30 Kevin Buettner <kevinb@redhat.com>
7481 * rs6000-tdep.c: Added comment describing how fpscr register
7482 numbers were chosen.
7484 2002-04-30 Michael Snyder <msnyder@redhat.com>
7486 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7488 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7490 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7491 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7492 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7494 2002-04-29 Kevin Buettner <kevinb@redhat.com>
7496 From Louis Hamilton <hamilton@redhat.com>:
7497 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7498 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7499 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7500 not bfd-private xcoff data, to determine wordsize.
7501 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7503 2002-04-29 Andrew Cagney <ac131313@redhat.com>
7505 GDB 5.2 released from 5.2 branch.
7507 2002-04-29 Michal Ludvig <mludvig@suse.cz>
7509 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7510 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7511 (x86_64_register_info_table): Added comments with register numbers.
7513 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7515 * rs6000-tdep.c (rs6000_extract_return_value,
7516 rs6000_store_return_value): Handle returning vectors.
7517 (rs6000_gdbarch_init): Use
7518 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7519 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7521 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7523 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7524 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7526 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7528 * hpread.c (hpread_psymtab_to_symtab_1,
7529 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7530 with fprintf_unfiltered (gdb_stderr,...).
7532 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7534 * remote-array.c (printf_monitor, write_monitor,
7535 array_insert_breakpoint, array_remove_breakpoint ):
7536 Replace fprintf (stderr,...
7537 with fprintf_unfiltered (gdb_stderr,....
7538 * remote-es.c: Likewise.
7539 * remote-os9k.c: Likewise.
7540 * remote-st.c: Likewise.
7542 2002-04-28 Andreas Schwab <schwab@suse.de>
7544 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7545 linux-proc.o and gcore.o.
7547 2002-04-26 Michal Ludvig <mludvig@suse.cz>
7549 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7550 code without frame pointers.
7552 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7554 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7557 2002-04-26 Ben Elliston <bje@redhat.com>
7559 * target.c (do_xfer_memory): Correct reference to the new option
7560 "trust-readonly-sections".
7562 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
7564 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7565 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7566 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7568 (read_array_type): Record the fact that this array type is really a
7569 vector (i.e. are passed in by value).
7571 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7573 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7574 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7575 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7576 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7577 * alpha-linux-tdep.c: Include frame.h.
7578 (alpha_linux_sigcontext_addr): New function.
7579 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7580 alpha_linux_sigcontext_addr.
7581 * alpha-osf1-tdep.c: Include gdbcore.h.
7582 (alpha_osf1_sigcontext_addr): New function.
7583 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7584 alpha_osf1_sigcontext_addr.
7585 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7586 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7588 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7590 * stack.c (selected_frame_level):
7591 (select_frame): Do not set selected_frame_level.
7592 * frame.h (selected_frame_level): Delete declaration.
7594 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7596 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7597 convert_from_func_ptr-addr when AIX / PowerOpen.
7599 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7601 * valops.c (hand_function_call): Call
7602 generic_save_call_dummy_addr.
7603 * frame.h (generic_save_call_dummy_addr): Declare.
7604 * blockframe.c (struct dummy_frame): Add fields call_lo and
7606 (generic_find_dummy_frame): Check for PC in range call_lo to
7607 call_hi instead of entry_point_address.
7608 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7609 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7610 (generic_save_call_dummy_addr): New function.
7612 2002-04-24 David S. Miller <davem@redhat.com>
7614 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7615 sparc_skip_prologue.
7616 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7617 information to find prologue when possible.
7618 (sparc_prologue_frameless_p): Call examine_prologue directly.
7619 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7620 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7622 (SKIP_PROLOGUE): Likewise.
7624 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7626 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7627 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7628 indicate that the condition it was testing is always true.
7629 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7630 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7631 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7633 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7635 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7636 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7637 tdep->jb_pc and tdep->jb_elt_size.
7638 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7639 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7640 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7641 * alpha-nat.c (get_longjmp_target): Remove.
7642 (JB_ELEMENT_SIZE): Ditto.
7644 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7645 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7646 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7647 to alpha_get_longjmp_target.
7648 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7649 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7650 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7652 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7654 * README: Update to GDB 5.2.
7656 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7658 * gdbarch.sh (LC_ALL): Set to `c'.
7660 2002-04-25 Theodore A. Roth <troth@verinet.com>
7662 * avr-tdep.c: Ran through gdb_indent.sh.
7664 2002-04-25 Theodore A. Roth <troth@verinet.com>
7666 * MAINTAINERS: Add myself as AVR maintainer.
7667 * NEWS: Note new target avr.
7669 2002-04-25 Theodore A. Roth <troth@verinet.com>
7671 * Makefile.in: Add support for AVR target.
7672 * configure.tgt: Add support for AVR target.
7673 * avr-tdep.c: New file
7674 * config/avr/avr.mt: New file.
7676 2002-04-25 Theodore A. Roth <troth@verinet.com>
7678 * MAINTAINERS: Add myself to write-after-approval.
7680 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7682 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7683 with fprintf_unfiltered (gdb_stderr,....
7685 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7688 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7690 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7692 * p-exp.y: Also use new prev_lexptr variable
7693 to improve error reporting. Based on Michael Snyder
7694 2002-04-24 dated patch to c-exp.y.
7696 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7698 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7699 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7700 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7702 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7704 (FUNCTION_START_OFFSET): Remove.
7705 (BREAKPOINT): Ditto.
7707 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7709 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7712 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7714 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7715 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7716 alpha_linux_pc_in_sigtramp.
7717 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7718 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7719 alpha_osf1_pc_in_sigtramp.
7720 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7721 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7722 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7723 alphafbsd_pc_in_sigtramp.
7724 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7725 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7726 alphanbsd_pc_in_sigtramp.
7727 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7728 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7730 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7732 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7734 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7736 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7738 (alphanbsd-nat.o): New dependency list.
7739 (alphanbsd-tdep.o): Ditto.
7740 * NEWS: Note new native NetBSD/alpha configuration.
7741 * alphanbsd-nat.c: New file.
7742 * alphanbsd-tdep.c: Ditto.
7743 * configure.host (alpha*-*-netbsd*): New host.
7744 * configure.tgt (alpha*-*-netbsd*): New target.
7745 * config/alpha/nbsd.mh: New file.
7746 * config/alpha/nbsd.mt: Ditto.
7747 * config/alpha/nm-nbsd.h: Ditto.
7748 * config/alpha/tm-nbsd.h: Ditto.
7750 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7752 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7753 (alpha-osf1-tdep.o): New dependency list.
7754 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7755 and skip_sigtramp_frame members.
7756 * alpha-linux-tdep.c: Include gdbcore.h.
7757 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7758 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7759 * alpha-osf1-tdep.c: New file.
7760 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7762 (alpha_frame_past_sigtramp_frame): New function.
7763 (alpha_dynamic_sigtramp_offset): Ditto.
7764 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7765 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7766 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7767 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7768 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7769 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7770 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7771 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7772 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7773 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7774 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7775 to find_solib_trampoline_target.
7776 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7777 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7778 (SKIP_TRAMPOLINE_CODE): Remove.
7779 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7780 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7781 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7782 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7783 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7784 (PROC_SIGTRAMP_MAGIC): Ditto.
7785 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7786 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7787 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7788 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7789 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7791 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7793 * NEWS: Note that Alpha targets are now multi-arch.
7795 2002-04-24 Michael Snyder <msnyder@redhat.com>
7797 * parser-defs.h (prev_lexptr): New external variable.
7798 * parse.c (parse_exp_1): Set prev_lexptr to null before
7799 calling the language-specific parser.
7800 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7801 (yyerror): Use prev_lexptr in error reporting.
7803 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
7805 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7806 * gregset.h: If FILL_FPXREGSET is defined, provide
7807 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7808 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7809 is defined, call fill_fpxregset.
7811 2002-04-24 Roland McGrath <roland@frob.com>
7813 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7814 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7815 (supply_gregset, supply_fpregset): New functions.
7817 * gnu-nat.c (gnu_find_memory_regions): New function.
7818 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7819 (gnu_xfer_memory): Add a cast.
7821 2002-04-24 Michael Snyder <msnyder@redhat.com>
7823 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
7824 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7825 of argument regs ("str r(0123), [r11, #-nn"]).
7826 (arm_skip_prologue): Better handling for frameless functions.
7827 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7828 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7830 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7832 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7833 NUM_PSEUDO_REGS can be used.
7835 2002-04-24 Andrew Cagney <ac131313@redhat.com>
7837 * arch-utils.h: Update copyright.
7839 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7840 * gdbarch.h, gdbarch.c: Re-generate.
7842 * inferior.h (IN_SIGTRAMP): Delete definition.
7843 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7844 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7846 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7847 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7848 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7849 (find_proc_framesize): Ditto.
7850 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7851 (alpha_init_extra_frame_info): Ditto.
7852 * infrun.c (handle_inferior_event): Ditto.
7853 (handle_inferior_event): Ditto.
7854 (check_sigtramp2): Ditto.
7855 * blockframe.c (create_new_frame): Ditto.
7856 (get_prev_frame): Ditto.
7857 * ppc-linux-tdep.c: Update comments.
7858 * i386-linux-tdep.c: Update comments.
7859 * breakpoint.c (bpstat_what): Update comment.
7861 2002-04-24 David S. Miller <davem@redhat.com>
7863 * i960-tdep.c (register_in_window_p): New function.
7864 (i960_find_saved_register): Use it instead of
7865 REGISTER_IN_WINDOW_P.
7866 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7868 * symtab.h (find_stab_function_addr): Kill extern.
7869 * minsyms.c (find_stab_function_addr): Remove from here...
7870 * dbxread.c: ... to here, and mark it static.
7872 2002-04-20 David S. Miller <davem@redhat.com>
7874 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7875 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7877 2002-04-21 David S. Miller <davem@redhat.com>
7879 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7880 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7881 (vx_write_register): Likewise.
7883 2002-04-23 J. Brobecker <brobecker@gnat.com>
7885 * source.c (is_regular_file): New function.
7886 (openp): Check wether file to open is a regular file
7887 to avoid opening directories.
7889 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7891 * findvar.c (extract_signed_integer): Cast printf argument
7892 to suppress format warning.
7893 (extract_unsigned_integer): Likewise.
7894 * infcmd.c (registers_info): Likewise.
7895 * top.c (get_prompt_1): Likewise.
7896 * valops.c (value_assign): Likewise.
7897 * valprint.c (print_decimal): Likewise.
7899 2002-04-22 H.J. Lu (hjl@gnu.org)
7901 * c-exp.y (typebase): Support
7903 [long|long long|short] [signed|unsigned] [int|]
7907 signed [long|long long|short] int
7909 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7911 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7913 * vax-tdep.h: New file.
7914 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7915 Make several routines static.
7916 (vax_get_saved_register): New function.
7917 (vax_gdbarch_init): New function.
7918 (_initialize_vax_tdep): Register vax_gdbarch_init.
7919 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7920 Remove macros now under the control of gdbarch.
7922 2002-04-22 Michael Snyder <msnyder@redhat.com>
7924 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7925 Some whitespace and coding standards tweaks.
7927 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7929 * vax-tdep.c: Include regcache.h.
7930 (vax_call_dummy_words): New.
7931 (sizeof_vax_call_dummy_words): New.
7932 (vax_fix_call_dummy): New function.
7933 (vax_saved_pc_after_call): Ditto.
7934 * config/vax/tm-vax.h: Don't include regcache.h.
7935 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7936 (CALL_DUMMY): Remove.
7937 (CALL_DUMMY_WORDS): Define.
7938 (SIZEOF_CALL_DUMMY_WORDS): Define.
7939 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7941 2002-04-18 Michael Snyder <msnyder@redhat.com>
7943 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7945 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7947 * vax-tdep.c (vax_frame_chain): New function.
7948 (vax_push_dummy_frame): Ditto.
7949 (vax_pop_frame): Ditto.
7950 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7951 (FRAMELESS_FUNCTION_INVOCATION): Use
7952 generic_frameless_function_invocation_not.
7953 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7954 (POP_FRAME): Use vax_pop_frame.
7956 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7958 * vax-tdep.c (vax_store_struct_return): New function.
7959 (vax_extract_return_value): Ditto.
7960 (vax_store_return_value): Ditto.
7961 (vax_extract_struct_value_address): Ditto.
7962 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7963 vax_store_struct_return.
7964 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7965 (STORE_RETURN_VALUE): Use vax_store_return_value.
7966 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7968 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7970 * vax-tdep.c (vax_frame_saved_pc): New function.
7971 (vax_frame_args_address_correct): Ditto.
7972 (vax_frame_args_address): Ditto.
7973 (vax_frame_locals_address): Ditto.
7974 (vax_frame_num_args): Move code to be in proximity to
7975 other frame-related functions.
7976 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7977 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7978 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7979 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7980 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7982 2002-04-22 H.J. Lu (hjl@gnu.org)
7984 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7987 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7989 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7990 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7991 (FRAME_INIT_SAVED_REGS): New macro.
7993 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7995 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7997 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7999 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
8001 (fetch_osf_core_registers): Likewise.
8002 (supply_gregset): Likewise.
8004 2002-04-22 J. Brobecker <brobecker@gnat.com>
8006 * symfile.h (get_section_index): Define.
8007 * symfile.c (get_section_index): New function.
8008 * mdebugread.c (SC_IS_SBSS): New macro.
8009 (SC_IS_BSS): Return true for the scBss storage class only, as
8010 the scSBss storage class refers to the .sbss section.
8011 (parse_partial_symbols): Discard the symbols which associated
8012 section does not exist.
8013 Make sure to use the .sbss section index for symbols which
8014 storage class is scBss, rather than using the .bss section index.
8016 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8018 * vax-tdep.c: Update copyright years.
8019 (vax_register_name): New function.
8020 (vax_register_byte): Ditto.
8021 (vax_register_raw_size): Ditto.
8022 (vax_register_virtual_size): Ditto.
8023 (vax_register_virtual_type): Ditto.
8024 * config/vax/tm-vax.h: Update copyright years.
8025 (REGISTER_NAMES): Remove.
8026 (REGISTER_NAME): Define.
8027 (REGISTER_BYTE): Use vax_register_byte.
8028 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
8029 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
8030 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
8032 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8034 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
8036 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
8038 2002-04-21 David S. Miller <davem@redhat.com>
8040 * arch-utils.c (generic_prologue_frameless_p): Kill
8041 SKIP_PROLOGUE_FRAMELESS_P code.
8042 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8044 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
8045 * arc-tdep.c (arc_prologue_frameless_p): Implement.
8046 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8048 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
8049 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
8050 (sparc_gdbarch_init): Pass it to
8051 set_gdbarch_prologue_frameless_p.
8053 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8055 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
8056 (alphabsd-nat.o): New dependency list.
8058 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8060 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8062 (alpha-linux-tdep.o): New dependency list.
8063 (alphafbsd-tdep.o): Likewise.
8065 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8067 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
8069 * alpha-tdep.c: ...from here.
8070 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8072 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8074 * config/alpha/tm-alpha.h: Move alpha_software_single_step
8075 prototype from here...
8076 * alpha-tdep.h: ...to here.
8078 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8080 * frame.h (selected_frame_level): Document as deprecated.
8081 (frame_relative_level): Declare.
8082 * stack.c (frame_relative_level): New function.
8083 (selected_frame_level): Document as deprecated.
8084 (select_frame): Do not set the selected_frame_level.
8086 * stack.c (frame_info, record_selected_frame): Update.
8087 (frame_command, current_frame_command): Update.
8088 (up_silently_base, up_command, down_silently_base): Update.
8089 (down_command): Update.
8090 * inflow.c (kill_command): Update.
8091 * tracepoint.c (finish_tfind_command): Update.
8092 * corelow.c (core_open): Update.
8093 * thread.c (info_threads_command): Update.
8094 (do_captured_thread_select): Update.
8095 * infcmd.c (finish_command): Update.
8096 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8098 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8100 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8102 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8104 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8107 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8109 * alphafbsd-tdep.c: Update copyright years. Include
8111 (alphafbsd_use_struct_convention): Make static.
8112 (alphafbsd_init_abi): New function.
8113 (_initialize_alphafbsd_tdep): New function.
8114 * config/alpha/tm-fbsd.h: Update copyright years.
8115 (USE_STRUCT_CONVENTION): Remove.
8117 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8119 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8120 an Alpha ABI variant.
8121 (alpha_abi_handler_list): Declare.
8122 (alpha_gdbarch_register_os_abi): New function.
8123 (alpha_gdbarch_init): Give registered ABI variant handlers a
8124 chance to tweak the gdbarch once we have set up defaults.
8125 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8127 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8129 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8130 to standard_coerce_float_to_double.
8131 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8133 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8135 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8136 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8137 from gdbarch_tdep rather than a constant.
8138 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8139 the default text address for all Alpha Unix ABIs.
8140 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8141 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8143 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8145 * alpha-tdep.h: New file. Includes several Alpha target constants
8147 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8148 let gdbarch deal with.
8149 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8150 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8152 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8153 Alpha target register names.
8154 * alphabsd-nat.c: Likewise.
8155 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8156 Alpha target register names. Make serveral routines static.
8157 (alpha_get_saved_register): New function.
8158 (alpha_abi_names): New.
8159 (process_note_abi_tag_sections): New function.
8160 (get_elfosabi): New function.
8161 (alpha_gdbarch_init): New function.
8162 (alpha_dump_tdep): New function.
8163 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8165 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8167 * frame.c (find_saved_register): Delete #ifdef
8168 HAVE_REGISTER_WINDOWS code.
8169 * config/sparc/tm-sparc.h: Update comments.
8170 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8172 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8174 * i960-tdep.c (i960_find_saved_register): New function.
8175 (i960_get_saved_register): New function.
8176 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8177 (i960_get_saved_register): Declare.
8178 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8180 2002-04-20 David S. Miller <davem@redhat.com>
8182 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8184 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8186 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8187 instead of NUM_PSEUDO_REGS.
8189 2002-04-20 David S. Miller <davem@redhat.com>
8191 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8192 GDB_MULTI_ARCH_PARTIAL
8193 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8194 define, let tm-sp64.h do it.
8196 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8198 * frame.c (find_saved_register): Avoid a NULL pointer
8199 dereference and actually walk the frame list.
8201 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8203 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8204 sorted in most most-recent-used order. Document.
8205 * gdbarch.h, gdbarch.c: Regenerate.
8207 2002-04-19 Andrew Cagney <ac131313@redhat.com>
8209 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8211 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8212 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8213 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8216 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
8219 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8220 (build_builtin_type_vec128): Ditto.
8221 (append_composite_type_field): Fix calculation of type length in
8224 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8226 * config/djgpp/README: Update.
8228 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8231 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8233 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8234 (alpha_setup_arbitrary_frame): ...to this.
8235 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8236 for alpha_setup_arbitrary_frame.
8238 2002-04-18 Andrew Cagney <cagney@redhat.com>
8240 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8241 * gdbarch.h, gdbarch.c: Regenerate.
8243 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8244 * target.h (memory_breakpoint_from_pc): Update declaration.
8245 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8247 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8248 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8249 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8250 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8251 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8252 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8253 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8254 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8255 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8256 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8257 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8258 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8260 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8262 * monitor.c (monitor_insert_breakpoint): Ditto.
8263 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8265 * config/mcore/tm-mcore.h: Update copyright.
8266 * mem-break.c: Ditto.
8267 * xstormy16-tdep.c: Ditto.
8269 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8271 * p-exp.y: Add precedence rule for '^' token.
8272 This removes the shift/reduce conflicts.
8273 Remove the comment concerning these shift/reduce conflicts.
8275 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
8277 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8278 (registers_powerpc_nofp): New register set for processors
8279 without floating point unit.
8281 2002-04-18 David S. Miller <davem@redhat.com>
8283 * MAINTAINERS: Add myself to write-after-approval.
8285 2002-04-17 Michael Snyder <msnyder@redhat.com>
8287 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8289 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8291 * rs6000-tdep.c (frame_initial_stack_address): Use
8292 frame_register_read to read the alloca_reg.
8294 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8296 * frame.c (find_saved_register): Find saved registers in the next
8300 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8302 * gdbarch.sh (LANG): Set to ``c''.
8304 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8306 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8308 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8310 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8313 * hpread.c (hpread_get_lntt): Add declaration.
8314 Also fix PR gdb/391.
8316 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8318 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8319 * aclocal.m4, configure: Re-generate.
8322 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8324 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8325 instead of tm_print_insn.
8327 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8329 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8331 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8333 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8334 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8335 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8337 2002-04-12 Don Howard <dhoward@redhat.com>
8339 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8340 max_user_call_depth.
8341 (init_cmd_lists): Initialize the new value;
8342 * cli/cli-script.c (execute_user_command): Limit the call depth of
8343 user defined commands. This avoids a core-dump when user commands
8344 are infinitly recursive.
8346 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8348 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8349 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8350 from tdep struct instead of DEFAULT_LR_SAVE.
8351 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8352 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8353 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8355 2002-04-12 Michael Snyder <msnyder@redhat.com>
8357 * Remote.c: Spelling fix.
8358 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8359 If no symbol found for "sbrk", try "_sbrk".
8360 (make_output_phdrs): Use bfd_section_name.
8361 (gcore_copy_callback): Use bfd_section_name.
8362 * eval.c: Indentation fix-ups.
8363 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8364 in case it gets applied to an address that is already
8365 in the instruction space.
8366 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8367 * symfile.c: Fix indentation, long lines.
8368 * source.c: White space fix-up.
8370 2002-04-12 Andrew Cagney <cagney@redhat.com>
8372 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8373 * frame.c (frame_register_read): New function. Return non-zero on
8375 (read_relative_register_raw_bytes_for_frame): Delete.
8376 (read_relative_register_raw_bytes): Delete.
8377 * frame.h (frame_register_read): Declare.
8378 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8380 * infcmd.c (do_registers_info): Ditto.
8381 * hppa-tdep.c: Ditto.
8382 * rs6000-tdep.c: Ditto.
8383 * h8500-tdep.c: Ditto.
8384 * mips-tdep.c: Ditto.
8385 * h8300-tdep.c: Ditto.
8386 * z8k-tdep.c: Ditto.
8388 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8390 From Jimi X <jimix@watson.ibm.com>:
8391 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8394 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8396 From Jimi X <jimix@watson.ibm.com>:
8397 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8400 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8402 From Jimi X <jimix@watson.ibm.com>:
8403 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8404 register sets for these processor variants.
8406 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
8408 * regformats/reg-ppc.dat: Support FPSCR.
8410 2002-04-11 Kevin Buettner <kevinb@redhat.com>
8412 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8413 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8414 Add fpscr as an invalid/unfetchable register.
8415 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8416 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8417 (fill_fpregset): Add support for register fpscr.
8418 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8419 (fill_gregset): Account for the fact that register ``mq'' might
8421 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8422 (registers_power): Add fpscr to register set at slot 71.
8423 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8424 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8426 2002-04-11 Michael Snyder <msnyder@redhat.com>
8428 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8429 * configure: Regenerate.
8430 * config.in: Regenerate.
8431 * acconfig.h: Add define for _SYSCALL32.
8432 * core-sol2.c: Remove #define _SYSCALL32.
8433 * solib-legacy.c: Remove #define _SYSCALL32.
8435 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8437 * stack.c (select_frame): Cleanup internal error message, do not
8440 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8442 * stack.c (select_frame): Check that selected_frame and the
8443 specified level are as expected.
8444 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8446 * frame.h (struct frame_info): Add field `level'. Update
8448 Work-in-progress PR gdb/464.
8450 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8452 * maint.c (maint_print_section_info): Rename print_section_info.
8453 (print_bfd_section_info, print_objfile_section_info): Update.
8454 * inferior.h (struct gdbarch): Add opaque declaration.
8455 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8456 * gdbarch.h: Regenerate.
8458 2002-04-10 Michal Ludvig <mludvig@suse.cz>
8460 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8461 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8462 (kernel_u_size): Added.
8463 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8464 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8466 2002-04-04 Jim Ingham <jingham@apple.com>
8468 * valarith.c (find_size_for_pointer_math): New function, either returns
8469 the size for a pointer's target, returns 1 for void *, or errors for
8471 (value_add, value_sub): use find_size_for_pointer_math.
8473 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8475 * linux-low.c (linux_look_up_symbols): New hook.
8476 (linux_target_ops): Add linux_look_up_symbols.
8477 * remote-utils.c (decode_address): New function.
8478 (look_up_one_symbol): New function.
8479 * server.c (handle_query): Call target look_up_symbols hook.
8480 * server.h (look_up_one_symbol): Add prototype.
8481 * target.h (struct target_ops): Add look_up_symbols hook.
8483 2002-04-09 Andrew Cagney <ac131313@redhat.com>
8485 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8486 override FP_REGNUM with frame->fp. Update copyright.
8487 * parse.c (num_std_regs, std_regs): Delete.
8488 (target_map_name_to_register): Do not search std_regs. Update
8489 function description.
8490 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8491 declarations. Update copyright.
8494 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8496 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8497 after the last symbol in a block.
8499 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8501 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8502 is non zero as a found symbol.
8504 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8506 * findvar.c: Include "builtin-regs.h".
8507 (value_of_register): Call value_of_builtin_reg when applicable.
8508 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8509 (target_map_name_to_register): Call
8510 builtin_reg_map_name_to_regnum.
8511 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8512 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8513 (builtin_regs_h): Define.
8514 (builtin-regs.o): New target.
8515 (findvar.o): Add $(builtin_regs_h).
8516 * builtin-regs.c, builtin-regs.h: New files.
8517 * std-regs.c: New file.
8518 Partial fix for PR gdb/251.
8520 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8522 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8523 it's no longer required.
8525 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8527 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8529 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8531 From Jimi X <jimix@watson.ibm.com>:
8532 * rs6000-tdep.c (rs6000_software_single_step): Use
8533 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8534 and size. Use target_insert_breakpoint() and
8535 target_remove_breakpoint() to insert and remove breakpoints
8536 instead of explicit memory reads and writes.
8538 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8540 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8541 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8542 ELF_OBJECT_FORMAT ifdef.
8544 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8546 From Jimi X <jimix@watson.ibm.com>:
8547 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8549 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8551 From Jimi X <jimix@watson.ibm.com>:
8552 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8553 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8555 2002-04-07 Mark Kettenis <kettenis@gnu.org>
8557 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8558 s/asprintf/xasprintf/.
8559 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8561 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8563 I believe Jeff Law denies responsability for this one:
8564 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8565 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8566 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8567 Work-around for PR gdb/366.
8569 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8571 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8572 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8573 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8575 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8577 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8578 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8581 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8583 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8586 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8588 * README (Reporting Bugs in GDB): Document the bug web page as the
8589 prefered way of submitting bugs.
8592 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8594 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8596 * gdbarch.h, gdbarch.c: Re-generate.
8598 2002-04-07 Andreas Schwab <schwab@suse.de>
8600 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8601 buffer to regcache_collect.
8603 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8605 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8606 * gdbarch.c, gdbarch.h: Re-generate.
8608 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8610 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8611 declaration. Fix -Werror.
8613 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
8615 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8616 * gdbarch.c: Regenerate.
8618 2002-04-05 Michael Snyder <msnyder@redhat.com>
8620 * breakpoint.c (clear_command): Rewrite middle section to
8621 combine two loops with identical control conditions.
8622 Add a cleanup to eliminate a memory leak.
8623 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8625 2002-04-05 H.J. Lu (hjl@gnu.org)
8627 * solib-svr4.c (bkpt_names): Add "__start".
8629 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8631 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8632 as test for 64 bit target.
8634 2002-04-05 Andrew Cagney <ac131313@redhat.com>
8636 * h8500-tdep.c (h8500_write_fp): Delete function.
8637 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8638 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8639 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8640 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8641 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8642 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8644 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8645 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8646 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8647 (d10v_write_fp): Delete function.
8648 * inferior.h (write_fp, generic_target_write_fp): Delete
8650 * regcache.c (generic_target_write_fp): Delete function.
8651 (write_fp): Delete function.
8652 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8653 * gdbarch.h, gdbarch.c: Regenerate.
8654 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8655 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8656 (sparc64_write_fp): Delete declaration.
8657 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8658 (h8500_write_fp): Delete declaration.
8660 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8662 * sparc-tdep.c (sparc64_write_fp): Delete.
8663 (sparc_push_dummy_frame): Replace write_fp call with code to store
8665 (sparc_gdbarch_init): Do not initialize write_fp.
8667 2002-04-05 Kevin Buettner <kevinb@redhat.com>
8669 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8672 2002-03-29 Jim Blandy <jimb@redhat.com>
8674 * stack.c (get_selected_block): Add new argument `addr_in_block',
8675 used to return the exact code address we used to select the block,
8677 * blockframe.c (get_frame_block, get_current_block): Same.
8678 * frame.h (get_frame_block, get_current_block,
8679 get_selected_block): Update declarations.
8680 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8681 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8683 2002-04-05 Michael Snyder <msnyder@redhat.com>
8685 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8688 2002-04-05 J. Brobecker <brobecker@gnat.com>
8690 * utils.c (xfullpath): New function.
8691 * defs.h (xfullpath): Add declaration.
8692 * source.c (openp): Use xfullpath in place of gdb_realpath to
8693 avoid resolving the basename part of filenames when the
8694 associated file is a symbolic link. This fixes a potential
8695 inconsistency between the filenames known to GDB and the
8696 filenames it prints in the annotations.
8697 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8698 to be able to match a filename with either the real filename, or
8699 the name of any symbolic link to this file.
8700 (lookup_partial_symtab): Ditto.
8702 2002-04-04 Michael Snyder <msnyder@redhat.com>
8704 * breakpoint.c: Add support for hardware breakpoints in overlays.
8705 (overlay_events_enabled): New state variable.
8706 (insert_breakpoints): Use overlay_events_enabled to decide
8707 whether to attempt to set a breakpoint at the overlay load addr.
8708 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8709 (remove_breakpoint): Use overlay_events_enabled to decide
8710 whether breakpoints need to be removed from overlay load addr.
8711 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8712 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8713 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8714 disable_overlay_breakpoints): Update overlay_events_enabled.
8716 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
8718 * dwarf2read.c (struct function_range): New.
8719 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8720 (check_cu_functions): New.
8721 (read_file_scope): Initialize global function lists.
8722 Call dwarf_decode_line after processing children.
8723 (read_func_scope): Add to global function list.
8724 (dwarf_decode_lines): Call check_cu_functions everywhere
8725 record_line is called. Call record_line with a linenumber
8726 of 0 to mark sequence ends.
8728 2002-04-04 Michal Ludvig <mludvig@suse.cz>
8730 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8731 change sync with glibc.
8733 2002-04-03 Jim Blandy <jimb@redhat.com>
8735 * configure.in: Call AC_C_INLINE.
8736 * configure: Regenerated.
8738 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
8740 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8741 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8743 2002-03-31 Mark Kettenis <kettenis@gnu.org>
8745 * NEWS: Mention gcore support on FreeBSD/i386.
8747 * fbsd-proc.c: New file.
8748 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8749 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8751 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8754 2002-03-29 Jim Blandy <jimb@redhat.com>
8756 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8757 unescaped newlines in string literals, but newer ones don't. So
8760 2002-03-26 Michael Snyder <msnyder@redhat.com>
8761 Andrew Cagney <cagney@redhat.com>
8763 * cli/cli-dump.c: New file. Dump memory to file,
8764 restore file to memory.
8765 * cli/cli-dump.h: New file.
8766 * Makefile.in: Add rules, dependencies for cli-dump.o.
8767 * NEWS: Mention new commands.
8769 2002-03-28 Michael Snyder <msnyder@redhat.com>
8771 * symfile.c (symbol_file_add): Move test for null symbols to later.
8773 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8775 From veksler at il.ibm.com:
8776 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8777 the xstrduped original path.
8780 2002-03-27 Michael Snyder <msnyder@redhat.com>
8782 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8783 * infcmd.c (_initialize_infcmd): Ditto.
8784 * language.c (_initialize_language): Ditto.
8785 * symfile.c (_initialize_symfile): Ditto.
8786 * top.c (_init_main): Ditto.
8787 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8789 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
8791 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8792 vector registers handling.
8793 (skip_prologue): Handle new AltiVec instructions. Fill in new
8794 fields of frame data.
8795 (frame_get_saved_regs): Fill in information for AltiVec registers.
8797 2002-03-27 Jim Blandy <jimb@redhat.com>
8799 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8800 a function; leave this macro here to invoke that function.
8801 (symbol_init_mangled_name): Declaration for that function.
8802 * symtab.c (symbol_init_mangled_name): New function.
8804 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8806 * valarith.c: Replace strerror with safe_strerror.
8807 * tracepoint.c: Ditto.
8809 * go32-nat.c: Ditto.
8813 2002-03-27 Andreas Schwab <schwab@suse.de>
8815 * event-top.c (command_line_handler): Remove useless if.
8817 2002-03-27 Andreas Jaeger <aj@suse.de>
8819 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8822 2002-03-27 Michal Ludvig <mludvig@suse.cz>
8824 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8825 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8826 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8827 (x86_64_linux_dr_get_status, supply_gregset),
8828 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8829 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8830 (x86_64_register_info_table): Add.
8831 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8832 (x86_64_register_raw_size, x86_64_register_virtual_type),
8833 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8834 general x86_64_register_info_table.
8835 (i386_gdbarch_init): gdbarch_register_bytes is now set
8836 dynamicaly during initialization.
8837 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8838 * gdbserver/linux-x86-64-low.c: Ditto.
8840 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8842 * gdbserver/server.c (main): Call target_signal_to_host_p
8843 and target_signal_to_host on signals received from the remote.
8844 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8845 target_signal_from_host on signals sent to the remote.
8846 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8847 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8849 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8851 * signals/signals.c: Include "server.h" in gdbserver build.
8852 (target_signal_from_name): Don't use STREQ.
8853 (_initialize_signals): Likewise. Don't include function in
8856 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8858 * signals.c: Moved to...
8859 * signals/signals.c: Here.
8860 * Makefile (signals.o): Update.
8862 2002-03-26 Jeff Law (law@redhat.com)
8864 * somread.c (som_symtab_read): Remove some commented out code and
8865 updated related comments. Do not set the minimal symbol table to
8866 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8867 in a dynamic executable.
8868 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8869 where we are unable to find the minimal symbol for the given
8872 2002-03-25 Jeff Law (law@redhat.com)
8874 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8876 2002-03-25 Michal Ludvig <mludvig@suse.cz>
8878 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8880 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8882 * command.h: Update copyright.
8883 (struct cmd_list_element): Replace definition with opaque
8885 (enum cmd_types): Document that it will eventually be moved to
8887 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8888 (MALLOCED_REPLACEMENT): Delete macro.
8889 * Makefile.in (cli_decode_h): Add $(command_h).
8890 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8891 * top.c: Include "cli/cli-decode.h".
8892 * completer.c: Include "cli/cli-decode.h".
8893 * maint.c: Include "cli/cli-decode.h".
8894 * cli/cli-decode.h: Include "command.h".
8895 (enum command_class): Delete.
8896 (enum cmd_types): Comment out.
8897 (enum cmd_auto_boolean): Delete.
8898 (enum var_types): Delete.
8900 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8902 * cli/cli-decode.c: Include "gdb_assert.h".
8903 (add_set_or_show_cmd): New static function.
8904 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8905 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8906 all fields, such as func, from the set command.
8908 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8910 * MAINTAINERS (sh-elf): Change warning flag to -w.
8912 2002-03-23 Andrew Cagney <cagney@redhat.com>
8914 * defs.h (error): Add printf format attribute.
8915 * thread-db.c (thread_from_lwp): Fix error format string.
8916 * stack.c (parse_frame_specification): Ditto.
8917 * cli/cli-decode.c (undef_cmd_error): Ditto.
8918 * scm-lang.c (scm_lookup_name): Ditto.
8919 * tracepoint.c (trace_error): Ditto.
8920 * remote-utils.c (usage): Ditto.
8921 * remote.c (compare_sections_command): Ditto.
8924 2002-03-22 Andrew Cagney <ac131313@redhat.com>
8926 * gdbtypes.c (append_composite_type_field): New function.
8927 (init_composite_type): New function.
8928 * gdbtypes.h (append_composite_type_field): Declare.
8929 (init_composite_type): Ditto.
8931 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
8933 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
8935 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8936 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8937 structure returning convention for SYSV ABI case, but not
8938 for GNU/Linux, FreeBSD, or NetBSD.
8940 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
8942 * symtab.h (lookup_block_symbol): Add mangled_name argument
8945 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8946 with new mangled_name argument.
8947 * linespec.c (decode_line_1): Likewise.
8948 * valops (value_of_this): Likewise.
8949 * symtab.c (lookup_transparent_type): Likewise.
8950 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8951 (lookup_symbol): If we are given a mangled name, pass it down
8952 to lookup_symbol_aux.
8953 (lookup_block_symbol): If we are given a mangled name to check
8954 against, only return symbols which match it.
8956 2002-03-22 Christopher Faylor <cgf@redhat.com>
8958 * win32-nat.c (child_create_inferior): Check for proper shell to use
8959 here, in case the user changes it on the fly.
8960 (_initialize_inftarg): Remove shell path considerations.
8962 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
8964 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8965 for gdbarch_max_register_raw_size and max_register_virtual_size.
8966 Adjust copyright year.
8968 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
8970 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8971 in a function to cover the entire beginning of the function
8972 as well if it does not already.
8974 2002-03-21 Tom Rix <trix@redhat.com>
8976 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8977 (rs6000_ptrace64): Renamed from ptrace64.
8979 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8981 * gdbserver/remote-utils.c (remote_open): Don't call
8982 getprotobyname, we're all using TCP here so just use
8984 * gdbserver/gdbreplay.c (remote_open): Ditto.
8986 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8988 * regcache.c (_initialize_regcache): No need to call
8989 build_regcache() at this time; it gets called whenever
8990 the gdbarch changes.
8992 2002-03-20 David O'Brien <obrien@FreeBSD.org>
8994 * sparc-nat.c: Include sys/param.h where possible.
8996 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
8999 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
9000 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
9001 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
9003 * stabsread.c (rs6000_builtin_type): Likewise.
9004 (read_sun_floating_type): Likewise.
9006 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9008 * stabsread.c (read_member_functions): Remove skip code for duplicate
9009 constructor/destructor methods. Use standard parsing for these
9010 methods and just do not chain them to the list of methods after
9013 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
9015 * coffread.c: Remove redundant static declarations. Replace
9016 occurrences of `PTR' with `void *'.
9017 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
9018 * top.h (quit_cover): Likewise.
9019 * defs.h (catch_errors): Likewise.
9021 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9023 * defs.h (XMALLOC): Define.
9024 * gdb-events.sh (XMALLOC): Delete macro.
9025 * gdb-events.c, gdb-events.h: Regenerate.
9026 * gdbarch.sh (XMALLOC): Delete macro.
9027 * gdbarch.c: Regenerate.
9028 * serial.c (XMALLOC): Delete macro.
9029 * ui-file.c (XMALLOC): Ditto.
9030 * ser-unix.h (XMALLOC): Ditto.
9031 * sh-tdep.c (XMALLOC): Ditto.
9032 * ui-out.c (XMALLOC): Ditto.
9033 * utils.c (XMALLOC): Ditto.
9034 * i386-tdep.c (XMALLOC): Ditto.
9035 * gdb-events.c (XMALLOC): Ditto.
9036 * d10v-tdep.c (XMALLOC): Ditto.
9037 * cli-out.c (XMALLOC): Ditto.
9039 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
9040 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
9041 * ui-file.c, ui-out.c: Ditto.
9043 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9045 * command.h (struct cmd_list_element): Add field context.
9046 (set_cmd_context, get_cmd_context): Declare.
9047 * cli/cli-decode.h: Ditto.
9048 * cli/cli-decode.c (get_cmd_context): New function.
9049 (set_cmd_context): New function.
9050 (add_cmd): Initialize context.
9051 Part of fixing PR gdb/145 and PR gdb/146.
9053 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9055 * cli/cli-decode.c (cmd_type): New function.
9056 * command.h (cmd_type): Declare.
9057 * infrun.c (set_schedlock_func): Call function cmd_type.
9058 * kod.c (kod_set_os): Call cmd_type.
9059 * cris-tdep.c (cris_version_update): Use function cmd_type.
9060 (cris_mode_update, cris_abi_update): Ditto.
9062 * command.h: (execute_cmd_post_hook): Declare.
9063 (execute_cmd_pre_hook): Declare.
9064 * cli/cli-script.c (clear_hook_in_cleanup): New function.
9065 (execute_cmd_post_hook, execute_cmd_pre_hook): New
9066 functions. Execute pre/post hook while ensuring that afterwords
9068 * top.c (execute_command): Use execute_cmd_post_hook, and
9069 execute_cmd_pre_hook to execute pre/post commands.
9070 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
9072 (hook_stop_stub): Call execute_cmd_pre_hook.
9074 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9076 * kod.c (kod_set_os): Revert previous change. Is called by ``info
9077 set'' and this leads to a core dump. Move xstrdup of
9078 operating_system to after check that it is not NULL.
9080 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9082 * kod.c (kod_set_os): Remove unnecessary check that
9083 ``command->type'' is set_cmd.
9085 * valprint.c (set_input_radix): Use input_radix.
9086 (set_output_radix): Use output_radix.
9087 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9090 2002-03-16 Andrew Cagney <ac131313@redhat.com>
9092 * value.h (struct value): Delete field ``substring_addr''. Change
9093 aligner fields to force_doublest_align, force_longest_align,
9094 force_core_addr_align and force_pointer_aligh.
9096 * value.h (struct value): Fix typo in above change.
9098 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9100 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9101 to fix internal_error from ``maintenance print architecture''.
9103 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9105 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9106 for gcc versions after gcc-2.8.1.
9108 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9110 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9111 for method resolution. Restore adjustment of ``this'' pointer after
9112 calling value_struct_elt, which was accidentally removed during the
9115 2002-03-15 Andrew Cagney <ac131313@redhat.com>
9117 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9119 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9121 * value.h (value_of_register): Update.
9123 2002-03-14 Richard Henderson <rth@redhat.com>
9125 * configure.in: Detect declaration for canonicalize_file_name.
9126 * utils.c (canonicalize_file_name): Declare, if needed.
9127 (gdb_realpath): Prefer realpath if available and usable.
9128 * config.in, configure: Rebuild.
9130 2002-03-14 Richard Henderson <rth@redhat.com>
9132 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9133 a constant array bound.
9135 * MAINTAINERS: Add myself to write-after-approval.
9137 2002-03-14 Michael Snyder <msnyder@redhat.com>
9139 * symfile.c (syms_from_objfile): Return immediately if no syms.
9140 (symbol_file_add): Return immediately if no syms.
9141 (find_sym_fns): Return immediately if no syms.
9143 2002-03-13 Michal Ludvig <mludvig@suse.cz>
9145 * gdbserver/remote-util.c (remote_open): Print remote-side's
9146 IP address when remote debugging over the network.
9148 2002-03-12 David O'Brien <obrien@FreeBSD.org>
9150 * config/sparc/fbsd.mh: Fix copyright.
9151 * config/sparc/fbsd.mt: Likewise.
9153 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
9155 * MAINTAINERS: Fix typo in name of gdb warnings option.
9156 (x86-64): Fix formating so that this can be parsed by awk.
9158 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9160 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9161 * defs.h: Include "gdb/signals.h".
9162 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9164 2002-03-10 Michal Ludvig <mludvig@suse.cz>
9166 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
9167 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
9170 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9171 Don Howard <dhoward@redhat.com>
9173 * mips-tdep.c (ST0_FR): Define.
9174 (mips2_fp_compat): New function, temporarily disabled.
9175 (mips_read_fp_register_single): New function.
9176 (mips_read_fp_register_double): New function.
9177 (mips_print_register): Use them.
9178 (do_fp_register_row): Likewise.
9180 2002-03-09 Andrew Cagney <ac131313@redhat.com>
9182 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9185 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9187 * stabsread.c (read_member_functions): Fix is_stub test for
9188 static member functions, improve comment.
9190 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
9192 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9193 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9194 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9195 commands that set boolean values.
9196 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9197 (arm_rdi_resume): Always initialize PC.
9198 (arm_rdi_open): Don't use rslt as a boolean.
9199 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9200 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9201 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9202 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9204 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
9206 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9207 * configure: Rebuilt.
9209 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9211 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9212 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9214 2002-03-06 Andrew Cagney <ac131313@redhat.com>
9216 * cli/cli-decode.c (set_cmd_completer): New function.
9217 * command.h (set_cmd_completer): Declare.
9218 * cli/cli-decode.h (set_cmd_completer): Ditto.
9220 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9221 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9222 * win32-nat.c (_initialize_inftarg): Ditto.
9223 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9224 * proc-api.c (_initialize_proc_api): Ditto.
9225 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9226 * source.c (_initialize_source): Ditto.
9227 * exec.c (_initialize_exec): Ditto.
9228 * solib.c (_initialize_solib): Ditto.
9229 * top.c (init_main): Ditto.
9230 * tracepoint.c (_initialize_tracepoint): Ditto.
9231 * symfile.c (_initialize_symfile): Ditto.
9232 * printcmd.c (_initialize_printcmd): Ditto.
9233 * infcmd.c (_initialize_infcmd): Ditto.
9234 * corefile.c (_initialize_core): Ditto.
9236 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9238 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9240 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9242 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9244 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9246 * NEWS: Update headings, 5.2 has branched.
9248 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
9250 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9251 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9252 (register_addr, REGISTER_RAW_SIZE): Likewise.
9253 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9254 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9256 2002-03-03 Michal Ludvig <mludvig@suse.cz>
9258 * MAINTAINERS (x86-64): Add myself.
9259 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9260 changed value_ptr -> struct value *
9262 2002-03-01 David O'Brien <obrien@FreeBSD.org>
9264 * configure.host (sparc64-*-freebsd): Add.
9265 * configure.tgt: Likewise.
9266 * config/sparc/fbsd.mh: New file.
9267 * config/sparc/fbsd.mt: Likewise.
9268 * config/sparc/nm-fbsd.h: Likewise.
9269 * config/sparc/tm-fbsd.h: Likewise.
9271 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
9273 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9274 regformats/reg-s390x.dat.
9276 2002-03-01 Andrew Cagney <ac131313@redhat.com>
9278 * utils.c: Add FIXME explaining true/false problem.
9280 2002-02-28 Andrew Cagney <ac131313@redhat.com>
9282 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9284 2002-02-28 Michael Chastain <mec@shout.net>
9286 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9288 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
9290 * gdbserver/linux-s390-low.c: New file.
9291 * regformats/reg-s390.dat: New file.
9292 * regformats/reg-s390x.dat: New file.
9293 * gdbserver/configure.srv: Add S/390.
9294 * gdbserver/Makefile.in: Add S/390.
9295 * configure.tgt: Enable gdbserver for S/390.
9297 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9299 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9300 first line of the doc string for "info dos", except at the end of
9301 the sentence, since the short help stops at the first period.
9303 2002-02-28 Jason Merrill <jason@redhat.com>
9305 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9307 2002-02-27 Fred Fish <fnf@redhat.com>
9309 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9310 comment (dumy -> dummy).
9312 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9314 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9316 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
9318 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9320 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9322 * gdbserver/acconfig.h: New file.
9323 * gdbserver/i387-fp.c: New file.
9324 * gdbserver/i387-fp.h: New file.
9325 * gdbserver/linux-x86-64.c: New file.
9326 * regformats/reg-x86-64.dat: New file.
9327 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9328 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9329 * gdbserver/configure.in: Add support for regsets.
9330 * gdbserver/config.in: Regenerate.
9331 * gdbserver/configure: Regenerate.
9332 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9333 * gdbserver/linux-low.h: New file.
9334 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9336 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9337 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9338 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9339 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9340 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9341 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9342 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9343 "i387-fp.h". Add PTRACE_GETREGS and friends.
9344 * gdbserver/regcache.c (supply_register): New function.
9345 (supply_register_by_name): New function.
9346 (collect_register): New function.
9347 (collect_register_by_name): New function.
9349 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9351 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9352 (config.status): Add configure.srv dependency.
9353 (server_h): Add config.h dependency.
9355 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9357 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9358 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9359 * gdbserver/configure.srv: Change i386-*-linux* to use
9362 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9364 * x86-64-tdep.c: Re-indent. Update copyright date.
9366 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9368 From Michal Ludvig <mludvig@suse.cz>:
9369 * x86-64-tdep.c (value.h): Delete.
9370 (gdb_assert.h): Include.
9371 (x86_64_register_convert_to_virtual,
9372 x86_64_register_convert_to_raw ): Add check which lets only
9373 floating-point values to be converted.
9374 (value_push): Delete.
9375 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9376 (i386_gdbarch_init): Number of register_bytes fixed.
9378 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9380 * MAINTAINERS: Add x86-64 target.
9382 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9384 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9385 * osfsolib.c (solib_map_sections): Ditto.
9386 * irix5-nat.c (solib_map_sections): Ditto.
9387 * corelow.c (gdb_check_format): Ditto.
9388 * symfile.c (symfile_bfd_open): Ditto.
9389 * solib.c (solib_map_sections): Ditto.
9392 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9394 * remote.c (_initialize_remote): By default, disable ``e'' and
9395 ``E'' step out-of-range packets.
9397 2002-02-26 Andreas Schwab <schwab@suse.de>
9399 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9400 m68k_linux_frame_saved_pc.
9401 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9403 (SIGCONTEXT_PC_OFFSET): Remove.
9404 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9405 m68k_linux_sigtramp_saved_pc): New functions.
9406 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9407 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9408 (UCONTEXT_PC_OFFSET): Define.
9409 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9410 non-RT and RT signal trampolines.
9412 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
9414 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9415 (TARGET_NBPG, STACK_END_ADDR): Delete
9416 (VARIABLES_INSIDE_BLOCK): Delete.
9418 2002-02-25 Andrew Cagney <ac131313@redhat.com>
9420 * utils.c (perror_with_name): Make string parameter constant.
9421 (print_sys_errmsg): Ditto.
9423 * defs.h (perror_with_name): Update.
9424 (print_sys_errmsg): Update.
9427 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
9429 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9430 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9432 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9434 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9435 if it already matches the current architecture from the exec file.
9436 Include arch-utils.h for gdbarch_info_init prototype.
9437 * Makefile.in (rs6000-nat.o): Update dependencies.
9439 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9441 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9442 list of exported variables.
9444 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
9446 * gdbserver/configure.srv: New file.
9447 * gdbserver/configure.in: Use configure.srv instead
9448 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9450 * gdbserver/configure: Regenerated.
9451 * gdbserver/terminal.h: New file.
9452 * gdbserver/Makefile.in: Update for configure changes. Remove
9453 more unneeded include paths.
9455 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9457 From wiz at danbala:
9458 * config/sparc/tm-sp64.h: Fix grammar and typos.
9461 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9463 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9464 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9465 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9466 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9467 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9468 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9469 * s390-tdep.c: Ditto.
9470 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9471 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9472 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9473 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9474 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9475 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9476 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9477 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9478 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9479 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9482 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9484 * lin-thread.c: Delete file.
9485 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9486 to gdb_proc_service.h.
9487 * configure: Re-generate.
9489 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9490 * serial.c (serial_open): Delete check for "ocd".
9493 * Makefile.in (linux-thread.o): Delete target.
9494 * linux-thread.c: Delete file.
9496 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9497 renamed SH files to be consistent.
9499 * symtab.c (sort_search_symbols): Use xfree.
9501 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9503 * arm-linux-tdep.c (arm_linux_init_abi): Register
9504 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9505 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9506 definition with undef, since we don't want the sysvr4 definition.
9507 (SKIP_TRAMPOLINE_CODE): Likewise.
9509 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9511 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9513 * configure.in: (AC_CHECK_FUNCS) Added test for
9514 canonicalize_file_name Regenerated.
9515 * config.in, configure: Regenerated.
9516 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9517 defined use canonicalize_file_name.
9519 2002-02-23 Michael Chastain <mec@shout.net>
9521 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9523 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9525 * README: Remove references to cygnus.com.
9526 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9527 dot com'' form. Remove references to cygnus.com and sourceware.
9529 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9531 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9532 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9533 1003.1-2001 no longer allows "head -1".
9534 * gdb/Makefile.in (version.c): Likewise.
9535 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9536 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9537 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9539 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9541 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9542 * command.h (cmd_cfunc_eq): Declare.
9543 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9545 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9546 ``struct cmd_list_element *''.
9547 * cli/cli-cmds.c (is_complete_command): Update. Use
9549 * top.c (execute_command): Pass the command to
9550 is_complete_command.
9551 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9553 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9555 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9556 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9557 architecture defines.
9558 * s390-tdep.c (s390_gdbarch_init): Likewise.
9560 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9562 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9563 (arm_linux_push_arguments): Likewise.
9564 (arm_linux_init_abi): Register them. Also register linux-specific
9566 (find_minsym_and_objfile): Use strcmp, not STREQ.
9567 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9568 (arm_linux_call_dummy_words): Delete declaration.
9569 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9570 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9572 (LOWEST_PC): Delete.
9574 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9576 * maint.c (print_section_info): Do not prepend `0x' to filepos
9577 output, it will be handled by local_hex_string_custom.
9579 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9581 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9582 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9583 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9585 2002-02-22 Jim Blandy <jimb@redhat.com>
9587 Indicate that the bcache functions don't change the strings
9589 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9590 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9592 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9594 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9596 2002-02-21 Christopher Faylor <cgf@redhat.com>
9598 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9599 find the complete path to a loaded DLL.
9601 2002-02-21 Fred Fish <fnf@redhat.com>
9603 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9604 that marks the end of the range of a function, enter a line number
9605 entry that has a line number of zero and a PC offset that matches
9606 the end of the function. This starts a range of PC's for which no
9607 line number information is known.
9608 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9609 PC's for which no line number info is found (line number is zero)
9610 then we didn't find any valid line information.
9611 * symtab.h: Document use of zero line number entry.
9613 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
9615 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9616 (have_ptrace_getvrregs): Define for run time checks.
9617 (gdb_vrregset_t): New type for Altivec register handling.
9618 (fetch_register, store_register): Fetch/store altivec register
9620 (fetch_altivec_register, store_altivec_register): New functions.
9621 (supply_vrregset, fill_vrregset): New functions.
9622 (fetch_altivec_registers, store_altivec_registers): New functions.
9623 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9626 2002-02-21 Jiri Smid <smid@suse.cz>
9628 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9630 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9632 * Makefile.in (armnbsd-nat.o): Update dependencies.
9633 * armnbsd-nat.c (supply_gregset): New function. Common code to
9634 supply the integer register set.
9635 (supply_fparegset): New function. Similar for FPA registers.
9636 (fetch_regs, fetch_fp_regs): Use them.
9637 (fetch_core_registers): Likewise.
9638 (fetch_elfcore_registers): New function.
9639 (arm_netbsd_elfcore_fns): New core-file type specification.
9640 (_initialize_arm_netbsd_nat): Register it.
9642 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9644 * armnbsd-nat.c: Include gdbcore.h.
9645 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9646 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9647 'void' to declaration, to shut up ARI.
9648 (fetch_core_registers): Make static. Rewrite using supply_register.
9649 (arm_netbsd_core_fns): New core-file type specification.
9650 (_initialize_arm_netbsd_nat): New function.
9652 2002-02-21 Christopher Faylor <cgf@redhat.com>
9654 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9657 2002-02-20 Christopher Faylor <cgf@redhat.com>
9659 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9662 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9664 * jv-exp.y (parse_number): Change type of implicit longs
9665 to builtin_type_uint64.
9667 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9669 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9670 to be an integer instead of a `union wait'.
9672 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9674 * mips-linux-nat.c: Call the operating system GNU/Linux.
9675 * mips-linux-tdep.c: Likewise.
9676 * mips-tdep.c: Likewise.
9678 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9681 * jv-exp.y (parse_number): Handle 64-bit integers.
9683 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9685 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9686 AC_STDC_HEADERS to AC_HEADER_STDC.
9687 * gdbserver/configure: Regenerated.
9689 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9691 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9693 * sparc-tdep.c (get_longjmp_target): Likewise.
9695 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9697 * News: Add news about ARM and Multi-arch. Mention the new target
9700 2002-02-19 Jim Blandy <jimb@redhat.com>
9702 * stabsread.c (error_type_complaint): Improve error message.
9704 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
9706 * gdbserver/README: Update documentation.
9707 * gdbserver/configure.in: Update configury to match documentation.
9708 * gdbserver/Makefile.in: Likewise.
9709 * gdbserver/configure: Regenerated.
9710 * gdbserver/aclocal.m4: New file, generated by aclocal.
9711 * gdbserver/config.in: New file, generated by autoheader.
9713 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9715 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9718 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9720 * arm-tdep.h (enum arm_float_model): New enum.
9721 (struct gdbarch_tdep): Add fp_model.
9722 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9723 up floating-point conversions until we know the floating-point model
9724 in use by the inferior. Don't complain about being unable to
9725 determine the ABI of the inferior when we don't have one.
9726 (arm_extract_return_value): Support different floating-point models.
9727 (arm_store_return_value): Likewise.
9728 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9730 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9732 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9734 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9735 of ``current_gdbarch''.
9737 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9739 * armnbsd-nat.c : ANSIfy all function declarations.
9740 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9741 (fetch_inferior_registers): Re-implement in terms of above.
9742 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9743 (store_inferior_registers): Re-implement in terms of above.
9745 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9747 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9749 * arm-linux-tdep.c: Likewise.
9750 * config/arm/tm-linux.h: Likewise.
9752 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9754 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9755 * config/arm/nbsd.mt (TM_FILE): Delete.
9756 * config/arm/tm-nbsd.h: Delete.
9758 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9760 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9761 Initialize CALL_DUMMY_LENGTH.
9763 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9765 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9767 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
9768 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
9769 defines one thing and that is incorrect for this port.
9770 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9772 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9774 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9776 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9778 * win32-nat.c (display_selector): New function. Displays information
9779 about the information returned by GetThreadSelectorEntry API function.
9780 (display_selectors): New function. Displays the infomation of
9781 the selector given as argument, or of CS, DS ans FS selectors
9782 if no argument is given.
9783 ( _initialize_inftarg): Add "w32" as info prefix command.
9784 Add "info w32 selector" as command calling display_selectors.
9786 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9788 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9789 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9792 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9794 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9796 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9798 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9799 (arm_fix_call_dummy): Call it.
9800 (arm_call_dummy_breakpoint_offset): Delete.
9801 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9802 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9804 2002-02-18 Andrew Cagney <ac131313@redhat.com>
9806 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9807 Default to func_frame_chain_valid.
9808 * gdbarch.h, gdbarch.c: Re-generate.
9809 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9811 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
9813 * ppc-linux-nat.c: Update copyright.
9814 (fetch_register, store_register): Add tid parameter, don't compute
9816 (fetch_ppc_registers, store_ppc_registers): Add tid
9817 parameter. Pass it along to callees.
9818 (fetch_inferior_registers, store_inferior_registers): Compute tid
9819 here, and pass it to calleed functions.
9820 (fill_gregset, supply_fpregset): Clean up formatting.
9822 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9824 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9825 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9827 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9829 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9830 * gdbarch.c gdbarch.h: Regenerate.
9831 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9833 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9834 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9835 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9837 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9838 * arm-tdep.c (arm_get_longjmp_target): New function.
9839 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9840 this to a positive value register arm_get_longjmp_target as the
9842 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9843 (arm_linux_init_abi): Set up longjmp description in tdep.
9844 * armnbsd-nat.c (get_longjmp_target): Delete.
9845 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9846 description in tdep.
9847 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9848 (get_longjmp_target): Delete declaration.
9849 (GET_LONGJMP_TARGET): Delete.
9850 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9851 (GET_LONGJMP_TARGET): Delete.
9853 2002-02-17 Kevin Buettner <kevinb@redhat.com>
9855 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9856 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9857 of ``current_gdbarch''.
9859 2002-02-17 Tom Tromey <tromey@redhat.com>
9861 * cli/cli-cmds.c (compare_strings): New function.
9862 (complete_command): Only print each unique item once.
9863 * completer.h (complete_line): Declare.
9864 * completer.c (complete_line): New function.
9865 (line_completion_function): Use it.
9867 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9869 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9870 * gdbarch.h, gdbarch.c: Re-generate.
9872 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9874 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9876 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9878 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9879 * valops.c (value_arg_coerce): Don't take the address of a reference
9880 to convert an argument to a reference.
9882 2002-02-15 Christopher Faylor <cgf@redhat.com>
9884 * win32-nat.c (get_image_name): New function.
9885 (handle_load_dll): Use get_image_name function.
9886 (get_child_debug_event): Avoid registering debug events until possibly
9887 execed process is started.
9888 (child_create_inferior): Allow invocation via shell so that command
9889 line redirection, etc. works ok.
9890 (_initialize_inftarg): Add new command: "set shell" to control whether
9891 a shell is used to start a process.
9893 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9895 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9896 instead of find_register_by_number.
9897 (cannot_store_register): Likewise.
9899 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9901 * dwarf2read.c: Replace fprintf (stderr, ...) by
9902 fprintf_unfiltered (gdb_stderr, ...).
9904 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9906 * gdbserver/gdbserver.1: Document --attach.
9908 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9910 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9912 * arm-tdep.c (arm_default_arm_le_breakpoint)
9913 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9914 (arm_default_thumb_be_breakpoint): New. Initialize them from
9915 traditional breakpoint defines.
9916 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9917 (arm_gdbarch_init): Initialize new breakpoint variables.
9918 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9919 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9920 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9921 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9923 (arm_netbsd_init_abi_common): ... here; new function.
9924 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9925 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9926 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9927 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9929 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9931 * arm-tdep.h (enum arm_abi): New enum.
9932 (struct gdbarch_tdep): New structure.
9933 (LOWEST_PC): Provide a default.
9934 (arm_gdbarch_register_os_abi): Declare new function.
9935 * arm-tdep.c (arm_abi_names): New array.
9936 (process_note_abi_tag_sections): New function.
9937 (get_elfosabi): New function.
9938 (arm_gdbarch_register_os_abi): New function.
9939 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9940 support for that ABI has been built in, then call the appropriate
9941 configuration routine. Use gdbarch_num_regs() to get the number
9943 (arm_dump_tdep): New function.
9944 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9945 place-holder functions.
9946 (_initialize_arm_tdep): Register them.
9947 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9949 * armnbsd-tdep.c: New file.
9950 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9951 * config/arm/nbsd.mt (TDEPFILES): Add it.
9952 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9954 * armnbsd-nat.c: Include regcache.h.
9955 * Makefile.in (armnbsd-nat.o): Update dependency list.
9957 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9959 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9961 * gdbserver/Makefile.in: Fix typos in target rules.
9963 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9965 Fix part of PR gdb/267.
9966 * linespec.c (find_methods): Handle constructors specially for now.
9968 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
9970 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9972 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9973 standard_coerce_float_to_double().
9975 2002-02-14 Christopher Faylor <cgf@redhat.com>
9977 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9980 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
9982 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9983 find_variant_by_name, because it confuses the multiarch
9984 framework. Return NULL if there isn't an architecture with the
9985 user supplied name, instead of forcing a different one without
9986 recording the change with the multiarch machinery.
9987 (find_variant_by_name): Delete.
9989 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9991 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9992 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9994 2002-02-13 Martin M. Hunt <hunt@redhat.com>
9996 * stack.c (print_frame_info_base): When calling
9997 print_frame_info_listing_hook, set current_source_symtab.
9999 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10001 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
10002 and remove unused $(INCLUDE_DIR).
10003 Add regcache.c to OBS.
10004 Add generated register protocol files to clean target.
10005 Update dependencies for new objects, obsolete old target code.
10007 * gdbserver/linux-low.c: Remove all platform-specific code to
10008 new files. Remove various dead code. Update to use regcache
10010 * gdbserver/remote-utils.c (fromhex): Add return statement
10012 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
10014 (input_interrupt): Add integer parameter to match prototype
10015 of a signal handler.
10016 (outreg): Use register_data ().
10017 (prepare_resume_reply): Use gdbserver_expedite_regs.
10018 * gdbserver/server.c (main): Dynamically allocate own_buf because
10019 PBUFSIZ is no longer constant. Use registers_to_string () and
10020 registers_from_string ().
10021 * gdbserver/server.h: No longer include "defs.h". Add prototypes
10022 for error (), fatal (), and warning (). Update definition of
10023 PBUFSIZ to use regcache functionality. Add include guard.
10024 * gdbserver/utils.c (fatal): Add missing ``const''.
10025 (warning): New function.
10027 * regformats/regdat.sh: Include "regcache.h" in generated files.
10028 Provide init_registers () function.
10029 * regformats/regdef.h: Add prototype for set_register_cache ().
10032 * gdbserver/linux-arm-low.c: New file.
10033 * gdbserver/linux-i386-low.c: New file.
10034 * gdbserver/linux-ia64-low.c: New file.
10035 * gdbserver/linux-m68k-low.c: New file.
10036 * gdbserver/linux-mips-low.c: New file.
10037 * gdbserver/linux-ppc-low.c: New file.
10038 * gdbserver/linux-sh-low.c: New file.
10040 * gdbserver/regcache.c: New file.
10041 * gdbserver/regcache.h: New file.
10043 * gdbserver/low-linux.c: Removed obsolete file.
10045 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10047 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
10048 * config/i386/linux.mt: Likewise.
10049 * config/ia64/linux.mt: Likewise.
10050 * config/m68k/linux.mh: Likewise.
10051 * config/powerpc/linux.mh: Likewise.
10052 * config/mips/linux.mt: Likewise.
10054 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
10056 * config/i386/i386lynx.mh: Mark gdbserver variables
10057 as (currently) obsolete for this target.
10058 * config/i386/nbsd.mt: Likewise.
10059 * config/i386/nbsdelf.mt: Likewise.
10060 * config/m32r/m32r.mt: Likewise.
10061 * config/m68k/m68klynx.mh: Likewise.
10062 * config/m68k/nbsd.mt: Likewise.
10063 * config/m68k/sun3os4.mh: Likewise.
10064 * config/mips/vr5000.mt: Likewise.
10065 * config/ns32k/nbsd.mt: Likewise.
10066 * config/pa/hppabsd.mh: Likewise.
10067 * config/pa/hppaosf.mh: Likewise.
10068 * config/powerpc/nbsd.mt: Likewise.
10069 * config/rs6000/rs6000lynx.mh: Likewise.
10070 * config/s390/s390.mt: Likewise.
10071 * config/s390/s390x.mt: Likewise.
10072 * config/sparc/sparclynx.mh: Likewise.
10073 * config/sparc/sun4os4.mh: Likewise.
10074 * config/i386/x86-64linux.mt: Likewise.
10075 * config/sparc/linux.mh: Likewise.
10077 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10079 * configure.tgt: Configure gdbserver only for known working
10080 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
10081 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
10082 SUBDIRS if it is configured. Update comment for ${nativefile}.
10083 * configure: Regenerated.
10085 2002-02-13 Michael Snyder <msnyder@redhat.com>
10087 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10089 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10090 (default_gcore_mach): Just return 0, work around a problem in bfd.
10091 (default_gcore_target): OK to return NULL if exec_bfd is null.
10092 (make_mem_sec): Use a cast, avoid a warning.
10094 * procfs.c (find_memory_regions_callback): Use a cast instead of
10095 calling host_pointer_to_address (which complains if
10096 sizeof (host pointer) != sizeof (target pointer)).
10097 (procfs_make_note_section): Avoid overflow in psargs string.
10099 * procfs.c (procfs_make_note_section): Make the default
10100 implementation return an error.
10102 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
10104 * procfs.c (procfs_make_note_section): Provide a default definition
10105 (for alpha-dec-osf4.0f). Fix typos.
10107 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
10109 * linux-proc.c: Add include of regcache.h.
10110 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10112 2002-02-13 Andrew Cagney <ac131313@redhat.com>
10114 From 2002-01-18 Greg McGary <greg@mcgary.org>:
10115 * memattr.c (create_mem_region): Disallow useless empty region.
10116 Regions are half-open intervals, so allow [A..B) [B..C) as
10119 2002-02-13 Michael Chastain <mec@shout.net>
10121 * defs.h: Kill CONST_PTR.
10122 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10123 * c-lang.c (c_builtin_types): Likewise.
10124 * ch-lang.c (ch_builtin_types): Likewise.
10125 * f-lang.c (f_builtin_types): Likewise.
10126 * language.c (unknown_builtin_types): Likewise.
10127 * m2-lang.c (m2_builtin_types): Likewise.
10128 * p-lang.c (pascal_builtin_types): Likewise.
10129 * scm-lang.c (c_builtin_types): Likewise.
10131 2002-02-13 Keith Seitz <keiths@redhat.com>
10133 * arm-tdep.h (arm_get_next_pc): Add declaration.
10135 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
10137 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10138 with other related struct-returning functions.
10139 (arm_extract_struct_value_address): New function.
10140 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10141 initialize float_format, double_format and long_double_format as
10142 appropriate to the endianness of the target.
10143 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10144 (arm_use_struct_convention): Delete declaration.
10145 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10147 2002-02-13 Keith Seitz <keiths@redhat.com>
10149 * defs.h (core_addr_to_string_nz): New function.
10151 2002-02-13 Mark Kettenis <kettenis@gnu.org>
10153 Apply missing bits of 2002-01-15 patch.
10154 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10155 (fill_fpregset): Use i387_fill_fsave.
10157 2002-02-12 Keith Seitz <keiths@redhat.com>
10159 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10160 (core_addr_to_string_nz): New function.
10162 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10164 * arm-linux-nat.c: Really include arm-tdep.h.
10165 * config/arm/tm-linux.h (struct type, struct value): Declare.
10167 2002-02-11 Michael Snyder <msnyder@redhat.com>
10169 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10170 (gcore section): Ifdef for Solaris and Unixware only.
10171 (procfs_do_thread_registers): Unixware needs one lwpstatus
10172 per thread (not one prstatus or pstatus).
10173 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10174 not over all gdb threads. For unixware, call elfcore_write_pstatus
10175 once before iterating over threads.
10177 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10179 * arm-tdep.h: New file.
10180 * arm-tdep.c: Include arm-tdep.h.
10181 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10182 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10183 (arm_print_float_info, arm_register_type, convert_to_extended)
10184 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10185 (arm_extract_return_value, arm_register_name): Make static.
10186 (arm_software_single_step): Similarly. Fix types in declaration.
10187 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10188 (arm_store_return_value, arm_store_struct_return): New functions.
10189 (arm_gdbarch_init): Register the above functions. Also register
10190 call_dummy_start_offset, sizeof_call_dummy_words,
10191 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10192 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
10193 max_register_virtual_size, register_size. Set up
10194 prologue_cache.saved_regs here, rather than ...
10195 (_initialize_arm_tdep): ... here.
10196 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10198 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10199 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10200 (arm_print_float_info, arm_register_type, convert_to_extended)
10201 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10202 (arm_extract_return_value, arm_register_name): Delete declarations.
10203 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10204 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10205 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10206 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10207 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10208 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10209 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10210 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10211 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10212 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10213 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10214 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10216 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10217 * remote-rdi.c remote-rdp.c: Likewise.
10218 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10219 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10220 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10223 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10224 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10225 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10226 from non-ARM_ prefixed definitions.
10227 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10229 * remote-rdi.c remote-rdp.c: Likewise.
10230 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10232 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10234 * arm-tdep.c (arm_frameless_function_invocation)
10235 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10236 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10237 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10238 (arm_pop_frame, arm_get_next_pc): Make static.
10239 (arm_gdbarch_init): Register above in gdbarch structure.
10240 (arm_read_fp): Renamed from arm_target_read_fp.
10241 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10242 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10243 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10244 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10245 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10246 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10247 (arm_pc_is_thumb_dummy): Delete declarations.
10248 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10249 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10250 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10251 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
10253 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
10255 * symtab.c (compare_search_syms): New function.
10256 (sort_search_symbols): New function.
10257 (search_symbols): Sort symbols after searching rather than
10260 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10262 * NEWS: Linux -> GNU/Linux.
10264 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10266 * gdbarch.sh: For for level one methods, disallow a definition
10267 when partially multi-arched. Add comments explaining rationale.
10268 * gdbarch.h: Re-generate.
10270 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10272 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10273 multi-arch partial.
10275 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10277 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10278 field. Use diff -u.
10279 * gdbarch.c: Re-generate.
10281 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10283 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
10284 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10287 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10289 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10290 multi-arch partial.
10291 (PUSH_ARGUMENTS): Switch to using predefault.
10292 * gdbarch.c: Regenerate.
10294 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10296 * valops.c (PUSH_ARGUMENTS): Delete definition.
10297 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10298 partial. Default to default_push_arguments.
10299 * gdbarch.h, gdbarch.c: Regenerate.
10301 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10303 * defs.h (throw_exception): Rename return_to_top_level. Update
10305 * utils.c (error_stream, internal_verror, quit): Ditto.
10306 * top.c (throw_exception, catcher): Ditto.
10307 * sparclet-rom.c (sparclet_load): Ditto.
10308 * remote.c (interrupt_query, minitelnet): Ditto.
10309 * remote-sds.c (interrupt_query): Ditto.
10310 * remote-mips.c (mips_error, mips_kill): Ditto.
10311 * ocd.c (interrupt_query): Ditto.
10312 * monitor.c (monitor_interrupt_query): Ditto.
10313 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10314 * target.h: Update comment.
10316 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10318 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10320 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10321 default_double_format.
10322 * gdbarch.h, gdbarch.c: Re-generate.
10323 * findvar.c (floatformat_unknown): Delete variable definition.
10324 * doublest.h (floatformat_unknown): Delete variable declaration.
10326 2002-02-09 Jim Blandy <jimb@redhat.com>
10328 * stabsread.c (read_type): Add code to parse Sun's syntax for
10329 prototyped function types.
10331 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10333 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10334 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10336 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10338 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10339 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10340 now _initialize_xcoffsolib gets called again and overrides the
10341 commands from solib.c in a native configuration.
10343 2002-02-09 Mark Kettenis <kettenis@gnu.org>
10345 * doublest.c (store_typed_floating): Don't try to return a value.
10348 2002-02-08 Jim Blandy <jimb@redhat.com>
10350 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10351 is prototyped and has no arguments, print its argument list as
10354 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10356 * MAINTAINERS (write-after-approval): Add myself.
10357 (paper-trail): I've escaped!
10359 2002-02-08 Christopher Faylor <cgf@redhat.com>
10361 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10363 (_initialize_check_for_gdb_ini): Ditto.
10365 2002-02-08 Martin M. Hunt <hunt@redhat.com>
10367 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10368 xaprintf -> xasprintf.
10370 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10372 * win32-nat.c: Remove use of printf and sprintf functions.
10374 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
10376 * arm-tdep.c (arm_frame_chain_valid): Make static.
10377 (arm_push_arguments): Likewise.
10378 (arm_gdbarch_init): New function.
10379 (_initialize_arm_tdep): Call it.
10380 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10381 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10382 (FRAME_CHAIN_VALID): Delete.
10383 (arm_frame_chain_valid): Delete declaration.
10384 (PUSH_ARGUMENTS): Delete.
10385 (arm_push_arguments): Delete declaration.
10386 (CALL_DUMMY_P): Delete.
10388 2002-02-08 Andrew Cagney <ac131313@redhat.com>
10389 Corinna Vinschen <vinschen@redhat.com>
10391 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10392 on builtin float types.
10394 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
10396 * utils.c: Include <curses.h> before "bfd.h".
10397 * tui/tui-hooks.c: Likewise.
10398 * tui/tui.c: Likewise.
10399 * tui/tuiCommand.c: Likewise.
10400 * tui/tuiData.c: Likewise.
10401 * tui/tuiDataWin.c: Likewise.
10402 * tui/tuiDisassem.c: Likewise.
10403 * tui/tuiGeneralWin.c: Likewise.
10404 * tui/tuiIO.c: Likewise.
10405 * tui/tuiLayout.c: Likewise.
10406 * tui/tuiRegs.c: Likewise.
10407 * tui/tuiSource.c: Likewise.
10408 * tui/tuiSourceWin.c: Likewise.
10409 * tui/tuiStack.c: Likewise.
10410 * tui/tuiWin.c: Likewise.
10412 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
10414 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10415 to include space for pseudoregs as well. Update loops accordingly.
10416 (sh_fp_frame_init_saved_regs): Ditto.
10417 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10419 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10421 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10422 Add Richard Earnshaw to Arm maintainers.
10424 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10426 * defs.h (warning_begin): Delete declaration.
10428 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10431 2002-02-07 Michael Snyder <msnyder@redhat.com>
10433 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10434 Logic bug, remove misplaced else.
10436 2002-02-07 Klee Dienes <klee@apple.com>
10438 * fork-inferior.c (fork_inferior): Add '!' to the list of
10439 characters that need to be quoted when building a string for the
10440 shell. Quote '!' specifically with a backslash, since CSH chokes
10441 when trying to evaluate "str!str".
10443 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10445 * rdi-share/host.h: Only provide a typedef for bool if it is not
10448 2002-02-04 Michael Snyder <msnyder@redhat.com>
10450 * breakpoint.h (enum bptype): Add new overlay event bp type.
10451 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10453 * breakpoint.c (create_internal_breakpoint): New function.
10454 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10455 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10456 (create_thread_event_breakpoint): Ditto.
10457 (create_solib_event_breakpoint): Ditto.
10458 (create_overlay_event_breakpoint): New function.
10459 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10460 (update_breakpoints_after_exec): Delete and re-initialize
10461 overlay event breakpoints after an exec. Add FIXME comment
10462 about longjmp breakpoint.
10463 (print_it_typical): Ignore overlay event breakpoints.
10464 (print_one_breakpoint): Ditto.
10466 (bpstat_what): Do not stop for overlay event breakpoints.
10467 (delete_breakpoint): Don't delete overlay event breakpoints.
10468 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10469 (breakpoint_re_set): Re-create overlay event breakpoint.
10471 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10472 (overlay_manual_command): Disable overlay breakpoints.
10473 (overlay_off_command): Disable overlay breakpoints.
10475 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10477 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10478 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10479 to here from config/tm-arm.h.
10480 (coff_sym_is_thumb): Make static.
10481 (arm_elf_make_msymbol_special): New function.
10482 (arm_coff_make_msymbol_special): New function.
10483 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10484 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10485 (coff_sym_is_thumb): Delete declaration.
10486 (arm_elf_make_msymbol_special): Declare.
10487 (arm_coff_make_msymbol_special): Declare.
10488 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10489 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10491 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10493 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10495 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10497 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10498 * gdbarch.c gdbarch.h: Regenerate.
10499 * arch-utils.c (default_print_float_info): New function.
10500 * arch-utils.h (default_print_float_info): Prototype it.
10501 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10502 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10503 (PRINT_FLOAT_INFO): Document it.
10505 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10506 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10507 (PRINT_FLOAT_INFO): Define.
10509 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10511 * win32-nat.c (_initialize_check_for_gdb_ini):
10512 Add typecast to sprintf argument to suppress a warning.
10514 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10516 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10517 to allow easier handling of pass state.
10518 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10519 that gives exception name and address.
10520 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10521 and set last_sig value to ourstatus->value.sig. Some missing
10523 (child_continue): Correctly report continue_status.
10524 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10525 TARGET_SIGNAL_0 (new default value).
10526 (child_resume): consider sig argument passed to decide if
10527 the exception should be passed to debuggee or not.
10529 2002-02-05 Michael Snyder <msnyder@redhat.com>
10531 * regcache.c (fetch_register): Call target_fetch_register
10532 only if we don't call FETCH_PSEUDO_REGISTER.
10533 (store_register): Call target_store_register only if we
10534 don't call STORE_PSEUDO_REGISTER.
10536 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
10538 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10539 ELF_MAKE_MSYMBOL_SPECIAL.
10540 * gdbarch.c, gdbarch.h: Regenerate.
10541 * arch-utils.c (default_make_msymbol_special): New function.
10542 * arch-utils.h (default_make_msymbol_special): Export.
10543 * elfread.c (elf_symtab_read): Compile use of
10544 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10546 * coffread.c (coff_symtab_read): Ditto, for
10547 COFF_MAKE_MSYMBOL_SPECIAL.
10549 2002-02-05 Jim Blandy <jimb@redhat.com>
10551 * solib-svr4.c (svr4_truncate_ptr): New function.
10552 (svr4_relocate_section_addresses): Do the address arithmetic with
10553 the appropriate truncation for target addresses, even when
10554 CORE_ADDR is larger than a target address.
10556 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10558 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10561 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10563 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10566 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10568 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10570 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10572 * gdbserver/linux-low.c: Remove unused include files.
10574 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10576 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10577 (read_inferior_memory): Use it.
10578 (write_inferior_memory): Likewise.
10580 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10582 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10583 grubbing through sys_errlist.
10585 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10587 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10589 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10590 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10592 2002-02-04 Andrew Cagney <ac131313@redhat.com>
10594 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10595 (do_sfunc, set_cmd_sfunc): New functions.
10597 * command.h (struct cmd_list_element): Add field func.
10598 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10599 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10600 * cli/cli-decode.h: Ditto.
10602 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10603 (help_all, help_cmd_list): Ditto.
10604 (find_cmd, complete_on_cmdlist): Ditto.
10605 * top.c (execute_command): Ditto.
10607 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10610 * infcmd.c (notice_args_read): Fix function signature.
10612 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10613 * cli/cli-decode.c (add_set_cmd): Ditto.
10614 * utils.c (initialize_utils): Ditto.
10615 * maint.c (_initialize_maint_cmds): Ditto.
10616 * infrun.c (_initialize_infrun): Ditto.
10617 * demangle.c (_initialize_demangler): Ditto.
10618 * remote.c (add_packet_config_cmd): Ditto.
10619 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10620 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10621 * proc-api.c (_initialize_proc_api): Ditto.
10622 * kod.c (_initialize_kod): Ditto.
10623 * valprint.c (_initialize_valprint): Ditto.
10624 * top.c (init_main): Ditto.
10625 * infcmd.c (_initialize_infcmd): Ditto.
10626 * corefile.c (_initialize_core): Ditto.
10627 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10628 * arch-utils.c (initialize_current_architecture): Ditto.
10629 (_initialize_gdbarch_utils): Ditto.
10630 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10632 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10633 * wince.c (_initialize_inftarg): Ditto.
10634 * symfile.c (_initialize_symfile): Ditto.
10635 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10636 * language.c (_initialize_language): Ditto.
10637 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10639 2002-02-04 Michael Snyder <msnyder@redhat.com>
10641 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10643 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10645 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10646 Add rules for building the register data files.
10648 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10650 * regformats/regdat.sh: Add braces to the definition of
10651 expedite_regs_${arch}.
10653 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10655 * regformats/regdef.h (struct reg): Add comment describing the
10656 requirements for offset and size fields.
10658 2002-02-04 Andreas Schwab <schwab@suse.de>
10660 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10661 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10663 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
10665 * gdbarch.sh (copyright): Update years in generated header.
10666 (SMASH_TEXT_ADDRESS): Add rule.
10667 * gdbarch.h, gdbarch.c: Re-generate.
10668 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10669 * dbxread.c: Likewise.
10670 * dwarfread.c: Likewise.
10671 * elfread.c: Likewise.
10672 * somread.c: Likewise.
10674 * arm-tdep.c (arm_smash_text_address): New function.
10675 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10677 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10679 Add support for hardware watchpoints on win32 native.
10680 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10681 CONTEXT_DEBUG_REGISTERS.
10682 (dr variable): New variable. Static array containing a local copy
10683 of debug registers.
10684 (debug_registers_changed): New variable. Reflects when debug registers
10685 are changed and need to be written to inferior.
10686 (debug_registers_used): New variable. Reflects when any debug register
10687 was set, used when new threads are created.
10688 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10690 (thread_rec): Set dr array if id is the thread of current_event .
10691 (child_continue, child_resume): Change the debug registers for all
10692 threads if debug_registers_changed.
10693 (child_add_thread): Change the debug registers if debug_registers_used.
10694 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10695 Link nm.h to new nm-cygwin.h file.
10696 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10697 of hardware registers.
10699 2002-02-03 Andrew Cagney <ac131313@redhat.com>
10701 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10702 Restore behavour broken by 2002-01-20 Andrew Cagney
10703 <ac131313@redhat.com> IEEE_FLOAT removal.
10705 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10707 * c-valprint.c (c_val_print): Pass a proper valaddr to
10708 cp_print_class_method.
10709 * valops.c (search_struct_method): If there is only one method
10710 and args is NULL, return that method.
10712 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10714 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10715 accessing tag_name directly.
10717 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10719 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10720 of accessing tag_name directly.
10722 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10725 * gdbtypes.c (replace_type): New function.
10726 * gdbtypes.h (replace_type): Add prototype.
10727 * stabsread.c (read_type): Use replace_type.
10729 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
10731 * Makefile.in (memattr.o): Add missing dependencies rule.
10733 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10735 * breakpoint.c (break_at_finish_command): Really export.
10736 (break_at_finish_at_depth_command): Ditto.
10737 (tbreak_at_finish_command): Ditto.
10738 * hppa-tdep.c: Include completer.h.
10739 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10740 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10742 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10744 * utils.c (do_write): New function.
10745 (error_stream): Rewrite combining the code from error_begin and
10747 (verror): Rewrite using error_stream.
10748 (error_begin): Delete function.
10750 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10752 * utils.c (error_begin): Make static.
10753 * defs.h (error_begin): Delete declaration.
10755 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10756 (decode_line_1): Use cplusplus_error instead of error_begin,
10757 cplusplus_hint and return_to_top_level.
10758 * coffread.c (coff_symfile_read): Use error instead of error_begin
10759 and return_to_top_level.
10760 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10762 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10764 * language.h (type_error, range_error): Make string parameter
10766 * language.c (warning_pre_print): Delete extern declaration.
10767 * dwarfread.c (warning_pre_print): Ditto.
10768 * language.c (type_error, range_error): Rewrite to use verror and
10769 vwarning instead of warning_begin.
10771 2002-02-01 Michael Snyder <msnyder@redhat.com>
10773 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10774 (set_ignore_count): Move misplaced comment back where it belongs.
10776 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10778 * command.h (NO_FUNCTION): Delete macro.
10779 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10780 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10781 * tracepoint.c (_initialize_tracepoint): Ditto.
10782 * cli/cli-decode.c (add_set_cmd): Ditto.
10783 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10785 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10787 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10788 Update ``this'' pointer when calling virtual functions.
10790 2002-02-01 Michael Snyder <msnyder@redhat.com>
10792 * breakpoint.c (create_temp_exception_breakpoint): Delete.
10793 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10795 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10797 * regformats/reg-arm.dat: New file.
10798 * regformats/reg-i386.dat: New file.
10799 * regformats/reg-ia64.dat: New file.
10800 * regformats/reg-m68k.dat: New file.
10801 * regformats/reg-mips.dat: New file.
10802 * regformats/reg-ppc.dat: New file.
10803 * regformats/reg-sh.dat: New file.
10804 * regformats/regdef.h: New file.
10805 * regformats/regdat.sh: New file.
10807 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
10809 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10810 (arm_frame_args_address, arm_frame_locals_address): New functions.
10811 (arm_frame_num_args): New function.
10812 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10813 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10814 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10816 2002-01-31 Michael Snyder <msnyder@redhat.com>
10818 * breakpoint.c (break_at_finish_command): Export.
10819 (break_at_finish_at_depth_command): Export.
10820 (tbreak_at_finish_command): Export.
10821 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
10822 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10823 "txbreak" commands, which are HPPA specific.
10825 * printcmd.c (disassemble_command): Remove an ancient
10826 artifact of an old merge.
10828 * symfile.h (enum overlay_debugging_state):
10829 Define enum constant values for overlay mode.
10830 * symfile.c (overlay_debugging): Use enums instead of literals.
10831 (overlay_is_mapped, overlay_auto_command,
10832 overlay_manual_command): Ditto.
10834 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10835 breakpoint_here_p, breakpoint_inserted_here_p,
10836 breakpoint_thread_match, bpstat_stop_status,
10837 describe_other_breakpoints, check_duplicates, clear_command):
10838 Coding standard fixes.
10840 * target.c (target_xfer_memory): Add spaces, coding standard.
10841 (do_xfer_memory): Add missing line to trust-readonly
10842 code: check bfd SEC_READONLY flag for section.
10844 2002-01-31 Andrew Cagney <ac131313@redhat.com>
10846 * PROBLEMS: Fix typo, 5.1->5.1.1.
10848 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
10850 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10851 data symbols, since we search based on textlow and texthigh.
10852 (find_pc_sect_symtab): Likewise.
10854 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10856 * defs.h (vwarning): Declare.
10857 * utils.c (vwarning): New function.
10858 (warning): Call vwarning.
10859 (warning_begin): Delete function.
10861 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10862 the warning message.
10863 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10866 2002-01-30 Michael Snyder <msnyder@redhat.com>
10868 * NEWS: Mention "set trust-readonly-sections" command.
10869 Mention generate-core-file command.
10871 2002-01-15 Michael Snyder <msnyder@redhat.com>
10873 * target.c: New command, "set trust-readonly-sections on".
10874 (do_xfer_memory): Honor the suggestion to trust readonly sections
10875 by reading them from the object file instead of from the target.
10876 (initialize_targets): Register command "set trust-readonly-sections".
10878 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10880 * parse.c (target_map_name_to_register): Simplify, search regs and
10881 pseudo-regs using a single loop.
10883 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10885 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10887 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
10889 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10890 * config/i386/i386v42mp.mh: Add i387-nat.o .
10891 * i386v4-nat.c: Include i387-nat.h.
10892 (supply_fpregset): Use i387_supply_fsave.
10893 (fill_fpregset): Use i387_fill_fsave.
10895 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
10897 * arm-tdep.c (arm_call_dummy_words): Define.
10898 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10899 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10900 (CALL_DUMMY_WORDS): Define.
10901 (arm_call_dummy_words): Declare.
10902 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10903 (arm_linux_call_dummy_words): Declare.
10905 2002-01-30 Andreas Schwab <schwab@suse.de>
10907 * m68klinux-nat.c: Fix last change to use regcache_collect
10908 instead of referencing registers[] directly.
10910 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10912 * parse.c (target_map_name_to_register): Delete code wrapped in
10913 #ifdef REGISTER_NAME_ALIAS_HOOK.
10915 2002-01-28 Michael Snyder <msnyder@redhat.com>
10917 * regcache.c (legacy_read_register_gen): Need to be able to
10918 read pseudo-register as well as real register.
10919 (legacy_write_register_gen): Ditto.
10921 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10923 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10924 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10925 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10926 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10927 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10928 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10929 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10930 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10931 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10932 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10933 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10934 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10935 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10936 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10937 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10938 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10939 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10940 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10941 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10942 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10944 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10946 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10947 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10948 (initialize_current_architecture): Update target_byte_order using
10949 information from BFD.
10950 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
10951 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10953 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10955 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10956 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10958 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10959 #ifdef INVALID_FLOAT.
10960 * infcmd.c (do_registers_info): Ditto.
10961 * values.c (unpack_double): Ditto. Add comment.
10963 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10964 already commented out.
10966 2002-01-26 Andreas Schwab <schwab@suse.de>
10968 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10969 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10970 registers and add support for PTRACE_GETREGS.
10972 2002-01-24 Andrew Cagney <ac131313@redhat.com>
10974 GDB 5.1.1 released from 5.1 branch.
10975 * NEWS: Add 5.1.1 news.
10976 * README: Sync with 5.1 branch.
10978 2002-01-23 Fred Fish <fnf@redhat.com>
10980 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10981 stabstring on initial malloc. Reallocing will copy it for us,
10984 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10986 * Makefile.in (hpread_h): Delete.
10987 (HFILES_NO_SRCDIR): Remove hpread.h.
10988 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10989 (hpread.o): Update dependencies.
10990 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10992 * hp-psymtab-read.c: Remove file.
10993 * hp-symtab-read.c: Remove file.
10994 * hpread.h: Remove file.
10996 * hpread.c: Merge all contents of hp-psymtab-read.c,
10997 hp-symtab-read.c and hpread.h into this file, as it was prior to
11000 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
11001 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
11002 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
11003 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
11005 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11007 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
11008 fill_gregset): Call gdbarch_tdep() just once, assign result to
11009 variable and use that, instead of calling the function several
11012 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11014 * configure.host: Accept sparcv9 as alias for sparc64.
11015 * configure.tgt: Likewise.
11017 2002-01-22 Kevin Buettner <kevinb@redhat.com>
11019 * solib-aix5.c (build_so_list_from_mapfile)
11020 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
11021 arguments is not reversed.
11022 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
11023 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
11025 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
11027 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
11028 modified version of obsolete sh_fetch_pseudo_register.
11029 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
11030 (sh4_register_read): New function.
11031 (sh_pseudo_register_write): New function. Renamed and modified
11032 version of obsolete sh_store_pseudo_register.
11033 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
11034 (sh4_register_write): New function.
11035 (sh_gdbarch_init): Remove setting of gdbarch function
11036 fetch_pseudo_register and store_pseudo_register. Remove setting of
11037 register_convert_to_raw, register_convert_to_virtual,
11038 register_convertible.
11039 (sh_sh4_register_convertible): Delete. No longer needed. All is
11040 taken care by architecture specific functions
11041 register_read/register_write.
11042 (sh_sh4_register_convert_to_virtual): Make static.
11043 (sh_sh4_register_convert_to_raw): Ditto.
11045 2002-01-22 Andrew Cagney <ac131313@redhat.com>
11047 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
11048 (floatformat_is_nan, floatformat_mantissa): Ditto.
11050 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
11051 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
11052 builtin_type_ieee_double_little,
11053 builtin_type_ieee_double_littlebyte_bigword,
11054 builtin_type_m68881_ext, builtin_type_i960_ext,
11055 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
11056 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
11057 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
11058 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
11060 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
11062 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
11063 parameter. Set frameless flag if it exists and depended of
11064 whether the scanned function is frameless or not.
11065 (xstormy16_skip_prologue): If function is frameless, return
11066 result of xstormy16_scan_prologue().
11067 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
11070 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
11072 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11073 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11074 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11075 sh_sh4_register_byte, sh_sh4_register_raw_size,
11076 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11077 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11078 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11079 sh_store_pseudo_register, sh_do_pseudo_register): Call
11080 gdbarch_tdep() just once, assign result to variable and use that,
11081 instead of calling the function several times.
11083 2002-01-20 Mark Kettenis <kettenis@gnu.org>
11085 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11086 macros instead of LAST_FPU_CTRL_REGNUM.
11087 (store_register): Likewise.
11089 2002-01-21 Jim Blandy <jimb@redhat.com>
11091 * infcmd.c (run_command): Check that the `exec' target layer's BFD
11092 is up-to-date before running the program, not just when a program
11095 2002-01-21 Fred Fish <fnf@redhat.com>
11097 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11098 when we have found all instructions we are looking for.
11100 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11102 * arm-tdep.c (arm_register_name): New function.
11103 (arm_registers_names): Make static.
11104 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11105 (arm_register_name): Declare.
11106 (REGISTER_NAME): Use it.
11108 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11109 Kevin Buettner <kevinb@redhat.com>
11111 Convert arm targets to new FRAME interface.
11112 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11113 (arm_frame_find_save_regs): Delete.
11114 (arm_frame_init_saved_regs): New.
11115 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11116 Allocate extra_info as required. Convert all uses of fsr.regs
11117 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11119 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11120 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11121 (check_prologue_cache, save_prologue_cache): Likewise.
11122 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11123 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11124 (FRAME_FIND_SAVED_REGS): Delete.
11125 (arm_frame_find_saved_regs): Delete prototype.
11126 (arm_frame_init_saved_regs): New prototype.
11127 (FRAME_INIT_SAVED_REGS): Define.
11129 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11131 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11133 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11135 From Jeff Law <law@redhat.com>:
11136 * infttrace.c: Include <sys/pstat.h>.
11137 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11138 exec file if the ttrace equivalent fails.
11140 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11142 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11143 (closeLogFile): Ditto.
11145 2002-01-20 Michael Chastain <mec@shout.net>
11147 * top.c (print_gdb_version): Bump copyright year to 2002.
11149 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11151 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11152 Zannoni and Eli Zaretskii.
11154 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11156 * buildsym.c: Update copyright years.
11157 * c-typeprint.c: Likewise.
11158 * dwarf2read.c: Likewise.
11159 * f-typeprint.c: Likewise.
11160 * gdbtypes.c: Likewise.
11161 * gdbtypes.h: Likewise.
11162 * hp-symtab-read.c: Likewise.
11163 * hpread.c: Likewise.
11164 * mdebugread.c: Likewise.
11165 * p-typeprint.c: Likewise.
11167 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11169 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11170 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11171 byte-order selectable.
11172 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11173 * arch-utils.c: Ditto.
11174 (set_endian): Ditto.
11175 (set_endian_from_file): Ditto.
11176 * gdbserver/low-sim.c (create_inferior): Ditto.
11177 * gdbarch.sh: Ditto.
11178 * gdbarch.h: Re-generate.
11179 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11180 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11181 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11182 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11183 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11184 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11185 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
11186 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11188 * config/mips/tm-wince.h: Remove #undef of macro
11189 TARGET_BYTE_ORDER_SELECTABLE.
11190 * config/sh/tm-wince.h: Ditto.
11192 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11194 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11195 member function fields. Add accessor macro
11196 TYPE_FN_FIELD_ARTIFICIAL.
11197 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11198 * c-typeprint.c (c_type_print_base): Skip artificial member
11201 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11203 * f-typeprint.c: Delete unused function f_type_print_args.
11204 * p-typeprint.c: Delete unused function pascal_type_print_args.
11206 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11208 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11209 comment. Add ``artificial'' to ``union field_location''.
11211 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11213 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11214 * mdebugread.c (parse_symbol): Likewise.
11215 * stabsread.c (define_symbol): Likewise.
11216 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11217 initializing TYPE_FIELD_BITPOS to n (obsolete).
11218 (hpread_doc_function_type): Likewise.
11219 * hpread.c (hpread_function_type): Likewise.
11221 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11223 * configure.in (host_makefile_frag): Only require a host makefile
11224 fragment when a native build.
11225 * configure: Re-generate.
11227 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11229 * doublest.h (floatformat_from_type): Declare.
11230 * doublest.c (floatformat_from_type): New function.
11231 (convert_typed_floating): Use.
11233 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11234 call to function floatformat_from_type.
11236 * gdbarch.sh (IEEE_FLOAT): Delete.
11237 * gdbarch.h, gdbarch.c: Re-generate.
11238 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11239 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11240 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11241 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11242 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11243 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11244 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11245 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11246 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11247 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11248 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
11249 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11251 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11252 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11253 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11254 * sh-tdep.c (sh_gdbarch_init): Ditto.
11255 * mips-tdep.c (mips_gdbarch_init): Ditto.
11256 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11257 * cris-tdep.c (cris_gdbarch_init): Ditto.
11259 2002-01-20 Jiri Smid <smid@suse.cz>
11261 * configure.host, configure.tgt: Support x86-64.
11262 * NEWS: Note new target x86-64.
11264 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11265 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11266 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11267 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11268 x86-64-linux-nat.o): Fix dependencies.
11270 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11272 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11273 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11274 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11275 * config/sparc/xm-sun4os4.h: Delete file.
11276 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
11278 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11280 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11281 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11282 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11283 * config/i386/i386lynx.mh (XM_FILE): Delete.
11284 * config/rs6000/xm-rs6000ly.h: Delete file.
11285 * config/sparc/xm-sparclynx.h: Delete file.
11286 * config/m68k/xm-m68klynx.h: Delete file.
11287 * config/i386/xm-i386lynx.h: Delete file.
11288 * config/xm-lynx.h: Delete file.
11289 * config/djgpp/fnchange.lst: Update.
11291 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11293 * alpha-tdep.c (alpha_register_byte): New function.
11294 (alpha_register_raw_size): Ditto.
11295 (alpha_register_virtual_size): Ditto.
11296 (alpha_skip_prologue_internal): Renamed from
11297 alpha_skip_prologue.
11298 (alpha_skip_prologue): New version that calls
11299 alpha_skip_prologue_internal.
11300 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11301 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11302 second argument from alpha_skip_prologue.
11303 (REGISTER_BYTE): Use alpha_register_byte.
11304 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11305 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11306 (FRAMELESS_FUNCTION_INVOCATION): Use
11307 generic_frameless_function_invocation_not.
11308 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11309 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11311 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11313 * config/mips/xm-news-mips.h: Delete file.
11314 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11316 * config/m88k/xm-m88k.h: Delete file.
11317 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11318 * config/m88k/xm-delta88v4.h: Ditto.
11319 * config/m88k/xm-delta88.h: Ditto.
11321 * config/alpha/xm-fbsd.h: Delete file.
11322 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11324 * config/sparc/xm-sparc.h: Delete file.
11325 * Makefile.in (xm-sun4os4.h): Delete dependency.
11326 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11327 * config/sparc/xm-sun4os4.h: Ditto.
11328 * config/sparc/xm-linux.h: Ditto.
11330 * config/i386/xm-windows.h: Delete file.
11332 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11334 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11335 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11337 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11339 * alpha-tdep.c (alpha_call_dummy_words): New.
11340 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11341 (CALL_DUMMY_P): Define.
11342 (CALL_DUMMY_WORDS): Define.
11343 (SIZEOF_CALL_DUMMY_WORDS): Define.
11345 2002-01-19 Per Bothner <per@bothner.com>
11347 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11348 isn't NULL, which can happen with some gcj-3.x-produced code.
11350 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11352 * alpha-tdep.c (alpha_register_virtual_type): New function.
11353 (alpha_init_frame_pc_first): Ditto.
11354 (alpha_fix_call_dummy): Ditto.
11355 (alpha_store_struct_return): Ditto.
11356 (alpha_extract_struct_value_address): Ditto.
11357 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11358 alpha_register_virtual_type.
11359 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11360 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11361 alpha_extract_struct_value_address.
11362 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11363 (INIT_FRAME_PC): Use init_frame_pc_noop.
11364 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11366 2002-01-19 Mark Kettenis <kettenis@gnu.org>
11368 * i386gnu-nat.c: Include "i386-tdep.h".
11369 (fetch_fpregs): Simplify code dealing with uninitialized floating
11370 point states such that it doesn't require FP7_REGNUM.
11372 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11374 * alpha-tdep.c (frame_extra_info): New.
11375 (alpha_find_saved_regs): Make static. Use
11377 (alpha_frame_init_saved_regs): New function.
11378 (alpha_frame_saved_pc): Use frame->extra_info.
11379 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11380 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11381 (init_extra_frame_info): Rename to...
11382 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
11383 (alpha_print_extra_frame_info): New function.
11384 (alpha_frame_locals_address): Ditto.
11385 (alpha_frame_args_address): Ditto.
11386 (alpha_pop_frame): Use frame->extra_info.
11387 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11388 alpha_frame_args_address.
11389 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11390 (alpha_find_saved_regs): Remove prototype.
11391 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11392 (EXTRA_FRAME_INFO): Remove.
11393 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11394 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11396 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11398 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11399 (alpha_cannot_fetch_register): Ditto.
11400 (alpha_cannot_store_register): Ditto.
11401 (alpha_register_convertible): Ditto.
11402 (alpha_use_struct_convention): Ditto.
11403 * config/alpha/tm-alpha.h: Update copyright years.
11404 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11405 (INNER_THAN): Use core_addr_lessthan.
11406 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11407 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11408 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11409 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11410 (FRAME_CHAIN): Remove unnecessary cast.
11412 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11414 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11417 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11419 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11420 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11421 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11422 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11423 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11424 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11425 * x86-64-linux-nat.c: Ditto.
11427 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11429 * alpha-tdep.c (alpha_register_name): New function.
11430 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11431 (REGISTER_NAME): Define.
11433 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11435 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11437 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11439 * alpha-tdep.c: Update copyright years.
11440 (alpha_next_pc): New function.
11441 (alpha_software_single_step): Ditto.
11442 * config/alpha/tm-alpha.h: Add prototype for
11443 alpha_software_single_step.
11445 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11447 * alphabsd-nat.c: Update copyright years.
11448 (fill_gregset): Use regcache_collect.
11449 (fill_fpregset): Likewise.
11450 (fetch_inferior_registers): Only fetch integer registers
11451 if requested to do so.
11452 (store_inferior_registers): Only store integer registers
11453 if requested to do so.
11455 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11457 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11458 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11459 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11460 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11461 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11462 * config/arm/linux.mh (XDEPFILES): Delete.
11463 * config/arm/nbsd.mh (XDEPFILES): Delete.
11464 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11465 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11466 * config/i386/i386m3.mh (XDEPFILES): Delete.
11467 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11468 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11469 * config/i386/fbsd.mh (XDEPFILES): Delete.
11470 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11471 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11472 * config/i386/i386v4.mh (XDEPFILES): Delete.
11473 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11474 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11475 * config/i386/i386aix.mh (XDEPFILES): Delete.
11476 * config/i386/go32.mh (XDEPFILES): Delete.
11477 * config/i386/cygwin.mh (XDEPFILES): Delete.
11478 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11479 * config/i386/i386mach.mh (XDEPFILES): Delete.
11480 * config/i386/i386v32.mh (XDEPFILES): Delete.
11481 * config/i386/linux.mh (XDEPFILES): Delete.
11482 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11483 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11484 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11485 * config/i386/i386sco.mh (XDEPFILES): Delete.
11486 * config/i386/i386v.mh (XDEPFILES): Delete.
11487 * config/i386/nbsd.mh (XDEPFILES): Delete.
11488 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11489 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11490 * config/i386/symmetry.mh (XDEPFILES): Delete.
11491 * config/i386/obsd.mh (XDEPFILES): Delete.
11492 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11493 * config/ia64/linux.mh (XDEPFILES): Delete.
11494 * config/ia64/aix.mh (XDEPFILES): Delete.
11495 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11496 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11497 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11498 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11499 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11500 * config/m68k/linux.mh (XDEPFILES): Delete.
11501 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11502 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11503 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11504 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11505 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11506 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11507 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11508 * config/m88k/delta88.mh (XDEPFILES): Delete.
11509 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11510 * config/m88k/m88k.mh (XDEPFILES): Delete.
11511 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11512 * config/mips/linux.mh (XDEPFILES): Delete.
11513 * config/mips/irix6.mh (XDEPFILES): Delete.
11514 * config/mips/irix5.mh (XDEPFILES): Delete.
11515 * config/mips/irix4.mh (XDEPFILES): Delete.
11516 * config/mips/irix3.mh (XDEPFILES): Delete.
11517 * config/mips/decstation.mh (XDEPFILES): Delete.
11518 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11519 (NATDEPFILES): Move core-aout.o to here.
11520 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11521 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11522 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11523 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11524 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11525 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11526 * config/pa/hpux11.mh (XDEPFILES): Delete.
11527 * config/powerpc/aix.mh (XDEPFILES): Delete.
11528 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11529 * config/powerpc/linux.mh (XDEPFILES): Delete.
11530 * config/romp/rtbsd.mh: Rename XDEPFILES.
11531 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11532 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11533 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11534 * config/s390/s390.mh (XDEPFILES): Delete.
11535 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11536 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11537 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11538 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11539 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11540 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11541 * config/sparc/linux.mh (XDEPFILES): Delete.
11542 * config/vax/vaxult.mh (XDEPFILES): Delete.
11543 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11544 * Makefile.in (DEPFILES): Remove XDEPFILES.
11546 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11548 * utils.c (internal_verror): Fix comments, default is yes not no.
11549 Update queries to match. Default to quit and dump core.
11551 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11553 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11555 * defs.h, event-top.c, gdbcmd.h: Ditto.
11556 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11557 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11558 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11559 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11560 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11561 * mi/mi-main.c:Ditto.
11563 * stack.c, symfile.c: Update copyright.
11565 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11567 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11568 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11569 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11570 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11572 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11574 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11575 * gdbserver/low-lynx.c (myattach): Likewise.
11576 * gdbserver/low-nbsd.c (myattach): Likewise.
11577 * gdbserver/low-sim.c (myattach): Likewise.
11578 * gdbserver/low-sparc.c (myattach): Likewise.
11579 * gdbserver/low-sun3.c (myattach): Likewise.
11581 * gdbserver/low-linux.c (myattach): New function.
11583 * gdbserver/server.c (attach_inferior): New function.
11584 (main): Handle "--attach".
11586 2002-01-16 Andrew Cagney <ac131313@redhat.com>
11588 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11591 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
11593 * c-typeprint.c (is_type_conversion_operator): Add additional
11594 check for non-conversion operators.
11596 2002-01-15 Michael Snyder <msnyder@redhat.com>
11598 * linux-proc.c: Add "info proc" command, a la procfs.c.
11599 (read_mapping): New function, abstract and re-use code.
11600 (linux_find_memory_regions): Use new func read_mapping.
11601 (linux_info_proc_cmd): New function, implement "info proc".
11602 (_initialize_linux_proc): Add new command "info proc".
11604 2002-01-15 Michael Snyder <msnyder@redhat.com>
11606 * symfile.c (generic_load): Use bfd_map_over_sections method
11607 instead of manipulating bfd structure members directly.
11608 (add_section_size_callback): New function, bfd sections callback
11609 used by generic_load.
11610 (load_sections_callback): New function, bfd sections callback
11611 used by generic_load.
11613 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
11615 [Based on work by Jim Blandy]
11616 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11617 (builtin_type_vec128): Export.
11618 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11620 (builtin_type_vec128): New builtin type for 128 bit vector
11622 (build_gdbtypes): Initialize builtin_type_v16qi and
11623 builtin_type_v8hi. Create the vec128 register builtin type
11625 (build_builtin_type_vec128): New function.
11626 (_initialize_gdbtypes): Register builtin_type_v16qi and
11627 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11628 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11629 AltiVec register to new builtin type.
11631 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
11633 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11636 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11638 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11639 CLEAN_UP_REGISTER_VALUE.
11640 * regcache.c (supply_register): Update only call.
11642 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11644 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11645 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11646 a29k-*-vxworks* targets as obsolete.
11648 2002-01-14 Michael Snyder <msnyder@redhat.com>
11650 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11651 until we can resolve portability issues.
11652 * gregset.h: Remove references to fpxregs.
11653 * gcore.c (gcore_command): Initialize note_sec to NULL.
11655 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11657 * signals.c (target_signal_to_name): Rewrite. Only use
11658 signals[].name when in bounds and non-NULL.
11660 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11662 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11663 * signals.c (target_signal_to_name): Verify that SIG is within the
11664 bounds of the signals array.
11666 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11668 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11670 2002-01-13 Keith Seitz <keiths@redhat.com>
11672 * stack.c (print_frame_info_base): Print the frame's pc
11673 only if when print_frame_info_listing_hook is not defined.
11675 2002-01-13 Keith Seitz <keiths@redhat.com>
11677 * varobj.c (varobj_set_value): Make sure that there were no
11678 errors evaluating the object before attempting to set its
11680 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11681 so this offset adjustment is no longer necessary.
11682 (create_child): Don't set the error flag if the child is
11683 a CPLUS_FAKE_CHILD.
11684 (value_of_child): If value_fetch_lazy fails, return NULL
11685 so that callers will be notified that an error occurred.
11686 (c_value_of_variable): Delay check of variable's validity
11687 until later. We actually want all structs and unions to have
11689 Do not return "???" for variables which could not be evaluated.
11690 This error condition must be returned to the caller so that it
11691 can get the error condition from gdb.
11692 (cplus_name_of_child): Adjust index for vptr before figuring
11693 out the name of the child.
11694 (cplus_value_of_child): If a child's (real) parent is not valid,
11695 don't even bother trying to give a value for it. Just return
11696 an error. Change all instances in this function.
11697 (cplus_type_of_child): If our parent is one of the "fake"
11698 parents, we need to get at the type of the real parent, and
11699 derive the child's true type using this information.
11701 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11703 From 2002-01-09 John Marshall <johnm@falch.net>:
11704 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11705 sources.redhat.com, and tweak some related URLs which had
11706 suffered from linkrot.
11708 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11711 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11712 structures passed in registers.
11714 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11716 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11717 white space which prevented compilation. Reported by DSK
11718 <dsk@student.unsw.edu.au>.
11720 2002-01-11 Michael Snyder <msnyder@redhat.com>
11722 * symfile.c (build_section_addr_info_from_section_tab):
11723 Use bfd access method instead of manipulating bfd directly.
11724 (syms_from_objfile): Ditto.
11725 (simple_overlay_update_1): Ditto.
11726 (simple_overlay_update): Ditto.
11727 (generic_load): Ditto.
11728 (overlay_unmapped_address): FIXME comment, bfd access methods.
11729 (sections_overlap): FIXME comment, bfd access methods.
11730 (pc_in_mapped_range): FIXME comment, bfd access methods.
11731 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11732 (section_is_mapped): FIXME comment, bfd access methods.
11733 (section_is_overlay): FIXME comment, bfd access methods.
11735 * symfile.c (generic_load): Whitespace and long line cleanups.
11736 Remove duplicate variable, change several local variables to
11737 more appropriate data types.
11738 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11740 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11742 From Peter Schauer:
11743 * language.c (longest_local_hex_string_custom): Use phex_nz to
11744 convert NUM to a hex string.
11746 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
11748 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11750 Update Copyright year.
11752 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11754 * language.c (longest_raw_hex_string): Delete unused function.
11756 2002-01-11 Petr Sorfa <petrs@caldera.com>
11758 * MAINTAINERS (write-after-approval): Add myself.
11759 * dwarf2read.c (read_tag_string_type): Handling of
11761 (read_tag_string_type): FORTRAN fix to prevent propagation of
11763 (set_cu_language): Handling of DW_LANG_Fortran95
11765 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
11767 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11768 GETPID(inferior_ptid).
11769 (store_inferior_registers): Likewise.
11771 2002-01-10 Jason Merrill <jason@redhat.com>
11773 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11776 2002-01-10 Andrew Cagney <ac131313@redhat.com>
11778 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11779 and bfd/elf32-sh-nbsd.c.
11781 2002-01-10 Michael Snyder <msnyder@redhat.com>
11783 * NEWS: Mention --pid and corefile/proc-id behavior change.
11785 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11786 * gcore.c: Include cli/cli-decode.h instead of command.h.
11788 * main.c (captured_main): Add new command line option "--pid".
11789 If the second command line argument (following the symbol-file)
11790 begins with a digit, try to attach to it before trying to open
11792 (print_gdb_help): Document the "--pid" argument.
11794 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11796 * completer.c (command_completer): New function.
11798 * completer.h <command_completer>: Add prototype.
11800 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11801 completer for the "help" command.
11803 2002-01-09 Jason Merrill <jason@redhat.com>
11805 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11807 2002-01-09 Michael Snyder <msnyder@redhat.com>
11809 * i386-linux-nat.c (fill_fpxregset): Make global.
11810 (store_fpxregset): Ditto.
11812 * gregset.h (gdb_fpxregset_t): Define.
11813 (supply_fpxregset): Prototype.
11814 (fill_fpxregset): Prototype.
11816 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11818 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11820 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11821 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11822 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11824 2002-01-09 Andrew Cagney <ac131313@redhat.com>
11826 * MAINTAINERS: Update target maintainer rules so that any
11827 Maintainer can approve a tested patch for a maintenance-only
11830 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11832 * MAINTAINERS (write-after-approval): Add myself.
11834 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
11837 2002-01-08 Michael Snyder <msnyder@redhat.com>
11839 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11840 real name of the executable, rather than the /proc name.
11842 2002-01-03 Michael Snyder <msnyder@redhat.com>
11844 Implement a "generate-core-file" command in gdb, save target state.
11845 * gcore.c: New file. Implement new command 'generate-core-file'.
11846 Save a corefile image of the current state of the inferior.
11847 * linux-proc.c: Add linux-specific code for saving corefiles.
11848 * target.h (struct target_ops): Add new target vectors for saving
11849 corefiles; to_find_memory_regions and to_make_corefile_notes.
11850 (target_find_memory_regions): New macro.
11851 (target_make_corefile_notes): New macro.
11852 * target.c (update_current_target): Inherit new target methods.
11853 (dummy_find_memory_regions): New place-holder method.
11854 (dummy_make_corefile_notes): New place-holder method.
11855 (init_dummy_target): Initialize new dummy target vectors.
11856 * exec.c (exec_set_find_memory_regions): New function.
11857 Allow the exec_ops vector for memory regions to be taken over.
11858 (exec_make_note_section): New function, target vector method.
11859 * defs.h (exec_set_find_memory_regions): Export prototype.
11860 * procfs.c (proc_find_memory_regions): New function, corefile method.
11861 (procfs_make_note_section): New function, corefile method.
11862 (init_procfs_ops): Set new target vector pointers.
11863 (find_memory_regions_callback): New function.
11864 (procfs_do_thread_registers): New function.
11865 (procfs_corefile_thread_callback): New function.
11866 * sol-thread.c (sol_find_memory_regions): New function.
11867 (sol_make_note_section): New function.
11868 (init_sol_thread_ops): Initialize new target vectors.
11869 * inftarg.c (inftarg_set_find_memory_regions): New function.
11870 Allow to_find_memory_regions vector to be taken over.
11871 (inftarg_set_make_corefile_notes): New function.
11872 Allow to_make_corefile_notes vector to be taken over.
11873 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11874 interface layer if not target_has_execution (may be a corefile).
11875 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11876 * config/sparc/sun4sol2.mh: Ditto.
11877 * config/alpha/alpha-linux.mh: Ditto.
11878 * config/arm/linux.mh: Ditto.
11879 * config/i386/x86-64linux.mh: Ditto.
11880 * config/ia64/linux.mh: Ditto.
11881 * config/m68k/linux.mh: Ditto.
11882 * config/mips/linux.mh: Ditto.
11883 * config/powerpc/linux.mh: Ditto.
11884 * config/sparc/linux.mh: Ditto.
11886 2002-01-07 Michael Snyder <msnyder@redhat.com>
11888 * arm-linux-nat.c: Remove references to regcache.c internal data
11889 (registers[] and register_valid[]).
11891 2002-01-07 Michael Snyder <msnyder@redhat.com>
11893 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11894 so that attaching to a pid will automatically read the process's
11895 symbol file and shlibs.
11896 * Makefile.in: Add rule for linux-proc.o.
11897 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11898 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11899 * config/arm/linux.mh: Ditto.
11900 * config/i386/linux.mh: Ditto.
11901 * config/i386/x86-64linux.mh: Ditto.
11902 * config/ia64/linux.mh: Ditto.
11903 * config/m68k/linux.mh: Ditto.
11904 * config/mips/linux.mh: Ditto.
11905 * config/powerpc/linux.mh: Ditto.
11906 * config/sparc/linux.mh: Ditto.
11908 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11910 * win32-nat.c: Add i386-tdep.h dependency.
11912 2002-01-07 Michael Snyder <msnyder@redhat.com>
11914 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11915 instead of bfd_get_arch_size. Don't bail out just because
11916 there's no exec_bfd.
11918 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11919 * p-valprint.c (pascal_object_print_value): Ditto.
11920 * somread.c (som_symtab_read): Ditto.
11921 * symfile.c (simple_free_overlay_region_table): Ditto.
11922 * valops.c (value_assign): Ditto.
11924 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11925 use tilde_expand and strerror for opening save-tracepoints file.
11927 * thread-db.c (thread_db_new_objfile): Indendation fix.
11929 * infptrace.c (GDB_MAX_ALLOCA): New define.
11930 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
11931 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
11932 can be overridden with whatever value is appropriate to the host).
11933 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11934 alloca to allocate potentially large buffer.
11935 * rs6000-nat.c (child_xfer_memory): Ditto.
11936 * symm-nat.c (child_xfer_memory): Ditto.
11937 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11939 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11941 From Nick Clifton <nickc@redhat.com>
11942 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11944 2002-01-07 Michael Snyder <msnyder@redhat.com>
11946 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11947 Don't use exec_bfd if it's NULL.
11949 2002-01-06 Mark Kettenis <kettenis@gnu.org>
11951 * valops.c (value_arg_coerce): Fix formatting.
11953 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11955 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11956 * gnu-nat.c: Ditto.
11958 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11960 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11961 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11962 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11963 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11964 z8k-coff have not been multi-arched. Update z8k-coff build
11967 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11969 * MAINTAINERS: Mark a29k target as obsolete.
11970 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11971 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11973 * NEWS: Note that a29k targets are obsolete.
11974 * a29k-tdep.c: Mark as obsolete.
11975 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11976 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11977 a29k-*-vxworks* targets as obsolete.
11978 * remote-adapt.c: Obsolete.
11979 * remote-eb.c: Obsolete.
11980 * remote-mm.c: Obsolete.
11981 * remote-udi.c: Obsolete.
11982 * config/a29k/a29k-udi.mt: Obsolete.
11983 * config/a29k/a29k.mt: Obsolete.
11984 * config/a29k/tm-a29k.h: Obsolete.
11985 * config/a29k/tm-vx29k.h: Obsolete.
11986 * config/a29k/vx29k.mt: Obsolete.
11988 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11990 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11991 with BFD_ENDIAN_BIG.
11993 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11995 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11996 * configure, config.in: Re-generate.
11997 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11998 * defs.h: Do not include <endian.h>.
12000 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
12002 * acconfig.h (HAVE_PT_GETXMMREGS): New.
12003 * config.in: Regenerate.
12004 * configure.in: Update copyright years.
12005 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
12006 * configure: Regenerate.
12007 * i386bsd-nat.c: Update copyright years.
12008 (fill_gregset): Use regcache_collect.
12009 (fetch_inferior_registers): Only fetch integer registers
12010 if requested to do so. Add support for XMM registers
12011 using PT_GETXMMREGS.
12012 (store_inferior_registers): Only store integer registers
12013 if requested to do so. Add support for XMM registers
12014 using PT_SETXMMREGS.
12015 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
12016 (store_inferior_registers): Remove.
12017 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
12018 (fetch_elfcore_registers): New function.
12019 (i386nbsd_elfcore_fns): New.
12020 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
12021 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
12023 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
12024 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
12025 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
12026 * config/i386/tm-nbsd.h: Update copyright years.
12027 (HAVE_SSE_REGS): Define.
12028 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
12029 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
12030 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
12031 (SIGCONTEXT_PC_OFFSET): Remove.
12032 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
12034 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12036 * configure.tgt: Remove powerpc-*-macos* target.
12037 * config/m68k/xm-mpw.h: Delete file.
12038 * config/xm-mpw.h: Delete file.
12039 * ser-mac.c: Delete file.
12040 * mpw-make.sed: Delete file.
12041 * mpw-config.in: Delete file.
12042 * mac-xdep.c: Delete file.
12043 * mac-gdb.r: Delete file.
12044 * mac-defs.h: Delete file.
12045 * mac-nat.c: Delete file.
12046 * config/powerpc/macos.mh: Delete file.
12047 * config/powerpc/macos.mt: Delete file.
12048 * config/powerpc/nm-macos.h: Delete file.
12049 * config/powerpc/tm-macos.h: Delete file.
12050 * source.c (openp, open_source_file): Remove obsolete code.
12051 * top.c (gdb_readline): Ditto.
12052 * utils.c (query): Ditto.
12053 * event-top.c (display_gdb_prompt): Ditto.
12054 * Makefile.in (ser-mac.o): Delete obsolete target.
12057 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12059 * defs.h (BIG_ENDIAN): Delete macro definition.
12060 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
12061 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
12062 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
12063 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
12064 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
12065 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
12066 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
12067 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
12068 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
12069 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
12070 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
12071 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12072 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12073 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12074 * gdbarch.c: Re-generate.
12076 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12078 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12081 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12083 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12085 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12087 * value.h (value_ptr): Delete typedef.
12089 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12091 * i386nbsd-nat.c: Update copyright years.
12092 Include i386-tdep.h.
12094 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
12096 * stabsread.c: Update copyright years.
12098 From Debashis Mahata <debashis.mahata@wipro.com>:
12099 (read_struct_fields): Deal with Sun C compiler erroneous stab
12100 output for structs and unions.
12103 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12105 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12108 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12110 * cp-abi.c: Fix whitespace.
12111 (baseclass_offset): New wrapper function.
12112 * cp-abi.h (baseclass_offset): Add prototype.
12113 (struct cp_abi_ops): Add baseclass_offset pointer.
12115 * valops.c (vb_match): Move to...
12116 * gnu-v2-abi.c (vb_match): here.
12117 * valops.c (baseclass_offset): Move to...
12118 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12120 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12122 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12123 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12124 * hpacc-abi.c (init_hpacc_ops): Likewise.
12126 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12128 * valops.c (find_overload_match): Accept obj as a
12129 reference parameter. Update it before returning.
12130 * value.h (find_overload_match): Update prototype.
12131 * eval.c (evaluate_subexp_standard): Pass object to
12132 find_overload_match by reference.
12134 2002-01-03 Andrew Cagney <ac131313@redhat.com>
12136 * valarith.c: Replace value_ptr with struct value pointer. Remove
12137 register attribute from value declarations.
12140 * scm-lang.c (scm_lookup_name): Ditto.
12142 2002-01-03 Michael Snyder <msnyder@redhat.com>
12144 Abstract the functionality of iterating over mapped memory
12145 regions into a general purpose iterator function.
12146 * procfs.c (iterate_over_mappings): New function, general purpose
12147 iterator for memory sections.
12148 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12149 (solib_mappings_callback): New function, callback for above.
12150 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12151 (info_mappings_callback): New function, callback for above.
12153 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12155 2002-01-01 Mark Kettenis <kettenis@gnu.org>
12157 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12158 * i386-tdep.c: Include "elf-bfd.h".
12159 (process_note_abi_tag_sections): New function.
12160 (i386_gdbarch_init): Add code to recognize various OS/ABI
12163 * maint.c (_initialize_maint_cmds): Add missing \ in
12166 For older changes see ChangeLog-2001
12172 version-control: never