1 2002-10-25 Mark Kettenis <kettenis@gnu.org>
3 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
4 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
5 (x86_64_init_abi): ...new function.
7 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
8 * i386v-nat.c: Include "i386-tdep.h".
10 2002-10-25 Andrew Cagney <cagney@redhat.com>
12 * gdbtypes.c (address_space_name_to_int): Update.
13 (address_space_int_to_name): Update.
14 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
16 (address_class_name_to_type_flags): Ditto.
17 * gdbarch.h, gdbarch.c: Re-generate.
19 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
21 2002-10-24 Martin M. Hunt <hunt@redhat.com>
23 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
25 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
27 * symtab.h (INIT_SAL): Delete macro.
29 * symtab.c (init_sal): New function.
31 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
32 to init_sal function call.
33 (find_sal_from_funcs_and_line): Ditto.
34 (all_sals_for_line): Ditto.
35 * breakpoint.c (create_internal_breakpoint): Ditto.
36 (create_fork_vfork_event_catchpoint): Ditto.
37 (create_exec_event_catchpoint): Ditto.
38 (parse_breakpoint_sals): Ditto.
39 (watch_command_1): Ditto.
40 (handle_gnu_4_16_catch_command): Ditto.
41 (clear_command): Ditto.
42 * hppa-tdep.c (child_enable_exception_callback): Ditto.
43 * infcmd.c (run_stack_dummy): Ditto.
44 * infrun.c (process_event_stop_test): Ditto.
45 (check_sigtramp2): Ditto.
46 (step_over_function): Ditto.
47 * linespec.c (decode_line_2): Ditto.
48 (decode_line_1): Ditto.
49 * source.c (line_info): Ditto.
50 * symtab.c (find_pc_sect_line): Ditto.
52 2002-10-24 Michal Ludvig <mludvig@suse.cz>
54 * dwarf2cfi.c (struct context)
55 (struct context_reg): Moved to dwarf2cfi.h
56 (context_alloc, frame_state_alloc, context_cpy):
57 Made extern instead of static, removed prototypes.
58 * dwarf2cfi.h (struct context)
59 (struct context_reg): New, moved from dwarf2cfi.c
60 (context_alloc, frame_state_alloc, context_cpy):
62 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
63 Changed from static to extern.
64 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
65 (LINUX_SIGCONTEXT_FP_OFFSET)
66 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
67 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
68 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
69 * x86-64-tdep.c (x86_64_gdbarch_init): Several
70 set_gdbarch_*() calls now use x86-64 specific functions
71 instead of DWARF2 CFI ones.
72 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
73 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
74 (x86_64_init_extra_frame_info): New prototypes.
76 2002-10-23 David Carlton <carlton@math.stanford.edu>
78 * linespec.c: #include "parser-defs.h".
79 Delete prototype for find_template_name_end.
80 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
82 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
84 * NEWS: add recent mi fixes.
85 * varobj.c (struct varobj): Add new "updated" flag.
86 (new_variable): Default "updated" flag to 0.
87 (varobj_set_value): Set "updated" flag to 1 if value
89 (varobj_update): Check varobj "updated" flag before
90 comparing old and refreshed values. Fix for
93 2002-10-23 David Carlton <carlton@math.stanford.edu>
95 * parse.c (parse_exp_1): Use BLOCK_START.
96 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
98 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
100 2002-10-23 David Carlton <carlton@math.stanford.edu>
102 * symtab.c: Delete cplusplus_hint.
103 Delete prototype for find_template_name_end.
105 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
107 * symtab.h: Update comment.
109 2002-10-23 Michael Snyder <msnyder@redhat.com>
111 * printcmd.c (address_info): Restore quotes in output.
112 * valops.c (value_of_local): Restore quotes in error message.
114 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
116 * symtab.c (symbol_demangled_name): New function.
117 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
118 turning most of it into a function.
119 (symbol_demangled_name): Export.
121 2002-10-23 Michael Snyder <msnyder@redhat.com>
123 * valops.c (value_of_local): Restore quotes in error message.
125 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
127 * symtab.c (symbol_init_language_specific): New function.
128 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
129 turning most of it into a function.
130 (symbol_init_language_specific): Export.
132 2002-10-23 David Carlton <carlton@math.stanford.edu>
134 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
135 (dwarf_attr_name): Ditto.
136 (dwarf_type_encoding_name): Ditto.
137 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
138 (process_die): Handle DW_TAG_namespace,
139 DW_TAG_imported_declaration, DW_TAG_imported_module.
140 (read_namespace): New function.
142 2002-10-22 Joel Brobecker <brobecker@gnat.com>
144 * configure.in: Define NEW_PROC_API on Interix too.
145 * configure: Regenerate.
147 2002-10-21 Joel Brobecker <brobecker@gnat.com>
149 * configure: Regenerate using the proper version of autoconf.
151 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
153 * findvar.c (read_var_value): Temporarily disable TLS code, until
154 complete TLS support is added.
156 2002-10-21 Jim Blandy <jimb@redhat.com>
157 Elena Zannoni <ezannoni@redhat.com>
159 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
160 for thread local storage locations.
161 (struct symbol): Add objfile field.
162 (SYMBOL_OBJFILE): Define.
163 * dwarf2read.c (is_thread_local): New static variable.
164 (new_symbol): If variable is in thread local fill in address class
165 and objfile appropriately.
166 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
168 * printcmd.c (address_info): Print the information for thread
169 local storage variable.
170 * findvar.c (read_var_value): In case of thread local variable,
171 defer to the target vector code to compute address.
173 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
175 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
176 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
178 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
180 * symtab.h (address_class): Rename
181 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
182 * hpread.c (hpread_process_one_debug_symbol): Ditto.
183 * printcmd.c (address_info): Ditto.
184 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
186 2002-10-20 Mark Kettenis <kettenis@gnu.org>
188 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
189 DBREG_DRX macro to acces debug registers.
191 * Makefile.in (i386obsd-tdep.o): New target.
193 * solib-sunos.c: Include "bcache.h" and "regcache.h".
194 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
196 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
197 * config/i386/obsd.mt: New file.
198 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
199 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
200 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
201 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
202 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
203 * i386obsd-tdep.c: New file.
205 2002-10-19 Adam Fedor <fedor@gnu.org>
207 * objc-exp.y (name_not_typename): Fix invalid comment.
209 2002-10-20 Mark Kettenis <kettenis@gnu.org>
211 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
212 to allocate partial syms and macro byte caches.
214 2002-10-18 David Carlton <carlton@math.stanford.edu>
216 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
218 2002-10-18 Adam Fedor <fedor@gnu.org>
220 * stabsread.c (find_name_end): New function.
221 (define_symbol): Use it.
223 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
225 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
226 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
227 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
228 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
230 2002-10-17 David Carlton <carlton@math.stanford.edu>
232 * symfile.h: Add opaque declaration for struct obstack.
233 Declare obsavestring to take a const char *.
234 * symfile.c (obsavestring): Make first argument a const char *.
236 2002-10-16 Adam Fedor <fedor@gnu.org>
238 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
239 names when matching breakpoints in current file.
241 2002-10-16 Kevin Buettner <kevinb@redhat.com>
243 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
244 (read_tag_pointer_type): Add address class support.
245 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
246 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
248 * gdbarch.h, gdbarch.c: Regenerate.
249 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
250 (make_type_with_address_space, recursive_type_dump): Add address
252 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
253 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
254 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
256 2002-10-16 Klee Dienes <kdienes@apple.com>
258 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
259 to get the last character of a char[] buffer, not
260 name[sizeof(vptr_name)-1].
262 2002-10-14 Adam Fedor <fedor@gnu.org>
264 * symtab.h: New objc_specific struct.
265 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
266 (SYMBOL_DEMANGLED_NAME): Likewise.
268 2002-10-14 Adam Fedor <fedor@gnu.org>
270 * symfile.c (init_filename_language_table): Add ObjC file extension.
272 2002-10-14 Adam Fedor <fedor@gnu.org>
274 * utils.c (puts_filtered_tabular): New function.
275 (fprintf_symbol_filtered): Get ObjC demangled name.
276 * defs.h (puts_filtered_tabular): Declared.
278 2002-10-14 Kevin Buettner <kevinb@redhat.com>
280 * c-lang.h (c_type_print_varspec_prefix): Delete.
281 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
282 ``need_post_space'' parameter. Adjust all callers.
284 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
286 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
287 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
288 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
289 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
291 2002-10-13 Adam Fedor <fedor@gnu.org>
293 * source.c (print_source_lines): Update comments.
295 2002-10-13 Adam Fedor <fedor@gnu.org>
297 * valops.c (value_of_local): New function.
298 (value_of_this): Use it.
299 * value.h (value_of_local): Declared.
301 2002-10-13 Adam Fedor <fedor@gnu.org>
303 * parse.c: (length_of_subexp, prefixify_subexp): Handle
304 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
306 2002-10-12 Adam Fedor <fedor@gnu.org>
308 * language.c (binop_result_type): Add language_objc to case.
309 (integral_type): Likewise.
310 (character_type): Likewise.
311 (string_type): Likewise.
312 (boolean_type): Likewise.
313 (structured_type): Likewise.
314 (binop_type_check): Likewise.
316 2002-10-11 Adam Fedor <fedor@gnu.org>
318 * printcmd.c (address_info): Print 'self' for ObjC.
320 2002-10-11 Adam Fedor <fedor@gnu.org>
322 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
325 2002-10-11 Adam Fedor <fedor@gnu.org>
327 * language.h (CAST_IS_CONVERSION): Add language_objc.
329 2002-10-11 Adam Fedor <fedor@gnu.org>
331 * defs.h (enum language): Add language_objc.
333 2002-10-11 Klee Dienes <kdienes@apple.com>
335 * findvar.c (read_memory_typed_address): New function.
336 * gdbcore.h (read_memory_typed_address): Add prototype.
337 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
338 to read a value destined for a CORE_ADDR, not read_memory_integer.
339 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
340 (f77_get_dynamic_lowerbound): Ditto.
342 2002-10-11 Martin M. Hunt <hunt@redhat.com>
344 * utils.c (string_to_core_addr): After turning string into
345 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
346 which will do necessary sign-extension, etc.
348 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
350 * c-exp.y (THIS): Delete token and grammar rule.
351 (yylex): Don't return THIS.
352 * cp-valprint.c (vtbl_ptr_name_old): Delete.
353 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
354 * demangle.c (cplus_markers): Update comment. Put '$'
355 first. Remove CPLUS_MARKER.
356 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
357 * jv-exp.y (THIS): Delete token and grammar rule.
358 (yylex): Don't return THIS.
359 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
360 * objc-exp.y (THIS): Delete token and grammar rule.
361 (yylex): Don't return THIS.
362 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
363 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
364 (read_member_functions): Likewise for opname.
365 (read_tilde_fields): Use is_cplus_marker.
367 * defs.h (CPLUS_MARKER): Don't define.
368 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
369 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
370 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
371 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
372 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
374 * config/i386/tm-i386v4.h: Delete file.
375 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
376 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
377 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
378 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
379 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
380 * config/i386/i386sco5.mt (TM_FILE): Likewise.
381 * config/i386/i386v4.mt (TM_FILE): Likewise.
382 * config/i386/ncr3000.mt (TM_FILE): Likewise.
384 2002-10-10 Marko Mlinar <markom@opencores.org>
386 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
387 accidentially not commited 2002-10-09
388 * gdbarch.h, gdbarch.c: Re-generate.
390 2002-10-09 Marko Mlinar <markom@opencores.org>
392 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
393 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
394 * gdbarch.h, gdbarch.c: Re-generate.
396 2002-10-08 Petr Sorfa <petrs@caldera.com>
398 Revised and re-submitted by John Wolfe <jlw@caldera.com>
400 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
401 so we can work on more than one compilation unit at a time. This
402 helps prepare GDB to handle inter-CU die references.
403 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
404 the code to be defined before struct comp_unit_head.
405 (comp_unit_head): Added new members - offset, cu_head,
406 begin_die, next and dwarf2_abbrevs.
407 (dwarf2_abbrevs): Removed single static var; now member of
408 struct comp_unit_head.
409 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
411 (psymtab_to_symtab_1): Changed to work with the new
412 struct comp_unit_head.
413 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
414 constructs the dwarf2_abbrevs[] inside the cu_header.
415 (dwarf2_empty_abbrev_table): Now expects a ptr to a
416 dwarf2_abbrev table to clean up.
417 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
418 handling of dwarf2_abbrevs inside the cu_header.
419 (read_partial_die): Now supports the call to the new
420 dwarf2_lookup_abbrev.
421 (read_full_die): Now supports the call to the new
422 dwarf2_lookup_abbrev.
424 2002-10-06 Christopher Faylor <cgf@redhat.com>
426 * Makefile.in (install-gdbtk): Add missing continuation backslash to
427 insure that shell variables, such as "transformed_name" are propagated
428 to later shell statements in rule.
430 2002-10-06 Mark Kettenis <kettenis@gnu.org>
432 * config/i386/nm-i386sco.h: Add protection against
433 multiple-inclusion. Include "i386/nm-i386v.h".
434 (REGISTER_U_ADDR): Remove define.
435 (i386_register_u_addr): Remove prototype.
437 2002-10-04 Michael Snyder <msnyder@redhat.com>
439 * m32r-stub.c (handle_exception): Make sure exception is "trap"
440 before treating it as a single-step event.
442 2002-10-03 Adam Fedor <fedor@gnu.org>
444 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
445 (objc_demangle): Remove assignment in if statements, Replace
447 (add_msglist): Likewise.
448 (end_msglist): Likewise.
449 (complare_selectors): Likewise.
450 (selectors_info): Likewise.
451 (compare_classes): Likewise.
452 (classes_info): Likewise.
453 (print_object_command): Likewise.
454 (find_objc_msgcall_submethod): Replace PTR with void *.
455 * objc-lang.h: Remove check for __STDC__.
457 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
459 * ui-out.h (ui_out_field_fmt_int): New prototype.
460 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
461 of field width and alignment.
462 * stack.c (print_frame_info_base): When printing frame level, use
463 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
466 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
468 * MAINTAINERS: Add self to Write After Approval list.
470 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
472 * infcmd.c (interrupt_target_command_wrapper): Delete.
473 (interrupt_target_command): Make non static.
474 (nofp_registers_info): Make static.
475 * stack.c (return_command_wrapper): Delete.
476 (return_command): Make non static.
478 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
480 * event-top.c (gdb_setup_readline): New function. Code moved from
481 _initialize_event_loop().
482 (_initialize_event_loop): Call gdb_setup_readline().
484 2002-10-02 Andrew Cagney <ac131313@redhat.com>
486 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
487 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
488 * gdbarch.h, gdbarch.c: Re-generate.
490 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
493 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
495 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
496 of fill_in_vptr_fieldno.
498 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
500 * inferior.h (registers_info, stepi_command, nexti_command,
501 continue_command, interrupt_target_command): Export from infcmd.c.
502 * frame.h (args_info, selected_frame_level_changed_hook,
503 return_command): Export from stack.c.
504 * v850ice.c (stepi_command, nexti_command, continue_command): use
505 prototypes from inferior.h.
506 * tracepoint.c (registers_info, args_info, locals_info): Use
507 prototypes from frame.h and inferior.h.
508 * Makefile.in (mi-main.o): Add dependency on frame.h.
510 2002-10-02 Andrew Cagney <ac131313@redhat.com>
512 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
513 value in register 3 adjusted by ppc_gp0_regnum.
515 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
517 2002-10-02 Marko Mlinar <markom@opencores.org>
519 * MAINTAINERS: Add myself to the Write After Approval list.
521 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
523 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
524 of the section for the N64 ABI, fixed.
526 * config/mips/tm-irix6.h: Include solib.h.
528 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
530 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
533 2002-10-01 Andrew Cagney <ac131313@redhat.com>
535 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
536 and that "mi0" syntax has been removed.
538 2002-09-30 David Carlton <carlton@math.stanford.edu>
540 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
541 * ppc-sysv-tdep.c: #include "gdb_string.h".
542 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
545 2002-10-01 Andrew Cagney <ac131313@redhat.com>
547 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
548 "vrsave"'s register number.
550 2002-09-30 Andrew Cagney <ac131313@redhat.com>
552 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
553 use frame_unwind_signed_register to obtain the PC.
554 (mips_frame_chain): Handle a generic dummy frame.
555 (mips_init_extra_frame_info): When a generic dummy frame, don't
556 re-compute the frame base.
557 (mips_pop_frame): Handle generic dummy frames.
558 (mips_gdbarch_init): When generic dummy frames, set
559 use_generic_dummy_frames, push_dummy_frame to
560 generic_push_dummy_frame, pc_in_call_dummy to
561 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
562 generic_save_dummy_frame_tos.
564 2002-09-30 Andrew Cagney <ac131313@redhat.com>
566 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
567 against TOP when TOP was explictly set.
568 (generic_push_dummy_frame): Set TOP to zero.
570 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
572 * event-loop.c (start_event_loop): Rename variable 'result' to
573 'gdb_result', to avoid conflicts with upcoming intepreters changes.
575 2002-09-30 Keith Seitz <keiths@redhat.com>
577 * gdb-events.sh (selected_thread_changed): New event.
578 * gdb-events.c: Regenerated.
579 * gdb-events.h: Regenerated.
581 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
583 * MAINTAINERS: Add self to Write After Approval list.
585 2002-09-30 Fernando Nasser <fnasser@redhat.com>
587 * disasm.c: New file.
588 * disasm.h: New file.
589 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
590 (compare_lines): Ditto.
592 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
594 (do_assembly_only): Ditto.
595 (do_disassembly): Renamed to gdb_disassembly and moved to
596 disasm.c. Sdded uiout argument.
597 * Makefile.in: Add new files. Reorder SFILES list. Update
598 dependencies. Include libgdb.a later in the insight executable.
600 2002-09-29 Andrew Cagney <ac131313@redhat.com>
602 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
603 bfd/elf64-alpha-fbsd.c.
605 2002-09-29 Andrew Cagney <ac131313@redhat.com>
607 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
610 2002-09-29 Andrew Cagney <ac131313@redhat.com>
612 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
614 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
616 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
617 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
618 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
619 (S_msg_sig_post_reply): Ditto.
621 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
623 * sh-tdep.c (sh_use_struct_convention): Use definition according
625 (sh_push_arguments): Store in register with correct endianess.
626 (sh_default_store_return_value): Ditto.
627 (sh_gdbarch_init): Set sizeof long double to 8.
629 2002-09-27 Mark Kettenis <kettenis@gnu.org>
631 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
632 Fix some whitespace problems.
634 2002-09-27 David Carlton <carlton@math.stanford.edu>
636 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
637 (mcore-tdep.o): Ditto.
638 (ns32k-tdep.o): Ditto.
639 (ns32knbsd-tdep.o): Ditto.
642 * cris-tdep.c: #include "gdb_string.h"
643 * mcore-tdep.c: Ditto.
644 * ns32k-tdep.c: Ditto.
645 * ns32knbsd-tdep.c: Ditto.
649 2002-09-27 David Carlton <carlton@math.stanford.edu>
651 * config/djgpp/fnchange.lst: Add entries for
652 gdb/testsuite/gdb.c++/m-static files.
654 2002-09-27 Jim Wilson <wilson@redhat.com>
656 * MAINTAINERS: Add myself to the Write After Approval list.
658 2002-09-26 Martin M. Hunt <hunt@redhat.com>
660 * mips-tdep.c (find_proc_desc): Initialize startaddr.
663 2002-09-26 Andrew Cagney <ac131313@redhat.com>
665 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
668 2002-09-26 Andrew Cagney <ac131313@redhat.com>
670 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
671 (rs6000_struct_return_address): Delete variable.
672 (rs6000_store_struct_return): Update.
673 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
674 deprecated_extract_struct_value_address.
675 (rs6000_frame_align): New function.
676 (rs6000_gdbarch_init): Set frame_align.
678 2002-09-26 Andrew Cagney <ac131313@redhat.com>
680 From Grace Sainsbury <graces@redhat.com>:
681 * Makefile.in (gdbtk-main.o): New target.
684 (main.o): Update dependencies.
685 (gdb$(EXEEXT)): Add gdb.o.
686 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
687 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
688 (SUBDIR_GDBTK_CLEAN): Set.
689 (install-gdbtk): Install the insight binary.
690 (uninstall-gdbtk): New target.
691 (all-gdbtk, clean-gdbtk): New rule.
692 * top.c (use_windows): Default to zero.
693 * main.c: Include "main.h".
695 (struct captured_main_args): Delete.
696 (gdb_main): New function.
700 2002-09-25 Andrew Cagney <cagney@redhat.com>
702 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
703 (frame_map_regnum_to_name): New function.
704 (frame_map_name_to_regnum): New function.
705 * frame.h (frame_map_name_to_regnum): Declare.
706 (frame_map_regnum_to_name): Declare.
707 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
708 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
709 * parse.c: Do not include "builtin-regs.h".
710 (target_map_name_to_register): Delete function.
711 (write_dollar_variable): Use frame_map_name_to_regnum.
712 * parser-defs.h (target_map_name_to_register): Delete declaration.
713 * expprint.c: Include "frame.h".
714 (print_subexp): Use frame_map_regnum_to_name.
715 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
716 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
718 2002-09-25 Andrew Cagney <ac131313@redhat.com>
720 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
721 wasn't saved, and the next innermost frame is a dummy, return the
722 dummy frame's link register.
724 2002-09-24 Jim Blandy <jimb@redhat.com>
727 * main.c (captured_main): Add a `break' after the case for 'b'.
729 2002-09-24 Keith Seitz <keiths@redhat.com>
731 * varobj.c (c_type_of_child): Use get_target_type instead
734 2002-09-22 Fernando Nasser <fnasser@redhat.com>
736 * source.c (get_current_or_default_source_symtab_and_line): Remove
738 (set_default_source_symtab_and_line): New function. Attempts to
739 determine a source file to list lines from if one is not currently
741 (get_current_source_symtab_and_line): Initialize sal.pc and
743 (set_current_source_symtab_and_line): Mark argument as const.
744 * source.h: Update declarations and comments.
745 * linespec.c (decode_line_1): Replace call to removed routine above.
746 * stack.c (print_frame_info_base): Ditto.
747 * cli/cli-cmds.c (edit_command): Ditto.
748 (list_command): Ditto.
750 2002-09-22 Fernando Nasser <fnasser@redhat.com>
752 * source.c (get_current_or_default_source_symtab_and_line): Initialize
753 sal.pc and sal.end fields.
754 (get_current_or_default_source_symtab_and_line): Ditto.
755 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
756 so we do not cause a new source symtab to be searched for (reverting an
757 unintentional change from the 2002-09-20 patch).
758 * scm-lang.c (scm_unpac): Ditto.
760 2002-09-21 Andrew Cagney <cagney@redhat.com>
762 * complaints.c (symfile_explanations): Remove new-line from
763 ``isolated_message''.
764 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
765 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
767 2002-09-20 Nick Clifton <nickc@redhat.com>
769 * NEWS: Announce that V850EA ISA is no longer supported.
770 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
772 2002-09-20 David Carlton <carlton@math.stanford.edu>
774 * Makefile.in (c-lang.o): Correct dependencies.
775 (utils.o): Gather dependencies.
777 * c-lang.c: #include "gdb_string.h"
779 2002-09-20 Fernando Nasser <fnasser@redhat.com>
781 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
782 * cli/cli-cmds.c (list_command): New function. Implements the new
784 (_init_cli_cmds): Add new command definition.
785 * gdb.1: Document edit command.
786 * doc/gdb.texinfo: Document edit command.
788 2002-09-20 Fernando Nasser <fnasser@redhat.com>
790 * source.c: Make global variables current_source_symtab and
791 current_source_line static.
792 (list_command): Moved to cli/cli-cmds.c.
793 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
794 (get_first_line_listed): New accessor function.
795 (get_lines_to_list): New accessor function.
796 (get_current_source_symtab_and_line): New function. Retrieves the
797 position in the source code that we consider current.
798 (get_current_or_default_source_symtab_and_line): New function.
799 Like the above but attempts to determine a default position if one
800 is not currently defined.
801 (set_current_source_symtab_and_line): New function. Sets the source
802 code position considered current and returns the previously set one.
803 (clear_current_source_symtab_and_line): Reset stored information about
804 a current source line.
805 (_initialize_source): Remove registration for the "list" command and
807 * source.h: Add declarations for the new functions above.
808 * symtab.h: Remove declarations for the global variables mentioned
810 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
811 obtain current source line.
812 * linespec.c (decode_line_1): Ditto.
813 * macroscope.c (default_macro_scope): Ditto.
814 * scm-lang.c (scm_unpac): Ditto.
815 * stack.c (print_frame_info_base): Ditto.
816 * symfile.c (clear_symtab_users): Ditto.
817 * symtab.c (decode_line_spec): Ditto.
818 * cli/cli-cmds.c (list_command): Moved here from source.c.
819 (ambiguous_line_spec): Moved here from source.c.
820 (_init_cli_cmds): Add definition for "list" and its alias.
821 * Makefile.in: Update dependencies.
823 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
825 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
826 with what gcc thinks is correct.
828 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
830 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
831 multiple register push instruction.
833 2002-09-19 Jim Blandy <jimb@redhat.com>
835 Add support for distinct host and target character sets.
836 * charset.c, charset.h: New files.
837 * c-exp.y: #include "charset.h".
838 (yylex): Convert character and string literals to the target
839 character set, before returning them as the semantic value of the
841 * c-lang.c: #include "charset.h".
842 (c_emit_char): Use charset-specific methods to recognize
843 characters with backslash escape forms, to decide which characters
844 to print literally and which to print using numeric escape
845 sequences, and to convert target characters to host characters
847 * utils.c: #include "charset.h".
848 (no_control_char_error): New function.
849 (parse_escape): Use charset-specific methods to recognize
850 backslash escapes, parse `control character' notation, and convert
851 characters from the host character set to the target character set.
852 * configure.in: Set the default host character set.
853 Check where to find iconv, and what its argument types might be.
854 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
855 * Makefile.in (SFILES): List charset.c.
856 (COMMON_OBS): List charset.o.
857 (charset.o): New rule.
858 (charset_h): New header dependency variable.
859 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
860 (LIBICONV): New variable, set by configure.
861 (CLIBS): Include $(LIBICONV) here.
862 * aclocal.m4, config.in, configure: Regenerated.
864 2002-09-19 Joel Brobecker <brobecker@gnat.com>
866 * ada-exp.y: Add missing semicolons to end rules. Fixes a
869 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
871 * gdb_mbuild.sh: New file.
873 2002-09-19 Andrew Cagney <ac131313@redhat.com>
875 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
877 2002-09-18 Andrew Cagney <ac131313@redhat.com>
879 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
880 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
881 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
882 valops.c, value.h: Revert previous change.
884 2002-09-18 Michael Snyder <msnyder@redhat.com>
886 Preliminary support for Objective-C:
887 * defs.h (language_objc): New enum value.
888 (puts_filtered_tabular): Declaration only, exported from utils.c.
889 (skip_quoted): Delete, declared in completer.h.
890 * c-exp.y: Include completer.h.
893 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
894 New operator enum values.
895 * language.h (CAST_IS_CONVERSION): Test for language_objc.
896 * language.c (binop_result_type): Handle language_objc case.
897 (integral_type, character_type, string_type, boolean_type,
898 structured_type, binop_type_check): Ditto.
899 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
900 (struct objc_specific): Add to general_symbol_info.
901 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
902 (SYMBOL_DEMANGLED_NAME): Handle objc case.
903 * parser-defs.h (struct objc_class_str): New struct type.
904 (start_msglist, end_msglist, add_msglist): Declaration only,
905 exported from objc-lang.c.
906 * value.h (value_of_local, value_nsstring,
907 call_function_by_hand_expecting_type): Exported from valops.c.
908 * valops.c (find_function_addr): Export.
909 (call_function_by_hand_expecting_type): New function.
910 (value_of_local): New function.
911 * symfile.c (init_filename_language_table): Add ".m" extension
913 * utils.c (puts_filtered_tabular): New function.
914 (fprintf_symbol_filtered): Add objc demangling support (disabled).
915 (set/show demangle): Extend help-string to refer to ObjC.
916 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
917 * stabsread.c (symbol_reference_defined): Objective-C symbols
918 may contain colons: make allowances when scanning stabs strings
920 (objc_find_colon): New function.
921 * printcmd.c (address_info): If language == objc then print
922 "self" instead of "this".
923 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
924 OP_NSSTRING, and OP_SELF.
925 (prefixify_subexp): Ditto.
926 * source.c (print_source_lines): Mention objc in comment.
927 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
930 2002-09-18 Andrew Cagney <ac131313@redhat.com>
932 * complaints.h: Update copyright.
933 (struct complaints): Declare.
934 (struct complaint): Make `message' constant.
935 (internal_complaint): Declare.
936 (complaint): Declare.
937 (complaint_root): Delete declaration.
938 (symfile_complaints): Delete declaration.
939 (struct complaints): Add opaque declaration.
940 (clear_complaints): Add a complaints parameter.
941 * complaints.c: Update copyright.
942 (enum complaint_series): Define.
943 (complaint_root): Delete.
944 (struct complaints): Define.
945 (complaint_sentinel, symfile_complaint_book): New variables.
946 (symfile_explanations, symfile_complaints): New variables.
948 (get_complaints): New function.
949 (vcomplaint): New function.
950 (complaint): New function.
951 (internal_complaint): New function.
952 (complain): Call vcomplain with symfile_complaint.
953 (clear_complaints): Rewrite.
954 (_initialize_complaints): Use add_setshow_command.
955 * Makefile.in (complaints.o): Update dependencies.
956 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
957 to call to clear_complaints.
958 (new_symfile_objfile, reread_symbols): Ditto.
959 (oldsyms_complaint): Delete.
960 (empty_symtab_complaint, unknown_option_complaint): Delete.
961 (free_named_symtabs): Use complaint instead of complain.
963 2002-09-18 Michael Snyder <msnyder@redhat.com>
965 Contributed by Apple Computer, Inc. Merged with current sources
966 by Adam Fedor <fedor@doc.com> [cagney].
968 * objc-lang.c: First clean-up round: comments, indentation.
969 * objc-lang.h: Ditto.
970 * objc-lang.y: Ditto.
972 2002-09-18 Andrew Cagney <ac131313@redhat.com>
974 * maint.c (maintenance_internal_error): Print the parameter as the
976 (maintenance_internal_warning): New function.
977 (_initialize_maint_cmds): Add command `maint internal-warning'.
979 * defs.h (internal_warning, internal_vwarning): Declare.
980 * utils.c (struct internal_problem): Define.
981 (internal_vproblem): New function.
982 (internal_warning): New function.
983 (internal_vwarning): New function.
984 (internal_warning_problem, internal_error_problem): New variables.
985 (internal_verror): Just call internal_vproblem.
987 2002-09-18 Michael Snyder <msnyder@redhat.com>
989 * objc-lang.c: New file, support for Objective-C.
990 Preliminary check-in, not yet integrated into gdb.
991 * objc-lang.h: New file.
992 * objc-exp.y: New file.
994 2002-09-18 Andrew Cagney <ac131313@redhat.com>
996 * infrun.c (signal_stop_update): Convert definition to ISO C.
997 (signal_print_update): Ditto.
998 (signal_pass_update): Ditto.
999 * inflow.c (terminal_save_ours): Ditto.
1001 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
1004 * config/djgpp/fnchange.lst: Handle name clashes between
1005 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
1008 * i386-linux-tdep.h: Fix tipo.
1010 2002-09-18 Adam Fedor <fedor@gnu.org>
1012 * MAINTAINERS: Add myself to the Write After Approval list.
1014 2002-09-18 Jim Blandy <jimb@redhat.com>
1016 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
1017 texthigh and textlow to reader-specific structs caused
1018 objfile_relocate to miss them. This is fixable, but the work that
1019 the change was supposed to prepare GDB for never got done anyway.
1021 2002-09-18 David Carlton <carlton@math.stanford.edu>
1023 * MAINTAINERS: Alphabetize Write After Approval list.
1025 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
1028 * values.c (value_static_field): Call read_var_value.
1030 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1032 * valops.c (hand_function_call): Align the initial stack pointer
1033 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
1034 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
1036 * mips-tdep.c (mips_frame_align): New function.
1037 (mips_gdbarch_init): Set frame_align.
1038 * gdbarch.sh (FRAME_ALIGN): New method.
1039 * gdbarch.h, gdbarch.c: Re-generate.
1041 2002-09-18 Michal Ludvig <mludvig@suse.cz>
1043 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
1046 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1048 * NEWS: Mention that MIPS $fp behavior changed.
1049 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
1050 reference to FP_REGNUM.
1051 (mipsnbsd_cannot_store_register): Ditto.
1052 * mips-linux-nat.c: Update copyright.
1053 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
1054 (mips_linux_cannot_store_register): Ditto.
1055 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
1056 * config/mips/tm-mips.h: Update copyright.
1057 (FP_REGNUM): Delete macro.
1058 (MIPS_REGISTER_NAMES): Replace "fp" with "".
1059 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
1060 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
1061 (mips_r3041_reg_names, mips_r3051_reg_names)
1062 (mips_r3081_reg_names): Replace "fp" with "".
1065 2002-09-17 Theodore A. Roth <troth@verinet.com>
1067 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
1068 generic_read_register_dummy() (PR gdb/703).
1069 (avr_push_return_address): #if 0 out unused vars.
1070 (avr_gdbarch_init): Enable use of avr_push_return_address().
1072 2002-09-17 Michael Snyder <msnyder@redhat.com>
1074 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
1075 RTE will take care of it.
1077 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1079 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
1080 invalid, return SP_REGNUM.
1082 2002-09-17 Michael Snyder <msnyder@redhat.com>
1084 * mips-tdep.c (mips_pop_frame): Read saved values of floating
1085 point registers without sign extension.
1087 2002-09-17 Andrew Cagney <cagney@redhat.com>
1089 * blockframe.c (deprecated_read_register_dummy): Rename
1090 generic_read_register_dummy.
1091 * frame.c (frame_unwind_signed_register): New function.
1092 (frame_unwind_unsigned_register): New function.
1093 * frame.h (frame_unwind_signed_register): Declare.
1094 (frame_unwind_unsigned_register): Declare.
1095 (deprecated_read_register_dummy): Rename
1096 generic_read_register_dummy.
1098 * h8300-tdep.c (h8300_frame_chain): Update.
1099 (h8300_frame_saved_pc): Update.
1100 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1101 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1102 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1103 (s390_frame_chain): Update.
1104 * v850-tdep.c (v850_find_callers_reg): Update.
1105 (v850_frame_saved_pc): Update.
1106 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1107 (m32r_find_callers_reg): Update.
1108 (m32r_frame_saved_pc): Update.
1109 * sh-tdep.c (sh_find_callers_reg): Update.
1110 (sh64_get_saved_pr): Update.
1111 (sh_init_extra_frame_info): Update.
1112 (sh_init_extra_frame_info): Update.
1113 (sh64_init_extra_frame_info): Update.
1114 (sh64_init_extra_frame_info): Update.
1115 * mcore-tdep.c (mcore_find_callers_reg): Update.
1116 (mcore_frame_saved_pc): Update.
1117 (mcore_init_extra_frame_info): Update.
1118 * i386-tdep.c (i386_frame_saved_pc): Update.
1119 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1120 (ia64_init_extra_frame_info): Update.
1121 (ia64_init_extra_frame_info): Update.
1122 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1123 * cris-tdep.c (cris_init_extra_frame_info): Update.
1124 * avr-tdep.c (avr_frame_chain): Update.
1125 (avr_init_extra_frame_info): Update.
1126 (avr_frame_saved_pc): Update.
1127 * arm-tdep.c (arm_find_callers_reg): Update.
1128 (arm_init_extra_frame_info): Update.
1129 (arm_frame_saved_pc): Update.
1131 2002-09-17 Tom Tromey <tromey@redhat.com>
1133 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1136 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
1138 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1139 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1141 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1144 2002-09-16 Joel Brobecker <brobecker@gnat.com>
1146 * osfsolib.c: Remove file, replaced by solib-osf.c.
1147 * Makefile.in: Remove compilation rules for osfsolib.c.
1149 2002-09-16 David Carlton <carlton@math.stanford.edu>
1151 * cp-valprint.c (cp_print_class_method): Correct args to
1152 check_stub_method_group.
1154 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
1156 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1157 `set architecture'. Unify naming convention of functions.
1158 (h8300_skip_prologue): Improve prologue analysis.
1159 (h8300_push_arguments): Rewritten to more closely match GCC's
1160 bizarre argument-passing behavior, along with the comment describing
1162 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1163 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1164 sim, remote-e7000.c, remote-hms.c and remote.c
1166 2002-09-15 Mark Kettenis <kettenis@gnu.org>
1168 * i386-tdep.c (gdb_print_insn_i386): Removed.
1169 (i386_print_insn): New function.
1170 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1171 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1174 2002-09-14 Mark Kettenis <kettenis@gnu.org>
1176 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1179 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
1181 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1182 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1183 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1185 2002-09-13 Christopher Faylor <cgf@redhat.com>
1187 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1189 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
1191 * gdbtypes.c (check_stub_method): Make static.
1192 (check_stub_method_group): New function.
1193 * gdbtypes.h: Update prototypes.
1194 * cp-support.c: New file.
1195 * cp-support.h: New file.
1197 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1198 (update_method_name_from_physname): New function.
1199 (read_member_functions): Correct method names for operators
1200 and v3 constructors/destructors. Separate v2 constructors and
1202 * Makefile.in (stabsread.o): Update dependencies.
1203 (SFILES): Add cp-support.c.
1204 (COMMON_OBS): Add cp-support.o.
1205 (cp_support_h, cp-support.o): Add.
1207 * cp-valprint.c (cp_print_class_method): Call
1208 check_stub_method_group instead of check_stub_method. Remove
1210 * p-valprint.c (pascal_object_print_class_method): Likewise.
1211 * valops.c (search_struct_method): Likewise.
1212 (find_method_list, value_struct_elt_for_reference): Likewise.
1214 2002-09-13 Andrew Cagney <cagney@redhat.com>
1216 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1217 * gdbarch.h, gdbarch.c: Regenerate.
1219 2002-09-13 Andrew Cagney <ac131313@redhat.com>
1221 * frame.c (find_saved_register): Delete function.
1222 * frame.h (find_saved_register): Delete declaration.
1225 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1227 * mips-tdep.c (read_next_frame_reg): Re-hack using
1228 frame_register_unwind.
1230 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1232 * mips-tdep.c (mips_get_saved_register): Re-hack using
1233 frame_register_unwind.
1235 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1237 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1238 vector. Will be useful for Interix.
1239 * gdbarch.h, gdbarch.c: Regenerate.
1241 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1242 name of the malloc function by NAME_OF_MALLOC.
1244 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1246 * value.h (find_function_in_inferior): Add const keyword to
1247 one of the parameters. Allows us to invoke this function with
1249 * valops.c (find_function_in_inferior): Likewise.
1251 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1253 * exec.c (xfer_memory): Fix compilation warning with old versions
1255 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1257 2002-09-12 David Carlton <carlton@math.stanford.edu>
1259 * symtab.h: Run through gdb_indent.h.
1260 Add 2002 to Copyright year list.
1262 2002-09-12 Alan Modra <amodra@bigpond.net.au>
1264 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1266 * MAINTAINERS: Add myself to write after approval list.
1268 2002-09-11 J. Brobecker <brobecker@gnat.com>
1270 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1272 2002-09-11 J. Brobecker <brobecker@gnat.com>
1274 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1277 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1279 * procfs.c (do_detach): Clear current signal, not just fault.
1280 Corrects problem with breakpoint trap signal leaking to detached
1283 2002-09-10 Michael Snyder <msnyder@redhat.com>
1285 * buildsym.c (finish_block): Protect against null pointer.
1287 2002-09-10 Andrew Cagney <cagney@redhat.com>
1289 * infcmd.c (default_print_registers_info): Send all output to
1290 ``file'' instead of ``gdb_stdout''.
1292 2002-09-10 Michael Snyder <msnyder@redhat.com>
1294 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1295 LONGEST, and use signed register read (addresses are sign-
1298 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1300 * event-loop.c (gdb_do_one_event): Make public.
1301 * event-loop.h (gdb_do_one_event): Declare.
1303 2002-09-10 Jeff Law <law@redhat.com>
1305 * infttrace.c (child_resume): Simplify and rework to avoid
1308 2002-09-09 Fred Fish <fnf@intrinsity.com>
1310 * printcmd.c (print_scalar_formatted): "len" is the number of
1311 target bytes, NOT the number of target bits.
1313 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
1315 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1316 * top.c (init_main): Set rl_terminal_name.
1318 2002-09-08 Aidan Skinner <aidan@velvet.net>
1320 * ada-lang.c (ada_array_bound, ada_type_match,
1321 _initialize_ada_language): Fix K&R definitions.
1322 * ada-tasks.c (get_current_task): Fix K&R definitions.
1323 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1325 2002-09-07 Christopher Faylor <cgf@redhat.com>
1327 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1330 2002-09-06 Mark Kettenis <kettenis@gnu.org>
1332 * i386-tdep.c (i386_register_virtual_type,
1333 i386_register_convertible, i386_register_convert_to_virtual,
1334 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1335 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1336 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1337 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1338 Don't set push_arguments twice.
1340 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1341 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1342 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1343 sigtramp_end to NULL.
1344 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1346 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1348 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1351 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1352 * gdbarch.h, gdbarch.c: Re-generate.
1353 * blockframe.c (find_pc_sect_partial_function): Convert to use
1354 SIGTRAMP_START_P predicate.
1356 2002-09-05 Michael Snyder <msnyder@redhat.com>
1358 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1359 generic_dummy_frame method and old method. Also distinguish
1360 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1361 (arm_extract_return_value): Use new regcache method.
1363 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1364 adjustment that doesn't conform to the ABI.
1365 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1366 saved regcache, not from current regcache.
1368 2002-09-05 Andrew Cagney <ac131313@redhat.com>
1370 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1373 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1375 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1376 if arm_apcs_32 is false.
1378 2002-09-04 Andrew Cagney <ac131313@redhat.com>
1380 GDB 5.3 branch created.
1382 2002-09-03 Theodore A. Roth <troth@verinet.com>
1384 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1385 generic_unwind_get_saved_register.
1387 2002-09-03 David Carlton <carlton@math.stanford.edu>
1389 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1390 argument (PR gdb/653). Update call to smash_to_method_type.
1391 (read_structure_scope): Update call to dwarf2_add_member_fn.
1393 2002-09-03 Michal Ludvig <mludvig@suse.cz>
1395 * x86-64-linux-tdep.c: Include gdb_string.h
1396 * x86-64-linux-nat.c: Ditto.
1398 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1400 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1401 when YYDEBUG is set to 1.
1402 * c-exp.y: Likewise.
1403 * f-exp.y: Likewise.
1404 * jv-exp.y: Likewise.
1405 * m2-exp.y: Likewise.
1406 * p-exp.y: Likewise.
1408 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1410 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1412 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1413 solib_svr4_fetch_link_map_offsets to
1414 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1415 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1416 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1417 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1418 solib-svr4.o, and solib-legacy.o.
1419 * config/i386/tm-nbsd.h: Include solib.h.
1421 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1423 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1424 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1425 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1426 comment noting that this needs its own target configuration.
1427 * config/i386/nbsd.mt: New file.
1428 * config/i386/nbsdaout.mt: Remove.
1429 * config/i386/nbsdelf.mt: Ditto.
1430 * config/i386/tm-nbsdaout.h: Ditto.
1432 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1434 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1435 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1436 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1438 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1439 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1440 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1442 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1444 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1445 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1446 * i386-tdep.h (i386bsd_init_abi): New prototype.
1447 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1448 function declaration.
1449 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1450 for NetBSD-a.out or NetBSD-ELF.
1451 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1452 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1453 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1454 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1456 (i386nbsd_pc_in_sigtramp): New function.
1457 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1458 i386nbsd_pc_in_sigtramp.
1459 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1460 and i386nbsdelf_init_abi OS ABI handlers.
1461 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1462 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1464 2002-09-02 Mark Kettenis <kettenis@gnu.org>
1466 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1467 registers if the target really has them.
1469 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1471 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1474 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1476 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1478 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1479 (alphanbsd_skip_sigtramp_frame): New functions.
1480 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1481 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1482 to alphanbsd_sigcontext_addr.
1484 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1486 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1488 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1489 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1490 nbsd_pc_in_sigtramp.
1491 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1492 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1493 * nbsd-tdep.c: Include gdb_string.h.
1494 (nbsd_pc_in_sigtramp): New function.
1495 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1496 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1497 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1498 ppcnbsd_pc_in_sigtramp.
1499 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1500 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1501 shnbsd_pc_in_sigtramp.
1502 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1503 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1504 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1506 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1508 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1509 watchpoints to NULL.
1510 (insert_breakpoints): set val field of watchpoints if NULL.
1513 2002-08-29 Jim Blandy <jimb@redhat.com>
1515 * symtab.c (lookup_symbol_aux): In the cases where we find a
1516 minimal symbol of an appropriate name and use its address to
1517 select a symtab to read and search, use `name' (as passed to us)
1518 as the demangled name when searching the symtab's global and
1519 static blocks, not the minsym's name.
1521 2002-08-29 Keith Seitz <keiths@redhat.com>
1523 * stack.c (print_frame_info_base): Always set current_source_symtab
1524 and current_source_line.
1526 2002-08-29 Donn Terry <donnte@microsoft.com>
1528 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1530 2002-08-28 Keith Seitz <keiths@redhat.com>
1532 * stack.c (select_frame): Add FIXME concerning selected-frame
1534 (select_frame_command): Send selected-frame-level-changed
1535 event notification, but only if the level actually changed.
1536 (up_silently_base): Add selected-frame-level-changed event
1538 (down_silently_base): Likewise.
1540 2002-08-28 Andrew Cagney <ac131313@redhat.com>
1542 * Makefile.in: Update dependencies for all gdb/*.c files.
1544 2002-08-27 Tom Tromey <tromey@redhat.com>
1546 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1547 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1548 Update dependencies.
1549 * i387-tdep.c: Include gdb_string.h.
1550 * osabi.c: Likewise.
1551 * i386-linux-nat.c: Likewise.
1552 * lin-lwp.c: Likewise.
1553 * ax-gdb.c: Likewise.
1554 * signals/signals.c: Likewise.
1555 * jv-valprint.c: Likewise.
1556 * p-lang.c: Likewise.
1557 * c-valprint.c: Likewise.
1558 * cp-abi.c: Likewise.
1560 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
1562 * cli/cli-script.h (copy_command_lines): Export.
1563 * breakpoint.c: Include cli/cli-script.h.
1564 * Makefile.in (breakpoint.o): Update dependencies.
1566 2002-08-26 Michael Snyder <msnyder@redhat.com>
1568 * breakpoint.c (insert_breakpoints): Protect all references
1569 to 'process_warning'. Shorten long lines.
1571 2002-08-26 Joel Brobecker <brobecker@gnat.com>
1573 * cli/cli-script.c (copy_command_lines): New function.
1574 * defs.h (copy_command_lines): Export.
1575 * testsuite/gdb.base/commands.exp: New tests for commands
1576 attached to a temporary breakpoint, and for commands that
1577 delete the breakpoint they are attached to.
1579 2002-08-26 Michael Snyder <msnyder@redhat.com>
1581 * breakpoint.c (bpstat_stop_status): Instead of copying the
1582 pointer to the breakpoint commands struct, make a new copy
1583 of the struct and point to that.
1584 (bpstat_clear): Free the commands struct.
1585 (bpstat_clear_actions): Free the commands struct.
1586 (bpstat_do_actions): Free the command actions. Also execute
1587 the local cleanups, instead of deleting them.
1588 (delete_breakpoint): Leave the commands field of the bpstat
1589 chain alone -- it will be freed later.
1591 2002-08-26 Kevin Buettner <kevinb@redhat.com>
1593 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1594 deleted in 2002-08-20 commit. This function is still used by
1597 2002-08-26 Keith Seitz <keiths@redhat.com>
1599 * gdb-events.sh: Add selected-frame-level-changed event.
1600 * gdb-events.c: Regenerated.
1601 * gdb-events.h: Regenerated.
1603 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1606 * inflow.c (terminal_save_ours): New function to save terminal
1608 * inferior.h (terminal_save_ours): Declare.
1609 * target.c (debug_to_terminal_save_ours): New function.
1610 (cleanup_target): Defaults to_terminal_save_ours.
1611 (update_current_target): Inherit to_terminal_save_ours.
1612 (setup_target_debug): Set to_terminal_save_ours.
1613 * target.h (target_terminal_save_ours): New to save terminal settings.
1614 (target_ops): New member to_terminal_save_ours.
1615 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1616 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1617 * inftarg.c (init_child_ops): Likewise.
1618 * m3-nat.c (init_m3_ops): Likewise.
1619 * procfs.c (init_procfs_ops): Likewise.
1620 * wince.c (init_child_ops): Likewise.
1621 * win32-nat.c (init_child_ops): Likewise.
1622 * sol-thread.c (init_sol_thread_ops): Likewise.
1624 2002-08-26 Mark Kettenis <kettenis@gnu.org>
1626 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1627 use regcache_* functions.
1628 (i386_gdbarch_init): Set store_return_value instead of
1629 deprecated_store_return_value.
1631 * regcache.c (regcache_raw_write_signed,
1632 regcache_raw_write_unsigned): New functions.
1633 * regcache.h (regcache_raw_write_signed,
1634 regcache_raw_write_unsigned): New prototypes.
1636 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1638 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1639 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1640 source file dependencies. Cleanup corresponding generator rules.
1642 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1644 * regcache.h (register_offset_hack): Declare.
1645 (regcache_cooked_read_using_offset_hack): Declare.
1646 (regcache_cooked_write_using_offset_hack): Declare.
1648 * regcache.c (register_offset_hack): New function.
1649 (regcache_cooked_read_using_offset_hack): New function.
1650 (regcache_cooked_write_using_offset_hack): New function.
1651 (regcache_dump): Check that the registers, according to their
1652 offset, are packed hard against each other.
1653 (cooked_xfer_using_offset_hack): New function.
1655 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1657 * regcache.c (struct regcache_descr): Add field register_type.
1658 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1660 (init_regcache_descr): Initialize register_type. Pass the descr
1661 to init_legacy_regcache_descr. Use register_type instead of
1662 REGISTER_VIRTUAL_TYPE.
1663 (register_type): New function.
1664 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1665 * regcache.h (register_type): Declare.
1667 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1669 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1670 instead of deprecated_store_return_value. Fix fallout from
1671 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1673 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1675 * regcache.c (max_register_size): New function.
1676 (init_legacy_regcache_descr): Ensure that max_register_size is
1677 large enough for REGISTER_VIRTUAL_SIZE.
1678 * regcache.h (max_register_size): Declare.
1680 2002-08-24 Andrew Cagney <ac131313@redhat.com>
1682 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1684 (e500_extract_return_value): Change type of valbuf pointer to
1687 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1689 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1692 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1693 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1694 long long) to prevent compiler warning on 64-bit systems.
1696 2002-08-23 Andrew Cagney <cagney@redhat.com>
1698 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1699 (DEPRECATED_STORE_RETURN_VALUE): New method.
1700 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1701 * gdbarch.h, gdbarch.c: Re-generate.
1703 * values.c (set_return_value): Pass current_regcache to
1705 * arch-utils.h (legacy_store_return_value): Declare.
1706 * arch-utils.c (legacy_store_return_value): New function.
1707 (legacy_extract_return_value): Update parameters.
1709 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1711 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1712 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1713 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1714 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1715 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1716 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1717 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1718 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1719 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1720 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1722 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1723 * i386-tdep.c (i386_extract_return_value): Update.
1724 * arch-utils.c (legacy_extract_return_value): Update.
1725 * frv-tdep.c (frv_gdbarch_init): Update.
1726 * cris-tdep.c (cris_gdbarch_init): Update.
1727 * d10v-tdep.c (d10v_gdbarch_init): Update.
1728 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1729 * m68k-tdep.c (m68k_gdbarch_init): Update.
1730 * mcore-tdep.c (mcore_gdbarch_init): Update.
1731 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1732 * s390-tdep.c (s390_gdbarch_init): Update.
1733 * sparc-tdep.c (sparc_gdbarch_init): Update.
1734 * sh-tdep.c (sh_gdbarch_init): Update.
1735 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1736 * v850-tdep.c (v850_gdbarch_init): Update.
1737 * avr-tdep.c (avr_gdbarch_init): Update.
1738 * ia64-tdep.c (ia64_gdbarch_init): Update.
1739 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1740 * vax-tdep.c (vax_gdbarch_init): Update.
1741 * alpha-tdep.c (alpha_gdbarch_init): Update.
1742 * arm-tdep.c (arm_gdbarch_init): Update.
1743 * mips-tdep.c (mips_gdbarch_init): Update.
1744 * i386-tdep.c (i386_gdbarch_init): Update.
1746 2002-08-23 Andrew Cagney <ac131313@redhat.com>
1748 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1749 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1751 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1753 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1756 2002-08-23 Joel Brobecker <brobecker@gnat.com>
1758 * infrun.c (handle_inferior_event): Move a comment outside of a
1759 function call, in order to avoid indent reformatting this part
1760 of the code in an unreadable way.
1762 2002-08-23 Grace Sainsbury <graces@redhat.com>
1764 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1765 when breakpoints fail. Move general breakpoint error messages to
1767 * breakpoint.c (insert_breakpoints): Change warnings when
1768 breakpoints are nto inserted to specify the type. Remove call to
1769 memory_error when hardware breakpoints can't be inserted. Remove
1770 multiple calls to warning so all messages are sent to the user at
1772 (delete_breakpoints): Make insert error messsages more explicit.
1774 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
1776 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1777 gdbserver/ChangeLog.
1779 2002-08-23 Mark Kettenis <kettenis@gnu.org>
1781 * i386-tdep.c: Include "objfiles.h".
1782 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1783 skip_trampoline_code.
1784 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1785 (CPLUS_MARKER): Define to '.'.
1787 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1789 (linux_corefile_thread_callback): Increase args->num_notes.
1790 (linux_make_note_section): Initialize thread_args.num_notes, and
1791 use it to determine whether notes for any threads were created.
1793 2002-08-23 Donn Terry <donnte@microsoft.com>
1795 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1796 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1798 (write_with_trace): Conditionalize out the switch branch handling
1799 PCSHOLD if the corresponding macro is not defined. Likewise for
1800 PRSABORT and PRSTOP.
1801 This change will be needed by the Interix port.
1803 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1805 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1806 write_register wherever possible instead of manipulating the
1807 register bytes directly.
1808 Assign VALUE_CONTENTS to a variable and use that.
1809 The GPR numbers are now dependent on the architecture.
1811 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1813 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1815 (skip_prologue): Add support for BookE/e500 instructions.
1816 (e500_extract_return_value): New function.
1817 (frame_get_saved_regs): Add support for saving ev registers and
1819 (e500_store_return_value): New function.
1820 (rs6000_gdbarch_init): Move up default intializations of
1821 deprecated_extract_return_value and store_return_value. Overwrite
1822 init of store_return_value with e500 specific version.
1823 Set extract_return_value for e500.
1825 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1827 * blockframe.c (generic_call_dummy_register_unwind): Use
1828 regcache_cooked_read to catch cases in which the variable is
1829 stored in a pseudo register.
1831 2002-08-22 Andrew Cagney <cagney@redhat.com>
1833 * NEWS: Mention that the i960 has been made obsolete.
1834 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1836 (remote-nrom.o): Obsolete target.
1837 (remote-nindy.o, i960-tdep.o): Ditto.
1838 * remote-nrom.c: Make file obsolete.
1839 * remote-nindy.c, remote-vx960.c: Ditto.
1840 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1841 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1842 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1843 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1844 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1845 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1846 i960-*-vxworks* obsolete.
1847 * MAINTAINERS: Note that the i960 is obsolete.
1849 2002-08-21 Corinna Vinschen <vinschen@redhat.com
1851 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1852 detach to allow reinitialization.
1854 2002-08-22 Andrew Cagney <ac131313@redhat.com>
1856 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1859 2002-08-22 Jim Blandy <jimb@redhat.com>
1861 * coffread.c (coff_symfile_read): Don't try to read the line
1862 number table from disk if the image file doesn't have a symbol
1863 table; we'll never actually look at the info anyway, and Windows
1864 ships DLL's with bogus file offsets for the line number data.
1866 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1868 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1871 2002-08-21 Michael Snyder <msnyder@redhat.com>
1873 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1874 (MSYMBOL_SIZE): Replace macro with function.
1875 (DEFAULT_MIPS_TYPE): Delete unused macro.
1876 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1877 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1879 2002-08-21 Jim Blandy <jimb@redhat.com>
1881 * valops.c (value_cast): Simplify and correct logic for doing a
1882 static cast from a pointer to a base class to a pointer to a
1885 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1887 * infcmd.c (default_print_registers_info): Replace
1889 (registers_info): Use gdbarch_print_registers_info instead of
1891 * inferior.h (default_print_registers_info): Replace
1893 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1894 (DO_REGISTERS_INFO): Change to a predicate function.
1895 * gdbarch.h, gdbarch.c: Regenerate.
1897 2002-08-21 Keith Seitz <keiths@redhat.com>
1899 * gdb-events.sh: Add target-changed event.
1900 * gdb-events.c: Regenerated.
1901 * gdb-events.c: Regenerated.
1902 * valops.c (value_assign): Add target-changed event notification
1903 to inlval_register, lval_memory, and lval_reg_frame_relative.
1905 2002-08-21 Joel Brobecker <brobecker@gnat.com>
1907 * NEWS: Add an entry regarding the improvement of the next/step
1908 operation on Alpha Tru64 multi-processor machines.
1910 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1912 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1914 * Makefile.in: Update all _h macro definitions.
1915 * Makefile.in (install-gdbtk): Move to install section.
1916 (rdi-share/libangsd.a): Move to end of file.
1918 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1920 * frame.c (frame_register_unwind): When a register, set addrp to
1921 the register's byte.
1923 2002-08-20 Michael Snyder <msnyder@redhat.com>
1925 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1926 used locally, so move them from the target machine header to here.
1927 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1928 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1930 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1932 2002-08-20 Andrew Cagney <cagney@redhat.com>
1934 * NEWS: Mention that the Apollo line was made obsolete.
1935 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1936 m68*-hp-hpux* obsolete.
1937 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1938 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1939 * buildsym.c (make_blockvector): Make static.
1940 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1941 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1942 (ALLDEPFILES): Remove dstread.c.
1943 (dstread.o): Obsolete make rule.
1944 * dstread.c: Makefile obsolete.
1946 * config/m68k/hp300hpux.mt: Ditto.
1947 * config/m68k/hp300hpux.mh: Ditto.
1948 * config/m68k/hp300bsd.mt: Ditto.
1949 * config/m68k/hp300bsd.mh: Ditto.
1950 * config/m68k/apollo68b.mt: Ditto.
1951 * config/m68k/apollo68v.mh: Ditto.
1952 * config/m68k/apollo68b.mh: Ditto.
1954 2002-08-20 Michael Snyder <msnyder@redhat.com>
1956 * mips-tdep.c (mips_in_return_stub): Make static.
1957 (mips_gdbarch_init): Set in_solib_return_trampoline.
1958 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1960 2002-08-20 Michael Snyder <msnyder@redhat.com>
1962 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1963 * gdbarch.c, gdbarch.h: Regenerate.
1964 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1966 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1968 2002-08-20 Michael Snyder <msnyder@redhat.com>
1970 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1971 (mips_gdbarch_init): Set skip_trampoline_code,
1972 in_solib_call_trampoline.
1973 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1974 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1976 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1978 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1980 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1981 vector type for ev registers.
1982 (e500_pseudo_register_read): New function.
1983 (e500_pseudo_register_write): New function.
1984 (e500_dwarf2_reg_to_regnum): New function.
1985 (PPC_UISA_NOFP_SPRS): New macro.
1986 (PPC_EV_REGS): New macro.
1987 (PPC_GPRS_PSEUDO_REGS): New macro.
1988 (registers_e500): New register set for e500.
1989 (variants): Add e500 variant.
1990 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1991 before setting architectural dependent variations. Initialize ev
1992 registers numbers. Add case for e500 architecture. Set the
1993 number of pseudo registers.
1995 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1997 * rs6000-tdep.c: Clean up comments.
1999 2002-08-20 Andrew Cagney <cagney@redhat.com>
2001 * h8300-tdep.c: Re-indent file.
2003 2002-08-20 Jim Blandy <jimb@redhat.com>
2005 * Makefile.in (LDFLAGS): Allow the configure script to establish a
2008 2002-08-20 Keith Seitz <keiths@redhat.com>
2010 * breakpoints.c (watch_command_1): Use internal breakpoint
2011 when setting a watchpoint_scope breakpoint.
2013 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2015 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
2016 (build_builtin_type_vec64i): Ditto.
2017 (build_builtin_type_vec128): Ditto.
2018 (build_builtin_type_vec128i): Ditto.
2020 2002-08-19 Michael Snyder <msnyder@redhat.com>
2022 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
2023 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
2024 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
2025 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
2026 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
2027 CALL_DUMMY_ADDRESS): Delete.
2028 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
2029 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
2030 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
2031 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
2032 push_return_address.
2033 (mips_register_raw_size, mips_eabi_use_struct_convention,
2034 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
2035 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
2036 mips_init_extra_frame_info, mips_eabi_push_arguments,
2037 mips_n32n64_push_arguments, mips_push_return_address,
2038 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
2039 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
2041 2002-08-19 Michael Snyder <msnyder@redhat.com>
2043 * mips-tdep.c (mips_frame_num_args): New function.
2044 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
2045 frame_saved_pc, frame_args_address, frame_locals_address,
2046 frame_num_args, and frame_args_skip.
2047 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
2048 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
2049 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
2050 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
2052 2002-08-20 Michael Snyder <msnyder@redhat.com>
2054 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
2055 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2056 * mips-tdep.c (mips_store_struct_return): New function.
2057 (mips_extract_struct_value_address): New function.
2058 (mips_gdbarch_init): Set store_struct_return and
2059 extract_struct_value_address.
2061 2002-08-20 David Carlton <carlton@math.stanford.edu>
2063 * dwarf2read.c (dwarf2_build_psymtabs): Check that
2064 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
2065 (read_file_scope): Check that line_header is nonzero before
2066 decoding macro information.
2068 2002-08-20 Mark Kettenis <kettenis@gnu.org>
2070 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
2071 flag the general-purpose registers as floating-point on targets
2072 that don't support the floating-point registers.
2074 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2076 * rs6000-tdep.c (altivec_register_p): Delete.
2077 (rs6000_do_altivec_registers): Delete.
2078 (rs6000_altivec_registers_info): Delete.
2079 (rs6000_do_registers_info): Delete.
2080 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
2081 (rs6000_gdbarch_init): Remove setting of do_registers_info.
2083 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2085 * infcmd.c (do_registers_info): Print vector registers in hex
2087 (print_vector_info): Check that printing registers
2089 (print_float_info): Ditto.
2091 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2093 * mips-tdep.c (mips_gdbarch_init): Update.
2094 (mips_o32_extract_return_value): Rewrite.
2095 (mips_o32_store_return_value): Rewrite.
2096 (mips_o32_xfer_return_value): New function.
2097 (mips_xfer_register): Tweak debug print message. Allow for
2098 buf_offset when dumping the value transfered.
2100 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2102 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2103 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2104 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2105 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2106 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2108 2002-08-14 Michael Snyder <msnyder@redhat.com>
2110 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2112 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2114 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2116 (P): New macro to define a register as a pseudo register.
2117 (R, R4, R8, R16, FR32, R64, R0): Updated.
2118 (struct variant): Add new fields for number of pseudo registers
2119 and number of total registers.
2120 (tot_num_registers): New macro replacing....
2121 (num_registers): ...deleted macro.
2122 (num_registers): New function.
2123 (num_pseudo_registers): New function.
2124 (variants): Update all variants to intialize new fields correctly.
2125 Postpone initialization of number of pseudo regs and real regs.
2126 (init_variants): New function.
2127 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2130 2002-08-19 David Carlton <carlton@math.stanford.edu>
2132 * valops.c (search_struct_field): Change error message to treat
2133 return value of 0 from value_static_field as meaning that field is
2135 (value_struct_elt_for_reference): Ditto.
2136 * values.c (value_static_field): Treat an unresolved location the
2137 same as a nonexistent symbol. Fix PR gdb/635.
2138 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2139 enclosed. Fix PR gdb/574.
2140 * MAINTAINERS: Add self to Write After Approval list.
2142 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2144 * mips-tdep.c (mips_xfer_register): New function.
2145 (mips_n32n64_extract_return_value): Rewrite.
2146 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2147 instead of deprecated_extract_return_value.
2149 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2151 * rs6000-tdep.c (TDEP): Delete macro.
2152 (branch_dest): Replace use of TDEP macro with its body.
2153 (rs6000_pop_frame): Ditto.
2154 (rs6000_push_arguments): Ditto.
2155 (rs6000_skip_trampoline_code): Ditto.
2156 (rs6000_frame_saved_pc): Ditto.
2157 (rs6000_frame_chain): Ditto.
2158 (rs6000_register_name): Ditto.
2159 (rs6000_register_byte): Ditto.
2160 (rs6000_register_raw_size): Ditto.
2161 (rs6000_register_virtual_type): Ditto.
2162 (rs6000_register_convertible): Ditto.
2163 (rs6000_convert_from_func_ptr_addr): Ditto.
2165 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
2167 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2169 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2170 MIPS_LINUX_JB_ELEMENT_SIZE.
2171 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2172 for MAX_REGISTER_RAW_SIZE arrays.
2173 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2174 MIPS_LINUX_JB_ELEMENT_SIZE.
2176 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2178 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2180 2002-08-19 Aidan Skinner <aidan@velvet.net>
2182 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2183 ada-valprint.c ada-tasks.c.
2184 (YYFILES): Add ada-exp.y.
2185 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2186 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2187 (ada-exp.tab.o): New target.
2189 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2191 * regcache.c (regcache_xfer_part): New function.
2192 (regcache_raw_read_part): New function.
2193 (regcache_raw_write_part): New function.
2194 (regcache_cooked_read_part): New function.
2195 (regcache_cooked_write_part): New function.
2196 * regcache.h (regcache_raw_read_part): Declare.
2197 (regcache_raw_write_part): Declare.
2198 (regcache_cooked_read_part): Declare.
2199 (regcache_cooked_write_part): Declare.
2201 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
2203 * remote.c (remote_open_1): Add async_p.
2204 (remote_async_open_1): Delete.
2205 (open_remote_target): Delete.
2206 (remote_open, extended_remote_open): Update calls to remote_open_1.
2207 (remote_async_open, extended_remote_async_open): Call
2208 remote_open_1 instead of remote_async_open_1.
2210 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2212 * blockframe.c: Fix a few coding standard violations.
2214 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2216 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2218 * config/i386/tm-i386sco5.h: ... here. File removed.
2219 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2221 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
2222 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2223 (TM_FILE): Set to tm-i386.h.
2224 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2225 * config/i386/tm-i386v.h: Remove file.
2226 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2227 instead of "i386/tm-i386v.h".
2228 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2229 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2231 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2232 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2235 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2237 * config/i386/nm-i386v.h: Add protection against
2239 (i386_register_u_addr): Remove prototype.
2240 (register_u_addr): New prototype.
2241 (REGISTER_U_ADDR): Redefine accordingly.
2242 * i386v-nat.c: Improve several comments.
2243 (i386_register_u_addr): Change signature and rename to
2244 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2247 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2249 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2250 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2251 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2252 deprecated_extract_return_value.
2253 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2254 rename mips_o32o64_push_arguments.
2255 (mips_gdbarch_init): Update.
2256 (mips_extract_return_value): Delete.
2257 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2258 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2259 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2260 (mips_n32n64_extract_return_value): Clone
2261 mips_extract_return_value.
2262 (mips_store_return_value): Delete.
2263 (mips_o32_store_return_value): Clone mips_store_return_value.
2264 (mips_o64_store_return_value): Clone mips_store_return_value.
2265 (mips_eabi_store_return_value): Clone mips_store_return_value.
2266 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2268 2002-08-18 Aidan Skinner <aidan@velvet.net>
2270 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2271 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2273 2002-08-18 Aidan Skinner <aidan@velvet.net>
2275 * ada-lang.c: Run through gdb_indent.sh.
2276 * ada-lang.h: Run through gdb_indent.sh.
2277 * ada-tasks.c: Run through gdb_indent.sh.
2278 * ada-typeprint.c: Run through gdb_indent.sh.
2279 * ada-valprint.c: Run through gdb_indent.sh.
2281 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2283 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2286 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2288 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2290 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2291 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2293 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2294 write_register_gen instead of write_register_bytes.
2296 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2297 i[3456]-*-osf1mk* configurations have been made obsolete.
2298 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2299 i[3456]86-*-osf1mk* hosts obsolete.
2300 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2302 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2303 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2304 config/i386/i386m3.mt, config/i386/nm-m3.h,
2305 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2306 config/i386/i386mk.mh, config/i386/i386mk.mt,
2307 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2309 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2310 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2311 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2313 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2315 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2316 (hppa_value_returned_from_stack): Declare.
2317 (hppa_extract_return_value): Declare.
2318 * config/pa/hppa.mt: New file.
2319 * configure.tgt: Recognize hppa*-*-*.
2320 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2322 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2324 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2327 2002-08-17 Mark Kettenis <kettenis@gnu.org>
2329 * top.c (gdb_rl_operate_and_get_next): Make sure
2330 operate-and-get-next functions correctly even when the history
2331 list is completely filled.
2333 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2335 * MAINTAINERS (Target Instruction Set Architectures): Rename
2336 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2337 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2338 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2339 already listed under Host/Native.
2341 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2342 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2345 2002-08-17 Andrew Cagney <ac131313@redhat.com>
2347 * config/ia64/ia64.mt: New file.
2348 * config/alpha/alpha.mt: New file.
2349 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2350 ia64-linux-gnu. Mention that ia64-elf is broken.
2351 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2353 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2355 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2356 generic_func_frame_valid instead of func_frame_valid.
2358 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2360 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2361 procfs appears to be broken when debugging on multi-processor
2362 machines. So enable software single stepping in order to avoid
2363 using the procfs interface to do next/step operations, using
2364 internal breakpoints instead.
2366 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2367 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2368 make this pc address equal to the value it would have if the
2369 system stepping capability was used. Also set a new flag used
2370 to ensure that we don't readjust the PC one more time later.
2372 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2373 address by DECR_PC_AFTER_BREAK when software single step is
2374 in use for this architecture, as this has already been taken
2375 care of in handle_inferior_event().
2377 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2379 * infrun.c (handle_inferior_event): Minor reformatting, to make
2380 a rather long condition expression easier to read.
2382 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2384 * Makefile.in (gdbtk.o): Move to end of file.
2385 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2386 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2387 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2388 (gdbtk-wrapper.o, gdbres.o): Ditto.
2390 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2392 * Makefile.in (copying.o): Separate out compile rule.
2393 (hpux-thread.o, procfs.o, signals.o): Ditto.
2394 (v850ice.o, z8k-tdep.o): Ditto.
2395 (tui-file.o): Move to TUI section.
2396 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2397 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2399 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2401 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2402 skip_trampoline_code, for better namespace-proofing.
2404 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2406 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2408 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2410 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2412 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2413 signal, check whether we hit a breakpoint before checking for a
2414 single step breakpoint. Otherwise, GDB fails to notice that a
2415 breakpoint has been hit when stepping onto a breakpoint.
2417 2002-08-16 Keith Seitz <keiths@redhat.com>
2419 * gdb-events.sh (clear_gdb_event_hooks): New function.
2420 * gdb-events.c: Regenerate.
2421 * gdb-events.h: Regenerate.
2423 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2425 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2426 not_a_sw_breakpoint.
2427 * breakpoint.h (bpstat_stop_status): Add parameter names.
2429 2002-08-16 Grace Sainsbury <graces@redhat.com>
2431 * remote.c (remote_insert_hw_breakpoint)
2432 (remote_remove_hw_breakpoint): Fix calculation of length field
2435 2002-08-15 Michael Snyder <msnyder@redhat.com>
2437 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2438 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2439 (supply_fpregset): Ditto.
2441 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2442 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2443 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2444 (TARGET_READ_SP): Delete.
2445 (DO_REGISTERS_INFO): Delete.
2446 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2448 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2449 from macros to functions.
2451 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2452 (mips_register_convertible, mips_register_convert_to_virtual,
2453 mips_register_convert_to_raw): Make static.
2454 (mips_read_sp): New function.
2455 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2456 (mips_do_registers_info): Make static.
2457 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2458 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2459 (mips_register_convert_from_type, mips_register_convert_to_type):
2461 (mips_gdbarch_init): Set up function_start_offset,
2462 register_virtual_size, pc_in_sigtramp.
2464 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2466 * infcmd.c (vector_info): New function.
2467 (_initialize_infcmd): Add command "info vector".
2468 (print_vector_info): New function.
2470 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2471 * gdbarch.h, gdbarch.c: Regenerate.
2473 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2475 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2476 ``print_all''. Only print vector registers when ``print_all''.
2478 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2480 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2481 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2483 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2484 Add `args' parameter.
2485 * gdbarch.h, gdbarch.c: Regenerate.
2487 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2489 * infcmd.c (float_info): Call print_float_info.
2490 (print_float_info): New function. By default, print the
2491 floating-point registers.
2493 * arch-utils.h (default_print_float_info): Delete declaration.
2494 * arch-utils.c (default_print_float_info): Delete function.
2496 2002-08-16 Mark Kettenis <kettenis@gnu.org>
2498 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2501 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2504 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2505 * configure.host: Make i[3456]86-*-aix host obsolete.
2506 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2507 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2508 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2509 config/i386/xm-i386aix.h: Make files obsolete.
2510 * i386aix-nat.c: Make file obsolete.
2511 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2512 (i386aix-nat.o): Make target obsolete.
2514 * config/i386/nm-gnu.h: Removed.
2515 * config/i386/nm-i386gnu.h: New file.
2516 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2517 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2519 * config/i386/tm-i386gnu.h: ... here. Removed.
2520 * config/i386/xm-i386gnu.h: Removed.
2521 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2522 (NAT_FILE): Set to nm-i386gnu.h.
2523 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2524 * i386-tdep.c: New file.
2525 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2526 (i386gnu-tdep.o): Specify dependencies.
2528 2002-08-15 Mark Kettenis <kettenis@gnu.org>
2530 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2531 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2532 Adjust a few comments to reflect reality a bit closer.
2533 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2534 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2535 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2536 target_insert_watchpoint, target_remove_watchpoint):
2538 * config/i386/nm-i386sco5.h: ... here.
2539 (kernel_u_size): Add prototype. Improve a few comments and add
2540 protection against multiple inclusion.
2542 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2545 * uw-thread.c (SP_ARG0): Define if not already defined.
2546 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2548 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2550 * config/i386/tm-i386.h: Don't include "regcache.h".
2552 * i387-tdep.h (i387_print_float_info): New prototype.
2553 * i387-tdep.c (print_i387_value, print_i387_ext,
2554 print_i387_status_word, print_i387_control_word): Add `struct
2555 ui_file *' argument and use it for output.
2556 (i387_print_float_info): Renamed from i387_float_info. Add
2557 `struct gdbarch *' and `struct ui_file *' arguments and use the
2559 * i386-tdep.c: Include "i387-tdep.h".
2560 (i386_gdbarch_init): Set print_float_info.
2561 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2562 (FLOAT_INFO): Remove define.
2564 2002-08-13 Michael Snyder <msnyder@redhat.com>
2566 * mips-tdep.c (mips_push_arguments): Rename to
2567 mips_eabi_push_arguments, and tune for EABI.
2568 (MIPS_REGS_HAVE_HOME_P): Delete.
2569 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2570 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2571 Delete references to mips_regs_have_home_p.
2573 2002-08-14 Keith Seitz <keiths@redhat.com>
2575 * Makefile.in (install-gdbtk): Create insight plugin directory.
2576 Install plugins.tcl file.
2578 2002-08-14 Keith Seitz <keiths@redhat.com>
2580 * configure.in: Move SUBDIRS to near top of the file so that
2581 --enable options may add things to it.
2582 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2583 * configure: Regenerate.
2585 2002-08-13 Michael Snyder <msnyder@redhat.com>
2587 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2588 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2589 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2591 2002-08-13 Andrew Cagney <ac131313@redhat.com>
2593 * vax-tdep.c (vax_get_saved_register): Delete function.
2594 (vax_gdbarch_init): Update.
2595 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2596 (ns32k_gdbarch_init): Update.
2597 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2598 (alpha_gdbarch_init): Update.
2600 2002-08-13 Andrew Cagney <cagney@redhat.com>
2602 * regcache.c (init_regcache_descr): Overallocate the
2603 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2604 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2606 (set_register_cached): Add range checking assertions. Use
2609 2002-08-13 Mark Kettenis <kettenis@gnu.org>
2611 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2612 numbers for MMX registers.
2614 2002-08-13 Andrew Cagney <cagney@redhat.com>
2616 * i386-tdep.c (i386_gdbarch_init): Use
2617 generic_unwind_get_saved_register.
2619 2002-08-13 Kevin Buettner <kevinb@redhat.com>
2621 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2622 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2624 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2625 Delete. Add comment regarding this now-deleted target method.
2627 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2629 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2630 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2631 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2632 real PC and the page number (if it's within the memory bank window).
2633 (m68hc11_pseudo_register_write): Likewise when saving.
2634 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2635 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2636 (m68hc11_register_raw_size): And use 32-bit for it.
2637 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2638 16K memory bank is used by the prog; also use the virtual pc.
2640 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2642 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2643 (m68hc11_gdbarch_init): Install it in gdbarch.
2644 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2645 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2646 (MSYMBOL_SIZE): New for documentation.
2647 (insn_return_kind): Enum to specify how a function returns.
2648 (frame_extra_info): Cleanup and record the return mode.
2649 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2650 register in address computation.
2651 (m68hc11_get_return_insn): New to obtain the return instruction used
2653 (m68hc11_frame_init_saved_regs): Take into account the return
2654 instruction used by the function for far and interrupt functions.
2655 (m68hc11_init_extra_frame_info): Take into account page register.
2656 (m68hc11_frame_args_address): Adjust according to the return mode.
2657 (show_regs): Print page register only when it's used.
2659 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2661 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2662 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2663 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2665 (m68hc11_register_raw_size): Likewise.
2667 2002-08-13 Andrew Cagney <cagney@redhat.com>
2669 * i386-tdep.c (i386_register_name): Handle mmx registers.
2670 (mmx_regnum_p): New function.
2671 (i386_mmx_names): New array.
2672 (mmx_num_regs): New variable.
2673 (i386_pseudo_register_read): New function.
2674 (i386_pseudo_register_write): New function.
2675 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2677 * regcache.c (regcache_raw_read_unsigned): New function.
2678 (regcache_raw_read_signed): New function.
2679 * regcache.h (regcache_raw_read_unsigned): Declare.
2680 (regcache_raw_read_signed): Declare.
2682 2002-08-13 Andrew Cagney <cagney@redhat.com>
2684 * regcache.c (regcache_raw_read_as_address): Delete function.
2685 (regcache_cooked_read_signed): New function.
2686 (regcache_cooked_read_unsigned): New function.
2687 * regcache.h (regcache_cooked_read_signed): Declare.
2688 (regcache_cooked_read_unsigned): Declare.
2689 (regcache_raw_read_as_address): Delete declaration.
2691 * blockframe.c (generic_read_register_dummy): Use
2692 regcache_cooked_read_unsigned.
2693 * i386-tdep.c (i386_extract_struct_value_address): Use
2694 regcache_cooked_read_unsigned.
2696 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2698 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2699 double sizes according to ELF ABI flags.
2700 (gdbarch_tdep): Record elf_flags.
2702 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2704 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2705 (m6812_prolog): They can appear in 68HC12 function prologue.
2706 (m68hc11_frame_chain): Cleanup.
2708 2002-08-12 Andrew Cagney <cagney@redhat.com>
2710 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2712 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2713 (i386_linux_register_raw_size): Delete function.
2714 (i386_linux_init_abi): Update.
2715 * i386-tdep.c (i386_register_raw_size): Delete function.
2716 (i386_register_byte): Delete function.
2717 (i386_gdbarch_init): Update.
2718 (i386_register_size): Delete array.
2719 (i386_register_offset): Delete array.
2721 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2722 (REGISTER_RAW_SIZE): Delete macro.
2723 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2724 (REGISTER_BYTE): Delete macro.
2726 2002-08-11 Aidan Skinner <aidan@velvet.net>
2728 * ada-lang.c (ada_lookup_partial_symbol)
2729 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2730 prototype names so that grep ^func works properly.
2732 * ada-lang.c (ada_array_element_type)
2733 (ada_lookup_partial_symbol): Fix typos in parameter list.
2735 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2736 Fix prototype names so that grep ^func works properly.
2738 2002-08-10 Andrew Cagney <cagney@redhat.com>
2739 Elena Zannoni <ezannoni@redhat.com>
2740 Martin M. Hunt <hunt@redhat.com>
2742 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2743 (build_builtin_type_vec128i): Set the vector bit.
2744 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2745 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2746 (build_builtin_type_vec64): New function.
2747 (build_builtin_type_vec64i): New function.
2748 (build_gdbtypes): Initialize builtin_type_vec64 and
2749 builtin_type_vec64i.
2751 2002-08-09 Andrew Cagney <cagney@redhat.com>
2753 * regcache.c (regcache_dump): Compare the register offset
2755 * arch-utils.c (generic_register_byte): New function.
2756 * arch-utils.h (generic_register_byte): Declare.
2757 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2758 * gdbarch.h, gdbarch.c: Regenerate.
2760 2002-08-09 Andrew Cagney <cagney@redhat.com>
2762 * regcache.c: Include "gdbcmd.h"
2763 (_initialize_regcache): Add commands "maintenance print
2764 registers", "maintenance print raw-registers" and "maintenance
2765 print cooked-registers".
2766 (enum regcache_dump_what): Define.
2767 (dump_endian_bytes): New function.
2768 (regcache_dump): New function.
2769 (regcache_print): New function.
2770 (maintenance_print_registers): New function.
2771 (maintenance_print_raw_registers): New function.
2772 (maintenance_print_cooked_registers): New function.
2773 * Makefile.in (regcache.o): Update dependencies.
2775 2002-08-09 Michael Snyder <msnyder@redhat.com>
2777 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2778 (mips_push_arguments): Correct some comments. Use paddr_nz
2779 for printing addresses in debug output. Replace static
2780 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2781 (mips_n32n64_push_arguments): New function, cloned from
2782 mips_push_arguments and tuned for the n32/n64 ABI.
2783 (mips_push_register): Buffer needs dynamic allocation.
2784 (mips_print_register): Ditto.
2785 (do_gp_register_row): Ditto.
2786 (mips_store_return_value): Ditto.
2787 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2789 2002-08-09 Don Howard <dhoward@redhat.com>
2791 * memattr.c (mem_info_command): Print special case of upper bound
2792 as max CORE_ADDR + 1.
2794 2002-08-08 Michael Snyder <msnyder@redhat.com>
2796 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2797 returns structs by ref if they're too big to fit in two registers.
2799 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2801 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2803 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2804 mips_find_saved_regs().
2805 (mips_pop_frame): Likewise.
2807 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2809 * blockframe.c (frame_saved_regs_register_unwind): Revise
2810 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2813 2002-08-09 Grace Sainsbury <graces@redhat.com>
2815 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2816 T-packets; the 'a' is not taken as a register number.
2817 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2818 (remote_stopped_data_address): New functions; add to target
2820 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2821 prototypes to match other implementations of this
2822 function. replace integer argument with pointer -- the length
2823 field in the Z-packet is the length of what is pointed to or 1 if
2824 pointer is null. Add to target vector.
2825 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2829 * remote.c (remote_wait): Add support to extract optional
2830 watchpoint information from T-packet. Ignore unrecognized
2831 optional info in T-packet.
2832 (remote_async_wait): Ditto.
2834 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
2836 * cli/cli-dump.c: Change fopen modes to use binary open modes
2837 as defined in include/fopen-bin.h throughout.
2839 2002-08-08 Michael Snyder <msnyder@redhat.com>
2841 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2843 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2845 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2846 assertion failure by returning early after a warning.
2848 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2850 * mips-tdep.c (mips_find_saved_regs): Make static.
2851 (mips_frame_init_saved_regs): New function.
2852 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2853 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2854 (mips_find_saved_regs): Delete declaration.
2856 2002-08-08 Grace Sainsbury <graces@redhat.com>
2858 * remote.c (remote_wait, remote_async_wait): Change
2859 thread_num from int to ULONGEST.
2860 (unpack_varlen_hex): Change result parameter from
2861 int * to ULONGEST *.
2863 2002-08-08 Andrew Cagney <ac131313@redhat.com>
2865 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2866 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2868 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2870 2002-08-08 Andrew Cagney <cagney@redhat.com>
2872 * gcore.c (override_derive_stack_segment): Delete variable.
2873 (preempt_derive_stack_segment): Delete function.
2874 (derive_stack_segment): Delete function.
2875 (default_derive_stack_segment): Renamed to derive_stack_segment.
2876 (override_derive_heap_segment): Delete variable.
2877 (preempt_derive_heap_segment): Delete function.
2878 (derive_heap_segment): Delete function.
2879 (default_derive_heap_segment): Rename to derive_heap_segment.
2881 2002-08-06 Michael Snyder <msnyder@redhat.com>
2883 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2884 * mips-tdep.c (mips_EABI_use_struct_convention,
2885 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2886 New functions. (mips_use_struct_convention): Delete.
2887 (mips_gdbarch_init): set use_gdbarch_convention.
2889 2002-08-06 Michael Snyder <msnyder@redhat.com>
2891 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2892 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2893 mips_o32_reg_struct_has_addr): New functions.
2894 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2896 2002-08-07 Andrew Cagney <ac131313@redhat.com>
2898 * regcache.c (pseudo_register): Delete function.
2899 (fetch_register): Delete function.
2900 (store_register): Delete function.
2901 (regcache_raw_read, legacy_read_register_gen): Use
2902 target_fetch_registers instead of fetch_register.
2903 (legacy_write_register_gen, regcache_raw_write): Use
2904 target_store_register instead of store_register.
2905 (write_register_bytes): Ditto.
2907 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2908 (STORE_PSEUDO_REGISTER): Delete.
2909 * gdbarch.h, gdbarch.c: Regenerate.
2911 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
2913 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2914 write dump file binary.
2916 2002-08-05 Michael Snyder <msnyder@redhat.com>
2918 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2919 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2920 (mips_gdbarch_init): Set N32 target to be mips64.
2922 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2924 * frame.c (find_saved_register): Break out of loop once saved
2925 register address is found. Don't mention sparc in loop comment
2928 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2930 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2931 mips_default_saved_regsize to 8.
2933 2002-08-06 Andrew Cagney <ac131313@redhat.com>
2935 * gcore.c: Do not include <sys/procfs.h>.
2936 * Makefile.in (gcore.o): Update dependencies.
2938 2002-08-06 Andrew Cagney <cagney@redhat.com>
2940 * configure.tgt: Make arc-*-* obsolete.
2941 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2942 * MAINTAINERS: Make arc-elf obsolete.
2943 * arc-tdep.c: Make file obsolete.
2944 * config/arc/arc.mt: Ditto.
2945 * config/arc/tm-arc.h: Ditto.
2947 2002-08-05 Theodore A. Roth <troth@verinet.com>
2949 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
2951 2002-08-05 Andrew Cagney <ac131313@redhat.com>
2953 * mcore-tdep.c (mcore_gdbarch_init): Use
2954 generic_unwind_get_saved_register instead of
2955 generic_get_saved_register.
2956 * v850-tdep.c (v850_gdbarch_init): Ditto.
2957 * frv-tdep.c (frv_gdbarch_init): Ditto.
2958 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2959 * s390-tdep.c (s390_gdbarch_init): Ditto.
2960 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2961 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2962 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2964 2002-08-05 Joel Brobecker <brobecker@gnat.com>
2966 * objfiles.h: Add missing #include "symfile.h"
2968 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2970 2002-08-04 Andrew Cagney <ac131313@redhat.com>
2972 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2973 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2976 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
2978 * NEWS: Cleanup and nitpick.
2980 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2982 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2984 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2986 * Makefile.in (gdbtk-bp.o): Update dependencies.
2987 (gdbtk-register.o): Ditto.
2988 (gdbtk-varobj.o): Ditto.
2990 2002-08-03 Andrew Cagney <cagney@redhat.com>
2992 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2993 m68hc11_fetch_pseudo_register.
2994 (m68hc11_pseudo_register_write): Replace
2995 m68hc11_store_pseudo_register.
2996 (m68hc11_gdbarch_init): Update.
2998 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
3000 * gdbarch.sh: Include "gdb_string.h".
3001 * gdbarch.c: Regenerate.
3003 * regcache.c: Include "gdb_string.h".
3004 * ax-general.c: Ditto.
3006 * std-regs.c: Ditto.
3007 * fbsd-proc.c: Ditto.
3010 * Makefile.in (regcache.o): Update dependencies.
3011 (thread.o, gdbarch.o): Ditto.
3012 (ax-general.o, gdbarch.o): Ditto.
3013 (varobj.o, std-regs.o): Ditto.
3014 (fbsd-proc.o): Specify dependencies.
3016 2002-08-02 Andrew Cagney <cagney@redhat.com>
3018 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
3020 (regcache_cooked_write): Ditto.
3022 2002-08-02 Andrew Cagney <ac131313@redhat.com>
3024 * regcache.c (regcache_cooked_read): New function.
3025 (regcache_cooked_write): New function.
3026 (read_register_gen): Rewrite using regcache_cooked_read.
3027 (write_register_gen): Rewrite using regcache_cooked_write.
3029 * regcache.h (regcache_cooked_read, regcache_cooked_write):
3032 2002-08-02 Andrew Cagney <cagney@redhat.com>
3034 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
3035 Replace the architecture methods register_read and register_write.
3036 * gdbarch.h, gdbarch.c: Regenerate.
3037 * regcache.c (init_regcache_descr): Update.
3038 (read_register_gen): Update.
3039 (write_register_gen): Update.
3040 (supply_register): Update comment.
3042 * sh-tdep.c (sh_gdbarch_init): Update.
3043 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
3044 `regcache' and `gdbarch' parameters. Make `buffer' a void
3045 pointer. Update code.
3046 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
3047 `regcache' and `gdbarch' parameters. Make `buffer' a constant
3048 void pointer. Update code.
3049 (sh64_register_write): Delete.
3050 (sh4_register_read): Delete.
3051 (sh64_register_read): Delete.
3052 (sh4_register_write): Delete.
3053 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
3054 void pointer, `to' parameter a void pointer.
3055 (sh_sh64_register_convert_to_raw): Ditto.
3057 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3059 * mips-tdep.c (mips_register_virtual_type): Use architecture
3060 invariant return values.
3062 2002-08-01 Andrew Cagney <cagney@redhat.com>
3064 * linux-proc.c: Include "gdb_string.h".
3065 * Makefile.in (linux-proc.o): Update dependency list.
3067 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3069 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
3072 2002-08-01 Grace Sainsbury <graces@redhat.com>
3074 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3075 to_insert_watchpoint, to_remove_watchpoint,
3076 to_stopped_by_watchpoint, to_stopped_data_address,
3077 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
3078 target vecctor. Define their corresponding macros so they call
3081 * target.c: Add default and debug versions of for
3082 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3083 to_insert_watchpoint, to_remove_watchpoint,
3084 to_stopped_by_watchpoint, to_stopped_data_address,
3085 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
3087 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3089 * mips-tdep.c (mips_register_virtual_type): New function.
3090 (mips_gdbarch_init): Register mips_register_virtual_type()
3091 with gdbarch machinery.
3092 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3093 this file instead of tm-bigmips.h.
3094 (MIPS_REGSIZE): Delete this macro.
3095 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
3096 multiarch version in mips-tdep.c will be found.
3098 2002-08-01 Andrew Cagney <cagney@redhat.com>
3100 * NEWS: Menion that CHILL has been made obsolete.
3102 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
3103 * stabsread.c (read_range_type): Ditto.
3104 * gdbtypes.h: Ditto.
3105 * language.c (binop_type_check): Ditto.
3106 (binop_result_type): Ditto.
3107 (integral_type): Ditto.
3108 (character_type): Ditto.
3109 (string_type): Ditto.
3110 (boolean_type): Ditto.
3111 (structured_type): Ditto.
3112 (lang_bool_type): Ditto.
3113 (binop_type_check): Ditto.
3114 * language.h (_LANG_chill): Ditto.
3115 * dwarfread.c (set_cu_language): Ditto.
3116 * dwarfread.c (CHILL_PRODUCER): Ditto.
3117 * dwarfread.c (handle_producer): Ditto.
3118 * expression.h (enum exp_opcode): Ditto.
3119 * eval.c: Ditto for comments.
3120 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3121 * expprint.c (print_subexp): Ditto.
3122 (print_subexp): Ditto.
3123 * valops.c (value_cast): Ditto.
3124 (search_struct_field): Ditto.
3125 * value.h (COERCE_VARYING_ARRAY): Ditto.
3126 * symfile.c (init_filename_language_table): Ditto.
3127 (add_psymbol_with_dem_name_to_list): Ditto.
3128 * valarith.c (value_binop): Ditto.
3130 * valops.c (value_slice): Ditto.
3131 * symtab.h (union language_specific): Ditto.
3132 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3133 (SYMBOL_DEMANGLED_NAME): Ditto.
3134 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3135 * defs.h (enum language): Ditto.
3136 * symtab.c (got_symtab): Ditto.
3137 * utils.c (fprintf_symbol_filtered): Ditto.
3139 * ch-typeprint.c: Make file obsolete.
3140 * ch-valprint.c: Make file obsolete.
3141 * ch-lang.h: Make file obsolete.
3142 * ch-exp.c: Make file obsolete.
3143 * ch-lang.c: Make file obsolete.
3145 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3147 (TARGET_FLAGS_TO_PASS): Ditto.
3148 (CHILLFLAGS): Obsolete.
3150 (CHILL_FOR_TARGET): Obsolete.
3151 (CHILL_LIB): Obsolete.
3152 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3154 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3155 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3157 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3160 2002-07-31 Joel Brobecker <brobecker@gnat.com>
3162 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3163 This does not change anything at the moment, but will be helpful
3164 later when full Ada support is integrated.
3166 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3168 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3171 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3173 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3174 and save it in a local variable. Use variable in later test.
3176 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3178 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3179 test. (Thanks to Daniel Jacobowitz.)
3181 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3183 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3184 (mips_abi_strings): Add "n64".
3185 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3187 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3189 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3190 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3192 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3194 * utils.c (host_pointer_to_address, address_to_host_pointer):
3195 Use gdb_assert() instead of explicit call to internal_error().
3197 2002-07-30 Kevin Buettner <kevinb@redhat.com>
3199 * Makefile.in (rs6000-nat.o): Update dependencies.
3201 From Nicholas Duffek:
3202 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3203 (aix-thread.o): New rule.
3204 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3205 * config/powerpc/aix432.mh: New file.
3207 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3209 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3210 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3211 (fetch_core_registers, ppc_linux_supply_gregset)
3212 (ppc_linux_supply_fpregset): New functions.
3213 (ppc_linux_regset_core_fns): New.
3214 (_initialize_ppc_linux_tdep): Call add_core_fns.
3215 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3216 and ppc_linux_supply_gregset.
3217 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3218 (supply_fpregset): Call ppc_linux_supply_fpregset.
3219 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3221 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3223 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3225 * symtab.c (lookup_symbol): Demangle before lowercasing.
3227 2002-07-30 Andrew Cagney <ac131313@redhat.com>
3229 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3231 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3232 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3233 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3234 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3236 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3237 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3238 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3239 (avr-tdep.o, mon960-rom.o): Ditto.
3240 (aout_stabs_gnu_h): Define.
3241 (symtab_h): Remove $(gdb_obstack_h).
3243 2002-07-30 Jim Blandy <jimb@redhat.com>
3245 Patch from David Carlton <carlton@math.stanford.edu>:
3246 * gdbinit.in: Move the `dir' commands that add GDB's own source
3247 directory to the search path to the end, so that the `gdb' source
3248 directory will be searched first.
3250 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3252 * gdb_obstack.h: New file.
3253 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3254 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3255 * objfiles.h: Include "gdb_obstack.h".
3256 * Makefile.in (gdb_obstack_h): Define.
3257 (symtab_h): Add $(gdb_obstack_h).
3258 (objfiles_h): Add $(gdb_obstack_h).
3260 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3261 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3262 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3263 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3264 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3265 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3266 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3267 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3269 * Makefile.in (bcache.o): Update dependencies.
3270 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3271 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3272 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3273 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3274 (stabsread.o, symfile.o, symmisc.o): Ditto.
3275 (symtab.o, typeprint.o, macroexp.o): Ditto.
3276 (macrotab.o, mdebugread.o): Ditto.
3277 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3278 (coff_ecoff_h, aout_aout64_h): Define.
3279 (aout_stabs_gnu_h, libaout_h): Define.
3281 2002-07-29 Andrew Cagney <cagney@redhat.com>
3283 * regcache.c (struct regcache_descr): Rename nr_registers to
3284 nr_cooked_registers. Revise comments describing the structure
3286 (init_regcache_descr): Update.
3287 (init_legacy_regcache_descr): Update.
3288 (read_register_gen, write_register_gen): When a cooked register in
3289 the raw register range, directly access the value from the raw
3292 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3294 * z8k-tdep.c: Do not include "obstack.h".
3295 * h8300-tdep.c, h8500-tdep.c: Ditto.
3296 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3297 * valprint.c, v850-tdep.c: Ditto.
3298 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3299 * mn10200-tdep.c: Ditto.
3301 * Makefile.in (z8k-tdep.o): Update dependencies.
3302 (m68hc11-tdep.o, valprint.o): Ditto.
3303 (v850-tdep.o, d10v-tdep.o): Ditto.
3304 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3305 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3306 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3307 (sh_opc_h, gdb_sim_sh_h): Define.
3308 (elf_sh_h, elf_bfd_h): Define.
3309 (opcode_m68hc11_h): Define.
3310 (OPCODES_SRC, OPCODES_DIR): define.
3311 (OPCODES): Use $(OPCODES_DIR).
3312 (gdb_sim_d10v_h): Rename sim_d10v_h.
3313 (gdb_sim_arm_h): Rename sim_arm_h.
3315 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3317 * utils.c (host_pointer_to_address, address_to_host_pointer):
3318 Change internal_error() message to indicate function responsible
3321 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3323 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3324 calls to local_hex_string_custom().
3326 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3328 * irix5-nat.c: Move IRIX shared library support from here...
3329 * solib-irix.c: ...to here. Revised substantially to work with
3330 generic solib framework.
3332 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3333 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3334 * mips-irix-tdep.c: New file.
3336 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3337 (mips-irix-tdep.o, solib-irix.o): New rules.
3338 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3340 * config/mips/irix6.mt (TDEPFILES): Likewise.
3341 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3343 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3345 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3346 disabled (via ``#if 0'') includes.
3348 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3350 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3351 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3352 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3353 Add support for the fpscr register.
3354 * rs6000-nat.c (regmap, fetch_inferior_registers)
3355 (store_inferior_registers, fetch_core_registers): Likewise.
3357 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3359 * rs6000-nat.c (language.h): Include.
3360 (special_regs): Delete this array.
3361 (regmap): New function.
3362 (fetch_register, store_register): Use regmap() to map gdb
3363 register numbers to ptrace register numbers. Also, use
3364 outputs from regmap() to make decisions regarding type of
3365 ptrace() call to make. In particular, don't compare against
3366 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3367 (fetch_inferior_registers, store_inferior_registers): Where
3368 possible, obtain register numbers from tdep struct. Don't
3369 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3370 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3371 (LAST_UISA_SP_REGNUM): Delete.
3373 2002-07-25 Kevin Buettner <kevinb@redhat.com>
3375 * rs6000-nat.c (ppc-tdep.h): Include.
3376 (fetch_registers, store_register, fetch_core_registers): Don't
3377 access registers[] directly. Instead, use supply_register() or
3378 regcache_collect() as appropriate.
3379 (find_toc_address): Format hex address with local_hex_string().
3381 2002-07-25 Andrew Cagney <ac131313@redhat.com>
3383 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3386 2002-07-24 Tom Tromey <tromey@redhat.com>
3388 * jv-exp.y: Marked all strings with _().
3389 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3391 (MethodInvocation, CastExpression, parse_number, yyerror,
3392 java_type_from_name, push_expression_name, yylex): Typo fixes.
3394 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
3396 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3397 (tee_file_flush, tee_file_write, tee_file_fputs)
3398 (tee_file_isatty): New.
3399 * ui-file.h (tee_file_new): Add prototype.
3401 2002-07-24 Aidan Skinner <aidan@velvet.net>
3403 * ada-lang.c: Change k&r style function definitions to prototyped
3405 * ada-typeprint.c: Change k&r style function definitions to prototyped
3407 * ada-valprint.c: Change k&r style function definitions to prototyped
3410 2002-07-24 Andrew Cagney <cagney@redhat.com>
3412 * README: Remove reference to remote-bug.
3413 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3415 (m88k-nat.o): Delete rule.
3416 (m88k-tdep.o): Delete rule.
3417 (remote-bug.o): Delete rule.
3418 * MAINTAINERS: Mark as obsolete.
3419 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3420 * m88k-tdep.c: Make file obsolete.
3421 * config/m88k/m88k.mh: Ditto.
3422 * config/m88k/delta88v4.mh: Ditto.
3423 * config/m88k/delta88v4.mt: Ditto.
3424 * config/m88k/delta88.mt: Ditto.
3425 * config/m88k/delta88.mh: Ditto.
3426 * remote-bug.c: Ditto.
3427 * config/m88k/tm-delta88.h: Ditto.
3428 * config/m88k/nm-delta88v4.h: Ditto.
3429 * config/m88k/xm-delta88.h: Ditto.
3430 * config/m88k/xm-dgux.h: Ditto.
3431 * config/m88k/tm-m88k.h: Ditto.
3432 * config/m88k/nm-m88k.h: Ditto.
3433 * config/m88k/tm-delta88v4.h: Ditto.
3434 * m88k-nat.c: Ditto.
3435 * cxux-nat.c: Ditto.
3436 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3437 and m88*-*-* obsolete.
3438 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3441 2002-07-24 Andrew Cagney <cagney@redhat.com>
3443 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3444 constant. Same for local pointer variables.
3445 (extract_signed_integer): Ditto.
3446 * defs.h (extract_unsigned_integer): Update.
3447 (extract_signed_integer): Update.
3449 2002-07-24 Andrew Cagney <cagney@redhat.com>
3451 * regcache.c (regcache_raw_write): Change buf parameter to a
3452 constant void pointer.
3453 (regcache_raw_read): Change buf parameter to a void pointer.
3454 (legacy_write_register_gen): Change myaddr parameter a constant
3456 (supply_register): Change val parameter to a const void pointer.
3457 * regcache.h (regcache_raw_write): Update declaration.
3458 (regcache_raw_read): Update declaration.
3459 (supply_register): Update declaration.
3461 2002-07-24 Tom Tromey <tromey@redhat.com>
3463 * defs.h (gdb_readline_wrapper): Declare.
3464 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3465 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3466 * top.c (gdb_readline_wrapper): New function.
3467 (command_line_input): Use it.
3469 2002-07-24 Andrew Cagney <cagney@redhat.com>
3471 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3472 regcache_read and regcache_write.
3473 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3474 * regcache.c: Update.
3475 * sh-tdep.c (sh64_push_arguments): Update comment.
3476 (sh_pseudo_register_read): Update.
3477 (sh_pseudo_register_write): Update.
3478 (sh4_register_read): Update.
3479 (sh4_register_write): Update.
3480 (sh64_pseudo_register_read): Update.
3481 (sh64_pseudo_register_write): Update.
3482 (sh64_register_read): Update.
3483 (sh64_register_write): Update.
3484 * i386-tdep.c (i386_extract_return_value): Update.
3485 (i386_extract_struct_value_address): Update.
3486 (i386_extract_return_value): Update.
3487 * blockframe.c (generic_read_register_dummy): Update.
3488 (generic_call_dummy_register_unwind): Update
3489 * infrun.c (write_inferior_status_register): Update.
3491 2002-07-23 Jim Blandy <jimb@redhat.com>
3493 * parser-defs.h (expression_context_pc): Make this extern.
3494 (Thanks to Michael Snyder.)
3496 2002-07-23 Andrew Cagney <ac131313@redhat.com>
3498 GDB 5.2.1 released from 5.2 branch.
3499 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3500 * README: Update to mention 5.2.1.
3502 2002-07-23 Mark Salter <msalter@redhat.com>
3504 * remote.c (remote_read_bytes): Fix check for error.
3506 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3508 * aix-thread.c (language.h): Include.
3509 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3510 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3511 Print newlines at end of debug messages.
3512 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3513 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3515 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3517 * aix-thread.c (ppc-tdep.h): Include.
3518 (special_register_p): New function.
3519 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3520 (store_regs_user_thread): Use register number information from
3521 gdbarch_tdep struct instead of hardcoded offsets relative to
3522 FIRST_UISA_SP_REGNUM.
3523 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3524 special_register_p() instead of using FPLAST_REGNUM and
3525 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3526 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3527 will be MQ's register number.
3529 2002-07-22 Michael Snyder <msnyder@redhat.com>
3531 * aix-thread.c (ops): Rename to aix_thread_ops.
3532 (base_ops): Rename to base_target.
3533 (ops_attach): Rename to aix_thread_attach.
3534 (ops_detach): Rename to aix_thread_detach.
3535 (ops_resume): Rename to aix_thread_detach.
3536 (ops_wait): Rename to aix_thread_wait.
3537 (ops_kill): Rename to aix_thread_kill.
3538 (init_ops): Rename to init_aix_thread_ops.
3539 (ops_fetch_register): Rename to aix_thread_fetch_register.
3540 (ops_store_register): Rename to aix_thread_store_register.
3541 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3542 (ops_thread_alive): Rename to aix_thread_thread_alive.
3543 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3544 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3545 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3546 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3547 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3548 (store_regs_lib): Rename to store_regs_user_thread.
3549 (store_regs_kern): Rename to store_regs_kernel_thread.
3551 2002-07-22 Michael Snyder <msnyder@redhat.com>
3553 * aix-thread.c (ops_prepare_to_store): Eliminate.
3554 (init_ops): Don't initialize ops.prepare_to_store.
3555 (store_regs_kern): Pre-fetch register buffers from child,
3556 because some registers may not be in the cache. Copy
3557 regs from register cache only if they are cached.
3558 (store_regs_lib): Copy regs from register cache only
3560 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3561 fill_gprs64): Ditto.
3563 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3565 * aix-thread.c (gdb_assert.h): Include.
3566 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3567 register sizes (from register cache) match size of buffer holding
3569 (fill_sprs32): Change parameter types to match those in the ptrace()
3571 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3572 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3574 2002-07-22 Michael Snyder <msnyder@redhat.com>
3576 * aix-thread.c (supply_sprs64): Cosmetic change.
3577 (supply_sprs32): Cosmetic change.
3578 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3579 (fill_sprs64): Use regcache_collect instead of read_register.
3580 (store_regs_lib): Use regcache_collect instead of
3581 read_register. Use fill_sprs32 instead of fill_sprs64,
3582 if debugging a 32-bit architecture.
3583 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3584 out of the register cache, instead of passing a pointer into
3585 the register cache directly to ptrace. Use regcache_collect
3586 insteaad of read_register.
3587 (ops_prepare_to_store): Use target_read_registers instead
3588 of read_register_bytes.
3590 2002-07-20 Aidan Skinner <aidan@velvet.net>
3592 * MAINTAINERS: Add self under write after approval.
3594 2002-07-20 Aidan Skinner <aidan@velvet.net>
3596 * ada-tasks.c: Change k&r style function definitions to prototyped
3599 2002-07-19 Andrew Cagney <ac131313@redhat.com>
3601 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3602 * x86-64-tdep.c: Include "objfiles.h".
3603 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3604 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3606 2002-07-17 Michal Ludvig <michal@suse.cz>
3608 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3609 (update_context): Initialise cfa variable.
3611 2002-07-17 Michael Snyder <msnyder@redhat.com>
3613 * aix-thread.c: Shorten some long lines.
3614 Bring comments into line with code spec.
3616 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3618 * infrun.c: Re-indent using gdb_indent.sh.
3620 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3622 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3623 Leave the indentation temporarily untouched, to minimize the diffs.
3625 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
3627 * stabsread.c: Make os9k sections of the code obsolete,
3629 * stabsread.h: Make os9k sections of the code obsolete.
3631 2002-07-18 Michal Ludvig <mludvig@suse.cz>
3633 * linux-low.c (regsets_store_inferior_registers): Add free()
3634 at the end of a loop to prevent memory leak.
3635 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3636 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3637 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3639 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3641 2002-07-17 Jim Blandy <jimb@redhat.com>
3643 * macrocmd.c (info_macro_command): Remove newline from error
3646 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
3648 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3649 (sh_gdbarch_init): Use it for sh-dsp.
3651 2002-07-16 Kevin Buettner <kevinb@redhat.com>
3653 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3654 64-bit DWARF2 format.
3656 2002-07-16 Joel Brobecker <brobecker@gnat.com>
3658 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3659 <sys/proc.h> when not available.
3661 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3663 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3664 * stabsread.c: Make os9k sections of the code obsolete.
3665 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3666 * config/i386/i386os9k.mt: Make file obsolete.
3667 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3668 (COMMON_OBS): Remove os9kread.o
3669 (SFILES): Remove os9kread.c.
3670 (os9kread.o, remote-os9k.o): Make target obsolete.
3671 * remote-os9k.c: Make file obsolete.
3672 * os9kread.c: Make file obsolete.
3675 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3677 * NEWS: Mention that the FR30 has been made obsolete.
3678 * fr30-tdep.c: Make file obsolete.
3679 * config/fr30/tm-fr30.h: Ditto.
3680 * config/fr30/fr30.mt: Ditto.
3681 * configure.tgt: Make fr30-*-elf obsolete.
3682 * MAINTAINERS: Make fr30-elf obsolete.
3684 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3686 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3687 found is not inside a section.
3689 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3691 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3693 (pdc_realloc): Use xrealloc() instead of realloc().
3695 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3697 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3698 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3699 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3702 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3704 * aix-thread.c (ptrace_check): Eliminate goto.
3705 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3708 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3710 * aix-thread.c (gdbcmd.h): Include.
3711 (DEBUG, DBG, DBG2, dbg): Eliminate.
3712 (debug_aix_thread): New static global.
3713 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3714 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3715 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3716 invocations to DBG and DBG2 macros to test against
3717 ``debug_aix_thread'' and call fprintf_unfiltered().
3718 (_initialize_aix_thread): Add new command "set debug aix-thread".
3720 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3722 From Gerhard Tonn <TON@de.ibm.com>:
3723 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3724 instead of supply_register.
3726 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3728 * dwarf2cfi.c: Include "gdb_assert.h".
3729 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3731 (update_context): Do not use __func__. Add missing ``break''.
3732 (update_context): Do not use __func__.
3734 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
3736 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3737 and its setting. Set gdbarch instruction printing functions
3738 directly. For non-rs6000 case use new function
3739 gdb_print_insn_powerpc.
3740 (gdb_print_insn_powerpc): New function.
3742 2002-07-13 Andrew Cagney <ac131313@redhat.com>
3744 * NEWS: Mention that the d30v has been marked obsolete.
3745 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3746 * configure.tgt: Mark d30v-*-* as obsolete.
3747 * d30v-tdep.c: Mark file as obsolete.
3748 * config/d30v/d30v.mt: Ditto.
3749 * config/d30v/tm-d30v.h: Ditto.
3751 2002-07-13 Aidan Skinner <aidan@velvet.net>
3753 * ada-tasks.c (add_task_entry): replace calls to
3754 malloc() with xmalloc
3755 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3757 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3758 ada_finish_decode_line_1, all_sals_for_line
3759 ada_breakpoint_rewrite): replace calls to free() with xfree()
3761 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3763 From Nicholas Duffek (with minor changes by Martin Hunt,
3764 Louis Hamilton, and Kevin Buettner):
3765 * aix-thread.c: New file.
3767 2002-07-12 Petr Sorfa <petrs@caldera.com>
3769 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3770 complaint for invalid attribute class or form.
3771 (read_func_scope): DW_AT_frame_base
3772 better handling of DW_AT_block*.
3773 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3774 better handling of DW_AT_block*.
3775 (read_common_block): DW_AT_location
3776 better handling of DW_AT_block*.
3777 (read_partial_die): DW_AT_location better handling
3779 (new_symbol): DW_AT_external better handling of
3780 DW_AT_block*. Proper initialization of variable
3782 (attr_form_is_block): New function that returns true
3783 if the attribute's form is of DW_FORM_block*.
3785 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3787 * valops.c (find_method_list): Remove comment about
3788 removed STATIC_MEMFUNCP argument.
3789 (value_find_oload_method_list): Likewise.
3791 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3793 From Nicholas Duffek:
3794 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3795 target_new_objfile_hook.
3797 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3799 From Nicholas Duffek:
3800 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3803 2002-07-12 Andrew Cagney <cagney@redhat.com>
3805 * MAINTAINERS: Mention --enable-sim-build-warnings.
3806 (m68hc11-elf): Disable sim build warnings.
3807 (m32r-elf): Mark as broken obsolete candidate.
3808 (x86_64-linux-gnu): Mark as buildable with -Werror.
3809 (arm-elf): Change -w to ``,'' which enables warnings but not
3812 2002-07-12 Andrew Cagney <ac131313@redhat.com>
3814 * bcache.h: Update copyright.
3815 (struct bstring, struct bcache): Move definition to "bcache.c".
3816 Replaced by opaque declaration.
3817 (bcache_xfree): Replace free_bcache.
3818 (bcache_xmalloc, bcache_memory_used): Declare.
3820 * bcache.c: Update copyright.
3821 (struct bstring, struct bcache): Moved to here from "bcache.h".
3823 (bcache_xmalloc, bcache_memory_used): New functions.
3824 (bcache_xfree): Replace function free_bcache.
3826 * Makefile.in (objfiles.o): Add $(bcache_h).
3827 (objfiles_h): Remove $(bcache_h).
3828 (symfile.o): Add $(bcache_h).
3830 * symmisc.c: Update copyright.
3831 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3832 (print_objfile_statistics): Use bcache_memory_used.
3834 * symfile.c: Include "bcache.h".
3835 (reread_symbols): Use bcache_xfree.
3836 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3837 (add_psymbol_to_list): Pass psymbol_cache by value.
3838 (add_psymbol_with_dem_name_to_list): Ditto.
3840 * objfiles.h: Update copyright.
3841 (struct bcache): Declare opaque. Do not include "bcache.h".
3842 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3844 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3846 * objfiles.c: Include "bcache.h". Update copyright.
3847 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3849 (free_objfile): Use bcache_xfree.
3851 2002-07-11 Grace Sainsbury <graces@redhat.com>
3853 * monitor.c (monitor_fetch_register): Make name a constant.
3854 (monitor_store_register): Same.
3856 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
3858 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3859 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3860 (finish_block) For non-function blocks, hash the symbol table. For
3861 function blocks, mark the symbol table as unhashed.
3862 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3863 (msymbol_hash_iw): Likewise.
3864 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3866 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3867 (lookup_minimal_symbol): Likewise for both.
3868 * symtab.h (struct block): Add `hashtable' flag. Comment the
3870 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3871 (ALL_BLOCK_SYMBOLS): Update.
3872 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3873 (struct symbol): Add `hash_next' pointer.
3874 * symtab.c (lookup_block_symbol): Search using the hash table when
3876 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3877 (search_symbols, find_addr_symbol): Likewise.
3879 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3880 (read_dst_symtab): Likewise.
3881 * jv-lang.c (get_java_class_symtab): Likewise.
3882 * mdebugread.c: Include "gdb_assert.h".
3883 (shrink_block): Assert that the block being modified is not hashed.
3884 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3885 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3887 (dump_symtab): Recognize hashed blocks.
3888 * printcmd.c (print_frame_args): Assert that function blocks do not
3889 have hashed symbol tables.
3890 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3891 (fill_in_ada_prototype, debug_print_block): Likewise.
3892 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3894 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
3896 * stack.c (print_frame): Use result of frame_address_in_block()
3897 instead of fi->pc when evaluating symbols.
3898 (backtrace_command_1): Ditto.
3900 2002-07-11 Andrew Cagney <cagney@redhat.com>
3902 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3905 * arm-tdep.c (arm_register_name): Make return type constant.
3907 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3909 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3911 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3912 * s390-tdep.c (s390_fp_regnum): Ditto.
3913 (s390_read_fp): Ditto.
3914 (s390_pop_frame): Ditto.
3915 (_initialize_s390_tdep): Ditto.
3916 * remote.c (get_remote_state): Ditto.
3917 * procfs.c (mappingflags): Ditto.
3918 * memattr.c (_initialize_mem): Ditto.
3919 * mcore-tdep.c (mcore_pop_frame): Ditto.
3920 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3921 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3922 * language.c (set_case_str): Ditto.
3923 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3924 * frv-tdep.c (new_variant): Ditto.
3925 (frv_stopped_data_address): Ditto.
3926 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3927 (context_alloc): Ditto.
3928 (frame_state_alloc): Ditto.
3929 (unwind_tmp_obstack_init): Ditto.
3930 (unwind_tmp_obstack_free): Ditto.
3931 (cfi_read_fp): Ditto.
3932 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3933 (cris_pop_frame): Ditto.
3934 * c-lang.c (scanning_macro_expansion): Ditto.
3935 (finished_macro_expansion): Ditto.
3936 (c_preprocess_and_parse): Ditto.
3937 * gdbarch.sh: Ditto.
3938 * gdbarch.h, gdbarch.c: Regenerate.
3939 * config/mn10200/tm-mn10200.h: Adjust indentation.
3940 * target.c: Adjust indentation.
3941 * symtab.h: Adjust indentation.
3942 * stabsread.h: Adjust indentation.
3943 * remote-es.c: Adjust indentation.
3944 * os9kread.c: Adjust indentation.
3946 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3948 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3949 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3951 2002-07-10 Grace Sainsbury <graces@redhat.com>
3953 * NEWS: Mention m68k, mcore multi-arching.
3954 * MAINTAINERS: Change status of m68k, mcore to reflect
3957 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
3959 * valops.c (find_overload_match): Free oload_syms.
3961 2002-07-09 Joel Brobecker <brobecker@gnat.com>
3963 Define HAVE_SYS_PROC_H if sys/proc.h exists
3964 * configure.in: Add check for sys/proc.h
3965 * config.in: Regenerate.
3966 * configure: Regenerate.
3968 2002-07-09 Grace Sainsbury <graces@redhat.com>
3970 * config/m68k/tm-m68k.h: Remove macros wrapped in
3971 #if !GDB_MULTI_ARCH.
3973 2002-07-08 Andrew Cagney <ac131313@redhat.com>
3975 * config.in, configure: Regenerate.
3977 2002-07-08 Mark Kettenis <kettenis@gnu.org>
3979 * dwarf2cfi.c: Include "gcore.h".
3980 (execute_stack_op): Fix implementation of the
3981 DW_OP_deref and DW_OP_deref_size operators by letting do their
3982 lookup in the target.
3984 2002-07-07 Mark Kettenis <kettenis@gnu.org>
3986 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3987 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3990 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
3992 Fix PR gdb/595, gdb/602
3993 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3994 Don't call value_cast, just read the vtable pointer; update comments
3997 2002-07-05 Grace Sainsbury <graces@redhat.com>
3999 * config/mcore/tm-mcore.h: Remove file.
4000 * config/mcore/mcore.mt: Remove definition of TM_FILE
4001 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
4003 2002-07-05 Mark Kettenis <kettenis@gnu.org>
4005 * i386bsd-tdep.c: Include "gdb_string.h".
4007 2002-07-04 Grace Sainsbury <graces@redhat.com>
4009 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
4010 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
4012 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
4013 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
4014 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
4015 (RETVAL_REGNUM): Move macros from tm-mcore.h
4016 (mcore_reg_struct_has_addr): New function.
4017 (mcore_gdbarch_init): Added initializations for the macros removed
4020 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4022 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
4023 traditonal string branding within the ELF header.
4025 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
4027 * symtab.c (remove_params): New function.
4028 (make_symbol_overload_list): Use it instead of cplus_demangle.
4029 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
4031 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4033 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
4035 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
4037 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
4038 and tdep->sigtramp_end.
4039 * i386obsd-nat.c: New file.
4040 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
4042 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
4043 Don't call get_current_frame().
4045 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
4047 * i386-nat.c (child_post_startup_inferior): New function
4048 calling i386_cleanup_dregs if
4049 I386_USE_GENERIC_WATCHPOINTS is defined.
4050 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
4051 conditional to acknowledge that i386-nat.c has its
4052 own child_post_startup_inferior function.
4054 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4056 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
4057 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
4058 instead of MAX_REGISTER_RAW_SIZE.
4059 (i386_extract_return_value, i386_extract_struct_value_address):
4060 Convert to use regcache.
4061 (i386_gdbarch_init): Set max_register_raw_size and
4062 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
4063 Set extract_return_value and extract_struct_value_address instead
4064 of their deprecated variants.
4066 Convert i386 target to generic dummy frames.
4067 * i386-tdep.c: Include "symfile.h".
4068 (i386_frameless_signal_p): Consider a function to be frameless if
4069 the pc points at the first instruction of the function.
4070 (i386_frame_chain): Handle (generic) call dummies.
4071 (i386_frame_saved_pc): Likewise.
4072 (i386_frame_init_saved_regs): Remove code dealing with call
4073 dummies on the stack.
4074 (i386_push_dummy_frame): Removed.
4075 (i386_call_dummy_words): Removed.
4076 (i386_fix_call_dummy): Removed.
4077 (i386_push_return_address): New function.
4078 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
4079 parameter, and don't call get_current_frame.
4080 (i386_pop_frame): New function.
4081 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
4082 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
4083 entry_point_address, set call_dummy_breakpoint_offset to 0, set
4084 call_dummy_length to 0, set call_dummy_words to NULL, set
4085 sizeof_call_dummy_words to 0, set fix_call_dummy to
4086 generic_fix_call_dummy, set pc_in_call_dummy to
4087 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
4088 generic_push_dummy_frame, set push_return_address to
4089 i386_push_return_address and set frame_chain_valid to
4090 generic_file_frame_chain_valid.
4092 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4094 * gdbarch.sh (struct regcache): Add opaque declaration.
4095 (EXTRACT_RETURN_VALUE): New architecture method.
4096 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4097 * gdbarch.h, gdbarch.c: Regenerate.
4098 * arch-utils.c (legacy_extract_return_value): New function.
4099 * arch-utils.h (legacy_extract_return_value): Declare.
4100 * values.c (value_being_returned): Re-enable code handling
4101 EXTRACT_STRUCT_VALUE_ADDRESS. Move
4102 deprecated_grub_regcache_for_registers call to block handling
4103 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4104 (EXTRACT_RETURN_VALUE): Do not define.
4106 2002-07-03 Grace Sainsbury <graces@redhat.com>
4108 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4109 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4110 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4111 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4112 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4113 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4114 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4115 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4116 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4117 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4118 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4119 argument so the function fits the prototype in the architecture
4121 (mcore_pop_frame): Remove argument so the function fits the
4122 prototype. Use get_current_frame instead of the argument.
4123 (mcore_push_arguments): Change type of struct_return so the
4124 function can be used in the architecture vector.
4125 (mcore_store_struct_return): Add.
4126 (mcore_frame_init_saved_regs): Add.
4127 (mcore_gdbarch_init): Add function calls to replace the macros
4128 removed from tm-mcore.h
4130 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4132 * infcmd.c (print_return_value): Remove compatibility code calling
4133 deprecated_grub_regcache_for_registers.
4135 * values.c: Include "regcache.h".
4136 (value_being_returned): Update. Use
4137 deprecated_grub_regcache_for_registers to extract the register
4139 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4140 ``struct regcache''.
4141 * Makefile.in (values.o): Add dependency on $(regcache_h).
4143 * inferior.h (run_stack_dummy): Change type of second parameter to
4144 a ``struct regcache''.
4145 * valops.c (hand_function_call): Change type of retbuf to ``struct
4146 regcache''. Allocate using regcache_xmalloc, clean using
4147 make_cleanup_regcache_xfree.
4148 * infcmd.c (run_stack_dummy): Update. Use
4149 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4151 * regcache.c (do_regcache_xfree): New function.
4152 (make_cleanup_regcache_xfree): New function.
4153 * regcache.h (make_cleanup_regcache_xfree): Declare.
4155 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4157 * event-top.c (command_line_handler): Don't read past
4158 beginning of buffer.
4160 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4162 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4164 (varobj_create): Store frame_id for root.
4165 (varobj_gen_name): Use xasprintf.
4166 (varobj_update): Save and restore frame using get_frame_id() and
4168 (create_child): Use xasprintf.
4169 (new_root_variable): Initialize frame_id.
4170 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4171 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4172 to prevent memory leak.
4174 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4176 * valops.c (hand_function_call): Move declaration of retbuf to
4177 start of function, allocate using malloc, add a cleanup but before
4178 the inf_status cleanup, cleanup the buffer. Rename local variable
4179 old_chain to inf_status_cleanup.
4181 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4183 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4185 * cli/cli-decode.c (cmd_func_p): New function.
4186 (cmd_func): New function.
4188 * command.h: Add cmd_func() and cmd_func_p().
4190 2002-07-03 Grace Sainsbury <graces@redhat.com>
4192 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4193 (REGISTER_SIZE): Remove.
4194 (MAX_REGISTER_RAW_SIZE): Remove.
4195 (REGISTER_VIRTUAL_TYPE): Remove.
4196 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4197 (REGISTER_NAME): Remove.
4198 (USE_GENERIC_DUMMY_FRAMES): Remove.
4199 (CALL_DUMMY): Remove.
4200 (CALL_DUMMY_START_OFFSET): Remove.
4201 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4202 (CALL_DUMMY_LOCATION): Remove.
4203 (FIX_CALL_DUMMY): Remove.
4204 (CALL_DUMMY_ADDRESS): Remove.
4205 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4206 (SAVE_DUMMY_FRAME_TOS): Remove.
4207 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4208 (mcore_register_virtual_type): New function.
4209 (mcore_register_byte): New function.
4210 (mcore_register_size): New function.
4211 (mcore_register_name): New function.
4212 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4213 macros removed from tm-mcore.h.
4214 (mcore_dump_tdep): Add.
4215 (_initialize_mcore_tdep): Add gdbarch_register call.
4217 2002-07-03 Mark Kettenis <kettenis@gnu.org>
4219 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4220 frameless_look_for_prologue, such that we actually call this
4223 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4225 * frame.h (frame_address_in_block): New function.
4227 * blockframe.c (frame_address_in_block): New function extracted
4228 from get_frame_block().
4229 (get_frame_block): Use frame_address_in_block().
4230 (block_innermost_frame): Use frame_address_in_block() to match
4231 the frame pc address against the block boundaries rather than
4232 the frame pc directly. This prevents a failure when a frame pc
4233 is actually a return-address pointing immediately after the end
4236 2002-07-02 Grace Sainsbury <graces@redhat.com>
4238 * MAINTAINERS: Add self under write after approval.
4240 2002-07-02 Grace Sainsbury <graces@redhat.com>
4242 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4243 used in architecture vector. The default is
4244 m68k_local_breakpoint_from_pc.
4245 (m68k_local_breakpoint_from_pc): Add.
4246 (enum): Add register numbers from tm-m68k.h.
4247 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4249 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4250 GDB_MULTI_ARCH_PARTIAL.
4251 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4252 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4254 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4255 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4256 to enum in m68k-tdep.c
4258 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4260 * solib-osf.c (open_map): Compute the list of shared libraries
4261 loaded by the inferior, rather than the list of libraries loaded
4262 by GDB itself. Otherwise, GDB ends up reading the symbols from
4263 the wrong shared libraries...
4265 2002-07-02 Mark Kettenis <kettenis@gnu.org>
4267 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4268 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4270 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4272 (FRAMELESS_SIGNAL): Remove function.
4273 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4274 i386_linux_saved_pc_after_call): Removed.
4275 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4276 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4277 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4279 * i386-tdep.c (i386_frameless_signal_p): New function.
4280 (i386_frame_chain): Deal with frameless signals.
4281 (i386_sigtramp_saved_sp): New function.
4282 (i386_frame_saved_pc): Deal with frameless signals.
4283 (i386_saved_pc_after_call): Make sure the correct value is
4284 returned just after entry into a sigtramp.
4285 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4286 i386fbsd4_sc_sp_offset): New variables.
4287 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4288 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4289 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4290 similiar to what we already did for sc_pc_offset.
4291 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4294 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4296 2002-07-02 Michal Ludvig <mludvig@suse.cz>
4298 * config/i386/tm-x86-64linux.h: New.
4299 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4301 * config/i386/nm-x86-64.h: Rename to ...
4302 * config/i386/nm-x86-64linux.h: ... this one.
4303 * config/i386/x86-64linux.mh: Reflect the above change.
4305 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4307 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4308 with sigcontext_addr. Add sc_sp_offset.
4309 (i386bsd_sigtramp_saved_pc): Remove prototype.
4310 (i386bsd_sicontext_addr): Add prototype.
4311 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4312 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4313 (i386_svr4_sigtramp_saved_pc): Removed.
4314 (i386_svr4_sigcontext_addr): New function.
4315 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4316 Initialize tdep->sigcontext_addr instead. Initialize
4317 tdep->sc_pc_offset and tdep->sc_sp_offset.
4318 (i386_gdbarch_init): Likewise.
4319 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4321 (i386bsd_sigtramp_saved_pc): Remove function.
4322 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4323 Initialize tdep->sigcontext_addr instead. Initialize
4325 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4326 of tdep->sigtramp_saved_pc.
4327 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4328 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4331 * i386-tdep.c (i386_frameless_function_invocation,
4332 i386_frame_num_args, i386_frame_init_saved_regs,
4333 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4334 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4335 i386_extract_return_value, i386_store_return_value,
4336 i386_extract_struct_value_address, i386_register_virtual_type,
4337 i386_register_convertible, i386_register_convert_to_virtual,
4338 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4339 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4342 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4344 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4346 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4347 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4348 this macro. Include "value.h".
4350 2002-06-30 Aidan Skinner <aidan@velvet.net>
4352 * ada-exp.tab.c: remove as it's a generated file
4353 * ada-lex.c: remove as it's a generated file
4355 2002-06-30 Mark Kettenis <kettenis@gnu.org>
4357 * config/i386/tm-i386.h (struct frame_info, struct
4358 frame_saved_regs, struct value, struct type): Remove forward
4361 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4362 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4363 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4364 (FILL_FPXREGSET): Define.
4366 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4368 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4369 i[3456]86-*-netbsd* case.
4370 * config/i386/tm-obsd.h: Removed.
4371 * config/i386/obsd.mt: Removed.
4372 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4374 (MH_CFLAGS): Add -DYYDEBUG=0.
4376 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4377 i386nbsd_sc_pc_offset on OpenBSD too.
4379 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4380 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4381 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4383 * i386bsd-tdep.c: Include "arch-utils.h".
4384 (i386bsd_aout_in_solib_call_trampoline): New function.
4385 (i386bsd_init_abi): Set in_solib_call_trampoline to
4386 i386bsd_aout_in_solib_call_trampoline.
4387 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4388 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4390 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4392 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4393 (struct obstack, struct bcache): Add opaque declarations.
4394 * Makefile.in (macrotab_h): Update
4396 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4398 * blockframe.c (generic_find_dummy_frame): Change return type to
4399 ``struct regcache''.
4400 (struct dummy_frame): Replace field ``registers'' with regcache, a
4401 struct regcache object.
4402 (generic_find_dummy_frame): Update.
4403 (generic_push_dummy_frame): Update. Use regcache_xfree,
4404 regcache_xmalloc and regcache_cpy.
4405 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4407 (deprecated_generic_find_dummy_frame): Update.
4408 (generic_read_register_dummy): Update. Use
4409 regcache_read_as_address.
4410 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4411 (generic_get_saved_register): Update. Use regcache_read.
4413 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4415 * Makefile.in (objfiles_h): Add $(bcache_h).
4416 * objfiles.h: Include "bcache.h".
4418 * Makefile.in (symtab_h): Remove $(bcache_h).
4419 * symtab.h: Do not include "bcache.h".
4421 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4423 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4424 generic_func_frame_chain_valid.
4426 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4428 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4429 * config/i386/tm-fbsd.h: Likewise.
4431 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4433 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4434 generic_unwind_get_saved_register.
4436 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4438 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4439 * regcache.c (supply_register): Add missing argument to
4440 register_buffer call.
4442 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4444 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4445 Solaris /bin/grep does not not like it. From Peter Schauer.
4447 2002-06-26 Tom Tromey <tromey@redhat.com>
4449 * command.h (add_setshow_cmd): Declare.
4450 (add_setshow_cmd_full): Declare.
4451 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4452 returns void. Use add_setshow_cmd_full.
4453 (add_setshow_cmd_full): New function.
4454 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4455 (add_setshow_boolean_cmd): Likewise.
4457 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4459 * config/vax/tm-vax.h: Protect from multiple inclusion.
4460 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4461 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4462 * config/vax/tm-vaxbsd.h: ...here. New file.
4463 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4465 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4467 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4468 (BELIEVE_PCC_PROMOTION): Remove.
4469 (AP_REGNUM): Move to...
4470 * config/vax/nm-vax.h: ...here.
4471 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4472 (vax_breakpoint_from_pc): New function.
4473 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4474 and gdbarch_believe_pcc_promotion.
4476 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4478 * Makefile.in (vax_tdep_h): Define.
4479 (vax-tdep.o): Use $(vax_tdep_h).
4480 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4481 (vax_dump_tdep): New function.
4482 (_initialize_vax_tdep): Register vax_dump_tdep.
4483 * vax-tdep.h: Include osabi.h.
4484 (struct gdbarch_tdep): New.
4486 2002-06-26 Andrew Cagney <cagney@redhat.com>
4488 * frame.h (deprecated_generic_find_dummy_frame): Rename
4489 generic_find_dummy_frame.
4490 * blockframe.c (generic_find_dummy_frame): Make static.
4491 (deprecated_generic_find_dummy_frame): New function.
4492 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4493 generic_find_dummy_frame with deprecated_find_dummy_frame.
4494 (sh64_nofp_frame_init_saved_regs): Ditto.
4495 (sh_fp_frame_init_saved_regs): Ditto.
4496 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4497 (s390_frame_chain): Ditto.
4498 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4500 2002-06-26 Grace Sainsbury <graces@redhat.com>
4502 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4503 gdbarch vector are at the top.
4505 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4506 (FRAME_ARGS_ADDRESS): Remove.
4507 (FRAME_LOCALS_ADDRESS): Remove.
4508 (FRAME_NUM_ARGS): Remove.
4509 (FRAME_ARGS_SKIP): Remove.
4510 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4511 (m68k_gdbarch_init): Add gdbarch initializations for macros
4512 undefined in tm-m68k.h
4514 2002-06-26 Grace Sainsbury <graces@redhat.com>
4516 * monitor.h: Add the function regname to monitor_ops
4517 structure. This way NUM_REGS does not have to be a constant.
4518 * monitor.c (monitor_fetch_register): Added support for regname
4519 function. The function is called if the array regnames is NULL.
4520 (monitor_store_register): Same.
4521 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4523 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4524 cpu32bug_cmds.regname to point to new function.
4525 * abug-rom.c (abug_regname): Same as above.
4526 (init_abug_cmds): Same.
4527 * dbug-rom.c (dbug_regname): Same as above.
4528 (init_dbug_cmds): Same.
4529 * remote-est.c (est_regname): Same.
4530 (init_est_cmds): Same.
4531 * rom68k-rom.c (rom68k_regname): Same.
4532 (init_rom68k_cmds): Same.
4534 2002-06-25 Tom Tromey <tromey@redhat.com>
4536 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4538 2002-06-25 Andrew Cagney <cagney@redhat.com>
4540 * infrun.c (stop_registers): Change variable's type to ``struct
4542 (xmalloc_inferior_status): Delete function.
4543 (free_inferior_status): Delete function.
4544 (normal_stop): Use regcache_cpy.
4545 (struct inferior_status): Change type of fields ``stop_registers''
4546 and ``registers'' to ``struct regcache''.
4547 (write_inferior_status_register): Use regcache_write.
4548 (save_inferior_status): Instead of calling
4549 xmalloc_inferior_status, allocate the inf_status buffer directly.
4550 Use regcache_dup_no_passthrough and regcache_dup to save the
4552 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4553 Replace the stop_registers regcache instead of overriding it. Use
4554 regcache_xfree. Instead of calling free_inferior_status, xfree
4555 the buffer directly.
4556 (discard_inferior_status): Use regcache_xfree. Instead of calling
4557 free_inferior_status, xfree the buffer directly.
4558 (build_infrun): Use regcache_xmalloc.
4559 (_initialize_infrun): Delete redundant call to build_infrun.
4561 * Makefile.in (infcmd.o): Add $(regcache_h).
4563 * infcmd.c: Include "regcache.h".
4564 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4565 obtain the address of `stop_registers' register buffer.
4566 (print_return_value): Ditto.
4568 * inferior.h (struct regcache): Add opaque declaration.
4569 (stop_registers): Change variable's declared type to ``struct
4572 2002-06-24 Tom Tromey <tromey@redhat.com>
4574 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4575 * target.c (initialize_targets): Fixed typo in
4576 trust-readonly-sections `show' documentation.
4578 * main.c: Marked all strings with _().
4580 2002-06-24 Don Howard <dhoward@redhat.com>
4582 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4583 that means max CORE_ADDR+1.
4584 (lookup_mem_region): Ditto.
4585 (mem_info_command): Ditto.
4587 2002-06-24 Grace Sainsbury <graces@redhat.com>
4589 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4590 (REGISTER_BYTES_OK): Remove.
4591 (REGISTER_BYTES): Remove.
4592 (STORE_STRUCT_RETURN): Remove.
4593 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4594 (STORE_RETURN_VALUE): Remove.
4595 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4596 (FRAME_CHAIN): Remove.
4597 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4598 (FRAME_SAVED_PC): Remove.
4599 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4600 (m68k_store_struct_return): Add.
4601 (m68k_deprecated_extract_return_value): Add.
4602 (m68k_deprecated_extract_struct_value_address): Add.
4603 (m68k_store_return_value): Add.
4604 (m68k_frame_chain): Add.
4605 (m68k_frameless_function_invocation): Add.
4606 (m68k_frame_saved_pc): Add.
4607 (m68k_gdbarch_init): added set_gdbarch calls for new
4608 functions and deleted macros.
4610 2002-06-23 Tom Tromey <tromey@redhat.com>
4612 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4613 (ALLDEPFILES): Likewise.
4614 (udiheaders): Removed.
4615 (udip2soc.o): Likewise.
4616 (udi2go32.o): Likewise.
4618 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4620 2002-06-22 Andrew Cagney <ac131313@redhat.com>
4622 * infrun.c (_initialize_infrun): Delete unnecessary call to
4625 * regcache.h: Update comments describing the regcache_cpy family
4627 (regcache_save, regcache_restore): Delete declaration.
4628 (regcache_save_no_passthrough): Delete declaration.
4629 (regcache_restore_no_passthrough): Delete declaration.
4630 * regcache.c (regcache_save): Delete function.
4631 (regcache_save_no_passthrough): Delete function.
4632 (regcache_restore): Delete function.
4633 (regcache_restore_no_passthrough): Delete function.
4635 2002-06-21 Andrew Cagney <ac131313@redhat.com>
4637 * config/m68k/tm-m68k.h: Fix typo.
4638 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4639 (m68k_frame_init_saved_regs): Declare.
4641 2002-06-21 Jim Blandy <jimb@redhat.com>
4643 Remove some vestiges of Harris 88k support.
4644 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4645 register numbering quirk.
4646 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4647 odd symbols occurring in Harris 88k ELF targets.
4649 2002-06-21 Tom Tromey <tromey@redhat.com>
4651 * gdb_locale.h: New file.
4652 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4653 (defs_h): Added gdb_locale.h.
4654 * configure, config.in: Rebuilt.
4655 * configure.in (PACKAGE): Define.
4656 * defs.h: Include gdb_locale.h.
4657 * main.c (captured_main): Call setlocale, bindtextdomain,
4660 2002-06-21 Dave Brolley <brolley@redhat.com>
4662 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4663 * config/frv/frv.mt: New file.
4664 * config/frv/tm-frv.h: New file.
4665 * configure.tgt: Support frv-*-*.
4666 * Makefile.in (frv-tdep.o): New target.
4667 * frv-tdep.c: New file.
4668 * NEWS: Mention frv.
4670 2002-06-21 Dave Brolley <brolley@redhat.com>
4672 * MAINTAINERS: Add self to "Write After Approval" list.
4674 2002-06-21 Grace Sainsbury <graces@redhat.com>
4676 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4677 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4678 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4679 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4680 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4682 * m68k-tdep.c: Include arch-utils.h
4683 (m68k_register_raw_size): Add.
4684 (m68k_register_virtual_size): Add.
4685 (m68k_register_virtual_type): Add.
4686 (m68k_register_name): Add.
4687 (m68k_stack_align): Add.
4688 (m68k_register_byte): Add.
4689 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4692 2002-06-21 Grace Sainsbury <graces@redhat.com>
4694 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4695 m68k_find_saved_regs.
4696 (m68k_pop_frame): Removed saved_regs structure, and replaced
4697 references to it with frame->saved_regs.
4698 (m68k_gdbarch_init): Added function calls to initialize the
4700 (m68k_fix_call_dummy): Add.
4701 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4702 (CALL_DUMMY): Remove.
4703 (CALL_DUMMY_LENGTH): Remove.
4704 (CALL_DUMMY_START_OFFSET): Remove.
4705 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4706 (FIX_CALL_DUMMY): Remove.
4707 (PUSH_DUMMY_FRAME): Remove.
4708 (POP_FRAME): Remove.
4710 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4712 * parse.c (parse_fprintf): New function used to avoid calls to
4713 fprintf in bison parser generated debug code.
4714 * parser-defs.h: Declaration of new parse_fprintf function.
4715 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4716 Set YYDEBUG to 1 by default.
4717 Set YYFPRINTF as parse_fprintf.
4719 2002-06-21 Michal Ludvig <mludvig@suse.cz>
4721 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4723 (pointer_encoding, enum ptr_encoding): New.
4724 (execute_cfa_program): Take care about pointer encoding.
4725 (dwarf2_build_frame_info): Only call parse_frame_info for
4726 .debug_frame and .eh_frame.
4727 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4728 fixed augmentation handling, added relative addressing,
4729 ignore duplicate FDEs. Added comments.
4730 * dwarf2cfi.c: Reindented.
4732 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
4734 * event-top.c (command_handler): Don't use space_at_cmd_start
4735 unless there is sbrk() on the host. Assign time and space data
4736 to union fields of the appropriate length.
4738 2002-06-20 Michal Ludvig <mludvig@suse.cz>
4740 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4741 x86_64_register_name. Return type changed to 'const char *'.
4742 (x86_64_register_name2nr): Rename to x86_64_register_number.
4743 (x86_64_gdbarch_init): Update to reflect the change.
4744 * x86-64-tdep.h: Ditto.
4745 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4746 (supply_fpregset): Ditto.
4748 2002-06-19 Andrew Cagney <cagney@redhat.com>
4750 * regcache.h: Update copyright.
4751 (struct regcache, struct gdbarch): Add opaque declarations.
4752 (current_regcache): Declare global variable.
4753 (regcache_read, regcache_write): Add gdbarch parameter.
4754 (regcache_save, regcache_save_no_passthrough)
4755 (regcache_restore, regcache_restore_no_passthrough)
4756 (regcache_dup, regcache_dup_no_passthrough)
4757 (regcache_cpy, regcache_cpy_no_passthrough)
4758 (deprecated_grub_regcache_for_registers)
4759 (deprecated_grub_regcache_for_register_valid)
4760 (regcache_valid_p): Add function declarations.
4762 * regcache.c: Update copyright.
4763 (regcache_descr_handle): New global variable.
4764 (struct regcache_descr): Define.
4765 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4766 (regcache_descr, xfree_regcache_descr): New functions.
4767 (struct regcache): Define.
4768 (regcache_xmalloc, regcache_xfree): New functions.
4769 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4770 (regcache_dup, regcache_dup_no_passthrough): New functions.
4771 (regcache_valid_p, regcache_read_as_address): New functions.
4772 (deprecated_grub_regcache_for_registers): New function.
4773 (deprecated_grub_regcache_for_register_valid): New function.
4774 (current_regcache): New global variable.
4775 (register_buffer): Add regcache parameter. Update calls.
4776 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4777 (read_register_gen, write_register_gen): Update register_buffer
4778 call. Test for legacy_p instead of gdbarch_register_read_p or
4779 gdbarch_register_write_p.
4780 (regcache_collect): Update register_buffer call.
4781 (build_regcache): Rewrite. Use deprecated grub functions.
4782 (regcache_save, regcache_save_no_passthrough): New functions.
4783 (regcache_restore, regcache_restore_no_passthrough): New
4785 (_initialize_regcache): Create the regcache_data_handle. Swap
4786 current_regcache global variable.
4788 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4789 parameter to regcache_read and regcache_write calls.
4790 (sh4_register_read): Ditto.
4791 (sh64_pseudo_register_read): Ditto.
4792 (sh64_register_read): Ditto.
4793 (sh_pseudo_register_write): Ditto.
4794 (sh4_register_write): Ditto.
4795 (sh64_pseudo_register_write): Ditto.
4796 (sh64_register_write): Ditto.
4798 * defs.h (XCALLOC): Define.
4800 2002-06-19 Grace Sainsbury <graces@redhat.com>
4802 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4803 * m68k-tdep.c (m68k_gdbarch_init): Added.
4804 (m68k_dump_tdep): Added.
4806 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4808 * ada-lang.c (fill_in_ada_prototype): Update comment.
4810 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4812 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4814 (mips_abi_string, mips_abi_strings): New.
4815 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4816 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4817 tdep->mips_abi_string. Honor mips_abi_string. Default to
4818 O32 if no ABI is found.
4819 (mips_dump_tdep): Use mips_abi_strings.
4820 (mips_abi_update): New function.
4821 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4822 ``set mips abi'' and ``show mips abi''. Check the size of
4825 2002-06-19 Andrew Cagney <cagney@redhat.com>
4827 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4830 2002-06-18 Joel Brobecker <brobecker@gnat.com>
4832 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4833 current frame using only the first stack size adjustment. All
4834 subsequent size adjustments are not considered to be part of
4835 the "static" part of the current frame.
4836 Compute the address of the saved registers relative to the
4837 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4838 in use in this frame.
4840 2002-06-18 Don Howard <dhoward@redhat.com>
4842 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4843 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4844 suggesting this solution.
4846 2002-06-18 Andrew Cagney <ac131313@redhat.com>
4848 * config/romp/xm-rtbsd.h: Delete file.
4849 * config/romp/rtbsd.mh: Delete file.
4851 2002-06-18 Keith Seitz <keiths@redhat.com>
4853 * breakpoint.c (condition_command): Post breakpoint_modify
4854 when a condition is added to an existing breakpoint.
4855 (commands_command): Likewise for commands.
4856 (set_ignore_count): Likewise for ignore counts.
4857 If no tty, do not simply return, still need to send event
4859 (ignore_command): Only print a newline if the command came
4861 Don't call breakpoints_changed, since this is now properly
4862 handled by set_ignore_count.
4864 2002-06-18 Andrew Cagney <cagney@redhat.com>
4866 * MAINTAINERS: Note that cris-elf target can be compiled with
4868 * cris-tdep.c (cris_register_name): Make return type constant.
4869 (cris_breakpoint_from_pc): Ditto.
4871 2002-06-18 Michal Ludvig <mludvig@suse.cz>
4873 * frame.h (struct frame_info): Change type of context to
4876 2002-06-17 Andrew Cagney <cagney@redhat.com>
4878 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4880 * gdbarch.h, gdbarch.c: Regenerate.
4881 * config/mips/tm-mips.h (mips_register_name): Update.
4882 * i386-tdep.h (i386_register_name): Update.
4883 * mips-tdep.c (mips_register_name): Update
4884 * alpha-tdep.c (alpha_register_name): Update.
4885 * arch-utils.c (legacy_register_name): Update.
4886 * arch-utils.h (legacy_register_name): Update.
4887 * avr-tdep.c (avr_register_name): Update.
4888 * ia64-tdep.c (ia64_register_name): Update.
4889 * i386-tdep.c (i386_register_name): Update.
4890 * sparc-tdep.c (sparc32_register_name): Update.
4891 (sparc64_register_name): Update.
4892 (sparclite_register_name): Update.
4893 (sparclet_register_name): Update.
4894 * sh-tdep.c (sh_generic_register_name): Update.
4895 (sh_sh_register_name): Update.
4896 (sh_sh3_register_name): Update.
4897 (sh_sh3e_register_name): Update.
4898 (sh_sh_dsp_register_name): Update.
4899 (sh_sh3_dsp_register_name): Update.
4900 (sh_sh4_register_name): Update.
4901 (sh_sh64_register_name): Update.
4902 * s390-tdep.c (s390_register_name): Update.
4903 * rs6000-tdep.c (rs6000_register_name): Update.
4904 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4905 (ns32k_register_name_32382): Update.
4906 * d10v-tdep.c (d10v_ts2_register_name): Update.
4907 (d10v_ts3_register_name): Update.
4908 * xstormy16-tdep.c (xstormy16_register_name): Update.
4909 * vax-tdep.c (vax_register_name): Update.
4910 * v850-tdep.c (v850_register_name): Update.
4911 * m68hc11-tdep.c (m68hc11_register_name): Update.
4912 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4913 (am33_register_name): Update.
4915 2002-06-17 Grace Sainsbury <graces@redhat.com>
4917 * m68k-tdep.c: Reindented.
4919 2002-06-17 Andrew Cagney <ac131313@redhat.com>
4921 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4922 list of predefined types.
4924 2002-06-16 Mark Kettenis <kettenis@gnu.org>
4926 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4927 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4928 REGISTER_CONVERT_TO_RAW): Remove defines.
4929 (i386_register_virtual_type, i386_register_convertible,
4930 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4932 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4933 macros mentioned above.
4935 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4936 (i386lynx_saved_pc_after_call): Remove prototype.
4937 * i386ly-tdep.c: Include "i386-tdep.h".
4938 (i386lynx_saved_pc_after_call): Make static. Use
4939 read_memory_nobpt instead of read_memory. Use
4940 read_memory_unsigned_integer instead of read_memory_integer.
4941 (i386lynx_init_abi): New function.
4942 (i386lynx_coff_osabi_sniffer): New function.
4943 (_initialize_i386bsd_tdep): New function.
4945 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4946 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4947 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4948 (i386_fix_call_dummy): Remove prototype.
4949 * i386-tdep.c (i386_call_dummy_words): New variable.
4950 (i386_gdbarch_init): Adjust for removal of the
4951 macros mentioned above.
4953 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4955 * command.h (add_setshow_auto_boolean_cmd): Replace
4956 add_set_auto_boolean_cmd.
4957 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4958 add_set_auto_boolean_cmd.
4959 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4960 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4961 mask-address'' command.
4962 (show_mask_address): Add cmd parameter.
4963 * remote.c (add_packet_config_cmd): Update. Change type of
4964 set_func and show_func to cmd_sfunc_ftype.
4965 (_initialize_remote): Update `set remote Z-packet'
4966 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4967 (show_remote_protocol_e_packet_cmd): Ditto.
4968 (show_remote_protocol_E_packet_cmd): Ditto.
4969 (show_remote_protocol_P_packet_cmd): Ditto.
4970 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4971 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4972 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4973 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4974 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4975 (show_remote_protocol_Z_packet_cmd): Ditto.
4976 (show_remote_protocol_binary_download_cmd): Ditto.
4977 (show_remote_cmd): Pass NULL to all of above.
4979 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4981 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4982 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4983 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4984 POP_FRAME): Remove defines.
4985 (i386_push_arguments, i386_store_struct_return,
4986 i386_extract_return_value, i386_store_return_value,
4987 i386_extract_struct_value_address, i386_push_dummy_frame,
4988 i386_pop_frame): Renove prototypes.
4989 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4990 macros mentioned above.
4992 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4994 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4995 add_set_boolean_cmd.
4996 (add_setshow_cmd): New function.
4997 * command.h (add_setshow_boolean_cmd): Replace
4998 add_set_boolean_cmd.
4999 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
5000 and ``set rdiromatzero''.
5001 * maint.c (_initialize_maint_cmds): Update commented out code.
5002 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
5003 * target.c (initialize_targets): Update `set
5004 trust-readonly-sections'.
5005 * remote.c (_initialize_remote): Update `set remotebreak'.
5007 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5009 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
5010 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
5011 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
5012 fit into multi-arch framework.
5013 (i386_breakpoint_from_pc): New function.
5014 (i386_gdbarch_init): Adjust for removal of the macros mentioned
5017 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
5018 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
5019 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
5020 (i386_frameless_function_invocation, i386_frame_num_args,
5021 i386_frame_init_saved_regs): Remove prototypes.
5022 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5023 macros mentioned above.
5025 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5027 * cli/cli-decode.c (set_cmd_cfunc): Update.
5028 (set_cmd_sfunc): Update.
5029 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
5030 (set_cmd_sfunc, set_cmd_cfunc): Update.
5031 * cli/cli-decode.h: Update.
5033 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5035 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
5036 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
5038 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5040 * defs.h (auto_boolean): Declare enum.
5041 * command.h (cmd_auto_boolean): Delete enum.
5042 * mips-tdep.c (mask_address_var): Update.
5043 (mips_mask_address_p): Update.
5044 (show_mask_address): Update.
5045 * remote.c (struct packet_config): Update.
5046 (update_packet_config): Update.
5047 (show_packet_config_cmd): Update.
5048 (packet_ok): Update.
5049 (add_packet_config_cmd): Update.
5050 (_initialize_remote):
5051 * command.h: Update.
5052 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
5053 (do_setshow_command): Update.
5054 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
5055 * cli/cli-decode.h: Update.
5057 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5059 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
5060 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
5061 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
5062 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
5063 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
5064 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
5066 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
5067 list of DJGPP COFF targets.
5069 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
5070 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
5071 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
5072 (FP0_REGNUM): Remove define.
5073 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5074 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
5075 (i386_register_virtual_size): Remove protoype.
5076 * i386-tdep.c (i386_register_virtual_size): Removed.
5077 (i386_extract_return_value, i386_store_return_value): Use
5078 FP0_REGNUM instead of NUM_FREGS to determine whether the
5079 floating-point registers are available.
5080 (i386_gdbarch_init): Tweak FIXME about FPU registers.
5081 Adjust for removal of macros mentioned above.
5083 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5085 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
5087 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5089 (supply_gregset, fill_gregset): Remove use of register keyword and
5090 remove declaration for regmap. Use I386_NUM_GREGS instead of
5091 NUM_REGS and NUM_FREGS.
5092 (FPREGSET_FSAVE_OFFSET): Remove.
5093 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5094 NUM_FREGS to determine whether the floating-point registers are
5097 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5098 gnu_store_registers): Replace usage of NUM_GREGS with
5101 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5102 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5103 usage of NUM_GREGS with I386_NUM_GREGS.
5105 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5107 * i386bsd-nat.c: Include "i386-tdep.h".
5108 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5111 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5112 and associated comment. They no longer make any sense, since we
5113 don't use this file anymore on Linux.
5115 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5116 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5117 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5118 elements in these arrays.
5119 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5122 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5124 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5125 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5127 2002-06-14 Andrew Cagney <cagney@redhat.com>
5129 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5130 EXTRACT_RETURN_VALUE.
5131 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5132 EXTRACT_STRUCT_VALUE_ADDRESS.
5133 * gdbarch.h, gdbarch.c: Regenerate.
5135 * values.c (value_being_returned): Handle
5136 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5137 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5139 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5140 * arm-tdep.c (arm_gdbarch_init): Update.
5141 * avr-tdep.c (avr_gdbarch_init): Update.
5142 * cris-tdep.c (cris_gdbarch_init): Update.
5143 * d10v-tdep.c (d10v_gdbarch_init): Update.
5144 * ia64-tdep.c (ia64_gdbarch_init): Update.
5145 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5146 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5147 * s390-tdep.c (s390_gdbarch_init): Update.
5148 * sh-tdep.c (sh_gdbarch_init): Update.
5149 * s390-tdep.c (s390_gdbarch_init): Update.
5150 * sparc-tdep.c (sparc_gdbarch_init): Update.
5151 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5152 * v850-tdep.c (v850_gdbarch_init): Update.
5153 * vax-tdep.c (vax_gdbarch_init): Update.
5154 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5155 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5157 * config/arc/tm-arc.h: Update.
5158 * config/d30v/tm-d30v.h: Update.
5159 * config/fr30/tm-fr30.h: Update.
5160 * config/h8300/tm-h8300.h: Update.
5161 * config/h8500/tm-h8500.h: Update.
5162 * config/i386/tm-i386.h: Update.
5163 * config/i386/tm-ptx.h: Update.
5164 * config/i386/tm-symmetry.h: Update.
5165 * config/i960/tm-i960.h: Update.
5166 * config/m32r/tm-m32r.h: Update.
5167 * config/m68k/tm-delta68.h: Update.
5168 * config/m68k/tm-linux.h: Update.
5169 * config/m68k/tm-m68k.h: Update.
5170 * config/m88k/tm-m88k.h: Update.
5171 * config/mcore/tm-mcore.h: Update.
5172 * config/mips/tm-mips.h: Update.
5173 * config/mn10200/tm-mn10200.h: Update.
5174 * config/pa/tm-hppa.h: Update.
5175 * config/pa/tm-hppa64.h: Update.
5176 * config/sparc/tm-sp64.h: Update.
5177 * config/sparc/tm-sparc.h: Update.
5178 * config/sparc/tm-sparclet.h: Update.
5179 * config/z8k/tm-z8k.h: Update.
5181 2002-06-14 Andrew Cagney <cagney@redhat.com>
5183 * Makefile.in (i386_linux_tdep_h): Define.
5184 (i386_tdep_h, i387_tdep_h): Define.
5185 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5186 $(i386_tdep_h) and $(i387_tdep_h).
5187 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5189 2002-06-14 Mark Kettenis <kettenis@gnu.org>
5191 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5192 Already covered by the default.
5194 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5195 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5196 (i386_gdbarch_init): Initialize long_double_format and long_double
5199 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5200 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5202 * config/i386/i386sol2.mh: ... here.
5203 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5204 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5205 (SIGCONTEXT_PC_OFFSET): Remove define.
5206 (IN_SIGTRAMP): Remove define.
5207 * i386-sol2-tdep.c: New file.
5209 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5210 * config/i386/tm-i386nw.h: Removed.
5212 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5213 USE_STRUCT_CONVENTION): Remove defines.
5214 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5215 (get_longjmp_target): Remove prototype.
5216 (IN_SIGTRAMP): Remove define.
5217 (i386bsd_in_sigtramp): Remove prototype.
5218 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5219 function. Update comment accordingly
5220 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5221 (FRAME_SAVED_PC): Remove define.
5222 (i386bsd_frame_saved_pc): Remove prototype.
5223 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5224 GET_LONGJMP_TARGET): Remove defines.
5225 (get_longjmp_target): Remove prototype.
5226 (IN_SIGTRAMP): Remove define.
5227 (i386bsd_in_sigtramp): Remove prototype.
5228 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5229 function. Update comment accordingly
5230 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5231 (FRAME_SAVED_PC): Remove define.
5232 (i386bsd_frame_saved_pc): Remove prototype.
5233 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5235 (USE_STRUCT_CONVENTION): Remove prototype.
5236 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5238 (_initialize_i386bsd_nat): Revise logic to determine some
5239 constants at compile time when compiling a native GDB. Warn if
5240 things don't match up with what we expect.
5241 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5243 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5244 to use date stored in `struct gdbarch_tdep'.
5245 (i386bsd_sigcontext_offset): Remove varaible.
5246 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5247 stored in `struct gdbarch_tdep'.
5248 (i386bsd_frame_saved_pc): Make static.
5249 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5250 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5251 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5252 i386fbsd4_sc_pc_offset): New variables.
5253 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5254 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5256 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5258 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5259 Modify the value of i386fbsd_sigtramp_start and
5260 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5261 i386fbsd_sigtramp_end.
5262 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5265 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5266 define to i386-linux-tdep.h.
5267 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5268 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5270 (i386_linux_register_name, i386_linux_register_byte,
5271 i386_linux_register_raw_size): Remove prototypes.
5272 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5273 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5274 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5275 TARGET_WRITE_PC): Remove defines.
5276 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5277 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5278 i386_linux_write_pc): Remove prototypes.
5279 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5280 (get_longjmp_target): Remove prototype.
5281 * i386-linux-tdep.h: New file.
5282 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5283 * i386-linux-tdep.c: Include "i386-tdep.h" and
5284 "i386-linux-tdep.h".
5285 (i386_linux_register_name, i386_linux_register_byte,
5286 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5287 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5289 (i386_linux_init_abi): New function.
5290 (_initialize_i386_linux_tdep): New function.
5292 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5293 (i386_saved_pc_after_call): Remove prototype.
5294 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5295 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5296 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5297 (i386_register_name, i386_stab_reg_to_regnum,
5298 i386_dwarf_reg_to_regnum): Remove prototypes.
5299 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5300 SIZEOF_SSE_REGS): Remove defines.
5301 (REGISTER_BYTES): Remove define.
5302 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5303 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5304 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5305 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5306 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5307 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5308 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5309 (get_longjmp_target): Remove prototype.
5310 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5311 (sigtramp_saved_pc): Remove define.
5312 (i386v4_sigtramp_saved_pc): Remove prototype.
5313 * config/i386/tm-go32.h (FRAME_CHAIN,
5314 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5315 (i386go32_frame_saved_pc): Remove prototype.
5316 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5317 (get_longjmp_target): Remove prototype.
5318 * i386-tdep.h: Include "osabi.h".
5319 (enum i386_abi): Removed.
5320 (enum struct_return): New enum.
5321 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5322 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5323 sc_pc_offset members.
5324 (i386_gdbarch_register_os_abi): Remove prototype.
5325 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5326 I386_SSE_NUM_REGS): New defines.
5327 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5328 I386_SSE_SIZEOF_REGS): New defines.
5329 (i386_register_name, i386_register_byte, i386_register_raw_size):
5331 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5332 (i386bsd_sigtramp_saved_pc): New prototype.
5333 * i386-tdep.c: Don't include "elf-bfd.h".
5334 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5335 i386_frame_chain, i386_saved_pc_after_call): Make static.
5336 (i386_frame_saved_pc): Rewrite to call architecture dependent
5337 function to deal with signal handlers. Make static.
5338 (i386go32_frame_saved_pc): Removed.
5339 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5341 (i386_get_longjmp_target): New function.
5342 (default_struct_convention, pcc_struct_convention,
5343 reg_struct_convention, valid_conventions, struct_convention): New
5345 (i386_use_struct_convention): New function.
5346 (i386v4_sigtramp_saved_pc): Renamed to
5347 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5348 (i386_pc_in_sigtramp): New function.
5349 (i386_abi_names): Removed.
5350 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5351 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5353 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5354 i386_gdbarch_register_os_abi): Removed.
5355 (struct i386_abi_handler): Removed.
5356 (i386_abi_handler_list): Removed.
5357 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5359 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5360 i386_nw_init_abi): New functions.
5361 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5362 Use set_gdbarch_xxx() calls instead of relying on macros for a
5364 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5365 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5366 Register the various architecture variants defined in this file.
5368 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
5370 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5371 (struct main_type): Remove arg_types member. Update comments for
5373 (TYPE_ARG_TYPES): Remove.
5374 (TYPE_FN_FIELD_ARGS): Update.
5375 (smash_to_method_type): Update prototype.
5377 * c-typeprint.c (cp_type_print_method_args): Take method type
5378 instead of argument list. Use new argument layout. Simplify.
5379 (c_type_print_args): Use new argument layout. Simplify.
5380 (c_type_print_base): Update call to cp_type_print_method_args.
5381 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5382 argument; use die->type instead. Update call to
5383 smash_to_method_type.
5384 (read_structure_scope): Update call to dwarf2_add_member_fn.
5385 * gdbtypes.c (allocate_stub_method): Update comment.
5386 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5387 Use new argument layout.
5388 (check_stub_method): Use new argument layout. Don't count
5389 void as an argument.
5390 (print_arg_types): Update comments. Use new argument layout.
5391 (recursive_dump_type): Don't print arg_types member.
5392 * hpread.c (hpread_read_struct_type): Use new argument layout.
5393 (fixup_class_method_type): Likewise.
5394 (hpread_type_lookup): Likewise.
5395 * stabsread.c (read_type): Update calls to read_args and
5396 smash_to_method_type.
5397 (read_args): Use new argument layout. Simplify.
5398 * valops.c (typecmp): Use new argument layout. Update parameters
5399 and comments. Simplify.
5400 (hand_function_call): Use new argument layout.
5401 (search_struct_method): Update call to typecmp.
5402 (find_overload_match): Use new argument layout.
5404 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5406 * NEWS: Mention multithreaded debug support for gdbserver.
5408 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5410 * MAINTAINERS: Mention NEWS.
5412 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5414 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5415 (struct mips_objfile_private, compare_pdr_entries): New.
5416 (non_heuristic_proc_desc): Read the ".pdr" section if it
5419 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5421 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5422 (arm_debug): New static variable.
5423 (_initialize_arm_tdep): Add ``set debug arm'' command.
5425 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5427 * Makefile.in (sim_arm_h): Define.
5428 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5429 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5430 (arm_register_sim_regno): New function, map an internal REGNUM
5431 onto a simulator register number.
5432 (arm_gdbarch_init): Set register_sim_regno.
5434 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
5436 * MAINTAINERS: Add self.
5438 2002-06-11 Jim Blandy <jimb@redhat.com>
5440 * source.c (source_info): Mention whether the symtab has
5441 information about preprocessor macros.
5443 Call the command `info macro', not `show macro'.
5444 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5446 (_initialize_macrocmd): Register `info_macro_command' in
5447 `infolist', not `showlist'.
5449 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
5451 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5452 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5453 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5454 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5455 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5457 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5458 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5459 (_initialize_mips_tdep): Remove dead code.
5460 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5461 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5462 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5463 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5464 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5465 MIPS_LAST_FP_ARG_REGNUM): Remove.
5467 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5469 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5470 (unwind_tmp_obstack_free, parse_frame_info)
5471 (update_context, cfi_read_fp, cfi_write_fp)
5472 (cfi_frame_chain, cfi_init_extra_frame_info)
5473 (cfi_virtual_frame_pointer): Use the above function.
5474 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5476 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
5478 * v850-tdep.c (v850_type_is_scalar): New function.
5479 (v850_use_struct_convention): Match current gcc implementation
5480 as close as possible.
5481 (v850_push_arguments): Fix stack_offset handling. Don't write
5482 struct_addr into register. This is done by v850_store_struct_return.
5483 (v850_extract_return_value): Care for structs.
5484 (v850_store_return_value): Ditto.
5485 (v850_store_struct_return): Actually write address.
5487 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5489 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5490 without debug information too.
5492 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5494 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5495 Make multi-arch pure.
5496 * gdbarch.h, gdbarch.c: Re-generate.
5497 * arm-tdep.c (arm_print_float_info): Update.
5498 * arch-utils.h (default_print_float_info): Update.
5499 * arch-utils.c (default_print_float_info): Update.
5500 * infcmd.c (float_info): Update call.
5502 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5504 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5505 the front of the initialize list.
5507 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5509 * infrun.c (struct inferior_status): Replace fields
5510 selected_frame_address and selected_level with field
5512 (save_inferior_status): Update. Use get_frame_id.
5513 (struct restore_selected_frame_args): Delete.
5514 (restore_selected_frame): Update. Use frame_find_by_id.
5515 (restore_inferior_status): Update.
5517 * breakpoint.h (struct breakpoint): Change type of
5518 watchpoint_frame to frame_id.
5519 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5520 call to get_current_frame.
5521 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5523 (watchpoint_check): Use frame_find_by_id.
5525 * frame.h (record_selected_frame): Delete declaration.
5526 * stack.c (record_selected_frame): Delete function.
5528 * frame.h (struct frame_id): Define.
5529 (get_frame_id): Declare.
5530 (frame_find_by_id): Declare.
5531 * frame.c (frame_find_by_id): New function.
5532 (get_frame_id): New function.
5534 2002-06-10 Andrey Volkov <avolkov@transas.com>
5536 * ser-e7kpc.c: Fix duplicated define and call of
5537 _initialize_ser_e7000pc
5539 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5541 * signals/signals.c (target_signal_from_host): Fix #ifdef
5543 (do_target_signal_to_host): Likewise.
5545 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5547 * mips-tdep.c (mips_find_abi_section): New function.
5548 (mips_gdbarch_init): Call it.
5550 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5552 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5553 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5554 after Andrew's 2002-06-08 gdbarch change.
5556 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5558 * i386-linux-nat.c (suppy_gregset): Don't supply
5559 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5561 (fill_gregset): Don't fetch it under the same circumstances.
5563 2002-06-09 Andrew Cagney <cagney@redhat.com>
5565 * Makefile.in (callback_h): Define.
5566 (remote_sim_h): Update path to remote-sim.h.
5567 (remote-rdp.o): Add $(callback_h).
5568 (remote-sim.o): Use $(callback_h).
5569 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5570 * remote-rdp.c: Include "gdb/callback.h".
5572 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5574 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5575 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5577 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5579 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5580 * rdi-share/serpardr.c: Ditto.
5581 * rdi-share/unixcomm.c: Ditto.
5582 * rdi-share/serdrv.c: Ditto.
5583 * rdi-share/hostchan.h: Ditto.
5584 * rdi-share/hostchan.c: Ditto.
5585 * rdi-share/host.h: Ditto.
5586 * rdi-share/devsw.c: Ditto.
5588 * objfiles.h: Change type of obj_private to void pointer.
5589 * pa64solib.c: Update copyright. Don't include "assert.h", use
5590 strcmp instead of STREQ, use LONGEST, do not use PTR
5591 * somsolib.c: Ditto.
5593 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5594 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5595 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5597 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5599 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5600 (default_get_saved_register): Delete function.
5601 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5602 generic_unwind_get_saved_register.
5603 * gdbarch.h, gdbarch.c: Re-generate.
5605 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5607 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5608 generic_func_frame_chain_valid.
5609 * gdbarch.h, gdbarch.c: Re-generate.
5610 * blockframe.c (generic_func_frame_chain_valid): Only check
5611 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5612 passing FP to PC_IN_CALL_DUMMY.
5615 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5617 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5618 (register_gdbarch_data): Initialize init_p.
5619 (gdbarch_data): Initialize data pointer using the init function.
5620 (init_gdbarch_data): Delete function.
5621 (gdbarch_update_p): Update.
5622 (initialize_non_multiarch): Update.
5623 (struct gdbarch): Add field initialized_p.
5624 * gdbarch.h, gdbarch.c: Re-generate.
5626 2002-06-07 Michal Ludvig <mludvig@suse.cz>
5628 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5629 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5630 better do the things actually here.
5631 * x86-64-tdep.c (x86_64_register_name2nr): New.
5632 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5633 (x86_64_gdbarch_init): Respect the above change.
5634 * x86-64-tdep.h (x86_64_register_name2nr)
5635 (x86_64_register_nr2name): Add prototypes.
5636 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5638 2002-06-06 Michael Snyder <msnyder@redhat.com>
5640 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5641 Delete extra braces and re-indent.
5642 (d10v_store_return_value): Char return values
5643 must be shifted over by one byte in R0.
5644 (d10v_extract_return_value): Delete extra braces, re-indent.
5646 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5648 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5649 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5650 (d10v_integer_to_address): Rewrite.
5651 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5652 the d10v specific functions which take care of converting to the
5655 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5657 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5658 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5660 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5662 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5664 * config/tm-linux.h: Ditto.
5665 * config/alpha/tm-alphalinux.h: Ditto.
5666 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5667 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5668 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5669 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5670 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5671 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5672 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5673 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5674 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5675 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5676 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5677 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5678 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5679 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5680 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5681 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5682 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5683 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5684 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5685 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5686 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5687 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5688 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5689 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5690 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5691 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5692 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5693 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5694 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5695 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5696 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5697 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5698 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5699 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5700 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5701 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5702 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5704 2002-05-04 Aidan Skinner <aidan@velvet.net>
5706 * ada-exp.tab.c: New file
5707 * ada-exp.y: New file
5708 * ada-lang.c: New file
5709 * ada-lang.h: New file
5710 * ada-lex.c: New file
5711 * ada-lex.l: New file
5712 * ada-tasks.c: New file
5713 * ada-typeprint.c: New file
5714 * ada-valprint.c: New file
5716 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5718 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5719 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5721 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5723 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5724 insetead of ppc-linux-tdep.o.
5725 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5726 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5728 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5730 2002-05-07 Christian Groessler <chris@groessler.org>
5731 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5732 bit register contents for little endian hosts.
5734 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5736 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5739 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5741 * gdbarch.h: Regenerate.
5743 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5745 * MAINTAINERS: Add everyone to write-after-approval list.
5747 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5749 * stack.c (frame_info): Use frame_register_unwind instead of
5750 saved_regs. Mention when the SP is on the stack or in a register.
5752 * frame.h (frame_register_unwind_ftype): Define. Document.
5753 (struct frame_info): Add field register_unwind and
5754 register_unwind_cache.
5755 (frame_register_unwind): Declare.
5756 (generic_unwind_get_saved_register): Declare.
5758 * frame.c (frame_register_unwind): New function.
5759 (generic_unwind_get_saved_register): New function.
5761 * blockframe.c (generic_call_dummy_register_unwind): New function.
5762 (frame_saved_regs_register_unwind): New function.
5763 (set_unwind_by_pc): New function.
5764 (create_new_frame): New function.
5765 (get_prev_frame): New function.
5767 2002-05-30 Andrew Cagney <ac131313@redhat.com>
5769 * a29k-share/: Delete directory.
5770 * remote-vx29k.c: Delete file.
5772 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5774 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5775 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5777 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5779 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5780 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5783 (sparcnbsd-tdep.o): New dependency lists.
5784 * NEWS: Note new UltraSPARC NetBSD native configuration.
5785 * configure.host (sparc64-*-netbsd*): New host.
5786 * configure.tgt (sparc-*-netbsdelf*)
5787 (sparc-*-netbsd*): Set gdb_target to nbsd.
5788 (sparc64-*-netbsd*): New target.
5789 * sparc64nbsd-nat.c: New file.
5790 * sparcnbsd-nat.c: New file.
5791 * sparcnbsd-tdep.c: New file.
5792 * sparcnbsd-tdep.h: New file.
5793 * config/sparc/nbsd.mt: New file.
5794 * config/sparc/nbsd64.mh: New file.
5795 * config/sparc/nbsd64.mt: New file.
5796 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5797 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5799 * config/sparc/nbsdaout.mt: Remove.
5800 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5801 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5803 * config/sparc/nbsdelf.mt: Remove.
5804 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5805 sparc-nat.c compatiblity defines.
5806 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5807 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5808 * config/sparc/tm-nbsd64.h: New file.
5809 * config/sparc/tm-nbsdaout.h: Remove.
5810 * config/sparc/xm-nbsd.h: Remove.
5812 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5814 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5815 * sparc-tdep.c: Include osabi.h.
5816 (gdbarch_tdep): Add osabi member.
5817 (_initialize_sparc_tdep): Use gdbarch_register.
5818 (sparc_gdbarch_init): Use generic OS ABI framework.
5819 (sparc_dump_tdep): New function.
5821 2002-05-30 Kevin Buettner <kevinb@redhat.com>
5823 * corefile.c (do_captured_read_memory_integer): Return non-zero
5825 (safe_read_memory_integer): Copy result of memory read when
5826 status is non-zero. Also, add comments.
5828 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5830 * Makefile.in (ppc_tdep_h): Define.
5833 (rs6000-tdep.o): Use $(ppc_tdep_h).
5836 (ppcnbsd-tdep.o): New dependency lists.
5837 * ppc-tdep.h: Use generic OS ABI framework.
5838 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5839 (ppc_linux_init_abi): New functions.
5840 (ppc_sysv_abi_broken_use_struct_convention)
5841 (ppc_sysv_abi_use_struct_convention)
5842 (ppc_sysv_abi_push_arguments): Move to...
5843 * ppc-sysv-tdep.c: ...here.
5844 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5845 * rs6000-tdep.c (process_note_abi_tag_sections)
5846 (get_elfosabi): Remove.
5847 (rs6000_gdbarch_init): Use generic OS ABI framework.
5848 (rs6000_dump_tdep): New function.
5849 (_initialize_rs6000_tdep): Use gdbarch_register.
5850 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5851 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5852 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5853 of ppc-linux-tdep.o.
5854 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5855 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5856 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5857 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5858 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5859 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5861 2002-05-29 Jim Blandy <jimb@redhat.com>
5863 * macroscope.c (default_macro_scope): Put `void' in empty argument
5866 2002-05-29 Andrew Cagney <ac131313@redhat.com>
5868 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5869 * arch-utils.c: Include "sim-regno.h".
5870 * gdbarch.sh: Don't include "sim-regno.h".
5871 * gdbarch.h, gdbarch.c: Regenerate.
5872 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5874 * arch-utils.h (legacy_register_sim_regno): To here.
5875 * remote-sim.c (legacy_register_sim_regno): Move function from
5877 * arch-utils.c (legacy_register_sim_regno): To here.
5879 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5881 * sim-regno.h: New file.
5882 * Makefile.in (sim_regno_h): Define.
5883 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5884 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5885 (legacy_register_sim_regno): New function.
5886 (one2one_register_sim_regno): New function.
5887 (gdbsim_fetch_register): Rewrite.
5888 (gdbsim_store_register): Only store a register when
5889 REGISTER_SIM_REGNO is valid.
5890 * d10v-tdep.c: Include "sim-regno.h".
5891 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5892 (d10v_ts3_register_sim_regno): Ditto.
5893 * gdbarch.sh: Include "sim-regno.h".
5894 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5895 * gdbarch.h, gdbarch.c: Regenerate.
5896 * arch-utils.h (default_register_sim_regno): Delete declaration.
5897 * arch-utils.c (default_register_sim_regno): Delete function.
5899 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5901 * ppcnbsd-nat.c: Rewrite.
5902 * ppcnbsd-tdep.c: New file.
5903 * ppcnbsd-tdep.h: New file.
5904 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5905 solib.o, and solib-svr4.o.
5906 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5907 nbsd-tdep.o, and corelow.o.
5909 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5911 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5912 `tr' and `sed'. Mention that `broken' targets are not expected to
5915 2002-05-27 Michal Ludvig <mludvig@suse.cz>
5917 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5918 Let PC point right after the prologue before looking up symbols.
5920 2002-05-27 Martin M. Hunt <hunt@redhat.com>
5922 * i386-tdep.c (i386_register_virtual_type): Return
5923 builtin_type_vec128i for SSE registers.
5925 * gdbtypes.h (builtin_type_vec128i): Declare.
5927 * gdbtypes.c (build_builtin_type_vec128i): New function.
5928 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5929 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5930 (build_gdbtypes): Initialize new builtin vector types.
5931 (_initialize_gdbtypes): Register new vector types with gdbarch.
5933 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5935 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5936 since it has been multi-arch'd.
5937 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5938 Move Alpha and VAX multi-arch news entries to same section
5939 as other multi-arch news.
5941 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5943 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5944 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5945 static. Rename some register numbers to put them in ns32k-tdep
5947 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5948 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5950 (_initialize_ns32k_tdep): Use gdbarch_register.
5951 * ns32k-tdep.h: New file.
5952 * ns32knbsd-tdep.c: New file.
5953 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5954 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5955 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5956 REGISTER_BYTES, REGISTER_BYTE): Remove.
5957 * config/ns32k/tm-ns32k.h: New file.
5958 * config/ns32k/tm-umax.h: Remove.
5960 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5962 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5963 ns32k_store_struct_return, ns32k_extract_return_value,
5964 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5966 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5967 ns32k_saved_pc_after_call.
5968 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5969 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5970 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5971 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5972 ns32k_extract_struct_value_address.
5974 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5976 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5977 ns32k_fix_call_dummy): New.
5978 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5979 ns32k_call_dummy_words.
5980 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5981 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5982 CALL_DUMMY_NARGS): Remove.
5983 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5985 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5987 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5988 ns32k_frame_saved_pc, ns32k_frame_args_address,
5989 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5990 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5991 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5992 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5993 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5994 (BREAKPOINT): Remove..
5995 (FRAME_CHAIN): Define as ns32k_frame_chain.
5996 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5997 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5998 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5999 (FRAME_FIND_SAVED_REGS): Remove.
6000 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
6001 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
6002 (POP_FRAME): Define as ns32k_pop_frame.
6004 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6006 * ns32k-tdep.c (ns32k_register_byte_32082,
6007 ns32k_register_byte_32382, ns32k_register_raw_size,
6008 ns32k_register_virtual_size, ns32k_register_virtual_type): New
6010 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
6011 ns32k_register_byte_32382.
6012 * config/ns32k/tm-umax.h: Update copyright years.
6013 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
6014 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
6015 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
6016 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
6017 (ns32k_get_enter_addr): Fix prototype.
6019 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6021 * ns32k-tdep.c: Update copyright years.
6022 (ns32k_register_name_32082): New function.
6023 (ns32k_register_name_32382): Ditto.
6024 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
6025 (REGISTER_NAME): Define as ns32k_register_name_32382.
6026 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
6027 (REGISTER_NAME): Define as ns32k_register_name_32082.
6029 2002-05-24 Jim Blandy <jimb@redhat.com>
6031 * dwarf2read.c (free_line_header): Use xfree, not free.
6033 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
6035 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
6036 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
6038 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6040 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
6042 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6044 From Ross Alexander at NEC Europe:
6045 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
6047 2002-05-23 Michael Snyder <msnyder@redhat.com>
6049 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
6050 for input, rather than parse_and_eval_address.
6052 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6054 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
6055 * Makefile.in (sim_d10v_h): Update definition.
6057 2002-05-24 Andrew Cagney <cagney@redhat.com>
6059 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
6060 change `2002-05-22 Michael Snyder' below.
6061 (d10v_push_arguments): Ditto.
6062 (d10v_extract_return_value): Ditto.
6064 2002-05-23 Jim Blandy <jimb@redhat.com>
6066 * macrotab.c (check_for_redefinition): Don't complain if the new
6067 definition is the same as the previous one. Take more arguments
6068 to allow the comparison.
6069 (macro_define_object, macro_define_function): Pass more arguments
6070 to check_for_redefinition.
6072 2002-05-22 Michael Snyder <msnyder@redhat.com>
6074 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
6075 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
6076 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
6077 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
6078 Don't bail if return_pc is PC_IN_CALL_DUMMY.
6079 Add a temp variable to save a call (and a memory read).
6080 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
6081 if possible (so that PC_IN_CALL_DUMMY will work).
6083 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
6085 * MAINTAINERS: Remove status `OBSOLETE' from v850.
6087 2002-05-22 Michal Ludvig <mludvig@suse.cz>
6089 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6091 (dwarf2_build_frame_info): Corrected handling of eh_frame.
6092 (dwarf2_build_frame_info): Add offset to fde->initial_location
6093 so that frames of shared libraries are mapped correctly.
6094 (execute_stack_op): Change type of 'result' from ULONGEST to
6097 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6099 * config/alpha/tm-nbsd.h: Include solib.h.
6101 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6103 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6104 assumptions about the host's byte order.
6106 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6108 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6110 * alphanbsd-tdep.c: Include solib-svr4.h.
6111 * shnbsd-tdep.c: Ditto.
6113 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6115 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6116 nbsd-tdep.h to dependency list.
6117 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6118 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6119 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6120 nbsdaout.mh and nbsdelf.mh consistently.
6121 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6122 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6123 nbsdaout.mt and nbsdelf.mh consistently.
6124 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6125 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6126 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6127 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6128 a.out shared library stuff from here...
6129 * config/nm-nbsdaout.h: ...to here.
6130 * config/tm-nbsd.h: Remove.
6131 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6132 * config/arm/nbsd.mh: Remove.
6133 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6135 * config/arm/nbsdaout.mh: New file.
6136 * config/arm/nbsdelf.mh: New file.
6137 * config/arm/nm-nbsdaout.h: New file.
6138 * config/i386/nbsd.mh: Remove.
6139 * config/i386/nbsd.mt: Remove.
6140 * config/i386/nbsdaout.mh: New file.
6141 * config/i386/nbsdaout.mt: New file.
6142 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6143 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6144 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6145 i386_register_u_addr): Remove.
6146 * config/i386/nm-nbsdaout.h: New file.
6147 * config/i386/nm-nbsdelf.h: Remove.
6148 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6149 (USE_STRUCT_CONVENTION): Remove.
6150 * config/i386/tm-nbsdaout.h: New file.
6151 * config/i386/tm-nbsdelf.h: Remove.
6152 * config/m68k/nbsd.mh: Remove.
6153 * config/m68k/nbsd.mt: Remove.
6154 * config/m68k/nbsdaout.mh: New file.
6155 * config/m68k/nbsdaout.mt: New file.
6156 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6157 * config/m68k/nm-nbsdaout.h: New file.
6158 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6159 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6160 * config/ns32k/nbsd.mh: Remove.
6161 * config/ns32k/nbsd.mt: Remove.
6162 * config/ns32k/nbsdaout.mh: New file.
6163 * config/ns32k/nbsdaout.mt: New file.
6164 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6165 * config/ns32k/nm-nbsdaout.h: New file.
6166 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6167 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6168 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6169 (SVR4_SHARED_LIBS): Remove.
6170 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6171 * config/sparc/nbsd.mh: Remove.
6172 * config/sparc/nbsd.mt: Remove.
6173 * config/sparc/nbsdaout.mh: New file.
6174 * config/sparc/nbsdaout.mt: New file.
6175 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6176 * config/sparc/nbsdelf.mt: New file.
6177 * config/sparc/nm-nbsdaout.h: New file.
6178 * config/sparc/nm-nbsdelf.h: Remove.
6179 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6180 * config/sparc/tm-nbsdaout.h: New file.
6182 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6184 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6186 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6188 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6190 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6192 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6194 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6196 * NEWS: Note new MIPS NetBSD native configuration.
6197 * configure.host (mips*-*-netbsd*): New host.
6198 * configure.tgt (mips*-*-netbsd*): New target.
6199 * mipsnbsd-nat.c: New file.
6200 * mipsnbsd-tdep.c: New file.
6201 * mipsnbsd-tdep.h: New file.
6202 * config/mips/nbsd.mh: New file.
6203 * config/mips/nbsd.mt: New file.
6204 * config/mips/nm-nbsd.h: New file.
6205 * config/mips/tm-nbsd.h: New file.
6207 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6209 * Makefile.in (SFILES): Add osabi.c.
6210 (COMMON_OBS): Add osabi.o.
6211 (osabi.o): New dependency list.
6212 * osabi.c: New file.
6213 * osabi.h: New file.
6214 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6216 * Makefile.in (alpha_tdep_h): Define and use instead of
6218 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6219 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6221 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6222 * alpha-tdep.h: Include osabi.h.
6223 (alpha_abi): Remove.
6224 (gdbarch_tdep): Use generic OS ABI framework.
6225 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6226 gdbarch_register_osabi.
6227 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6228 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6229 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6231 * Makefile.in (sh_tdep_h): Add osabi.h.
6232 * sh-tdep.h (sh_osabi): Remove.
6233 (gdbarch_tdep): Use generic OS ABI framework.
6234 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6235 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6236 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6237 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6239 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6240 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6241 gdbarch_register_osabi.
6242 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6243 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6244 (get_elfosabi): Rename to...
6245 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6246 ABI framework support routines.
6247 (arm_gdbarch_init): Use generic OS ABI framework.
6248 (arm_dump_tdep): Likewise.
6249 (_initialize_arm_tdep): Likewise.
6250 * arm-tdep.h: Include osabi.h.
6252 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6254 (arm_gdbarch_register_os_abi): Remove prototype.
6255 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6256 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6258 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6259 * mips-tdep.c: Include osabi.h.
6260 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6263 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6265 * h8300-tdep.c: Fix formatting.
6267 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
6269 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6270 printing vector registers.
6272 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6274 From Fernando Nasser:
6275 * remote.c (remote_async_open_1): Re-throw the exception when the
6277 (remote_cisco_open): Ditto.
6278 (remote_open_1): Ditto.
6280 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6282 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6283 (remote_start_remote): Add uiout parameter. Pass through to
6284 remote_start_remote_dummy.
6285 (remote_open_1): Use catch_exception instead of catch_errors.
6286 (remote_async_open_1): Ditto.
6287 (remote_cisco_open): Ditto.
6289 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6291 * remote.c (remote_start_remote): Replace PTR with void pointer.
6292 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6295 2002-05-18 Andrew Cagney <ac131313@redhat.com>
6297 * gdb_indent.sh: Allow the script to be run in the sim directory.
6299 2002-05-18 Mark Kettenis <kettenis@gnu.org>
6301 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6302 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6304 * corelow.c (core_open): Only call set_gdbarch_from_file if
6307 2002-05-17 Andrey Volkov <avolkov@transas.com>
6309 * h8300-tdep.c: Add support of EXR register
6310 * config/h8300/tm-h8300.h: Ditto.
6312 2002-05-17 Andrey Volkov <avolkov@transas.com>
6314 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6316 2002-05-17 Andrey Volkov <avolkov@transas.com>
6318 * h8300-tdep.c: Change literal regnums to REGNO.
6320 2002-05-17 Jim Blandy <jimb@redhat.com>
6322 * NEWS: Note addition of macro support.
6324 Expand preprocessor macros in C expressions.
6325 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6326 (scan_macro_expansion, scanning_macro_expansion,
6327 finished_macro_expansion): New function declarations.
6328 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6329 variable declarations.
6330 * parser-defs.h (expression_context_pc): New declaration.
6331 * parse.c (expression_context_pc): New variable.
6332 (parse_exp_1): Set expression_context_pc, as well as
6333 expression_context_block.
6334 * c-exp.y (yylex): If we're not already reading the result of a
6335 macro expansion, try to macro-expand the next token. When we're
6336 done scanning a macro expansion, switch back to the mainline text.
6337 Commas and `if's in a macro's expansion don't terminate the input.
6338 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6339 (macro_original_text, macro_expanded_text,
6340 expression_macro_lookup_func, expression_macro_lookup_baton): New
6342 (scan_macro_expansion, scanning_macro_expansion,
6343 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6344 c_preprocess_and_parse): New functions.
6345 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6346 c_preprocess_and_parse, instead of c_parse.
6347 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6348 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6350 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6352 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6353 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6354 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6356 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
6358 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6360 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6362 * Makefile.in (sh_tdep_h): Define and use.
6363 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6364 register enum): Move to...
6365 * * sh-tdep.h: ...here.
6366 * sh-tdep.c: Include sh-tdep.h.
6367 * sh3-rom.c: Likewise.
6368 * shnbsd-tdep.c: Likewise.
6370 2002-05-16 Michael Snyder <msnyder@redhat.com>
6372 * arm-tdep.c: Spelling fix in comment.
6374 2002-05-16 Jim Blandy <jimb@redhat.com>
6376 Add commands for manually expanding macros and showing their
6378 * macrocmd.c, macroscope.c, macroscope.h: New files.
6379 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6380 (macroscope_h): New variable.
6381 (HFILES_NO_SRCDIR): Add macroscope.h.
6382 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6383 (macroscope.o, macrocmd.o): New rules.
6385 Teach the Dwarf 2 reader to read macro information.
6386 * dwarf2read.c: #include "macrotab.h".
6387 (dwarf_macinfo_buffer): New variable.
6388 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6390 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6391 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6392 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6393 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6394 dwarf2_macro_spaces_in_definition): New complaints.
6395 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6396 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6397 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6398 the partial symbol table.
6399 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6400 from what's recorded in the partial symbol table.
6401 (read_file_scope): If the compilation unit has a
6402 `DW_AT_macro_info' attribute, read its macro information.
6403 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6405 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6408 * ser-tcp.c: Don't include <netinet/udp.h>.
6410 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6412 * MAINTAINERS: Update my email address.
6414 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
6416 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6417 include file of the same name.
6419 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6421 * configure.tgt: Mark v850 as multi-arched.
6422 * config/v850/tm-v850.h: Remove file.
6423 * config/v850/v850.mt: Eliminate TM_FILE.
6425 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6427 * v850-tdep.c: Full multi-arch.
6428 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6429 Define GDB_MULTI_ARCH to 2.
6431 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6433 * p-exp.y (current_type): New static variable.
6434 Carries the type of the expression at the position that is parsed.
6435 (push_current_type, pop_current_type): Two new functions. Used
6436 to store/restore current_type in expression on specific tokens.
6437 (search_field): New static variable. Set to one after parsing a point
6438 as at that point only a FIELDNAME token should be searched.
6439 (FIELDNAME): New token. After a point only a token belonging to
6440 current_type type definition is allowed.
6441 (all over token rules): reset and change current_type according
6443 (exp '[' rule): insert implicit array index field if
6444 exp is a pascal string type.
6446 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6448 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6449 frame info. Use frame_info's saved_regs instead of matching member
6450 in extra_frame_info throughout.
6451 (v850_frame_init_saved_regs): New function.
6452 (v850_init_extra_frame_info): Move most functionality into
6453 v850_frame_init_saved_regs().
6454 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6455 (v850_frame_find_saved_regs): Remove declaration.
6456 (FRAME_FIND_SAVED_REGS): Remove definition.
6457 (v850_frame_init_saved_regs): Add declaration.
6458 (FRAME_INIT_SAVED_REGS): Add definition.
6460 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6462 * v850-tdep.c: Begin multi-arch'ing v850.
6463 (v850_target_architecture_hook): Remove function.
6464 (v850_gdbarch_init): New function. Add code previously in
6465 v850_target_architecture_hook().
6466 (_initialize_v850_tdep): Don't set target_architecture_hook.
6467 Call register_gdbarch_init() instead.
6469 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6471 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6472 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6473 (fixup_class_method_type): Likewise.
6475 2002-05-15 Jim Blandy <jimb@redhat.com>
6477 Add macro structures to GDB's symbol tables. Nobody puts anything
6479 * symtab.h (struct symtab): New member: `macro_table'.
6480 * buildsym.h (pending_macros): New global variable.
6481 * buildsym.c: #include "macrotab.h".
6482 (buildsym_init): Initialize `pending_macros'.
6483 (end_symtab): If we found macro information while reading a CU's
6484 debugging info, do build a symtab structure for it. Make the
6485 symtab point to the macro information, and clear the
6486 `pending_macros' pointer which held it while we were reading the
6488 (really_free_pendings): Free any pending macro table.
6489 * objfiles.h (struct objfile): New member: `macro_cache'.
6490 * objfiles.c (allocate_objfile): Set allocate and free functions
6491 for the macro cache's objstack.
6492 (free_objfile): Empty the macro cache's obstack.
6493 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6494 set new allocate and free functions for it.
6495 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6496 free functions for the macro cache's objstack. (Why is this
6497 function building its own objfile?)
6498 * symmisc.c (print_objfile_statistics): Print statistics on the
6500 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6502 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6504 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6505 (REGISTER_U_ADDR): Delete definition.
6506 (arm_register_u_addr): Delete declaration.
6508 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6510 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6511 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6513 2002-05-14 Andrew Cagney <ac131313@redhat.com>
6515 * regcache.c (register_valid): Revise comments refering to "Not
6516 available" and "unavailable".
6517 * frame.c (frame_register_read): Ditto.
6518 * findvar.c (value_of_register): Ditto.
6520 2002-05-15 Andrew Cagney <cagney@redhat.com>
6522 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6523 (remote-sim.o): Update dependencies.
6524 (d10v-tdep.o): Specify dependencies.
6525 (sim_d10v_h): Define.
6527 2002-05-14 Jim Blandy <jimb@redhat.com>
6529 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6530 * macrotab.c (macro_lookup_inclusion, find_definition,
6531 new_macro_table): Same.
6533 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6534 not `! strcmp ()'. This is a dubious improvement.
6535 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6537 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6538 although it's not necessary, to avoid a warning.
6540 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6542 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6543 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6544 TYPE_INSTANCE_FLAGS.
6545 (struct main_type): New.
6546 (struct type): Move most members to struct main_type. Change
6547 cv_type and as_type to new type_chain member. Add instance_flags.
6548 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6549 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6550 (finish_cv_type): Remove prototype.
6551 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6553 (alloc_type_instance): New function.
6554 (smash_type): New function.
6555 (make_pointer_type, make_reference_type, make_function_type)
6556 (smash_to_member_type, smash_to_method_type): Call smash_type.
6557 (make_qualified_type): New function.
6558 (make_type_with_address_space): Call make_qualified_type.
6559 (make_cv_type): Likewise.
6560 (finish_cv_type): Remove unnecessary function.
6561 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6562 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6563 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6564 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6565 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6566 * hpread.c (hpread_read_struct_type): Likewise.
6567 * stabsread.c (read_struct_type): Likewise.
6569 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
6571 * configure.tgt: Add a catch all sh* target, for cases like
6572 sh[2,3,4]-elf and sh-hms.
6574 2002-05-14 Keith Seitz <keiths@redhat.com>
6576 * event-loop.c (create_file_handler): Don't do anything but
6577 update data when we are given a fd which we are already
6580 2002-05-14 Michal Ludvig <mludvig@suse.cz>
6582 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6583 (update_context): Use __func__ in warnings.
6585 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6587 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6588 and tcp_close to net_open and net_close.
6589 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6590 using UDP if requested. Don't try to disable Nagle on UDP
6592 * remote.c (remote_serial_open): New function. Warn about UDP.
6593 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6595 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6597 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6599 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6601 * configure.tgt: Remove sh-hms target.
6602 * MAINTAINERS: Don't list sh-hms as a separate target.
6604 2002-05-13 Jim Blandy <jimb@redhat.com>
6606 Add first preprocessor macro-expansion files.
6607 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6608 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6609 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6610 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6611 (COMMON_OBS): Add macrotab.o, macroexp.o.
6612 (macroexp.o, macrotab.o): New rules.
6614 2002-05-13 Andrew Cagney <ac131313@redhat.com>
6616 * config/m88k/tm-m88k.h: Update copyright.
6617 (m88k_target_write_pc): Declare
6618 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6619 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6620 (SHIFT_INST_REGS): Update definition.
6621 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6622 using old definition of TARGET_WRITE_PC.
6623 * regcache.c (generic_target_write_pc): Delete code handling
6625 * gdbarch.sh (NNPC_REGNUM): Delete.
6626 * gdbarch.h, gdbarch.c: Regenerate.
6628 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
6630 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6633 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
6635 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6636 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6637 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6639 * c-typeprint.c (cp_type_print_method_args): Likewise.
6640 (c_type_print_args): Likewise.
6641 * d10v-tdep.c (d10v_push_arguments): Likewise.
6642 (d10v_extract_return_value): Likewise.
6643 * expprint.c (print_subexp): Likewise.
6644 * gdbtypes.c (lookup_primitive_typename): Likewise.
6645 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6646 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6647 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6648 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6649 (TYPE_VECTOR): Likewise.
6650 * hpread.c (hpread_read_struct_type)
6651 (fix_static_member_physnames, fixup_class_method_type)
6652 (hpread_type_lookup): Likewise.
6653 * mdebugread.c (parse_symbol, parse_type): Likewise.
6654 * p-lang.c (is_pascal_string_type): Likewise.
6655 * valops.c (hand_function_call): Likewise.
6656 * x86-64-tdep.c (classify_argument): Likewise.
6658 * hpread.c (hpread_read_function_type)
6659 (hpread_read_doc_function_type): Call replace_type.
6660 * dstread.c (create_new_type): Delete.
6661 (decode_dst_structure, process_dst_function): Call alloc_type.
6662 Use type access macros.
6664 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6666 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6667 the're not supported by the current architecture.
6668 (i387_fill_fxsave): Likewise.
6670 2002-05-12 Fred Fish <fnf@redhat.com>
6672 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6673 sect_index_xxx members to index the first slot in section_offsets
6674 if all of the section_offsets are zero.
6676 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6678 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6679 checked in with last change.
6681 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6683 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6684 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6687 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
6689 * Makefile.in: Update dependencies.
6691 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6693 * language.c (local_hex_string_custom): Simplify. Do not depend
6694 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6696 * memattr.c (mem_info_command): Replace calls to
6697 longest_local_hex_string and longest_local_hex_string_custom.
6698 * buildsym.c (make_blockvector): Ditto.
6699 * solib.c (info_sharedlibrary_command): Ditto.
6700 * tracepoint.c (tracepoints_info): Ditto.
6701 * symtab.c (print_msymbol_info): Ditto.
6703 * language.c (local_hex_string): Delete.
6704 (local_hex_string_custom): Delete.
6705 (longest_local_hex_string): Rename to local_hex_string.
6706 (longest_local_hex_string_custom): Rename to
6707 local_hex_string_custom.
6708 * language.h (local_hex_string): Change parameter type to LONGEST.
6709 (local_hex_string_custom): Ditto.
6710 (longest_local_hex_string): Delete declaration.
6711 (longest_local_hex_string_custom): Ditto.
6713 * solib.c: Update copyright.
6714 * memattr.c: Update copyright.
6716 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6718 * arch-utils.h (legacy_register_to_value): Declare.
6719 (legacy_value_to_register): Declare.
6720 (legacy_convert_register_p): Declare.
6721 * arch-utils.c (legacy_register_to_value): New function.
6722 (legacy_value_to_register): New function.
6723 (legacy_convert_register_p): New function.
6725 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6726 (VALUE_TO_REGISTER): Define.
6727 (CONVERT_REGISTER_P): Define.
6728 * gdbarch.h, gdbarch.c: Regenerate.
6730 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6732 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6735 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
6736 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6738 * Makefile.in: Update dependencies for valops.c.
6739 * valops.c: Include "gdb_assert.h".
6740 (typecmp): Skip THIS parameter to methods.
6741 (find_method_list): Remove static_memfuncp argument,
6742 update callers. Check for stub methods.
6743 (find_value_oload_method_list): Don't set *static_memfuncp.
6744 (find_overload_match): Don't check for stub methods. Assert
6745 that methods are not stubbed. Handle static methods.
6746 (value_find_oload_method_list): Remove static_memfuncp argument.
6747 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6748 to the argument list for static stub methods.
6749 * value.h (value_find_oload_method_list): Update prototype.
6751 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6753 * arch-utils.h (generic_register_size): Declare.
6754 (generic_register_raw_size, generic_register_virtual_size): Delete
6756 * arch-utils.c (generic_register_raw_size): Delete.
6757 (generic_register_size): New function.
6758 (generic_register_virtual_size): Delete.
6760 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6761 default generic_register_size.
6762 * gdbarch.h, gdbarch.c: Re-generate.
6764 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6765 register_virtual_size.
6766 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6767 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6769 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6771 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6772 * gdbarch.h, gdbarch.c: Regenerate.
6773 * gnu-v3-abi.c: Update copyright.
6774 (vtable_address_point_offset): Update.
6775 (gnuv3_rtti_type): Update.
6776 (gnuv3_baseclass_offset): Update.
6777 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6778 (init_fetch_link_map_offsets): Update.
6779 * remote.c (get_remote_state): Update.
6781 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6783 * TODO: Remove value_headof/value_from_vtable_info comment.
6784 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6785 * values.c (value_headof, value_from_vtable_info): Delete.
6786 * value.h (value_from_vtable_info): Delete prototype.
6788 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6790 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6791 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6793 (gdb_assert_h): Define.
6794 (gdb_wait_h): Define.
6795 (gdb_regex_h): Define.
6797 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6799 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6800 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6802 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6804 * nbsd-tdep.c: Fix comment.
6806 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6808 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6809 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6810 (nbsd-tdep.o): New dependency list.
6811 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6813 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6814 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6815 * nbsd-tdep.c: New file.
6816 * nbsd-tdep.h: New file.
6817 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6819 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6820 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6821 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6822 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6824 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6826 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6827 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6828 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6829 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6830 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6831 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6833 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6835 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6836 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6837 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6838 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6839 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6840 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6841 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6843 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6845 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6846 fetch_elfcore_registers to...
6847 * i386nbsd-tdep.c: ...here.
6848 (i386nbsd_use_struct_convention): Rename to...
6849 (i386nbsd_aout_use_struct_convention): ...this.
6850 (i386nbsd_supply_reg): New function.
6851 (i386nbsd_fill_reg): New function.
6852 (fetch_core_registers): Use i386nbsd_supply_reg.
6853 (fetch_elfcore_registers): Likewise.
6854 (_initialize_i386nbsd_tdep): New function.
6855 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6856 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6857 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6858 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6859 (i386nbsd_aout_use_struct_convention): ...this.
6861 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6863 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6864 (store_inferior_registers): Use shnbsd_fill_reg.
6865 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6866 sh_nbsd_supply_register): Collapse into...
6867 (shnbsd_supply_reg): ...this.
6868 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6869 (shnbsd_fill_reg): ...this.
6870 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6871 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6872 (fetch_core_registers): Use shnbsd_supply_reg.
6873 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6874 (sh_nbsd_core_fns): Rename to...
6875 (shnbsd_core_fns): ...this.
6876 (sh_nbsd_elfcore_fns): Rename to...
6877 (shnbsd_elfcore_fns): ...this.
6878 (sh_nbsd_init_abi): Rename to...
6879 (shnbsd_init_abi): ...this.
6880 (_initialize_sh_nbsd_tdep): Rename to...
6881 (_initialize_shnbsd_tdep): ...this.
6882 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6883 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6884 sh_nbsd_fill_register): Remove prototypes.
6885 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6887 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6889 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6890 (i387-nat.o): Delete dependency list.
6891 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6892 (x86-64-linux-nat.o): Likewise.
6893 * i387-nat.c: Delete file, moving contents to...
6894 * i387-tdep.c: ...here.
6895 * i387-nat.h: Rename...
6896 * i387-tdep.h: ...to this.
6897 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6898 * i386-linux-nat.c: Likewise.
6899 * i386bsd-nat.c: Likewise.
6900 * i386gnu-nat.c: Likewise.
6901 * i386nbsd-nat.c: Likewise.
6902 * i386v4-nat.c: Likewise.
6903 * x86-64-linux-nat.c: Likewise.
6904 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6905 * config/i386/go32.mh (NATDEPFILES): Likewise.
6906 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6907 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6908 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6909 * config/i386/linux.mh (NATDEPFILES): Likewise.
6910 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6911 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6912 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6913 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6915 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6917 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6918 (alphanbsd-nat.o): Remove dependency list.
6919 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6920 * alphanbsd-nat.c: Delete. Contents moved to...
6921 * alphanbsd-tdep.c: ...here.
6922 (_initialize_alphanbsd_tdep): Register core functions.
6923 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6925 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6927 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6928 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6929 (alphanbsd-nat.o): Likewise.
6930 (alphabsd-tdep.o): New dependency list.
6931 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6932 (fill_gregset): Use alphabsd_fill_reg.
6933 (supply_fpregset): Use alphabsd_supply_fpreg.
6934 (fill_fpregset): Use alphabsd_fill_fpreg.
6935 (fetch_inferior_registers): Use struct reg and struct fpreg
6936 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6937 and alphabsd_supply_fpreg.
6938 (store_inferior_registers): Use struct reg and struct fpreg
6939 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6940 and alphabsd_fill_fpreg.
6941 * alphabsd-tdep.c: New file.
6942 * alphabsd-tdep.h: New file.
6943 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6944 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6945 alphabsd_supply_fpreg.
6946 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6947 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6949 2002-05-11 Eric Christopher <echristo@redhat.com>
6951 * mips-tdep.c (mips_double_register_type): Fix thinko.
6952 (mips_single_register_type): Ditto.
6953 * MAINTAINERS: Add self.
6955 2002-05-11 Mark Kettenis <kettenis@gnu.org>
6957 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6958 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6959 right thing on architectures with different endianness and/or
6962 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6964 From Christian Limpach <chris@Pin.LU>
6965 * configure.in: Change sed expression which comments out
6966 NATDEPFILES to also comment out continuation lines.
6967 * configure: Regenerate.
6969 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6971 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6974 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6976 * sh-tdep.c: Include correct file.
6978 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6980 New support for sh64-elf (sh5) target.
6982 * configure.tgt: For sh64-elf target, default to sh-elf.
6984 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6985 (struct gdbarch_tdep): Add new fields for new registers and ABI
6988 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6989 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6990 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6991 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6992 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6993 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6994 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6995 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6996 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6997 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6998 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6999 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
7000 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
7001 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
7002 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
7003 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
7004 sh64_get_gdb_regnum, sh64_media_reg_base_num,
7005 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
7006 sign_extend, sh64_nofp_frame_init_saved_regs,
7007 sh64_init_extra_frame_info, sh64_get_saved_register,
7008 sh64_extract_struct_value_address, sh64_pop_frame,
7009 sh64_push_arguments, sh64_extract_return_value,
7010 sh64_store_return_value, sh64_show_media_regs,
7011 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
7012 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
7013 sh_sh64_register_virtual_type,
7014 sh_sh64_register_convert_to_virtual,
7015 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
7016 sh64_register_read, sh64_pseudo_register_write,
7017 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
7018 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
7019 sh64_do_pseudo_register, sh_compact_do_registers_info,
7020 sh64_do_registers_info, sh_gdbarch_init): New functions.
7022 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7024 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
7026 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
7028 * linespec.c (decode_line_1): Check for a double quote after
7029 a filename correctly.
7031 2002-05-10 Jim Blandy <jimb@redhat.com>
7033 Properly track the size of the current objfile's .debug_line section.
7034 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
7035 (DWARF_LINE_SIZE): New macro.
7036 (dwarf2_build_psymtabs_hard): Record the line section's size in
7037 the partial symbol table.
7038 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
7041 2002-05-10 Petr Sorfa <petrs@caldera.com>
7043 * ia64-tdep.c: Handle breakpoints on L instruction type
7044 in MLX instruction bundle by moving the breakpoint to
7045 the third slot (X instruction type) as L holds only data.
7047 2002-05-10 Kevin Buettner <kevinb@redhat.com>
7049 * dbxread.c (discarding_local_symbols_complaint): New complaint.
7050 (process_one_symbol): Complain about discarding local symbols
7051 due to a misplaced N_LBRAC entry.
7053 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
7055 From Daniel Berlin <dan@cgsoftware.com>
7056 * linespec.c (find_toplevel_char): '<' and '>' also increase and
7057 decrease the depth we are at, in the case of templates.
7059 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7061 * mips-tdep.c (mips_float_register_type): New function.
7062 (mips_double_register_type): New function.
7063 (mips_print_register): Use them.
7064 (do_fp_register_row): Likewise.
7066 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7068 * signals/signals.c (signals): Remove conditional compilation around
7069 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
7070 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
7072 2002-05-09 Michael Snyder <msnyder@redhat.com>
7074 * remote-rdp.c (remote_rdp_can_run): Remove.
7076 2002-05-09 Tom Tromey <tromey@redhat.com>
7078 * jv-valprint.c (java_val_print): Handle `char' as a special case
7081 2002-05-09 Michael Snyder <msnyder@redhat.com>
7083 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
7084 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
7085 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
7086 str r(0123),[sp,#nn].
7087 (arm_skip_prologue): Ditto. Also make disassembly
7088 order-independent by placing it in a loop.
7090 2002-05-06 Michael Snyder <msnyder@redhat.com>
7092 * stabsread.c (read_type): Add recognition for new attribute:
7093 "@V;" means that an array type is actually a vector.
7094 This is analogous to the vector flag that's been added to dwarf2.
7096 2002-05-09 Mark Kettenis <kettenis@gnu.org>
7098 * i386-tdep.h (i386_abi): New enum.
7099 (struct gdbarch_tdep): Replace os_ident member with abi.
7100 (i386_gdbarch_register_os_abi): New prototype.
7101 * i386-tdep.c (i386_abi_names): New array.
7102 (process_note_abi_tag_sections): Removed.
7103 (process_note_sections): New function.
7104 (i386_elf_abi_from_note, i386_elf_abi): New functions.
7105 (struct i386_abi_handler): New struct.
7106 (i386_abi_handler_list): New variable.
7107 (i386_gdbarch_register_os_abi): New function.
7108 (i386_gdbarch_init): Adapt for the changes given above.
7110 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
7112 * gregset.h: Say "GNU/Linux".
7114 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
7116 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7117 (build_gdbtypes): Build builtin_type_v2_float.
7118 (_initialize_gdbtypes): Register new builtin type.
7120 2002-05-08 Andrew Cagney <ac131313@redhat.com>
7122 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7123 (clear_gdbarch_swap): New function.
7124 (initialize_non_multiarch): Call.
7125 (gdbarch_update_p): Before calling init(), swap out and clear the
7126 existing architecture.
7127 * gdbarch.c: Regenerate.
7129 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7131 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7134 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7136 * sh-nbsd-nat.c: Rename to...
7137 * shnbsd-nat.c: ...this.
7138 * sh-nbsd-tdep.c: Rename to...
7139 * shnbsd-tdep.c: ...this.
7140 * sh-nbsd-tdep.h: Rename to...
7141 * shnbsd-tdep.h: ...this.
7142 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7143 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7145 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
7147 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7148 concatenation for command help messages.
7150 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7152 * NEWS: Note new sh*-*-netbsdelf* configuration.
7153 * configure.host: Set gdb_host_cpu to sh for all sh*.
7154 (sh*-*-netbsdelf*): New host.
7155 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7156 (sh*-*-netbsdelf*): New target.
7157 * sh-nbsd-nat.c: New file.
7158 * sh-nbsd-tdep.c: New file.
7159 * sh-nbsd-tdep.h: New file.
7160 * config/sh/nbsd.mh: New file.
7161 * config/sh/nbsd.mt: New file.
7162 * config/sh/nm-nbsd.h: New file.
7163 * config/sh/tm-nbsd.h: New file.
7165 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7167 * sh-tdep.c (sh_osabi_names): Declare.
7168 (process_note_abi_tag_sections): New function.
7169 (get_elfosabi): Ditto.
7170 (sh_gdbarch_register_os_abi): Ditto.
7171 (sh_dump_tdep): Ditto.
7172 _initialize_sh_tdep): Use gdbarch_register to register
7173 sh_gdbarch_init and sh_dump_tdep.
7174 * config/sh/tm-sh.h (sh_osabi): Declare.
7175 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7177 2002-05-07 Andrew Cagney <ac131313@redhat.com>
7179 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7180 (thumb_scan_prologue): Ditto.
7181 (arm_find_callers_reg): Ditto.
7182 (arm_frame_chain): Ditto.
7183 (arm_init_extra_frame_info): Ditto.
7184 (arm_frame_saved_pc): Ditto.
7185 (arm_pop_frame): Ditto.
7186 (arm_push_return_address): New function.
7187 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7188 call_dummy_location, call_dummy_breakpoint_offset_p,
7189 call_dummy_breakpoint_offset, call_dummy_p,
7190 call_dummy_stack_adjust_p, call_dummy_words,
7191 sizeof_call_dummy_words, call_dummy_start_offset,
7192 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7193 call_dummy_address, push_return_address and push_dummy_frame for
7194 generic dummy frames.
7196 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7198 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7199 size computation for alloca.
7200 (sh_fp_frame_init_saved_regs): Likewise.
7202 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
7204 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7205 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
7206 * arm-tdep.c (arm_store_return_value): Use them.
7207 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7208 * remote-rdp.c (remote_rdp_fetch_register): Use
7209 ARM_MAX_REGISTER_RAW_SIZE.
7210 (remote_rdp_store_register): Likewise.
7212 2002-05-07 Michal Ludvig <mludvig@suse.cz>
7214 * dwarf2cfi.c: Code cleanup, removed unused variables,
7215 added default labels to switch {} statements.
7216 * x86-64-tdep.c: Ditto.
7217 * x86-64-linux-nat.c: Ditto.
7219 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7221 * solib.h: Protect against multiple inclusion.
7223 2002-05-06 Jim Blandy <jimb@redhat.com>
7225 Add first preprocessor macro-expansion files.
7226 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7227 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7228 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7229 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7230 (COMMON_OBS): Add macrotab.o, macroexp.o.
7231 (macroexp.o, macrotab.o): New rules.
7233 Separate the job of reading the line number info statement program
7234 header (...expialidocious) out into its own function.
7235 * dwarf2read.c (struct line_head, struct filenames, struct
7236 directories): Replace with...
7237 (struct line_header): New structure, containing the full
7238 contents of the statement program header, including the
7239 include directory and file name tables.
7240 (read_file_scope): If we have line number info, instead of just
7241 calling dwarf_decode_lines to do all the work, call
7242 dwarf_decode_line_header first to get a `struct line_header'
7243 containing the data in the statement program header, and then
7244 pass that to dwarf_decode_lines, which will pick up where that
7245 left off. Be sure to clean up the `struct line_header' object.
7246 (dwarf_decode_line_header, free_line_header, add_include_dir,
7247 add_file_name): New functions.
7248 (dwarf_decode_lines): Move all the code to read the statement
7249 program header into dwarf_decode_line_header. Take the line
7250 header it built as the first argument, instead of the offset to
7251 the compilation unit's line number info. Use the new `struct
7252 line_header' type instead of the old structures. No need to do
7253 cleanups here now, since we don't allocate anything.
7254 (dwarf2_statement_list_fits_in_line_number_section,
7255 dwarf2_line_header_too_long): New complaints.
7257 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
7259 * gdbtypes.c (init_vector_type): New function.
7260 (build_builtin_type_vec128): Simplify the representation of SIMD
7262 (build_gdbtypes): Initialize new builtin vector types.
7263 (_initialize_gdbtypes): Register new vector types with gdbarch.
7264 (builtin_type_v4_float, builtin_type_v4_int32,
7265 builtin_type_v8_int16, builtin_type_v16_int8,
7266 builtin_type_v2_int32, builtin_type_v4_int16,
7267 builtin_type_v8_int8): New (renamed) SIMD types.
7269 2002-05-06 Mark Kettenis <kettenis@gnu.org>
7271 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7272 (i387_fill_fxsave): Likewise.
7274 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
7276 * alpha-tdep.c (alpha_extract_return_value): Don't use
7277 non-constant array size in prototype.
7279 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7281 From Brian Taylor <briant at model dot com>:
7282 * ui-out.c (ui_out_field_core_addr): Use the function
7283 longest_local_hex_string_custom'to format addresses > 32 bits
7286 * ui-out.c (ui_out_field_core_addr): Update comment.
7288 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7290 * stack.c (select_and_print_frame): Make static. Delete the
7292 (func_command): Update call.
7293 (select_frame_command): Delete code computing the frame level.
7294 * frame.h (select_and_print_frame): Delete declaration.
7296 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7298 * sparc-tdep.c (sparc_get_saved_register): Comment why
7299 get_prev_frame call is safe.
7301 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7303 * frame.h (select_frame): Delete level parameter.
7304 * stack.c (select_frame): Update. Use frame_relative_level to
7305 obtain the frame's level.
7306 (select_and_print_frame): Update call.
7307 (select_frame_command): Ditto.
7308 (up_silently_base): Ditto.
7309 (down_silently_base): Ditto.
7310 * ocd.c (ocd_start_remote): Ditto.
7311 * remote-rdp.c (remote_rdp_open): Ditto.
7312 * remote-mips.c (mips_initialize): Ditto.
7313 (common_open): Ditto.
7314 * remote-e7000.c (e7000_start_remote): Ditto.
7315 * m3-nat.c (select_thread): Ditto.
7316 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7317 (child_get_current_exception_event): Ditto.
7318 * varobj.c (varobj_create): Ditto.
7319 (varobj_update): Ditto.
7320 (c_value_of_root): Ditto.
7321 * tracepoint.c (finish_tfind_command): Ditto.
7322 * corelow.c (core_open): Ditto.
7323 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7324 * thread.c (info_threads_command): Ditto.
7325 (switch_to_thread): Ditto.
7326 * infrun.c (normal_stop): Ditto.
7327 (restore_selected_frame): Ditto.
7328 (restore_inferior_status): Ditto.
7329 * breakpoint.c (insert_breakpoints): Ditto.
7330 (watchpoint_check): Ditto.
7331 (bpstat_stop_status): Ditto.
7332 (do_enable_breakpoint): Ditto.
7333 * blockframe.c (flush_cached_frames): Ditto.
7334 (reinit_frame_cache): Ditto.
7336 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7338 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7341 2002-05-04 Jim Blandy <jimb@redhat.com>
7343 * gdbtypes.c (replace_type): Doc fix.
7345 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7347 * valprint.c (strcat_longest): Delete commented out function.
7350 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7352 * MAINTAINERS: Mark a29k as deleted.
7353 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7354 Move new configurations to the top.
7355 * configure.tgt: Remove a29k.
7356 * config/a29k/tm-vx29k.h: Delete.
7357 * config/a29k/vx29k.mt: Delete.
7358 * config/a29k/tm-a29k.h: Delete.
7359 * config/a29k/a29k-udi.mt: Delete.
7360 * config/a29k/a29k.mt: Delete.
7361 * a29k-tdep.c: Delete.
7362 * remote-udi.c: Delete.
7363 * remote-mm.c: Delete.
7364 * remote-eb.c: Delete.
7365 * remote-adapt.c: Delete.
7366 * Makefile.in: Remove obsolete code.
7367 * config/s390/s390x.mt: Ditto.
7368 * config/s390/s390.mt: Ditto.
7369 * config/sparc/sparclynx.mh: Ditto.
7370 * config/sparc/linux.mh: Ditto.
7371 * config/pa/hppaosf.mh: Ditto.
7372 * config/pa/hppabsd.mh: Ditto.
7373 * config/ns32k/nbsd.mt: Ditto.
7374 * config/mips/vr5000.mt: Ditto.
7375 * config/m68k/sun3os4.mh: Ditto.
7376 * config/m68k/nbsd.mt: Ditto.
7377 * config/m68k/m68klynx.mh: Ditto.
7378 * config/m32r/m32r.mt: Ditto.
7379 * config/i386/x86-64linux.mt: Ditto.
7380 * config/i386/nbsdelf.mt: Ditto.
7381 * config/i386/nbsd.mt: Ditto.
7382 * config/i386/i386lynx.mh: Ditto.
7384 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7386 * target.c (debug_print_register): New function. Handle oversize
7388 (debug_to_fetch_registers): Call.
7389 (debug_to_store_registers): Call.
7391 2002-05-03 Jim Blandy <jimb@redhat.com>
7393 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7394 (read_type): Doc fix.
7395 * gdbtypes.c (replace_type): Doc fix.
7397 * stabsread.c (multiply_defined_struct): New complaint.
7398 (read_struct_type): If the type we were passed isn't empty, or
7399 incomplete, don't read the new struct type into it; complain,
7400 and return the original type unchanged. Take a new `type_code'
7401 argument, which is the type code for the new type.
7402 (read_type): Rather than storing the type's type code here, pass
7403 it as an argument to read_struct_type, and let that take care of
7404 storing it. That way, we don't overwrite the original type code,
7405 so read_struct_type can use it to decide whether we're overwriting
7406 something we shouldn't.
7407 (complain_about_struct_wipeout): New function.
7409 2002-05-03 Andrew Cagney <ac131313@redhat.com>
7411 * gdbarch.sh: Assert that gdbarch is non-NULL.
7412 * gdbarch.c: Regenerate.
7414 2002-05-03 Jason Merrill <jason@redhat.com>
7416 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7419 2002-05-03 Michal Ludvig <mludvig@suse.cz>
7421 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7422 (x86_64_dwarf2gdb_regno_map_length),
7423 (x86_64_dwarf2_reg_to_regnum): Added.
7424 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7425 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7426 (_initialize_x86_64_tdep): Synced with the change above.
7427 (x86_64_skip_prologue): Reformulated message.
7429 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7431 * f-exp.y: Also use new prev_lexptr variable
7432 to improve error reporting. Based on Michael Snyder
7433 2002-04-24 dated patch to c-exp.y.
7434 * jv-exp.y: Likewise.
7435 * m2-exp.y: Likewise.
7437 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
7439 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7440 we are dealing with vectors.
7442 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7444 * config/m68k/tm-nbsd.h: Obvious fix,
7445 correct machine name.
7447 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7449 * p-typeprint.c (pascal_type_print_base): Add support
7450 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7452 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7454 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7455 for fondamental pascal 'char' type.
7457 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7459 * p-lang.h (is_pascal_string_type): Declaration changed,
7460 new sixth argument of type char ** added.
7461 * p-lang.c (is_pascal_string_type): Implementation
7462 changed. Args length_pos, length_size, string_pos, char_size
7463 can now be NULL. New argument arrayname set to the field
7464 name of the char array. Return value set to char array
7465 field index plus one.
7466 * p-valprint.c (pascal_val_print): Adapt to new declaration of
7467 is_pascal_string_type function.
7469 2002-05-02 Andrew Cagney <cagney@redhat.com>
7471 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7472 <cagney@redhat.com> change.
7473 * gdbarch.c: Regenerate.
7475 2002-05-02 Andrew Cagney <cagney@redhat.com>
7477 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7478 before probing for a new one. Detect errorenous gdbarch_init
7480 * gdbarch.c: Regenerate.
7482 2002-05-01 Andrew Cagney <cagney@redhat.com>
7484 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7485 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7486 * config/v850/tm-v850.h: Ditto. Update copyright.
7488 2002-04-30 Andrew Cagney <ac131313@redhat.com>
7490 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7493 2002-04-30 Michael Snyder <msnyder@redhat.com>
7495 * arm-tdep.c: Whitespace clean-ups.
7496 (arm_skip_prologue): Fix thinko; two lines
7497 should have been removed as part of 4/24 change.
7499 2002-04-30 Kevin Buettner <kevinb@redhat.com>
7501 * rs6000-tdep.c: Added comment describing how fpscr register
7502 numbers were chosen.
7504 2002-04-30 Michael Snyder <msnyder@redhat.com>
7506 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7508 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7510 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7511 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7512 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7514 2002-04-29 Kevin Buettner <kevinb@redhat.com>
7516 From Louis Hamilton <hamilton@redhat.com>:
7517 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7518 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7519 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7520 not bfd-private xcoff data, to determine wordsize.
7521 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7523 2002-04-29 Andrew Cagney <ac131313@redhat.com>
7525 GDB 5.2 released from 5.2 branch.
7527 2002-04-29 Michal Ludvig <mludvig@suse.cz>
7529 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7530 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7531 (x86_64_register_info_table): Added comments with register numbers.
7533 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7535 * rs6000-tdep.c (rs6000_extract_return_value,
7536 rs6000_store_return_value): Handle returning vectors.
7537 (rs6000_gdbarch_init): Use
7538 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7539 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7541 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7543 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7544 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7546 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7548 * hpread.c (hpread_psymtab_to_symtab_1,
7549 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7550 with fprintf_unfiltered (gdb_stderr,...).
7552 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7554 * remote-array.c (printf_monitor, write_monitor,
7555 array_insert_breakpoint, array_remove_breakpoint ):
7556 Replace fprintf (stderr,...
7557 with fprintf_unfiltered (gdb_stderr,....
7558 * remote-es.c: Likewise.
7559 * remote-os9k.c: Likewise.
7560 * remote-st.c: Likewise.
7562 2002-04-28 Andreas Schwab <schwab@suse.de>
7564 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7565 linux-proc.o and gcore.o.
7567 2002-04-26 Michal Ludvig <mludvig@suse.cz>
7569 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7570 code without frame pointers.
7572 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7574 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7577 2002-04-26 Ben Elliston <bje@redhat.com>
7579 * target.c (do_xfer_memory): Correct reference to the new option
7580 "trust-readonly-sections".
7582 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
7584 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7585 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7586 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7588 (read_array_type): Record the fact that this array type is really a
7589 vector (i.e. are passed in by value).
7591 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7593 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7594 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7595 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7596 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7597 * alpha-linux-tdep.c: Include frame.h.
7598 (alpha_linux_sigcontext_addr): New function.
7599 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7600 alpha_linux_sigcontext_addr.
7601 * alpha-osf1-tdep.c: Include gdbcore.h.
7602 (alpha_osf1_sigcontext_addr): New function.
7603 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7604 alpha_osf1_sigcontext_addr.
7605 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7606 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7608 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7610 * stack.c (selected_frame_level):
7611 (select_frame): Do not set selected_frame_level.
7612 * frame.h (selected_frame_level): Delete declaration.
7614 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7616 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7617 convert_from_func_ptr-addr when AIX / PowerOpen.
7619 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7621 * valops.c (hand_function_call): Call
7622 generic_save_call_dummy_addr.
7623 * frame.h (generic_save_call_dummy_addr): Declare.
7624 * blockframe.c (struct dummy_frame): Add fields call_lo and
7626 (generic_find_dummy_frame): Check for PC in range call_lo to
7627 call_hi instead of entry_point_address.
7628 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7629 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7630 (generic_save_call_dummy_addr): New function.
7632 2002-04-24 David S. Miller <davem@redhat.com>
7634 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7635 sparc_skip_prologue.
7636 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7637 information to find prologue when possible.
7638 (sparc_prologue_frameless_p): Call examine_prologue directly.
7639 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7640 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7642 (SKIP_PROLOGUE): Likewise.
7644 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7646 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7647 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7648 indicate that the condition it was testing is always true.
7649 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7650 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7651 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7653 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7655 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7656 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7657 tdep->jb_pc and tdep->jb_elt_size.
7658 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7659 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7660 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7661 * alpha-nat.c (get_longjmp_target): Remove.
7662 (JB_ELEMENT_SIZE): Ditto.
7664 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7665 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7666 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7667 to alpha_get_longjmp_target.
7668 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7669 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7670 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7672 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7674 * README: Update to GDB 5.2.
7676 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7678 * gdbarch.sh (LC_ALL): Set to `c'.
7680 2002-04-25 Theodore A. Roth <troth@verinet.com>
7682 * avr-tdep.c: Ran through gdb_indent.sh.
7684 2002-04-25 Theodore A. Roth <troth@verinet.com>
7686 * MAINTAINERS: Add myself as AVR maintainer.
7687 * NEWS: Note new target avr.
7689 2002-04-25 Theodore A. Roth <troth@verinet.com>
7691 * Makefile.in: Add support for AVR target.
7692 * configure.tgt: Add support for AVR target.
7693 * avr-tdep.c: New file
7694 * config/avr/avr.mt: New file.
7696 2002-04-25 Theodore A. Roth <troth@verinet.com>
7698 * MAINTAINERS: Add myself to write-after-approval.
7700 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7702 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7703 with fprintf_unfiltered (gdb_stderr,....
7705 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7708 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7710 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7712 * p-exp.y: Also use new prev_lexptr variable
7713 to improve error reporting. Based on Michael Snyder
7714 2002-04-24 dated patch to c-exp.y.
7716 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7718 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7719 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7720 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7722 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7724 (FUNCTION_START_OFFSET): Remove.
7725 (BREAKPOINT): Ditto.
7727 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7729 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7732 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7734 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7735 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7736 alpha_linux_pc_in_sigtramp.
7737 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7738 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7739 alpha_osf1_pc_in_sigtramp.
7740 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7741 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7742 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7743 alphafbsd_pc_in_sigtramp.
7744 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7745 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7746 alphanbsd_pc_in_sigtramp.
7747 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7748 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7750 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7752 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7754 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7756 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7758 (alphanbsd-nat.o): New dependency list.
7759 (alphanbsd-tdep.o): Ditto.
7760 * NEWS: Note new native NetBSD/alpha configuration.
7761 * alphanbsd-nat.c: New file.
7762 * alphanbsd-tdep.c: Ditto.
7763 * configure.host (alpha*-*-netbsd*): New host.
7764 * configure.tgt (alpha*-*-netbsd*): New target.
7765 * config/alpha/nbsd.mh: New file.
7766 * config/alpha/nbsd.mt: Ditto.
7767 * config/alpha/nm-nbsd.h: Ditto.
7768 * config/alpha/tm-nbsd.h: Ditto.
7770 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7772 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7773 (alpha-osf1-tdep.o): New dependency list.
7774 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7775 and skip_sigtramp_frame members.
7776 * alpha-linux-tdep.c: Include gdbcore.h.
7777 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7778 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7779 * alpha-osf1-tdep.c: New file.
7780 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7782 (alpha_frame_past_sigtramp_frame): New function.
7783 (alpha_dynamic_sigtramp_offset): Ditto.
7784 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7785 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7786 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7787 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7788 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7789 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7790 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7791 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7792 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7793 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7794 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7795 to find_solib_trampoline_target.
7796 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7797 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7798 (SKIP_TRAMPOLINE_CODE): Remove.
7799 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7800 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7801 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7802 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7803 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7804 (PROC_SIGTRAMP_MAGIC): Ditto.
7805 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7806 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7807 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7808 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7809 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7811 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7813 * NEWS: Note that Alpha targets are now multi-arch.
7815 2002-04-24 Michael Snyder <msnyder@redhat.com>
7817 * parser-defs.h (prev_lexptr): New external variable.
7818 * parse.c (parse_exp_1): Set prev_lexptr to null before
7819 calling the language-specific parser.
7820 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7821 (yyerror): Use prev_lexptr in error reporting.
7823 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
7825 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7826 * gregset.h: If FILL_FPXREGSET is defined, provide
7827 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7828 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7829 is defined, call fill_fpxregset.
7831 2002-04-24 Roland McGrath <roland@frob.com>
7833 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7834 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7835 (supply_gregset, supply_fpregset): New functions.
7837 * gnu-nat.c (gnu_find_memory_regions): New function.
7838 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7839 (gnu_xfer_memory): Add a cast.
7841 2002-04-24 Michael Snyder <msnyder@redhat.com>
7843 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
7844 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7845 of argument regs ("str r(0123), [r11, #-nn"]).
7846 (arm_skip_prologue): Better handling for frameless functions.
7847 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7848 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7850 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7852 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7853 NUM_PSEUDO_REGS can be used.
7855 2002-04-24 Andrew Cagney <ac131313@redhat.com>
7857 * arch-utils.h: Update copyright.
7859 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7860 * gdbarch.h, gdbarch.c: Re-generate.
7862 * inferior.h (IN_SIGTRAMP): Delete definition.
7863 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7864 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7866 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7867 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7868 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7869 (find_proc_framesize): Ditto.
7870 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7871 (alpha_init_extra_frame_info): Ditto.
7872 * infrun.c (handle_inferior_event): Ditto.
7873 (handle_inferior_event): Ditto.
7874 (check_sigtramp2): Ditto.
7875 * blockframe.c (create_new_frame): Ditto.
7876 (get_prev_frame): Ditto.
7877 * ppc-linux-tdep.c: Update comments.
7878 * i386-linux-tdep.c: Update comments.
7879 * breakpoint.c (bpstat_what): Update comment.
7881 2002-04-24 David S. Miller <davem@redhat.com>
7883 * i960-tdep.c (register_in_window_p): New function.
7884 (i960_find_saved_register): Use it instead of
7885 REGISTER_IN_WINDOW_P.
7886 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7888 * symtab.h (find_stab_function_addr): Kill extern.
7889 * minsyms.c (find_stab_function_addr): Remove from here...
7890 * dbxread.c: ... to here, and mark it static.
7892 2002-04-20 David S. Miller <davem@redhat.com>
7894 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7895 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7897 2002-04-21 David S. Miller <davem@redhat.com>
7899 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7900 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7901 (vx_write_register): Likewise.
7903 2002-04-23 J. Brobecker <brobecker@gnat.com>
7905 * source.c (is_regular_file): New function.
7906 (openp): Check wether file to open is a regular file
7907 to avoid opening directories.
7909 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7911 * findvar.c (extract_signed_integer): Cast printf argument
7912 to suppress format warning.
7913 (extract_unsigned_integer): Likewise.
7914 * infcmd.c (registers_info): Likewise.
7915 * top.c (get_prompt_1): Likewise.
7916 * valops.c (value_assign): Likewise.
7917 * valprint.c (print_decimal): Likewise.
7919 2002-04-22 H.J. Lu (hjl@gnu.org)
7921 * c-exp.y (typebase): Support
7923 [long|long long|short] [signed|unsigned] [int|]
7927 signed [long|long long|short] int
7929 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7931 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7933 * vax-tdep.h: New file.
7934 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7935 Make several routines static.
7936 (vax_get_saved_register): New function.
7937 (vax_gdbarch_init): New function.
7938 (_initialize_vax_tdep): Register vax_gdbarch_init.
7939 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7940 Remove macros now under the control of gdbarch.
7942 2002-04-22 Michael Snyder <msnyder@redhat.com>
7944 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7945 Some whitespace and coding standards tweaks.
7947 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7949 * vax-tdep.c: Include regcache.h.
7950 (vax_call_dummy_words): New.
7951 (sizeof_vax_call_dummy_words): New.
7952 (vax_fix_call_dummy): New function.
7953 (vax_saved_pc_after_call): Ditto.
7954 * config/vax/tm-vax.h: Don't include regcache.h.
7955 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7956 (CALL_DUMMY): Remove.
7957 (CALL_DUMMY_WORDS): Define.
7958 (SIZEOF_CALL_DUMMY_WORDS): Define.
7959 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7961 2002-04-18 Michael Snyder <msnyder@redhat.com>
7963 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7965 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7967 * vax-tdep.c (vax_frame_chain): New function.
7968 (vax_push_dummy_frame): Ditto.
7969 (vax_pop_frame): Ditto.
7970 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7971 (FRAMELESS_FUNCTION_INVOCATION): Use
7972 generic_frameless_function_invocation_not.
7973 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7974 (POP_FRAME): Use vax_pop_frame.
7976 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7978 * vax-tdep.c (vax_store_struct_return): New function.
7979 (vax_extract_return_value): Ditto.
7980 (vax_store_return_value): Ditto.
7981 (vax_extract_struct_value_address): Ditto.
7982 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7983 vax_store_struct_return.
7984 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7985 (STORE_RETURN_VALUE): Use vax_store_return_value.
7986 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7988 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7990 * vax-tdep.c (vax_frame_saved_pc): New function.
7991 (vax_frame_args_address_correct): Ditto.
7992 (vax_frame_args_address): Ditto.
7993 (vax_frame_locals_address): Ditto.
7994 (vax_frame_num_args): Move code to be in proximity to
7995 other frame-related functions.
7996 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7997 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7998 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7999 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
8000 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
8002 2002-04-22 H.J. Lu (hjl@gnu.org)
8004 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
8007 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8009 * vax-tdep.c (vax_frame_init_saved_regs): New function.
8010 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
8011 (FRAME_INIT_SAVED_REGS): New macro.
8013 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8015 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
8017 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8019 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
8021 (fetch_osf_core_registers): Likewise.
8022 (supply_gregset): Likewise.
8024 2002-04-22 J. Brobecker <brobecker@gnat.com>
8026 * symfile.h (get_section_index): Define.
8027 * symfile.c (get_section_index): New function.
8028 * mdebugread.c (SC_IS_SBSS): New macro.
8029 (SC_IS_BSS): Return true for the scBss storage class only, as
8030 the scSBss storage class refers to the .sbss section.
8031 (parse_partial_symbols): Discard the symbols which associated
8032 section does not exist.
8033 Make sure to use the .sbss section index for symbols which
8034 storage class is scBss, rather than using the .bss section index.
8036 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8038 * vax-tdep.c: Update copyright years.
8039 (vax_register_name): New function.
8040 (vax_register_byte): Ditto.
8041 (vax_register_raw_size): Ditto.
8042 (vax_register_virtual_size): Ditto.
8043 (vax_register_virtual_type): Ditto.
8044 * config/vax/tm-vax.h: Update copyright years.
8045 (REGISTER_NAMES): Remove.
8046 (REGISTER_NAME): Define.
8047 (REGISTER_BYTE): Use vax_register_byte.
8048 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
8049 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
8050 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
8052 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8054 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
8056 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
8058 2002-04-21 David S. Miller <davem@redhat.com>
8060 * arch-utils.c (generic_prologue_frameless_p): Kill
8061 SKIP_PROLOGUE_FRAMELESS_P code.
8062 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8064 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
8065 * arc-tdep.c (arc_prologue_frameless_p): Implement.
8066 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8068 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
8069 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
8070 (sparc_gdbarch_init): Pass it to
8071 set_gdbarch_prologue_frameless_p.
8073 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8075 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
8076 (alphabsd-nat.o): New dependency list.
8078 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8080 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8082 (alpha-linux-tdep.o): New dependency list.
8083 (alphafbsd-tdep.o): Likewise.
8085 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8087 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
8089 * alpha-tdep.c: ...from here.
8090 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8092 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8094 * config/alpha/tm-alpha.h: Move alpha_software_single_step
8095 prototype from here...
8096 * alpha-tdep.h: ...to here.
8098 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8100 * frame.h (selected_frame_level): Document as deprecated.
8101 (frame_relative_level): Declare.
8102 * stack.c (frame_relative_level): New function.
8103 (selected_frame_level): Document as deprecated.
8104 (select_frame): Do not set the selected_frame_level.
8106 * stack.c (frame_info, record_selected_frame): Update.
8107 (frame_command, current_frame_command): Update.
8108 (up_silently_base, up_command, down_silently_base): Update.
8109 (down_command): Update.
8110 * inflow.c (kill_command): Update.
8111 * tracepoint.c (finish_tfind_command): Update.
8112 * corelow.c (core_open): Update.
8113 * thread.c (info_threads_command): Update.
8114 (do_captured_thread_select): Update.
8115 * infcmd.c (finish_command): Update.
8116 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8118 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8120 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8122 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8124 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8127 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8129 * alphafbsd-tdep.c: Update copyright years. Include
8131 (alphafbsd_use_struct_convention): Make static.
8132 (alphafbsd_init_abi): New function.
8133 (_initialize_alphafbsd_tdep): New function.
8134 * config/alpha/tm-fbsd.h: Update copyright years.
8135 (USE_STRUCT_CONVENTION): Remove.
8137 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8139 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8140 an Alpha ABI variant.
8141 (alpha_abi_handler_list): Declare.
8142 (alpha_gdbarch_register_os_abi): New function.
8143 (alpha_gdbarch_init): Give registered ABI variant handlers a
8144 chance to tweak the gdbarch once we have set up defaults.
8145 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8147 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8149 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8150 to standard_coerce_float_to_double.
8151 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8153 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8155 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8156 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8157 from gdbarch_tdep rather than a constant.
8158 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8159 the default text address for all Alpha Unix ABIs.
8160 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8161 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8163 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8165 * alpha-tdep.h: New file. Includes several Alpha target constants
8167 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8168 let gdbarch deal with.
8169 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8170 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8172 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8173 Alpha target register names.
8174 * alphabsd-nat.c: Likewise.
8175 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8176 Alpha target register names. Make serveral routines static.
8177 (alpha_get_saved_register): New function.
8178 (alpha_abi_names): New.
8179 (process_note_abi_tag_sections): New function.
8180 (get_elfosabi): New function.
8181 (alpha_gdbarch_init): New function.
8182 (alpha_dump_tdep): New function.
8183 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8185 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8187 * frame.c (find_saved_register): Delete #ifdef
8188 HAVE_REGISTER_WINDOWS code.
8189 * config/sparc/tm-sparc.h: Update comments.
8190 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8192 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8194 * i960-tdep.c (i960_find_saved_register): New function.
8195 (i960_get_saved_register): New function.
8196 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8197 (i960_get_saved_register): Declare.
8198 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8200 2002-04-20 David S. Miller <davem@redhat.com>
8202 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8204 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8206 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8207 instead of NUM_PSEUDO_REGS.
8209 2002-04-20 David S. Miller <davem@redhat.com>
8211 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8212 GDB_MULTI_ARCH_PARTIAL
8213 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8214 define, let tm-sp64.h do it.
8216 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8218 * frame.c (find_saved_register): Avoid a NULL pointer
8219 dereference and actually walk the frame list.
8221 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8223 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8224 sorted in most most-recent-used order. Document.
8225 * gdbarch.h, gdbarch.c: Regenerate.
8227 2002-04-19 Andrew Cagney <ac131313@redhat.com>
8229 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8231 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8232 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8233 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8236 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
8239 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8240 (build_builtin_type_vec128): Ditto.
8241 (append_composite_type_field): Fix calculation of type length in
8244 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8246 * config/djgpp/README: Update.
8248 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8251 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8253 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8254 (alpha_setup_arbitrary_frame): ...to this.
8255 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8256 for alpha_setup_arbitrary_frame.
8258 2002-04-18 Andrew Cagney <cagney@redhat.com>
8260 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8261 * gdbarch.h, gdbarch.c: Regenerate.
8263 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8264 * target.h (memory_breakpoint_from_pc): Update declaration.
8265 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8267 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8268 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8269 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8270 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8271 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8272 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8273 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8274 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8275 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8276 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8277 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8278 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8280 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8282 * monitor.c (monitor_insert_breakpoint): Ditto.
8283 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8285 * config/mcore/tm-mcore.h: Update copyright.
8286 * mem-break.c: Ditto.
8287 * xstormy16-tdep.c: Ditto.
8289 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8291 * p-exp.y: Add precedence rule for '^' token.
8292 This removes the shift/reduce conflicts.
8293 Remove the comment concerning these shift/reduce conflicts.
8295 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
8297 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8298 (registers_powerpc_nofp): New register set for processors
8299 without floating point unit.
8301 2002-04-18 David S. Miller <davem@redhat.com>
8303 * MAINTAINERS: Add myself to write-after-approval.
8305 2002-04-17 Michael Snyder <msnyder@redhat.com>
8307 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8309 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8311 * rs6000-tdep.c (frame_initial_stack_address): Use
8312 frame_register_read to read the alloca_reg.
8314 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8316 * frame.c (find_saved_register): Find saved registers in the next
8320 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8322 * gdbarch.sh (LANG): Set to ``c''.
8324 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8326 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8328 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8330 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8333 * hpread.c (hpread_get_lntt): Add declaration.
8334 Also fix PR gdb/391.
8336 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8338 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8339 * aclocal.m4, configure: Re-generate.
8342 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8344 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8345 instead of tm_print_insn.
8347 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8349 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8351 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8353 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8354 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8355 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8357 2002-04-12 Don Howard <dhoward@redhat.com>
8359 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8360 max_user_call_depth.
8361 (init_cmd_lists): Initialize the new value;
8362 * cli/cli-script.c (execute_user_command): Limit the call depth of
8363 user defined commands. This avoids a core-dump when user commands
8364 are infinitly recursive.
8366 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8368 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8369 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8370 from tdep struct instead of DEFAULT_LR_SAVE.
8371 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8372 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8373 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8375 2002-04-12 Michael Snyder <msnyder@redhat.com>
8377 * Remote.c: Spelling fix.
8378 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8379 If no symbol found for "sbrk", try "_sbrk".
8380 (make_output_phdrs): Use bfd_section_name.
8381 (gcore_copy_callback): Use bfd_section_name.
8382 * eval.c: Indentation fix-ups.
8383 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8384 in case it gets applied to an address that is already
8385 in the instruction space.
8386 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8387 * symfile.c: Fix indentation, long lines.
8388 * source.c: White space fix-up.
8390 2002-04-12 Andrew Cagney <cagney@redhat.com>
8392 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8393 * frame.c (frame_register_read): New function. Return non-zero on
8395 (read_relative_register_raw_bytes_for_frame): Delete.
8396 (read_relative_register_raw_bytes): Delete.
8397 * frame.h (frame_register_read): Declare.
8398 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8400 * infcmd.c (do_registers_info): Ditto.
8401 * hppa-tdep.c: Ditto.
8402 * rs6000-tdep.c: Ditto.
8403 * h8500-tdep.c: Ditto.
8404 * mips-tdep.c: Ditto.
8405 * h8300-tdep.c: Ditto.
8406 * z8k-tdep.c: Ditto.
8408 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8410 From Jimi X <jimix@watson.ibm.com>:
8411 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8414 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8416 From Jimi X <jimix@watson.ibm.com>:
8417 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8420 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8422 From Jimi X <jimix@watson.ibm.com>:
8423 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8424 register sets for these processor variants.
8426 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
8428 * regformats/reg-ppc.dat: Support FPSCR.
8430 2002-04-11 Kevin Buettner <kevinb@redhat.com>
8432 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8433 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8434 Add fpscr as an invalid/unfetchable register.
8435 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8436 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8437 (fill_fpregset): Add support for register fpscr.
8438 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8439 (fill_gregset): Account for the fact that register ``mq'' might
8441 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8442 (registers_power): Add fpscr to register set at slot 71.
8443 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8444 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8446 2002-04-11 Michael Snyder <msnyder@redhat.com>
8448 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8449 * configure: Regenerate.
8450 * config.in: Regenerate.
8451 * acconfig.h: Add define for _SYSCALL32.
8452 * core-sol2.c: Remove #define _SYSCALL32.
8453 * solib-legacy.c: Remove #define _SYSCALL32.
8455 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8457 * stack.c (select_frame): Cleanup internal error message, do not
8460 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8462 * stack.c (select_frame): Check that selected_frame and the
8463 specified level are as expected.
8464 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8466 * frame.h (struct frame_info): Add field `level'. Update
8468 Work-in-progress PR gdb/464.
8470 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8472 * maint.c (maint_print_section_info): Rename print_section_info.
8473 (print_bfd_section_info, print_objfile_section_info): Update.
8474 * inferior.h (struct gdbarch): Add opaque declaration.
8475 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8476 * gdbarch.h: Regenerate.
8478 2002-04-10 Michal Ludvig <mludvig@suse.cz>
8480 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8481 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8482 (kernel_u_size): Added.
8483 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8484 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8486 2002-04-04 Jim Ingham <jingham@apple.com>
8488 * valarith.c (find_size_for_pointer_math): New function, either returns
8489 the size for a pointer's target, returns 1 for void *, or errors for
8491 (value_add, value_sub): use find_size_for_pointer_math.
8493 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8495 * linux-low.c (linux_look_up_symbols): New hook.
8496 (linux_target_ops): Add linux_look_up_symbols.
8497 * remote-utils.c (decode_address): New function.
8498 (look_up_one_symbol): New function.
8499 * server.c (handle_query): Call target look_up_symbols hook.
8500 * server.h (look_up_one_symbol): Add prototype.
8501 * target.h (struct target_ops): Add look_up_symbols hook.
8503 2002-04-09 Andrew Cagney <ac131313@redhat.com>
8505 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8506 override FP_REGNUM with frame->fp. Update copyright.
8507 * parse.c (num_std_regs, std_regs): Delete.
8508 (target_map_name_to_register): Do not search std_regs. Update
8509 function description.
8510 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8511 declarations. Update copyright.
8514 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8516 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8517 after the last symbol in a block.
8519 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8521 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8522 is non zero as a found symbol.
8524 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8526 * findvar.c: Include "builtin-regs.h".
8527 (value_of_register): Call value_of_builtin_reg when applicable.
8528 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8529 (target_map_name_to_register): Call
8530 builtin_reg_map_name_to_regnum.
8531 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8532 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8533 (builtin_regs_h): Define.
8534 (builtin-regs.o): New target.
8535 (findvar.o): Add $(builtin_regs_h).
8536 * builtin-regs.c, builtin-regs.h: New files.
8537 * std-regs.c: New file.
8538 Partial fix for PR gdb/251.
8540 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8542 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8543 it's no longer required.
8545 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8547 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8549 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8551 From Jimi X <jimix@watson.ibm.com>:
8552 * rs6000-tdep.c (rs6000_software_single_step): Use
8553 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8554 and size. Use target_insert_breakpoint() and
8555 target_remove_breakpoint() to insert and remove breakpoints
8556 instead of explicit memory reads and writes.
8558 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8560 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8561 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8562 ELF_OBJECT_FORMAT ifdef.
8564 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8566 From Jimi X <jimix@watson.ibm.com>:
8567 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8569 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8571 From Jimi X <jimix@watson.ibm.com>:
8572 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8573 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8575 2002-04-07 Mark Kettenis <kettenis@gnu.org>
8577 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8578 s/asprintf/xasprintf/.
8579 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8581 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8583 I believe Jeff Law denies responsability for this one:
8584 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8585 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8586 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8587 Work-around for PR gdb/366.
8589 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8591 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8592 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8593 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8595 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8597 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8598 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8601 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8603 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8606 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8608 * README (Reporting Bugs in GDB): Document the bug web page as the
8609 prefered way of submitting bugs.
8612 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8614 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8616 * gdbarch.h, gdbarch.c: Re-generate.
8618 2002-04-07 Andreas Schwab <schwab@suse.de>
8620 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8621 buffer to regcache_collect.
8623 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8625 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8626 * gdbarch.c, gdbarch.h: Re-generate.
8628 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8630 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8631 declaration. Fix -Werror.
8633 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
8635 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8636 * gdbarch.c: Regenerate.
8638 2002-04-05 Michael Snyder <msnyder@redhat.com>
8640 * breakpoint.c (clear_command): Rewrite middle section to
8641 combine two loops with identical control conditions.
8642 Add a cleanup to eliminate a memory leak.
8643 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8645 2002-04-05 H.J. Lu (hjl@gnu.org)
8647 * solib-svr4.c (bkpt_names): Add "__start".
8649 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8651 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8652 as test for 64 bit target.
8654 2002-04-05 Andrew Cagney <ac131313@redhat.com>
8656 * h8500-tdep.c (h8500_write_fp): Delete function.
8657 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8658 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8659 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8660 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8661 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8662 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8664 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8665 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8666 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8667 (d10v_write_fp): Delete function.
8668 * inferior.h (write_fp, generic_target_write_fp): Delete
8670 * regcache.c (generic_target_write_fp): Delete function.
8671 (write_fp): Delete function.
8672 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8673 * gdbarch.h, gdbarch.c: Regenerate.
8674 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8675 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8676 (sparc64_write_fp): Delete declaration.
8677 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8678 (h8500_write_fp): Delete declaration.
8680 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8682 * sparc-tdep.c (sparc64_write_fp): Delete.
8683 (sparc_push_dummy_frame): Replace write_fp call with code to store
8685 (sparc_gdbarch_init): Do not initialize write_fp.
8687 2002-04-05 Kevin Buettner <kevinb@redhat.com>
8689 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8692 2002-03-29 Jim Blandy <jimb@redhat.com>
8694 * stack.c (get_selected_block): Add new argument `addr_in_block',
8695 used to return the exact code address we used to select the block,
8697 * blockframe.c (get_frame_block, get_current_block): Same.
8698 * frame.h (get_frame_block, get_current_block,
8699 get_selected_block): Update declarations.
8700 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8701 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8703 2002-04-05 Michael Snyder <msnyder@redhat.com>
8705 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8708 2002-04-05 J. Brobecker <brobecker@gnat.com>
8710 * utils.c (xfullpath): New function.
8711 * defs.h (xfullpath): Add declaration.
8712 * source.c (openp): Use xfullpath in place of gdb_realpath to
8713 avoid resolving the basename part of filenames when the
8714 associated file is a symbolic link. This fixes a potential
8715 inconsistency between the filenames known to GDB and the
8716 filenames it prints in the annotations.
8717 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8718 to be able to match a filename with either the real filename, or
8719 the name of any symbolic link to this file.
8720 (lookup_partial_symtab): Ditto.
8722 2002-04-04 Michael Snyder <msnyder@redhat.com>
8724 * breakpoint.c: Add support for hardware breakpoints in overlays.
8725 (overlay_events_enabled): New state variable.
8726 (insert_breakpoints): Use overlay_events_enabled to decide
8727 whether to attempt to set a breakpoint at the overlay load addr.
8728 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8729 (remove_breakpoint): Use overlay_events_enabled to decide
8730 whether breakpoints need to be removed from overlay load addr.
8731 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8732 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8733 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8734 disable_overlay_breakpoints): Update overlay_events_enabled.
8736 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
8738 * dwarf2read.c (struct function_range): New.
8739 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8740 (check_cu_functions): New.
8741 (read_file_scope): Initialize global function lists.
8742 Call dwarf_decode_line after processing children.
8743 (read_func_scope): Add to global function list.
8744 (dwarf_decode_lines): Call check_cu_functions everywhere
8745 record_line is called. Call record_line with a linenumber
8746 of 0 to mark sequence ends.
8748 2002-04-04 Michal Ludvig <mludvig@suse.cz>
8750 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8751 change sync with glibc.
8753 2002-04-03 Jim Blandy <jimb@redhat.com>
8755 * configure.in: Call AC_C_INLINE.
8756 * configure: Regenerated.
8758 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
8760 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8761 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8763 2002-03-31 Mark Kettenis <kettenis@gnu.org>
8765 * NEWS: Mention gcore support on FreeBSD/i386.
8767 * fbsd-proc.c: New file.
8768 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8769 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8771 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8774 2002-03-29 Jim Blandy <jimb@redhat.com>
8776 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8777 unescaped newlines in string literals, but newer ones don't. So
8780 2002-03-26 Michael Snyder <msnyder@redhat.com>
8781 Andrew Cagney <cagney@redhat.com>
8783 * cli/cli-dump.c: New file. Dump memory to file,
8784 restore file to memory.
8785 * cli/cli-dump.h: New file.
8786 * Makefile.in: Add rules, dependencies for cli-dump.o.
8787 * NEWS: Mention new commands.
8789 2002-03-28 Michael Snyder <msnyder@redhat.com>
8791 * symfile.c (symbol_file_add): Move test for null symbols to later.
8793 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8795 From veksler at il.ibm.com:
8796 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8797 the xstrduped original path.
8800 2002-03-27 Michael Snyder <msnyder@redhat.com>
8802 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8803 * infcmd.c (_initialize_infcmd): Ditto.
8804 * language.c (_initialize_language): Ditto.
8805 * symfile.c (_initialize_symfile): Ditto.
8806 * top.c (_init_main): Ditto.
8807 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8809 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
8811 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8812 vector registers handling.
8813 (skip_prologue): Handle new AltiVec instructions. Fill in new
8814 fields of frame data.
8815 (frame_get_saved_regs): Fill in information for AltiVec registers.
8817 2002-03-27 Jim Blandy <jimb@redhat.com>
8819 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8820 a function; leave this macro here to invoke that function.
8821 (symbol_init_mangled_name): Declaration for that function.
8822 * symtab.c (symbol_init_mangled_name): New function.
8824 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8826 * valarith.c: Replace strerror with safe_strerror.
8827 * tracepoint.c: Ditto.
8829 * go32-nat.c: Ditto.
8833 2002-03-27 Andreas Schwab <schwab@suse.de>
8835 * event-top.c (command_line_handler): Remove useless if.
8837 2002-03-27 Andreas Jaeger <aj@suse.de>
8839 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8842 2002-03-27 Michal Ludvig <mludvig@suse.cz>
8844 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8845 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8846 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8847 (x86_64_linux_dr_get_status, supply_gregset),
8848 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8849 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8850 (x86_64_register_info_table): Add.
8851 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8852 (x86_64_register_raw_size, x86_64_register_virtual_type),
8853 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8854 general x86_64_register_info_table.
8855 (i386_gdbarch_init): gdbarch_register_bytes is now set
8856 dynamicaly during initialization.
8857 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8858 * gdbserver/linux-x86-64-low.c: Ditto.
8860 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8862 * gdbserver/server.c (main): Call target_signal_to_host_p
8863 and target_signal_to_host on signals received from the remote.
8864 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8865 target_signal_from_host on signals sent to the remote.
8866 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8867 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8869 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8871 * signals/signals.c: Include "server.h" in gdbserver build.
8872 (target_signal_from_name): Don't use STREQ.
8873 (_initialize_signals): Likewise. Don't include function in
8876 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8878 * signals.c: Moved to...
8879 * signals/signals.c: Here.
8880 * Makefile (signals.o): Update.
8882 2002-03-26 Jeff Law (law@redhat.com)
8884 * somread.c (som_symtab_read): Remove some commented out code and
8885 updated related comments. Do not set the minimal symbol table to
8886 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8887 in a dynamic executable.
8888 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8889 where we are unable to find the minimal symbol for the given
8892 2002-03-25 Jeff Law (law@redhat.com)
8894 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8896 2002-03-25 Michal Ludvig <mludvig@suse.cz>
8898 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8900 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8902 * command.h: Update copyright.
8903 (struct cmd_list_element): Replace definition with opaque
8905 (enum cmd_types): Document that it will eventually be moved to
8907 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8908 (MALLOCED_REPLACEMENT): Delete macro.
8909 * Makefile.in (cli_decode_h): Add $(command_h).
8910 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8911 * top.c: Include "cli/cli-decode.h".
8912 * completer.c: Include "cli/cli-decode.h".
8913 * maint.c: Include "cli/cli-decode.h".
8914 * cli/cli-decode.h: Include "command.h".
8915 (enum command_class): Delete.
8916 (enum cmd_types): Comment out.
8917 (enum cmd_auto_boolean): Delete.
8918 (enum var_types): Delete.
8920 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8922 * cli/cli-decode.c: Include "gdb_assert.h".
8923 (add_set_or_show_cmd): New static function.
8924 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8925 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8926 all fields, such as func, from the set command.
8928 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8930 * MAINTAINERS (sh-elf): Change warning flag to -w.
8932 2002-03-23 Andrew Cagney <cagney@redhat.com>
8934 * defs.h (error): Add printf format attribute.
8935 * thread-db.c (thread_from_lwp): Fix error format string.
8936 * stack.c (parse_frame_specification): Ditto.
8937 * cli/cli-decode.c (undef_cmd_error): Ditto.
8938 * scm-lang.c (scm_lookup_name): Ditto.
8939 * tracepoint.c (trace_error): Ditto.
8940 * remote-utils.c (usage): Ditto.
8941 * remote.c (compare_sections_command): Ditto.
8944 2002-03-22 Andrew Cagney <ac131313@redhat.com>
8946 * gdbtypes.c (append_composite_type_field): New function.
8947 (init_composite_type): New function.
8948 * gdbtypes.h (append_composite_type_field): Declare.
8949 (init_composite_type): Ditto.
8951 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
8953 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
8955 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8956 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8957 structure returning convention for SYSV ABI case, but not
8958 for GNU/Linux, FreeBSD, or NetBSD.
8960 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
8962 * symtab.h (lookup_block_symbol): Add mangled_name argument
8965 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8966 with new mangled_name argument.
8967 * linespec.c (decode_line_1): Likewise.
8968 * valops (value_of_this): Likewise.
8969 * symtab.c (lookup_transparent_type): Likewise.
8970 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8971 (lookup_symbol): If we are given a mangled name, pass it down
8972 to lookup_symbol_aux.
8973 (lookup_block_symbol): If we are given a mangled name to check
8974 against, only return symbols which match it.
8976 2002-03-22 Christopher Faylor <cgf@redhat.com>
8978 * win32-nat.c (child_create_inferior): Check for proper shell to use
8979 here, in case the user changes it on the fly.
8980 (_initialize_inftarg): Remove shell path considerations.
8982 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
8984 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8985 for gdbarch_max_register_raw_size and max_register_virtual_size.
8986 Adjust copyright year.
8988 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
8990 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8991 in a function to cover the entire beginning of the function
8992 as well if it does not already.
8994 2002-03-21 Tom Rix <trix@redhat.com>
8996 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8997 (rs6000_ptrace64): Renamed from ptrace64.
8999 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9001 * gdbserver/remote-utils.c (remote_open): Don't call
9002 getprotobyname, we're all using TCP here so just use
9004 * gdbserver/gdbreplay.c (remote_open): Ditto.
9006 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9008 * regcache.c (_initialize_regcache): No need to call
9009 build_regcache() at this time; it gets called whenever
9010 the gdbarch changes.
9012 2002-03-20 David O'Brien <obrien@FreeBSD.org>
9014 * sparc-nat.c: Include sys/param.h where possible.
9016 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
9019 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
9020 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
9021 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
9023 * stabsread.c (rs6000_builtin_type): Likewise.
9024 (read_sun_floating_type): Likewise.
9026 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9028 * stabsread.c (read_member_functions): Remove skip code for duplicate
9029 constructor/destructor methods. Use standard parsing for these
9030 methods and just do not chain them to the list of methods after
9033 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
9035 * coffread.c: Remove redundant static declarations. Replace
9036 occurrences of `PTR' with `void *'.
9037 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
9038 * top.h (quit_cover): Likewise.
9039 * defs.h (catch_errors): Likewise.
9041 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9043 * defs.h (XMALLOC): Define.
9044 * gdb-events.sh (XMALLOC): Delete macro.
9045 * gdb-events.c, gdb-events.h: Regenerate.
9046 * gdbarch.sh (XMALLOC): Delete macro.
9047 * gdbarch.c: Regenerate.
9048 * serial.c (XMALLOC): Delete macro.
9049 * ui-file.c (XMALLOC): Ditto.
9050 * ser-unix.h (XMALLOC): Ditto.
9051 * sh-tdep.c (XMALLOC): Ditto.
9052 * ui-out.c (XMALLOC): Ditto.
9053 * utils.c (XMALLOC): Ditto.
9054 * i386-tdep.c (XMALLOC): Ditto.
9055 * gdb-events.c (XMALLOC): Ditto.
9056 * d10v-tdep.c (XMALLOC): Ditto.
9057 * cli-out.c (XMALLOC): Ditto.
9059 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
9060 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
9061 * ui-file.c, ui-out.c: Ditto.
9063 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9065 * command.h (struct cmd_list_element): Add field context.
9066 (set_cmd_context, get_cmd_context): Declare.
9067 * cli/cli-decode.h: Ditto.
9068 * cli/cli-decode.c (get_cmd_context): New function.
9069 (set_cmd_context): New function.
9070 (add_cmd): Initialize context.
9071 Part of fixing PR gdb/145 and PR gdb/146.
9073 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9075 * cli/cli-decode.c (cmd_type): New function.
9076 * command.h (cmd_type): Declare.
9077 * infrun.c (set_schedlock_func): Call function cmd_type.
9078 * kod.c (kod_set_os): Call cmd_type.
9079 * cris-tdep.c (cris_version_update): Use function cmd_type.
9080 (cris_mode_update, cris_abi_update): Ditto.
9082 * command.h: (execute_cmd_post_hook): Declare.
9083 (execute_cmd_pre_hook): Declare.
9084 * cli/cli-script.c (clear_hook_in_cleanup): New function.
9085 (execute_cmd_post_hook, execute_cmd_pre_hook): New
9086 functions. Execute pre/post hook while ensuring that afterwords
9088 * top.c (execute_command): Use execute_cmd_post_hook, and
9089 execute_cmd_pre_hook to execute pre/post commands.
9090 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
9092 (hook_stop_stub): Call execute_cmd_pre_hook.
9094 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9096 * kod.c (kod_set_os): Revert previous change. Is called by ``info
9097 set'' and this leads to a core dump. Move xstrdup of
9098 operating_system to after check that it is not NULL.
9100 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9102 * kod.c (kod_set_os): Remove unnecessary check that
9103 ``command->type'' is set_cmd.
9105 * valprint.c (set_input_radix): Use input_radix.
9106 (set_output_radix): Use output_radix.
9107 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9110 2002-03-16 Andrew Cagney <ac131313@redhat.com>
9112 * value.h (struct value): Delete field ``substring_addr''. Change
9113 aligner fields to force_doublest_align, force_longest_align,
9114 force_core_addr_align and force_pointer_aligh.
9116 * value.h (struct value): Fix typo in above change.
9118 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9120 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9121 to fix internal_error from ``maintenance print architecture''.
9123 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9125 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9126 for gcc versions after gcc-2.8.1.
9128 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9130 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9131 for method resolution. Restore adjustment of ``this'' pointer after
9132 calling value_struct_elt, which was accidentally removed during the
9135 2002-03-15 Andrew Cagney <ac131313@redhat.com>
9137 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9139 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9141 * value.h (value_of_register): Update.
9143 2002-03-14 Richard Henderson <rth@redhat.com>
9145 * configure.in: Detect declaration for canonicalize_file_name.
9146 * utils.c (canonicalize_file_name): Declare, if needed.
9147 (gdb_realpath): Prefer realpath if available and usable.
9148 * config.in, configure: Rebuild.
9150 2002-03-14 Richard Henderson <rth@redhat.com>
9152 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9153 a constant array bound.
9155 * MAINTAINERS: Add myself to write-after-approval.
9157 2002-03-14 Michael Snyder <msnyder@redhat.com>
9159 * symfile.c (syms_from_objfile): Return immediately if no syms.
9160 (symbol_file_add): Return immediately if no syms.
9161 (find_sym_fns): Return immediately if no syms.
9163 2002-03-13 Michal Ludvig <mludvig@suse.cz>
9165 * gdbserver/remote-util.c (remote_open): Print remote-side's
9166 IP address when remote debugging over the network.
9168 2002-03-12 David O'Brien <obrien@FreeBSD.org>
9170 * config/sparc/fbsd.mh: Fix copyright.
9171 * config/sparc/fbsd.mt: Likewise.
9173 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
9175 * MAINTAINERS: Fix typo in name of gdb warnings option.
9176 (x86-64): Fix formating so that this can be parsed by awk.
9178 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9180 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9181 * defs.h: Include "gdb/signals.h".
9182 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9184 2002-03-10 Michal Ludvig <mludvig@suse.cz>
9186 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
9187 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
9190 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9191 Don Howard <dhoward@redhat.com>
9193 * mips-tdep.c (ST0_FR): Define.
9194 (mips2_fp_compat): New function, temporarily disabled.
9195 (mips_read_fp_register_single): New function.
9196 (mips_read_fp_register_double): New function.
9197 (mips_print_register): Use them.
9198 (do_fp_register_row): Likewise.
9200 2002-03-09 Andrew Cagney <ac131313@redhat.com>
9202 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9205 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9207 * stabsread.c (read_member_functions): Fix is_stub test for
9208 static member functions, improve comment.
9210 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
9212 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9213 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9214 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9215 commands that set boolean values.
9216 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9217 (arm_rdi_resume): Always initialize PC.
9218 (arm_rdi_open): Don't use rslt as a boolean.
9219 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9220 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9221 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9222 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9224 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
9226 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9227 * configure: Rebuilt.
9229 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9231 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9232 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9234 2002-03-06 Andrew Cagney <ac131313@redhat.com>
9236 * cli/cli-decode.c (set_cmd_completer): New function.
9237 * command.h (set_cmd_completer): Declare.
9238 * cli/cli-decode.h (set_cmd_completer): Ditto.
9240 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9241 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9242 * win32-nat.c (_initialize_inftarg): Ditto.
9243 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9244 * proc-api.c (_initialize_proc_api): Ditto.
9245 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9246 * source.c (_initialize_source): Ditto.
9247 * exec.c (_initialize_exec): Ditto.
9248 * solib.c (_initialize_solib): Ditto.
9249 * top.c (init_main): Ditto.
9250 * tracepoint.c (_initialize_tracepoint): Ditto.
9251 * symfile.c (_initialize_symfile): Ditto.
9252 * printcmd.c (_initialize_printcmd): Ditto.
9253 * infcmd.c (_initialize_infcmd): Ditto.
9254 * corefile.c (_initialize_core): Ditto.
9256 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9258 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9260 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9262 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9264 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9266 * NEWS: Update headings, 5.2 has branched.
9268 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
9270 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9271 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9272 (register_addr, REGISTER_RAW_SIZE): Likewise.
9273 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9274 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9276 2002-03-03 Michal Ludvig <mludvig@suse.cz>
9278 * MAINTAINERS (x86-64): Add myself.
9279 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9280 changed value_ptr -> struct value *
9282 2002-03-01 David O'Brien <obrien@FreeBSD.org>
9284 * configure.host (sparc64-*-freebsd): Add.
9285 * configure.tgt: Likewise.
9286 * config/sparc/fbsd.mh: New file.
9287 * config/sparc/fbsd.mt: Likewise.
9288 * config/sparc/nm-fbsd.h: Likewise.
9289 * config/sparc/tm-fbsd.h: Likewise.
9291 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
9293 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9294 regformats/reg-s390x.dat.
9296 2002-03-01 Andrew Cagney <ac131313@redhat.com>
9298 * utils.c: Add FIXME explaining true/false problem.
9300 2002-02-28 Andrew Cagney <ac131313@redhat.com>
9302 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9304 2002-02-28 Michael Chastain <mec@shout.net>
9306 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9308 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
9310 * gdbserver/linux-s390-low.c: New file.
9311 * regformats/reg-s390.dat: New file.
9312 * regformats/reg-s390x.dat: New file.
9313 * gdbserver/configure.srv: Add S/390.
9314 * gdbserver/Makefile.in: Add S/390.
9315 * configure.tgt: Enable gdbserver for S/390.
9317 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9319 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9320 first line of the doc string for "info dos", except at the end of
9321 the sentence, since the short help stops at the first period.
9323 2002-02-28 Jason Merrill <jason@redhat.com>
9325 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9327 2002-02-27 Fred Fish <fnf@redhat.com>
9329 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9330 comment (dumy -> dummy).
9332 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9334 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9336 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
9338 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9340 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9342 * gdbserver/acconfig.h: New file.
9343 * gdbserver/i387-fp.c: New file.
9344 * gdbserver/i387-fp.h: New file.
9345 * gdbserver/linux-x86-64.c: New file.
9346 * regformats/reg-x86-64.dat: New file.
9347 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9348 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9349 * gdbserver/configure.in: Add support for regsets.
9350 * gdbserver/config.in: Regenerate.
9351 * gdbserver/configure: Regenerate.
9352 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9353 * gdbserver/linux-low.h: New file.
9354 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9356 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9357 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9358 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9359 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9360 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9361 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9362 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9363 "i387-fp.h". Add PTRACE_GETREGS and friends.
9364 * gdbserver/regcache.c (supply_register): New function.
9365 (supply_register_by_name): New function.
9366 (collect_register): New function.
9367 (collect_register_by_name): New function.
9369 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9371 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9372 (config.status): Add configure.srv dependency.
9373 (server_h): Add config.h dependency.
9375 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9377 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9378 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9379 * gdbserver/configure.srv: Change i386-*-linux* to use
9382 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9384 * x86-64-tdep.c: Re-indent. Update copyright date.
9386 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9388 From Michal Ludvig <mludvig@suse.cz>:
9389 * x86-64-tdep.c (value.h): Delete.
9390 (gdb_assert.h): Include.
9391 (x86_64_register_convert_to_virtual,
9392 x86_64_register_convert_to_raw ): Add check which lets only
9393 floating-point values to be converted.
9394 (value_push): Delete.
9395 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9396 (i386_gdbarch_init): Number of register_bytes fixed.
9398 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9400 * MAINTAINERS: Add x86-64 target.
9402 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9404 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9405 * osfsolib.c (solib_map_sections): Ditto.
9406 * irix5-nat.c (solib_map_sections): Ditto.
9407 * corelow.c (gdb_check_format): Ditto.
9408 * symfile.c (symfile_bfd_open): Ditto.
9409 * solib.c (solib_map_sections): Ditto.
9412 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9414 * remote.c (_initialize_remote): By default, disable ``e'' and
9415 ``E'' step out-of-range packets.
9417 2002-02-26 Andreas Schwab <schwab@suse.de>
9419 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9420 m68k_linux_frame_saved_pc.
9421 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9423 (SIGCONTEXT_PC_OFFSET): Remove.
9424 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9425 m68k_linux_sigtramp_saved_pc): New functions.
9426 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9427 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9428 (UCONTEXT_PC_OFFSET): Define.
9429 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9430 non-RT and RT signal trampolines.
9432 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
9434 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9435 (TARGET_NBPG, STACK_END_ADDR): Delete
9436 (VARIABLES_INSIDE_BLOCK): Delete.
9438 2002-02-25 Andrew Cagney <ac131313@redhat.com>
9440 * utils.c (perror_with_name): Make string parameter constant.
9441 (print_sys_errmsg): Ditto.
9443 * defs.h (perror_with_name): Update.
9444 (print_sys_errmsg): Update.
9447 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
9449 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9450 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9452 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9454 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9455 if it already matches the current architecture from the exec file.
9456 Include arch-utils.h for gdbarch_info_init prototype.
9457 * Makefile.in (rs6000-nat.o): Update dependencies.
9459 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9461 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9462 list of exported variables.
9464 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
9466 * gdbserver/configure.srv: New file.
9467 * gdbserver/configure.in: Use configure.srv instead
9468 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9470 * gdbserver/configure: Regenerated.
9471 * gdbserver/terminal.h: New file.
9472 * gdbserver/Makefile.in: Update for configure changes. Remove
9473 more unneeded include paths.
9475 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9477 From wiz at danbala:
9478 * config/sparc/tm-sp64.h: Fix grammar and typos.
9481 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9483 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9484 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9485 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9486 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9487 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9488 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9489 * s390-tdep.c: Ditto.
9490 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9491 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9492 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9493 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9494 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9495 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9496 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9497 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9498 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9499 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9502 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9504 * lin-thread.c: Delete file.
9505 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9506 to gdb_proc_service.h.
9507 * configure: Re-generate.
9509 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9510 * serial.c (serial_open): Delete check for "ocd".
9513 * Makefile.in (linux-thread.o): Delete target.
9514 * linux-thread.c: Delete file.
9516 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9517 renamed SH files to be consistent.
9519 * symtab.c (sort_search_symbols): Use xfree.
9521 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9523 * arm-linux-tdep.c (arm_linux_init_abi): Register
9524 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9525 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9526 definition with undef, since we don't want the sysvr4 definition.
9527 (SKIP_TRAMPOLINE_CODE): Likewise.
9529 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9531 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9533 * configure.in: (AC_CHECK_FUNCS) Added test for
9534 canonicalize_file_name Regenerated.
9535 * config.in, configure: Regenerated.
9536 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9537 defined use canonicalize_file_name.
9539 2002-02-23 Michael Chastain <mec@shout.net>
9541 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9543 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9545 * README: Remove references to cygnus.com.
9546 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9547 dot com'' form. Remove references to cygnus.com and sourceware.
9549 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9551 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9552 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9553 1003.1-2001 no longer allows "head -1".
9554 * gdb/Makefile.in (version.c): Likewise.
9555 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9556 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9557 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9559 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9561 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9562 * command.h (cmd_cfunc_eq): Declare.
9563 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9565 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9566 ``struct cmd_list_element *''.
9567 * cli/cli-cmds.c (is_complete_command): Update. Use
9569 * top.c (execute_command): Pass the command to
9570 is_complete_command.
9571 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9573 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9575 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9576 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9577 architecture defines.
9578 * s390-tdep.c (s390_gdbarch_init): Likewise.
9580 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9582 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9583 (arm_linux_push_arguments): Likewise.
9584 (arm_linux_init_abi): Register them. Also register linux-specific
9586 (find_minsym_and_objfile): Use strcmp, not STREQ.
9587 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9588 (arm_linux_call_dummy_words): Delete declaration.
9589 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9590 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9592 (LOWEST_PC): Delete.
9594 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9596 * maint.c (print_section_info): Do not prepend `0x' to filepos
9597 output, it will be handled by local_hex_string_custom.
9599 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9601 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9602 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9603 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9605 2002-02-22 Jim Blandy <jimb@redhat.com>
9607 Indicate that the bcache functions don't change the strings
9609 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9610 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9612 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9614 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9616 2002-02-21 Christopher Faylor <cgf@redhat.com>
9618 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9619 find the complete path to a loaded DLL.
9621 2002-02-21 Fred Fish <fnf@redhat.com>
9623 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9624 that marks the end of the range of a function, enter a line number
9625 entry that has a line number of zero and a PC offset that matches
9626 the end of the function. This starts a range of PC's for which no
9627 line number information is known.
9628 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9629 PC's for which no line number info is found (line number is zero)
9630 then we didn't find any valid line information.
9631 * symtab.h: Document use of zero line number entry.
9633 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
9635 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9636 (have_ptrace_getvrregs): Define for run time checks.
9637 (gdb_vrregset_t): New type for Altivec register handling.
9638 (fetch_register, store_register): Fetch/store altivec register
9640 (fetch_altivec_register, store_altivec_register): New functions.
9641 (supply_vrregset, fill_vrregset): New functions.
9642 (fetch_altivec_registers, store_altivec_registers): New functions.
9643 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9646 2002-02-21 Jiri Smid <smid@suse.cz>
9648 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9650 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9652 * Makefile.in (armnbsd-nat.o): Update dependencies.
9653 * armnbsd-nat.c (supply_gregset): New function. Common code to
9654 supply the integer register set.
9655 (supply_fparegset): New function. Similar for FPA registers.
9656 (fetch_regs, fetch_fp_regs): Use them.
9657 (fetch_core_registers): Likewise.
9658 (fetch_elfcore_registers): New function.
9659 (arm_netbsd_elfcore_fns): New core-file type specification.
9660 (_initialize_arm_netbsd_nat): Register it.
9662 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9664 * armnbsd-nat.c: Include gdbcore.h.
9665 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9666 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9667 'void' to declaration, to shut up ARI.
9668 (fetch_core_registers): Make static. Rewrite using supply_register.
9669 (arm_netbsd_core_fns): New core-file type specification.
9670 (_initialize_arm_netbsd_nat): New function.
9672 2002-02-21 Christopher Faylor <cgf@redhat.com>
9674 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9677 2002-02-20 Christopher Faylor <cgf@redhat.com>
9679 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9682 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9684 * jv-exp.y (parse_number): Change type of implicit longs
9685 to builtin_type_uint64.
9687 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9689 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9690 to be an integer instead of a `union wait'.
9692 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9694 * mips-linux-nat.c: Call the operating system GNU/Linux.
9695 * mips-linux-tdep.c: Likewise.
9696 * mips-tdep.c: Likewise.
9698 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9701 * jv-exp.y (parse_number): Handle 64-bit integers.
9703 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9705 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9706 AC_STDC_HEADERS to AC_HEADER_STDC.
9707 * gdbserver/configure: Regenerated.
9709 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9711 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9713 * sparc-tdep.c (get_longjmp_target): Likewise.
9715 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9717 * News: Add news about ARM and Multi-arch. Mention the new target
9720 2002-02-19 Jim Blandy <jimb@redhat.com>
9722 * stabsread.c (error_type_complaint): Improve error message.
9724 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
9726 * gdbserver/README: Update documentation.
9727 * gdbserver/configure.in: Update configury to match documentation.
9728 * gdbserver/Makefile.in: Likewise.
9729 * gdbserver/configure: Regenerated.
9730 * gdbserver/aclocal.m4: New file, generated by aclocal.
9731 * gdbserver/config.in: New file, generated by autoheader.
9733 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9735 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9738 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9740 * arm-tdep.h (enum arm_float_model): New enum.
9741 (struct gdbarch_tdep): Add fp_model.
9742 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9743 up floating-point conversions until we know the floating-point model
9744 in use by the inferior. Don't complain about being unable to
9745 determine the ABI of the inferior when we don't have one.
9746 (arm_extract_return_value): Support different floating-point models.
9747 (arm_store_return_value): Likewise.
9748 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9750 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9752 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9754 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9755 of ``current_gdbarch''.
9757 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9759 * armnbsd-nat.c : ANSIfy all function declarations.
9760 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9761 (fetch_inferior_registers): Re-implement in terms of above.
9762 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9763 (store_inferior_registers): Re-implement in terms of above.
9765 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9767 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9769 * arm-linux-tdep.c: Likewise.
9770 * config/arm/tm-linux.h: Likewise.
9772 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9774 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9775 * config/arm/nbsd.mt (TM_FILE): Delete.
9776 * config/arm/tm-nbsd.h: Delete.
9778 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9780 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9781 Initialize CALL_DUMMY_LENGTH.
9783 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9785 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9787 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
9788 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
9789 defines one thing and that is incorrect for this port.
9790 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9792 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9794 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9796 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9798 * win32-nat.c (display_selector): New function. Displays information
9799 about the information returned by GetThreadSelectorEntry API function.
9800 (display_selectors): New function. Displays the infomation of
9801 the selector given as argument, or of CS, DS ans FS selectors
9802 if no argument is given.
9803 ( _initialize_inftarg): Add "w32" as info prefix command.
9804 Add "info w32 selector" as command calling display_selectors.
9806 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9808 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9809 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9812 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9814 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9816 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9818 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9819 (arm_fix_call_dummy): Call it.
9820 (arm_call_dummy_breakpoint_offset): Delete.
9821 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9822 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9824 2002-02-18 Andrew Cagney <ac131313@redhat.com>
9826 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9827 Default to func_frame_chain_valid.
9828 * gdbarch.h, gdbarch.c: Re-generate.
9829 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9831 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
9833 * ppc-linux-nat.c: Update copyright.
9834 (fetch_register, store_register): Add tid parameter, don't compute
9836 (fetch_ppc_registers, store_ppc_registers): Add tid
9837 parameter. Pass it along to callees.
9838 (fetch_inferior_registers, store_inferior_registers): Compute tid
9839 here, and pass it to calleed functions.
9840 (fill_gregset, supply_fpregset): Clean up formatting.
9842 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9844 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9845 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9847 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9849 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9850 * gdbarch.c gdbarch.h: Regenerate.
9851 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9853 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9854 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9855 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9857 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9858 * arm-tdep.c (arm_get_longjmp_target): New function.
9859 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9860 this to a positive value register arm_get_longjmp_target as the
9862 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9863 (arm_linux_init_abi): Set up longjmp description in tdep.
9864 * armnbsd-nat.c (get_longjmp_target): Delete.
9865 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9866 description in tdep.
9867 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9868 (get_longjmp_target): Delete declaration.
9869 (GET_LONGJMP_TARGET): Delete.
9870 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9871 (GET_LONGJMP_TARGET): Delete.
9873 2002-02-17 Kevin Buettner <kevinb@redhat.com>
9875 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9876 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9877 of ``current_gdbarch''.
9879 2002-02-17 Tom Tromey <tromey@redhat.com>
9881 * cli/cli-cmds.c (compare_strings): New function.
9882 (complete_command): Only print each unique item once.
9883 * completer.h (complete_line): Declare.
9884 * completer.c (complete_line): New function.
9885 (line_completion_function): Use it.
9887 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9889 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9890 * gdbarch.h, gdbarch.c: Re-generate.
9892 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9894 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9896 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9898 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9899 * valops.c (value_arg_coerce): Don't take the address of a reference
9900 to convert an argument to a reference.
9902 2002-02-15 Christopher Faylor <cgf@redhat.com>
9904 * win32-nat.c (get_image_name): New function.
9905 (handle_load_dll): Use get_image_name function.
9906 (get_child_debug_event): Avoid registering debug events until possibly
9907 execed process is started.
9908 (child_create_inferior): Allow invocation via shell so that command
9909 line redirection, etc. works ok.
9910 (_initialize_inftarg): Add new command: "set shell" to control whether
9911 a shell is used to start a process.
9913 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9915 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9916 instead of find_register_by_number.
9917 (cannot_store_register): Likewise.
9919 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9921 * dwarf2read.c: Replace fprintf (stderr, ...) by
9922 fprintf_unfiltered (gdb_stderr, ...).
9924 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9926 * gdbserver/gdbserver.1: Document --attach.
9928 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9930 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9932 * arm-tdep.c (arm_default_arm_le_breakpoint)
9933 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9934 (arm_default_thumb_be_breakpoint): New. Initialize them from
9935 traditional breakpoint defines.
9936 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9937 (arm_gdbarch_init): Initialize new breakpoint variables.
9938 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9939 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9940 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9941 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9943 (arm_netbsd_init_abi_common): ... here; new function.
9944 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9945 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9946 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9947 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9949 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9951 * arm-tdep.h (enum arm_abi): New enum.
9952 (struct gdbarch_tdep): New structure.
9953 (LOWEST_PC): Provide a default.
9954 (arm_gdbarch_register_os_abi): Declare new function.
9955 * arm-tdep.c (arm_abi_names): New array.
9956 (process_note_abi_tag_sections): New function.
9957 (get_elfosabi): New function.
9958 (arm_gdbarch_register_os_abi): New function.
9959 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9960 support for that ABI has been built in, then call the appropriate
9961 configuration routine. Use gdbarch_num_regs() to get the number
9963 (arm_dump_tdep): New function.
9964 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9965 place-holder functions.
9966 (_initialize_arm_tdep): Register them.
9967 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9969 * armnbsd-tdep.c: New file.
9970 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9971 * config/arm/nbsd.mt (TDEPFILES): Add it.
9972 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9974 * armnbsd-nat.c: Include regcache.h.
9975 * Makefile.in (armnbsd-nat.o): Update dependency list.
9977 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9979 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9981 * gdbserver/Makefile.in: Fix typos in target rules.
9983 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9985 Fix part of PR gdb/267.
9986 * linespec.c (find_methods): Handle constructors specially for now.
9988 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
9990 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9992 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9993 standard_coerce_float_to_double().
9995 2002-02-14 Christopher Faylor <cgf@redhat.com>
9997 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
10000 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
10002 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
10003 find_variant_by_name, because it confuses the multiarch
10004 framework. Return NULL if there isn't an architecture with the
10005 user supplied name, instead of forcing a different one without
10006 recording the change with the multiarch machinery.
10007 (find_variant_by_name): Delete.
10009 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10011 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
10012 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
10014 2002-02-13 Martin M. Hunt <hunt@redhat.com>
10016 * stack.c (print_frame_info_base): When calling
10017 print_frame_info_listing_hook, set current_source_symtab.
10019 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10021 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
10022 and remove unused $(INCLUDE_DIR).
10023 Add regcache.c to OBS.
10024 Add generated register protocol files to clean target.
10025 Update dependencies for new objects, obsolete old target code.
10027 * gdbserver/linux-low.c: Remove all platform-specific code to
10028 new files. Remove various dead code. Update to use regcache
10030 * gdbserver/remote-utils.c (fromhex): Add return statement
10032 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
10034 (input_interrupt): Add integer parameter to match prototype
10035 of a signal handler.
10036 (outreg): Use register_data ().
10037 (prepare_resume_reply): Use gdbserver_expedite_regs.
10038 * gdbserver/server.c (main): Dynamically allocate own_buf because
10039 PBUFSIZ is no longer constant. Use registers_to_string () and
10040 registers_from_string ().
10041 * gdbserver/server.h: No longer include "defs.h". Add prototypes
10042 for error (), fatal (), and warning (). Update definition of
10043 PBUFSIZ to use regcache functionality. Add include guard.
10044 * gdbserver/utils.c (fatal): Add missing ``const''.
10045 (warning): New function.
10047 * regformats/regdat.sh: Include "regcache.h" in generated files.
10048 Provide init_registers () function.
10049 * regformats/regdef.h: Add prototype for set_register_cache ().
10052 * gdbserver/linux-arm-low.c: New file.
10053 * gdbserver/linux-i386-low.c: New file.
10054 * gdbserver/linux-ia64-low.c: New file.
10055 * gdbserver/linux-m68k-low.c: New file.
10056 * gdbserver/linux-mips-low.c: New file.
10057 * gdbserver/linux-ppc-low.c: New file.
10058 * gdbserver/linux-sh-low.c: New file.
10060 * gdbserver/regcache.c: New file.
10061 * gdbserver/regcache.h: New file.
10063 * gdbserver/low-linux.c: Removed obsolete file.
10065 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10067 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
10068 * config/i386/linux.mt: Likewise.
10069 * config/ia64/linux.mt: Likewise.
10070 * config/m68k/linux.mh: Likewise.
10071 * config/powerpc/linux.mh: Likewise.
10072 * config/mips/linux.mt: Likewise.
10074 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
10076 * config/i386/i386lynx.mh: Mark gdbserver variables
10077 as (currently) obsolete for this target.
10078 * config/i386/nbsd.mt: Likewise.
10079 * config/i386/nbsdelf.mt: Likewise.
10080 * config/m32r/m32r.mt: Likewise.
10081 * config/m68k/m68klynx.mh: Likewise.
10082 * config/m68k/nbsd.mt: Likewise.
10083 * config/m68k/sun3os4.mh: Likewise.
10084 * config/mips/vr5000.mt: Likewise.
10085 * config/ns32k/nbsd.mt: Likewise.
10086 * config/pa/hppabsd.mh: Likewise.
10087 * config/pa/hppaosf.mh: Likewise.
10088 * config/powerpc/nbsd.mt: Likewise.
10089 * config/rs6000/rs6000lynx.mh: Likewise.
10090 * config/s390/s390.mt: Likewise.
10091 * config/s390/s390x.mt: Likewise.
10092 * config/sparc/sparclynx.mh: Likewise.
10093 * config/sparc/sun4os4.mh: Likewise.
10094 * config/i386/x86-64linux.mt: Likewise.
10095 * config/sparc/linux.mh: Likewise.
10097 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10099 * configure.tgt: Configure gdbserver only for known working
10100 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
10101 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
10102 SUBDIRS if it is configured. Update comment for ${nativefile}.
10103 * configure: Regenerated.
10105 2002-02-13 Michael Snyder <msnyder@redhat.com>
10107 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10109 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10110 (default_gcore_mach): Just return 0, work around a problem in bfd.
10111 (default_gcore_target): OK to return NULL if exec_bfd is null.
10112 (make_mem_sec): Use a cast, avoid a warning.
10114 * procfs.c (find_memory_regions_callback): Use a cast instead of
10115 calling host_pointer_to_address (which complains if
10116 sizeof (host pointer) != sizeof (target pointer)).
10117 (procfs_make_note_section): Avoid overflow in psargs string.
10119 * procfs.c (procfs_make_note_section): Make the default
10120 implementation return an error.
10122 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
10124 * procfs.c (procfs_make_note_section): Provide a default definition
10125 (for alpha-dec-osf4.0f). Fix typos.
10127 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
10129 * linux-proc.c: Add include of regcache.h.
10130 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10132 2002-02-13 Andrew Cagney <ac131313@redhat.com>
10134 From 2002-01-18 Greg McGary <greg@mcgary.org>:
10135 * memattr.c (create_mem_region): Disallow useless empty region.
10136 Regions are half-open intervals, so allow [A..B) [B..C) as
10139 2002-02-13 Michael Chastain <mec@shout.net>
10141 * defs.h: Kill CONST_PTR.
10142 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10143 * c-lang.c (c_builtin_types): Likewise.
10144 * ch-lang.c (ch_builtin_types): Likewise.
10145 * f-lang.c (f_builtin_types): Likewise.
10146 * language.c (unknown_builtin_types): Likewise.
10147 * m2-lang.c (m2_builtin_types): Likewise.
10148 * p-lang.c (pascal_builtin_types): Likewise.
10149 * scm-lang.c (c_builtin_types): Likewise.
10151 2002-02-13 Keith Seitz <keiths@redhat.com>
10153 * arm-tdep.h (arm_get_next_pc): Add declaration.
10155 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
10157 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10158 with other related struct-returning functions.
10159 (arm_extract_struct_value_address): New function.
10160 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10161 initialize float_format, double_format and long_double_format as
10162 appropriate to the endianness of the target.
10163 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10164 (arm_use_struct_convention): Delete declaration.
10165 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10167 2002-02-13 Keith Seitz <keiths@redhat.com>
10169 * defs.h (core_addr_to_string_nz): New function.
10171 2002-02-13 Mark Kettenis <kettenis@gnu.org>
10173 Apply missing bits of 2002-01-15 patch.
10174 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10175 (fill_fpregset): Use i387_fill_fsave.
10177 2002-02-12 Keith Seitz <keiths@redhat.com>
10179 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10180 (core_addr_to_string_nz): New function.
10182 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10184 * arm-linux-nat.c: Really include arm-tdep.h.
10185 * config/arm/tm-linux.h (struct type, struct value): Declare.
10187 2002-02-11 Michael Snyder <msnyder@redhat.com>
10189 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10190 (gcore section): Ifdef for Solaris and Unixware only.
10191 (procfs_do_thread_registers): Unixware needs one lwpstatus
10192 per thread (not one prstatus or pstatus).
10193 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10194 not over all gdb threads. For unixware, call elfcore_write_pstatus
10195 once before iterating over threads.
10197 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10199 * arm-tdep.h: New file.
10200 * arm-tdep.c: Include arm-tdep.h.
10201 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10202 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10203 (arm_print_float_info, arm_register_type, convert_to_extended)
10204 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10205 (arm_extract_return_value, arm_register_name): Make static.
10206 (arm_software_single_step): Similarly. Fix types in declaration.
10207 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10208 (arm_store_return_value, arm_store_struct_return): New functions.
10209 (arm_gdbarch_init): Register the above functions. Also register
10210 call_dummy_start_offset, sizeof_call_dummy_words,
10211 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10212 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
10213 max_register_virtual_size, register_size. Set up
10214 prologue_cache.saved_regs here, rather than ...
10215 (_initialize_arm_tdep): ... here.
10216 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10218 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10219 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10220 (arm_print_float_info, arm_register_type, convert_to_extended)
10221 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10222 (arm_extract_return_value, arm_register_name): Delete declarations.
10223 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10224 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10225 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10226 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10227 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10228 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10229 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10230 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10231 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10232 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10233 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10234 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10236 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10237 * remote-rdi.c remote-rdp.c: Likewise.
10238 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10239 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10240 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10243 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10244 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10245 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10246 from non-ARM_ prefixed definitions.
10247 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10249 * remote-rdi.c remote-rdp.c: Likewise.
10250 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10252 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10254 * arm-tdep.c (arm_frameless_function_invocation)
10255 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10256 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10257 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10258 (arm_pop_frame, arm_get_next_pc): Make static.
10259 (arm_gdbarch_init): Register above in gdbarch structure.
10260 (arm_read_fp): Renamed from arm_target_read_fp.
10261 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10262 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10263 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10264 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10265 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10266 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10267 (arm_pc_is_thumb_dummy): Delete declarations.
10268 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10269 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10270 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10271 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
10273 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
10275 * symtab.c (compare_search_syms): New function.
10276 (sort_search_symbols): New function.
10277 (search_symbols): Sort symbols after searching rather than
10280 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10282 * NEWS: Linux -> GNU/Linux.
10284 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10286 * gdbarch.sh: For for level one methods, disallow a definition
10287 when partially multi-arched. Add comments explaining rationale.
10288 * gdbarch.h: Re-generate.
10290 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10292 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10293 multi-arch partial.
10295 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10297 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10298 field. Use diff -u.
10299 * gdbarch.c: Re-generate.
10301 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10303 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
10304 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10307 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10309 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10310 multi-arch partial.
10311 (PUSH_ARGUMENTS): Switch to using predefault.
10312 * gdbarch.c: Regenerate.
10314 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10316 * valops.c (PUSH_ARGUMENTS): Delete definition.
10317 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10318 partial. Default to default_push_arguments.
10319 * gdbarch.h, gdbarch.c: Regenerate.
10321 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10323 * defs.h (throw_exception): Rename return_to_top_level. Update
10325 * utils.c (error_stream, internal_verror, quit): Ditto.
10326 * top.c (throw_exception, catcher): Ditto.
10327 * sparclet-rom.c (sparclet_load): Ditto.
10328 * remote.c (interrupt_query, minitelnet): Ditto.
10329 * remote-sds.c (interrupt_query): Ditto.
10330 * remote-mips.c (mips_error, mips_kill): Ditto.
10331 * ocd.c (interrupt_query): Ditto.
10332 * monitor.c (monitor_interrupt_query): Ditto.
10333 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10334 * target.h: Update comment.
10336 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10338 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10340 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10341 default_double_format.
10342 * gdbarch.h, gdbarch.c: Re-generate.
10343 * findvar.c (floatformat_unknown): Delete variable definition.
10344 * doublest.h (floatformat_unknown): Delete variable declaration.
10346 2002-02-09 Jim Blandy <jimb@redhat.com>
10348 * stabsread.c (read_type): Add code to parse Sun's syntax for
10349 prototyped function types.
10351 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10353 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10354 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10356 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10358 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10359 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10360 now _initialize_xcoffsolib gets called again and overrides the
10361 commands from solib.c in a native configuration.
10363 2002-02-09 Mark Kettenis <kettenis@gnu.org>
10365 * doublest.c (store_typed_floating): Don't try to return a value.
10368 2002-02-08 Jim Blandy <jimb@redhat.com>
10370 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10371 is prototyped and has no arguments, print its argument list as
10374 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10376 * MAINTAINERS (write-after-approval): Add myself.
10377 (paper-trail): I've escaped!
10379 2002-02-08 Christopher Faylor <cgf@redhat.com>
10381 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10383 (_initialize_check_for_gdb_ini): Ditto.
10385 2002-02-08 Martin M. Hunt <hunt@redhat.com>
10387 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10388 xaprintf -> xasprintf.
10390 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10392 * win32-nat.c: Remove use of printf and sprintf functions.
10394 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
10396 * arm-tdep.c (arm_frame_chain_valid): Make static.
10397 (arm_push_arguments): Likewise.
10398 (arm_gdbarch_init): New function.
10399 (_initialize_arm_tdep): Call it.
10400 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10401 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10402 (FRAME_CHAIN_VALID): Delete.
10403 (arm_frame_chain_valid): Delete declaration.
10404 (PUSH_ARGUMENTS): Delete.
10405 (arm_push_arguments): Delete declaration.
10406 (CALL_DUMMY_P): Delete.
10408 2002-02-08 Andrew Cagney <ac131313@redhat.com>
10409 Corinna Vinschen <vinschen@redhat.com>
10411 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10412 on builtin float types.
10414 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
10416 * utils.c: Include <curses.h> before "bfd.h".
10417 * tui/tui-hooks.c: Likewise.
10418 * tui/tui.c: Likewise.
10419 * tui/tuiCommand.c: Likewise.
10420 * tui/tuiData.c: Likewise.
10421 * tui/tuiDataWin.c: Likewise.
10422 * tui/tuiDisassem.c: Likewise.
10423 * tui/tuiGeneralWin.c: Likewise.
10424 * tui/tuiIO.c: Likewise.
10425 * tui/tuiLayout.c: Likewise.
10426 * tui/tuiRegs.c: Likewise.
10427 * tui/tuiSource.c: Likewise.
10428 * tui/tuiSourceWin.c: Likewise.
10429 * tui/tuiStack.c: Likewise.
10430 * tui/tuiWin.c: Likewise.
10432 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
10434 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10435 to include space for pseudoregs as well. Update loops accordingly.
10436 (sh_fp_frame_init_saved_regs): Ditto.
10437 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10439 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10441 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10442 Add Richard Earnshaw to Arm maintainers.
10444 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10446 * defs.h (warning_begin): Delete declaration.
10448 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10451 2002-02-07 Michael Snyder <msnyder@redhat.com>
10453 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10454 Logic bug, remove misplaced else.
10456 2002-02-07 Klee Dienes <klee@apple.com>
10458 * fork-inferior.c (fork_inferior): Add '!' to the list of
10459 characters that need to be quoted when building a string for the
10460 shell. Quote '!' specifically with a backslash, since CSH chokes
10461 when trying to evaluate "str!str".
10463 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10465 * rdi-share/host.h: Only provide a typedef for bool if it is not
10468 2002-02-04 Michael Snyder <msnyder@redhat.com>
10470 * breakpoint.h (enum bptype): Add new overlay event bp type.
10471 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10473 * breakpoint.c (create_internal_breakpoint): New function.
10474 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10475 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10476 (create_thread_event_breakpoint): Ditto.
10477 (create_solib_event_breakpoint): Ditto.
10478 (create_overlay_event_breakpoint): New function.
10479 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10480 (update_breakpoints_after_exec): Delete and re-initialize
10481 overlay event breakpoints after an exec. Add FIXME comment
10482 about longjmp breakpoint.
10483 (print_it_typical): Ignore overlay event breakpoints.
10484 (print_one_breakpoint): Ditto.
10486 (bpstat_what): Do not stop for overlay event breakpoints.
10487 (delete_breakpoint): Don't delete overlay event breakpoints.
10488 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10489 (breakpoint_re_set): Re-create overlay event breakpoint.
10491 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10492 (overlay_manual_command): Disable overlay breakpoints.
10493 (overlay_off_command): Disable overlay breakpoints.
10495 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10497 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10498 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10499 to here from config/tm-arm.h.
10500 (coff_sym_is_thumb): Make static.
10501 (arm_elf_make_msymbol_special): New function.
10502 (arm_coff_make_msymbol_special): New function.
10503 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10504 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10505 (coff_sym_is_thumb): Delete declaration.
10506 (arm_elf_make_msymbol_special): Declare.
10507 (arm_coff_make_msymbol_special): Declare.
10508 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10509 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10511 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10513 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10515 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10517 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10518 * gdbarch.c gdbarch.h: Regenerate.
10519 * arch-utils.c (default_print_float_info): New function.
10520 * arch-utils.h (default_print_float_info): Prototype it.
10521 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10522 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10523 (PRINT_FLOAT_INFO): Document it.
10525 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10526 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10527 (PRINT_FLOAT_INFO): Define.
10529 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10531 * win32-nat.c (_initialize_check_for_gdb_ini):
10532 Add typecast to sprintf argument to suppress a warning.
10534 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10536 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10537 to allow easier handling of pass state.
10538 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10539 that gives exception name and address.
10540 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10541 and set last_sig value to ourstatus->value.sig. Some missing
10543 (child_continue): Correctly report continue_status.
10544 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10545 TARGET_SIGNAL_0 (new default value).
10546 (child_resume): consider sig argument passed to decide if
10547 the exception should be passed to debuggee or not.
10549 2002-02-05 Michael Snyder <msnyder@redhat.com>
10551 * regcache.c (fetch_register): Call target_fetch_register
10552 only if we don't call FETCH_PSEUDO_REGISTER.
10553 (store_register): Call target_store_register only if we
10554 don't call STORE_PSEUDO_REGISTER.
10556 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
10558 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10559 ELF_MAKE_MSYMBOL_SPECIAL.
10560 * gdbarch.c, gdbarch.h: Regenerate.
10561 * arch-utils.c (default_make_msymbol_special): New function.
10562 * arch-utils.h (default_make_msymbol_special): Export.
10563 * elfread.c (elf_symtab_read): Compile use of
10564 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10566 * coffread.c (coff_symtab_read): Ditto, for
10567 COFF_MAKE_MSYMBOL_SPECIAL.
10569 2002-02-05 Jim Blandy <jimb@redhat.com>
10571 * solib-svr4.c (svr4_truncate_ptr): New function.
10572 (svr4_relocate_section_addresses): Do the address arithmetic with
10573 the appropriate truncation for target addresses, even when
10574 CORE_ADDR is larger than a target address.
10576 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10578 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10581 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10583 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10586 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10588 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10590 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10592 * gdbserver/linux-low.c: Remove unused include files.
10594 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10596 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10597 (read_inferior_memory): Use it.
10598 (write_inferior_memory): Likewise.
10600 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10602 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10603 grubbing through sys_errlist.
10605 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10607 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10609 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10610 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10612 2002-02-04 Andrew Cagney <ac131313@redhat.com>
10614 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10615 (do_sfunc, set_cmd_sfunc): New functions.
10617 * command.h (struct cmd_list_element): Add field func.
10618 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10619 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10620 * cli/cli-decode.h: Ditto.
10622 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10623 (help_all, help_cmd_list): Ditto.
10624 (find_cmd, complete_on_cmdlist): Ditto.
10625 * top.c (execute_command): Ditto.
10627 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10630 * infcmd.c (notice_args_read): Fix function signature.
10632 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10633 * cli/cli-decode.c (add_set_cmd): Ditto.
10634 * utils.c (initialize_utils): Ditto.
10635 * maint.c (_initialize_maint_cmds): Ditto.
10636 * infrun.c (_initialize_infrun): Ditto.
10637 * demangle.c (_initialize_demangler): Ditto.
10638 * remote.c (add_packet_config_cmd): Ditto.
10639 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10640 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10641 * proc-api.c (_initialize_proc_api): Ditto.
10642 * kod.c (_initialize_kod): Ditto.
10643 * valprint.c (_initialize_valprint): Ditto.
10644 * top.c (init_main): Ditto.
10645 * infcmd.c (_initialize_infcmd): Ditto.
10646 * corefile.c (_initialize_core): Ditto.
10647 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10648 * arch-utils.c (initialize_current_architecture): Ditto.
10649 (_initialize_gdbarch_utils): Ditto.
10650 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10652 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10653 * wince.c (_initialize_inftarg): Ditto.
10654 * symfile.c (_initialize_symfile): Ditto.
10655 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10656 * language.c (_initialize_language): Ditto.
10657 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10659 2002-02-04 Michael Snyder <msnyder@redhat.com>
10661 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10663 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10665 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10666 Add rules for building the register data files.
10668 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10670 * regformats/regdat.sh: Add braces to the definition of
10671 expedite_regs_${arch}.
10673 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10675 * regformats/regdef.h (struct reg): Add comment describing the
10676 requirements for offset and size fields.
10678 2002-02-04 Andreas Schwab <schwab@suse.de>
10680 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10681 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10683 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
10685 * gdbarch.sh (copyright): Update years in generated header.
10686 (SMASH_TEXT_ADDRESS): Add rule.
10687 * gdbarch.h, gdbarch.c: Re-generate.
10688 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10689 * dbxread.c: Likewise.
10690 * dwarfread.c: Likewise.
10691 * elfread.c: Likewise.
10692 * somread.c: Likewise.
10694 * arm-tdep.c (arm_smash_text_address): New function.
10695 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10697 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10699 Add support for hardware watchpoints on win32 native.
10700 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10701 CONTEXT_DEBUG_REGISTERS.
10702 (dr variable): New variable. Static array containing a local copy
10703 of debug registers.
10704 (debug_registers_changed): New variable. Reflects when debug registers
10705 are changed and need to be written to inferior.
10706 (debug_registers_used): New variable. Reflects when any debug register
10707 was set, used when new threads are created.
10708 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10710 (thread_rec): Set dr array if id is the thread of current_event .
10711 (child_continue, child_resume): Change the debug registers for all
10712 threads if debug_registers_changed.
10713 (child_add_thread): Change the debug registers if debug_registers_used.
10714 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10715 Link nm.h to new nm-cygwin.h file.
10716 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10717 of hardware registers.
10719 2002-02-03 Andrew Cagney <ac131313@redhat.com>
10721 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10722 Restore behavour broken by 2002-01-20 Andrew Cagney
10723 <ac131313@redhat.com> IEEE_FLOAT removal.
10725 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10727 * c-valprint.c (c_val_print): Pass a proper valaddr to
10728 cp_print_class_method.
10729 * valops.c (search_struct_method): If there is only one method
10730 and args is NULL, return that method.
10732 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10734 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10735 accessing tag_name directly.
10737 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10739 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10740 of accessing tag_name directly.
10742 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10745 * gdbtypes.c (replace_type): New function.
10746 * gdbtypes.h (replace_type): Add prototype.
10747 * stabsread.c (read_type): Use replace_type.
10749 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
10751 * Makefile.in (memattr.o): Add missing dependencies rule.
10753 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10755 * breakpoint.c (break_at_finish_command): Really export.
10756 (break_at_finish_at_depth_command): Ditto.
10757 (tbreak_at_finish_command): Ditto.
10758 * hppa-tdep.c: Include completer.h.
10759 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10760 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10762 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10764 * utils.c (do_write): New function.
10765 (error_stream): Rewrite combining the code from error_begin and
10767 (verror): Rewrite using error_stream.
10768 (error_begin): Delete function.
10770 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10772 * utils.c (error_begin): Make static.
10773 * defs.h (error_begin): Delete declaration.
10775 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10776 (decode_line_1): Use cplusplus_error instead of error_begin,
10777 cplusplus_hint and return_to_top_level.
10778 * coffread.c (coff_symfile_read): Use error instead of error_begin
10779 and return_to_top_level.
10780 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10782 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10784 * language.h (type_error, range_error): Make string parameter
10786 * language.c (warning_pre_print): Delete extern declaration.
10787 * dwarfread.c (warning_pre_print): Ditto.
10788 * language.c (type_error, range_error): Rewrite to use verror and
10789 vwarning instead of warning_begin.
10791 2002-02-01 Michael Snyder <msnyder@redhat.com>
10793 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10794 (set_ignore_count): Move misplaced comment back where it belongs.
10796 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10798 * command.h (NO_FUNCTION): Delete macro.
10799 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10800 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10801 * tracepoint.c (_initialize_tracepoint): Ditto.
10802 * cli/cli-decode.c (add_set_cmd): Ditto.
10803 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10805 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10807 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10808 Update ``this'' pointer when calling virtual functions.
10810 2002-02-01 Michael Snyder <msnyder@redhat.com>
10812 * breakpoint.c (create_temp_exception_breakpoint): Delete.
10813 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10815 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10817 * regformats/reg-arm.dat: New file.
10818 * regformats/reg-i386.dat: New file.
10819 * regformats/reg-ia64.dat: New file.
10820 * regformats/reg-m68k.dat: New file.
10821 * regformats/reg-mips.dat: New file.
10822 * regformats/reg-ppc.dat: New file.
10823 * regformats/reg-sh.dat: New file.
10824 * regformats/regdef.h: New file.
10825 * regformats/regdat.sh: New file.
10827 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
10829 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10830 (arm_frame_args_address, arm_frame_locals_address): New functions.
10831 (arm_frame_num_args): New function.
10832 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10833 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10834 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10836 2002-01-31 Michael Snyder <msnyder@redhat.com>
10838 * breakpoint.c (break_at_finish_command): Export.
10839 (break_at_finish_at_depth_command): Export.
10840 (tbreak_at_finish_command): Export.
10841 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
10842 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10843 "txbreak" commands, which are HPPA specific.
10845 * printcmd.c (disassemble_command): Remove an ancient
10846 artifact of an old merge.
10848 * symfile.h (enum overlay_debugging_state):
10849 Define enum constant values for overlay mode.
10850 * symfile.c (overlay_debugging): Use enums instead of literals.
10851 (overlay_is_mapped, overlay_auto_command,
10852 overlay_manual_command): Ditto.
10854 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10855 breakpoint_here_p, breakpoint_inserted_here_p,
10856 breakpoint_thread_match, bpstat_stop_status,
10857 describe_other_breakpoints, check_duplicates, clear_command):
10858 Coding standard fixes.
10860 * target.c (target_xfer_memory): Add spaces, coding standard.
10861 (do_xfer_memory): Add missing line to trust-readonly
10862 code: check bfd SEC_READONLY flag for section.
10864 2002-01-31 Andrew Cagney <ac131313@redhat.com>
10866 * PROBLEMS: Fix typo, 5.1->5.1.1.
10868 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
10870 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10871 data symbols, since we search based on textlow and texthigh.
10872 (find_pc_sect_symtab): Likewise.
10874 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10876 * defs.h (vwarning): Declare.
10877 * utils.c (vwarning): New function.
10878 (warning): Call vwarning.
10879 (warning_begin): Delete function.
10881 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10882 the warning message.
10883 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10886 2002-01-30 Michael Snyder <msnyder@redhat.com>
10888 * NEWS: Mention "set trust-readonly-sections" command.
10889 Mention generate-core-file command.
10891 2002-01-15 Michael Snyder <msnyder@redhat.com>
10893 * target.c: New command, "set trust-readonly-sections on".
10894 (do_xfer_memory): Honor the suggestion to trust readonly sections
10895 by reading them from the object file instead of from the target.
10896 (initialize_targets): Register command "set trust-readonly-sections".
10898 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10900 * parse.c (target_map_name_to_register): Simplify, search regs and
10901 pseudo-regs using a single loop.
10903 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10905 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10907 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
10909 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10910 * config/i386/i386v42mp.mh: Add i387-nat.o .
10911 * i386v4-nat.c: Include i387-nat.h.
10912 (supply_fpregset): Use i387_supply_fsave.
10913 (fill_fpregset): Use i387_fill_fsave.
10915 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
10917 * arm-tdep.c (arm_call_dummy_words): Define.
10918 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10919 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10920 (CALL_DUMMY_WORDS): Define.
10921 (arm_call_dummy_words): Declare.
10922 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10923 (arm_linux_call_dummy_words): Declare.
10925 2002-01-30 Andreas Schwab <schwab@suse.de>
10927 * m68klinux-nat.c: Fix last change to use regcache_collect
10928 instead of referencing registers[] directly.
10930 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10932 * parse.c (target_map_name_to_register): Delete code wrapped in
10933 #ifdef REGISTER_NAME_ALIAS_HOOK.
10935 2002-01-28 Michael Snyder <msnyder@redhat.com>
10937 * regcache.c (legacy_read_register_gen): Need to be able to
10938 read pseudo-register as well as real register.
10939 (legacy_write_register_gen): Ditto.
10941 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10943 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10944 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10945 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10946 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10947 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10948 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10949 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10950 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10951 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10952 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10953 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10954 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10955 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10956 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10957 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10958 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10959 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10960 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10961 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10962 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10964 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10966 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10967 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10968 (initialize_current_architecture): Update target_byte_order using
10969 information from BFD.
10970 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
10971 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10973 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10975 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10976 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10978 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10979 #ifdef INVALID_FLOAT.
10980 * infcmd.c (do_registers_info): Ditto.
10981 * values.c (unpack_double): Ditto. Add comment.
10983 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10984 already commented out.
10986 2002-01-26 Andreas Schwab <schwab@suse.de>
10988 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10989 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10990 registers and add support for PTRACE_GETREGS.
10992 2002-01-24 Andrew Cagney <ac131313@redhat.com>
10994 GDB 5.1.1 released from 5.1 branch.
10995 * NEWS: Add 5.1.1 news.
10996 * README: Sync with 5.1 branch.
10998 2002-01-23 Fred Fish <fnf@redhat.com>
11000 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
11001 stabstring on initial malloc. Reallocing will copy it for us,
11004 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11006 * Makefile.in (hpread_h): Delete.
11007 (HFILES_NO_SRCDIR): Remove hpread.h.
11008 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
11009 (hpread.o): Update dependencies.
11010 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
11012 * hp-psymtab-read.c: Remove file.
11013 * hp-symtab-read.c: Remove file.
11014 * hpread.h: Remove file.
11016 * hpread.c: Merge all contents of hp-psymtab-read.c,
11017 hp-symtab-read.c and hpread.h into this file, as it was prior to
11020 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
11021 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
11022 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
11023 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
11025 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11027 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
11028 fill_gregset): Call gdbarch_tdep() just once, assign result to
11029 variable and use that, instead of calling the function several
11032 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11034 * configure.host: Accept sparcv9 as alias for sparc64.
11035 * configure.tgt: Likewise.
11037 2002-01-22 Kevin Buettner <kevinb@redhat.com>
11039 * solib-aix5.c (build_so_list_from_mapfile)
11040 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
11041 arguments is not reversed.
11042 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
11043 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
11045 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
11047 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
11048 modified version of obsolete sh_fetch_pseudo_register.
11049 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
11050 (sh4_register_read): New function.
11051 (sh_pseudo_register_write): New function. Renamed and modified
11052 version of obsolete sh_store_pseudo_register.
11053 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
11054 (sh4_register_write): New function.
11055 (sh_gdbarch_init): Remove setting of gdbarch function
11056 fetch_pseudo_register and store_pseudo_register. Remove setting of
11057 register_convert_to_raw, register_convert_to_virtual,
11058 register_convertible.
11059 (sh_sh4_register_convertible): Delete. No longer needed. All is
11060 taken care by architecture specific functions
11061 register_read/register_write.
11062 (sh_sh4_register_convert_to_virtual): Make static.
11063 (sh_sh4_register_convert_to_raw): Ditto.
11065 2002-01-22 Andrew Cagney <ac131313@redhat.com>
11067 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
11068 (floatformat_is_nan, floatformat_mantissa): Ditto.
11070 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
11071 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
11072 builtin_type_ieee_double_little,
11073 builtin_type_ieee_double_littlebyte_bigword,
11074 builtin_type_m68881_ext, builtin_type_i960_ext,
11075 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
11076 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
11077 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
11078 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
11080 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
11082 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
11083 parameter. Set frameless flag if it exists and depended of
11084 whether the scanned function is frameless or not.
11085 (xstormy16_skip_prologue): If function is frameless, return
11086 result of xstormy16_scan_prologue().
11087 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
11090 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
11092 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11093 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11094 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11095 sh_sh4_register_byte, sh_sh4_register_raw_size,
11096 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11097 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11098 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11099 sh_store_pseudo_register, sh_do_pseudo_register): Call
11100 gdbarch_tdep() just once, assign result to variable and use that,
11101 instead of calling the function several times.
11103 2002-01-20 Mark Kettenis <kettenis@gnu.org>
11105 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11106 macros instead of LAST_FPU_CTRL_REGNUM.
11107 (store_register): Likewise.
11109 2002-01-21 Jim Blandy <jimb@redhat.com>
11111 * infcmd.c (run_command): Check that the `exec' target layer's BFD
11112 is up-to-date before running the program, not just when a program
11115 2002-01-21 Fred Fish <fnf@redhat.com>
11117 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11118 when we have found all instructions we are looking for.
11120 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11122 * arm-tdep.c (arm_register_name): New function.
11123 (arm_registers_names): Make static.
11124 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11125 (arm_register_name): Declare.
11126 (REGISTER_NAME): Use it.
11128 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11129 Kevin Buettner <kevinb@redhat.com>
11131 Convert arm targets to new FRAME interface.
11132 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11133 (arm_frame_find_save_regs): Delete.
11134 (arm_frame_init_saved_regs): New.
11135 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11136 Allocate extra_info as required. Convert all uses of fsr.regs
11137 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11139 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11140 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11141 (check_prologue_cache, save_prologue_cache): Likewise.
11142 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11143 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11144 (FRAME_FIND_SAVED_REGS): Delete.
11145 (arm_frame_find_saved_regs): Delete prototype.
11146 (arm_frame_init_saved_regs): New prototype.
11147 (FRAME_INIT_SAVED_REGS): Define.
11149 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11151 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11153 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11155 From Jeff Law <law@redhat.com>:
11156 * infttrace.c: Include <sys/pstat.h>.
11157 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11158 exec file if the ttrace equivalent fails.
11160 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11162 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11163 (closeLogFile): Ditto.
11165 2002-01-20 Michael Chastain <mec@shout.net>
11167 * top.c (print_gdb_version): Bump copyright year to 2002.
11169 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11171 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11172 Zannoni and Eli Zaretskii.
11174 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11176 * buildsym.c: Update copyright years.
11177 * c-typeprint.c: Likewise.
11178 * dwarf2read.c: Likewise.
11179 * f-typeprint.c: Likewise.
11180 * gdbtypes.c: Likewise.
11181 * gdbtypes.h: Likewise.
11182 * hp-symtab-read.c: Likewise.
11183 * hpread.c: Likewise.
11184 * mdebugread.c: Likewise.
11185 * p-typeprint.c: Likewise.
11187 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11189 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11190 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11191 byte-order selectable.
11192 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11193 * arch-utils.c: Ditto.
11194 (set_endian): Ditto.
11195 (set_endian_from_file): Ditto.
11196 * gdbserver/low-sim.c (create_inferior): Ditto.
11197 * gdbarch.sh: Ditto.
11198 * gdbarch.h: Re-generate.
11199 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11200 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11201 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11202 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11203 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11204 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11205 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
11206 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11208 * config/mips/tm-wince.h: Remove #undef of macro
11209 TARGET_BYTE_ORDER_SELECTABLE.
11210 * config/sh/tm-wince.h: Ditto.
11212 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11214 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11215 member function fields. Add accessor macro
11216 TYPE_FN_FIELD_ARTIFICIAL.
11217 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11218 * c-typeprint.c (c_type_print_base): Skip artificial member
11221 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11223 * f-typeprint.c: Delete unused function f_type_print_args.
11224 * p-typeprint.c: Delete unused function pascal_type_print_args.
11226 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11228 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11229 comment. Add ``artificial'' to ``union field_location''.
11231 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11233 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11234 * mdebugread.c (parse_symbol): Likewise.
11235 * stabsread.c (define_symbol): Likewise.
11236 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11237 initializing TYPE_FIELD_BITPOS to n (obsolete).
11238 (hpread_doc_function_type): Likewise.
11239 * hpread.c (hpread_function_type): Likewise.
11241 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11243 * configure.in (host_makefile_frag): Only require a host makefile
11244 fragment when a native build.
11245 * configure: Re-generate.
11247 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11249 * doublest.h (floatformat_from_type): Declare.
11250 * doublest.c (floatformat_from_type): New function.
11251 (convert_typed_floating): Use.
11253 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11254 call to function floatformat_from_type.
11256 * gdbarch.sh (IEEE_FLOAT): Delete.
11257 * gdbarch.h, gdbarch.c: Re-generate.
11258 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11259 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11260 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11261 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11262 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11263 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11264 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11265 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11266 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11267 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11268 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
11269 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11271 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11272 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11273 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11274 * sh-tdep.c (sh_gdbarch_init): Ditto.
11275 * mips-tdep.c (mips_gdbarch_init): Ditto.
11276 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11277 * cris-tdep.c (cris_gdbarch_init): Ditto.
11279 2002-01-20 Jiri Smid <smid@suse.cz>
11281 * configure.host, configure.tgt: Support x86-64.
11282 * NEWS: Note new target x86-64.
11284 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11285 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11286 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11287 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11288 x86-64-linux-nat.o): Fix dependencies.
11290 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11292 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11293 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11294 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11295 * config/sparc/xm-sun4os4.h: Delete file.
11296 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
11298 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11300 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11301 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11302 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11303 * config/i386/i386lynx.mh (XM_FILE): Delete.
11304 * config/rs6000/xm-rs6000ly.h: Delete file.
11305 * config/sparc/xm-sparclynx.h: Delete file.
11306 * config/m68k/xm-m68klynx.h: Delete file.
11307 * config/i386/xm-i386lynx.h: Delete file.
11308 * config/xm-lynx.h: Delete file.
11309 * config/djgpp/fnchange.lst: Update.
11311 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11313 * alpha-tdep.c (alpha_register_byte): New function.
11314 (alpha_register_raw_size): Ditto.
11315 (alpha_register_virtual_size): Ditto.
11316 (alpha_skip_prologue_internal): Renamed from
11317 alpha_skip_prologue.
11318 (alpha_skip_prologue): New version that calls
11319 alpha_skip_prologue_internal.
11320 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11321 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11322 second argument from alpha_skip_prologue.
11323 (REGISTER_BYTE): Use alpha_register_byte.
11324 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11325 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11326 (FRAMELESS_FUNCTION_INVOCATION): Use
11327 generic_frameless_function_invocation_not.
11328 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11329 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11331 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11333 * config/mips/xm-news-mips.h: Delete file.
11334 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11336 * config/m88k/xm-m88k.h: Delete file.
11337 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11338 * config/m88k/xm-delta88v4.h: Ditto.
11339 * config/m88k/xm-delta88.h: Ditto.
11341 * config/alpha/xm-fbsd.h: Delete file.
11342 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11344 * config/sparc/xm-sparc.h: Delete file.
11345 * Makefile.in (xm-sun4os4.h): Delete dependency.
11346 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11347 * config/sparc/xm-sun4os4.h: Ditto.
11348 * config/sparc/xm-linux.h: Ditto.
11350 * config/i386/xm-windows.h: Delete file.
11352 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11354 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11355 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11357 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11359 * alpha-tdep.c (alpha_call_dummy_words): New.
11360 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11361 (CALL_DUMMY_P): Define.
11362 (CALL_DUMMY_WORDS): Define.
11363 (SIZEOF_CALL_DUMMY_WORDS): Define.
11365 2002-01-19 Per Bothner <per@bothner.com>
11367 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11368 isn't NULL, which can happen with some gcj-3.x-produced code.
11370 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11372 * alpha-tdep.c (alpha_register_virtual_type): New function.
11373 (alpha_init_frame_pc_first): Ditto.
11374 (alpha_fix_call_dummy): Ditto.
11375 (alpha_store_struct_return): Ditto.
11376 (alpha_extract_struct_value_address): Ditto.
11377 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11378 alpha_register_virtual_type.
11379 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11380 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11381 alpha_extract_struct_value_address.
11382 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11383 (INIT_FRAME_PC): Use init_frame_pc_noop.
11384 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11386 2002-01-19 Mark Kettenis <kettenis@gnu.org>
11388 * i386gnu-nat.c: Include "i386-tdep.h".
11389 (fetch_fpregs): Simplify code dealing with uninitialized floating
11390 point states such that it doesn't require FP7_REGNUM.
11392 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11394 * alpha-tdep.c (frame_extra_info): New.
11395 (alpha_find_saved_regs): Make static. Use
11397 (alpha_frame_init_saved_regs): New function.
11398 (alpha_frame_saved_pc): Use frame->extra_info.
11399 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11400 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11401 (init_extra_frame_info): Rename to...
11402 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
11403 (alpha_print_extra_frame_info): New function.
11404 (alpha_frame_locals_address): Ditto.
11405 (alpha_frame_args_address): Ditto.
11406 (alpha_pop_frame): Use frame->extra_info.
11407 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11408 alpha_frame_args_address.
11409 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11410 (alpha_find_saved_regs): Remove prototype.
11411 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11412 (EXTRA_FRAME_INFO): Remove.
11413 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11414 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11416 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11418 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11419 (alpha_cannot_fetch_register): Ditto.
11420 (alpha_cannot_store_register): Ditto.
11421 (alpha_register_convertible): Ditto.
11422 (alpha_use_struct_convention): Ditto.
11423 * config/alpha/tm-alpha.h: Update copyright years.
11424 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11425 (INNER_THAN): Use core_addr_lessthan.
11426 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11427 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11428 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11429 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11430 (FRAME_CHAIN): Remove unnecessary cast.
11432 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11434 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11437 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11439 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11440 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11441 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11442 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11443 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11444 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11445 * x86-64-linux-nat.c: Ditto.
11447 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11449 * alpha-tdep.c (alpha_register_name): New function.
11450 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11451 (REGISTER_NAME): Define.
11453 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11455 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11457 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11459 * alpha-tdep.c: Update copyright years.
11460 (alpha_next_pc): New function.
11461 (alpha_software_single_step): Ditto.
11462 * config/alpha/tm-alpha.h: Add prototype for
11463 alpha_software_single_step.
11465 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11467 * alphabsd-nat.c: Update copyright years.
11468 (fill_gregset): Use regcache_collect.
11469 (fill_fpregset): Likewise.
11470 (fetch_inferior_registers): Only fetch integer registers
11471 if requested to do so.
11472 (store_inferior_registers): Only store integer registers
11473 if requested to do so.
11475 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11477 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11478 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11479 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11480 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11481 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11482 * config/arm/linux.mh (XDEPFILES): Delete.
11483 * config/arm/nbsd.mh (XDEPFILES): Delete.
11484 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11485 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11486 * config/i386/i386m3.mh (XDEPFILES): Delete.
11487 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11488 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11489 * config/i386/fbsd.mh (XDEPFILES): Delete.
11490 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11491 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11492 * config/i386/i386v4.mh (XDEPFILES): Delete.
11493 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11494 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11495 * config/i386/i386aix.mh (XDEPFILES): Delete.
11496 * config/i386/go32.mh (XDEPFILES): Delete.
11497 * config/i386/cygwin.mh (XDEPFILES): Delete.
11498 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11499 * config/i386/i386mach.mh (XDEPFILES): Delete.
11500 * config/i386/i386v32.mh (XDEPFILES): Delete.
11501 * config/i386/linux.mh (XDEPFILES): Delete.
11502 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11503 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11504 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11505 * config/i386/i386sco.mh (XDEPFILES): Delete.
11506 * config/i386/i386v.mh (XDEPFILES): Delete.
11507 * config/i386/nbsd.mh (XDEPFILES): Delete.
11508 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11509 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11510 * config/i386/symmetry.mh (XDEPFILES): Delete.
11511 * config/i386/obsd.mh (XDEPFILES): Delete.
11512 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11513 * config/ia64/linux.mh (XDEPFILES): Delete.
11514 * config/ia64/aix.mh (XDEPFILES): Delete.
11515 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11516 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11517 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11518 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11519 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11520 * config/m68k/linux.mh (XDEPFILES): Delete.
11521 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11522 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11523 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11524 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11525 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11526 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11527 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11528 * config/m88k/delta88.mh (XDEPFILES): Delete.
11529 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11530 * config/m88k/m88k.mh (XDEPFILES): Delete.
11531 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11532 * config/mips/linux.mh (XDEPFILES): Delete.
11533 * config/mips/irix6.mh (XDEPFILES): Delete.
11534 * config/mips/irix5.mh (XDEPFILES): Delete.
11535 * config/mips/irix4.mh (XDEPFILES): Delete.
11536 * config/mips/irix3.mh (XDEPFILES): Delete.
11537 * config/mips/decstation.mh (XDEPFILES): Delete.
11538 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11539 (NATDEPFILES): Move core-aout.o to here.
11540 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11541 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11542 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11543 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11544 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11545 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11546 * config/pa/hpux11.mh (XDEPFILES): Delete.
11547 * config/powerpc/aix.mh (XDEPFILES): Delete.
11548 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11549 * config/powerpc/linux.mh (XDEPFILES): Delete.
11550 * config/romp/rtbsd.mh: Rename XDEPFILES.
11551 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11552 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11553 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11554 * config/s390/s390.mh (XDEPFILES): Delete.
11555 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11556 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11557 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11558 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11559 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11560 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11561 * config/sparc/linux.mh (XDEPFILES): Delete.
11562 * config/vax/vaxult.mh (XDEPFILES): Delete.
11563 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11564 * Makefile.in (DEPFILES): Remove XDEPFILES.
11566 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11568 * utils.c (internal_verror): Fix comments, default is yes not no.
11569 Update queries to match. Default to quit and dump core.
11571 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11573 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11575 * defs.h, event-top.c, gdbcmd.h: Ditto.
11576 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11577 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11578 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11579 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11580 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11581 * mi/mi-main.c:Ditto.
11583 * stack.c, symfile.c: Update copyright.
11585 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11587 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11588 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11589 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11590 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11592 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11594 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11595 * gdbserver/low-lynx.c (myattach): Likewise.
11596 * gdbserver/low-nbsd.c (myattach): Likewise.
11597 * gdbserver/low-sim.c (myattach): Likewise.
11598 * gdbserver/low-sparc.c (myattach): Likewise.
11599 * gdbserver/low-sun3.c (myattach): Likewise.
11601 * gdbserver/low-linux.c (myattach): New function.
11603 * gdbserver/server.c (attach_inferior): New function.
11604 (main): Handle "--attach".
11606 2002-01-16 Andrew Cagney <ac131313@redhat.com>
11608 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11611 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
11613 * c-typeprint.c (is_type_conversion_operator): Add additional
11614 check for non-conversion operators.
11616 2002-01-15 Michael Snyder <msnyder@redhat.com>
11618 * linux-proc.c: Add "info proc" command, a la procfs.c.
11619 (read_mapping): New function, abstract and re-use code.
11620 (linux_find_memory_regions): Use new func read_mapping.
11621 (linux_info_proc_cmd): New function, implement "info proc".
11622 (_initialize_linux_proc): Add new command "info proc".
11624 2002-01-15 Michael Snyder <msnyder@redhat.com>
11626 * symfile.c (generic_load): Use bfd_map_over_sections method
11627 instead of manipulating bfd structure members directly.
11628 (add_section_size_callback): New function, bfd sections callback
11629 used by generic_load.
11630 (load_sections_callback): New function, bfd sections callback
11631 used by generic_load.
11633 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
11635 [Based on work by Jim Blandy]
11636 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11637 (builtin_type_vec128): Export.
11638 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11640 (builtin_type_vec128): New builtin type for 128 bit vector
11642 (build_gdbtypes): Initialize builtin_type_v16qi and
11643 builtin_type_v8hi. Create the vec128 register builtin type
11645 (build_builtin_type_vec128): New function.
11646 (_initialize_gdbtypes): Register builtin_type_v16qi and
11647 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11648 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11649 AltiVec register to new builtin type.
11651 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
11653 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11656 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11658 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11659 CLEAN_UP_REGISTER_VALUE.
11660 * regcache.c (supply_register): Update only call.
11662 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11664 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11665 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11666 a29k-*-vxworks* targets as obsolete.
11668 2002-01-14 Michael Snyder <msnyder@redhat.com>
11670 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11671 until we can resolve portability issues.
11672 * gregset.h: Remove references to fpxregs.
11673 * gcore.c (gcore_command): Initialize note_sec to NULL.
11675 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11677 * signals.c (target_signal_to_name): Rewrite. Only use
11678 signals[].name when in bounds and non-NULL.
11680 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11682 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11683 * signals.c (target_signal_to_name): Verify that SIG is within the
11684 bounds of the signals array.
11686 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11688 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11690 2002-01-13 Keith Seitz <keiths@redhat.com>
11692 * stack.c (print_frame_info_base): Print the frame's pc
11693 only if when print_frame_info_listing_hook is not defined.
11695 2002-01-13 Keith Seitz <keiths@redhat.com>
11697 * varobj.c (varobj_set_value): Make sure that there were no
11698 errors evaluating the object before attempting to set its
11700 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11701 so this offset adjustment is no longer necessary.
11702 (create_child): Don't set the error flag if the child is
11703 a CPLUS_FAKE_CHILD.
11704 (value_of_child): If value_fetch_lazy fails, return NULL
11705 so that callers will be notified that an error occurred.
11706 (c_value_of_variable): Delay check of variable's validity
11707 until later. We actually want all structs and unions to have
11709 Do not return "???" for variables which could not be evaluated.
11710 This error condition must be returned to the caller so that it
11711 can get the error condition from gdb.
11712 (cplus_name_of_child): Adjust index for vptr before figuring
11713 out the name of the child.
11714 (cplus_value_of_child): If a child's (real) parent is not valid,
11715 don't even bother trying to give a value for it. Just return
11716 an error. Change all instances in this function.
11717 (cplus_type_of_child): If our parent is one of the "fake"
11718 parents, we need to get at the type of the real parent, and
11719 derive the child's true type using this information.
11721 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11723 From 2002-01-09 John Marshall <johnm@falch.net>:
11724 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11725 sources.redhat.com, and tweak some related URLs which had
11726 suffered from linkrot.
11728 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11731 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11732 structures passed in registers.
11734 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11736 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11737 white space which prevented compilation. Reported by DSK
11738 <dsk@student.unsw.edu.au>.
11740 2002-01-11 Michael Snyder <msnyder@redhat.com>
11742 * symfile.c (build_section_addr_info_from_section_tab):
11743 Use bfd access method instead of manipulating bfd directly.
11744 (syms_from_objfile): Ditto.
11745 (simple_overlay_update_1): Ditto.
11746 (simple_overlay_update): Ditto.
11747 (generic_load): Ditto.
11748 (overlay_unmapped_address): FIXME comment, bfd access methods.
11749 (sections_overlap): FIXME comment, bfd access methods.
11750 (pc_in_mapped_range): FIXME comment, bfd access methods.
11751 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11752 (section_is_mapped): FIXME comment, bfd access methods.
11753 (section_is_overlay): FIXME comment, bfd access methods.
11755 * symfile.c (generic_load): Whitespace and long line cleanups.
11756 Remove duplicate variable, change several local variables to
11757 more appropriate data types.
11758 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11760 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11762 From Peter Schauer:
11763 * language.c (longest_local_hex_string_custom): Use phex_nz to
11764 convert NUM to a hex string.
11766 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
11768 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11770 Update Copyright year.
11772 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11774 * language.c (longest_raw_hex_string): Delete unused function.
11776 2002-01-11 Petr Sorfa <petrs@caldera.com>
11778 * MAINTAINERS (write-after-approval): Add myself.
11779 * dwarf2read.c (read_tag_string_type): Handling of
11781 (read_tag_string_type): FORTRAN fix to prevent propagation of
11783 (set_cu_language): Handling of DW_LANG_Fortran95
11785 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
11787 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11788 GETPID(inferior_ptid).
11789 (store_inferior_registers): Likewise.
11791 2002-01-10 Jason Merrill <jason@redhat.com>
11793 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11796 2002-01-10 Andrew Cagney <ac131313@redhat.com>
11798 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11799 and bfd/elf32-sh-nbsd.c.
11801 2002-01-10 Michael Snyder <msnyder@redhat.com>
11803 * NEWS: Mention --pid and corefile/proc-id behavior change.
11805 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11806 * gcore.c: Include cli/cli-decode.h instead of command.h.
11808 * main.c (captured_main): Add new command line option "--pid".
11809 If the second command line argument (following the symbol-file)
11810 begins with a digit, try to attach to it before trying to open
11812 (print_gdb_help): Document the "--pid" argument.
11814 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11816 * completer.c (command_completer): New function.
11818 * completer.h <command_completer>: Add prototype.
11820 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11821 completer for the "help" command.
11823 2002-01-09 Jason Merrill <jason@redhat.com>
11825 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11827 2002-01-09 Michael Snyder <msnyder@redhat.com>
11829 * i386-linux-nat.c (fill_fpxregset): Make global.
11830 (store_fpxregset): Ditto.
11832 * gregset.h (gdb_fpxregset_t): Define.
11833 (supply_fpxregset): Prototype.
11834 (fill_fpxregset): Prototype.
11836 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11838 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11840 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11841 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11842 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11844 2002-01-09 Andrew Cagney <ac131313@redhat.com>
11846 * MAINTAINERS: Update target maintainer rules so that any
11847 Maintainer can approve a tested patch for a maintenance-only
11850 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11852 * MAINTAINERS (write-after-approval): Add myself.
11854 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
11857 2002-01-08 Michael Snyder <msnyder@redhat.com>
11859 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11860 real name of the executable, rather than the /proc name.
11862 2002-01-03 Michael Snyder <msnyder@redhat.com>
11864 Implement a "generate-core-file" command in gdb, save target state.
11865 * gcore.c: New file. Implement new command 'generate-core-file'.
11866 Save a corefile image of the current state of the inferior.
11867 * linux-proc.c: Add linux-specific code for saving corefiles.
11868 * target.h (struct target_ops): Add new target vectors for saving
11869 corefiles; to_find_memory_regions and to_make_corefile_notes.
11870 (target_find_memory_regions): New macro.
11871 (target_make_corefile_notes): New macro.
11872 * target.c (update_current_target): Inherit new target methods.
11873 (dummy_find_memory_regions): New place-holder method.
11874 (dummy_make_corefile_notes): New place-holder method.
11875 (init_dummy_target): Initialize new dummy target vectors.
11876 * exec.c (exec_set_find_memory_regions): New function.
11877 Allow the exec_ops vector for memory regions to be taken over.
11878 (exec_make_note_section): New function, target vector method.
11879 * defs.h (exec_set_find_memory_regions): Export prototype.
11880 * procfs.c (proc_find_memory_regions): New function, corefile method.
11881 (procfs_make_note_section): New function, corefile method.
11882 (init_procfs_ops): Set new target vector pointers.
11883 (find_memory_regions_callback): New function.
11884 (procfs_do_thread_registers): New function.
11885 (procfs_corefile_thread_callback): New function.
11886 * sol-thread.c (sol_find_memory_regions): New function.
11887 (sol_make_note_section): New function.
11888 (init_sol_thread_ops): Initialize new target vectors.
11889 * inftarg.c (inftarg_set_find_memory_regions): New function.
11890 Allow to_find_memory_regions vector to be taken over.
11891 (inftarg_set_make_corefile_notes): New function.
11892 Allow to_make_corefile_notes vector to be taken over.
11893 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11894 interface layer if not target_has_execution (may be a corefile).
11895 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11896 * config/sparc/sun4sol2.mh: Ditto.
11897 * config/alpha/alpha-linux.mh: Ditto.
11898 * config/arm/linux.mh: Ditto.
11899 * config/i386/x86-64linux.mh: Ditto.
11900 * config/ia64/linux.mh: Ditto.
11901 * config/m68k/linux.mh: Ditto.
11902 * config/mips/linux.mh: Ditto.
11903 * config/powerpc/linux.mh: Ditto.
11904 * config/sparc/linux.mh: Ditto.
11906 2002-01-07 Michael Snyder <msnyder@redhat.com>
11908 * arm-linux-nat.c: Remove references to regcache.c internal data
11909 (registers[] and register_valid[]).
11911 2002-01-07 Michael Snyder <msnyder@redhat.com>
11913 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11914 so that attaching to a pid will automatically read the process's
11915 symbol file and shlibs.
11916 * Makefile.in: Add rule for linux-proc.o.
11917 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11918 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11919 * config/arm/linux.mh: Ditto.
11920 * config/i386/linux.mh: Ditto.
11921 * config/i386/x86-64linux.mh: Ditto.
11922 * config/ia64/linux.mh: Ditto.
11923 * config/m68k/linux.mh: Ditto.
11924 * config/mips/linux.mh: Ditto.
11925 * config/powerpc/linux.mh: Ditto.
11926 * config/sparc/linux.mh: Ditto.
11928 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11930 * win32-nat.c: Add i386-tdep.h dependency.
11932 2002-01-07 Michael Snyder <msnyder@redhat.com>
11934 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11935 instead of bfd_get_arch_size. Don't bail out just because
11936 there's no exec_bfd.
11938 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11939 * p-valprint.c (pascal_object_print_value): Ditto.
11940 * somread.c (som_symtab_read): Ditto.
11941 * symfile.c (simple_free_overlay_region_table): Ditto.
11942 * valops.c (value_assign): Ditto.
11944 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11945 use tilde_expand and strerror for opening save-tracepoints file.
11947 * thread-db.c (thread_db_new_objfile): Indendation fix.
11949 * infptrace.c (GDB_MAX_ALLOCA): New define.
11950 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
11951 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
11952 can be overridden with whatever value is appropriate to the host).
11953 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11954 alloca to allocate potentially large buffer.
11955 * rs6000-nat.c (child_xfer_memory): Ditto.
11956 * symm-nat.c (child_xfer_memory): Ditto.
11957 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11959 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11961 From Nick Clifton <nickc@redhat.com>
11962 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11964 2002-01-07 Michael Snyder <msnyder@redhat.com>
11966 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11967 Don't use exec_bfd if it's NULL.
11969 2002-01-06 Mark Kettenis <kettenis@gnu.org>
11971 * valops.c (value_arg_coerce): Fix formatting.
11973 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11975 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11976 * gnu-nat.c: Ditto.
11978 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11980 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11981 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11982 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11983 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11984 z8k-coff have not been multi-arched. Update z8k-coff build
11987 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11989 * MAINTAINERS: Mark a29k target as obsolete.
11990 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11991 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11993 * NEWS: Note that a29k targets are obsolete.
11994 * a29k-tdep.c: Mark as obsolete.
11995 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11996 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11997 a29k-*-vxworks* targets as obsolete.
11998 * remote-adapt.c: Obsolete.
11999 * remote-eb.c: Obsolete.
12000 * remote-mm.c: Obsolete.
12001 * remote-udi.c: Obsolete.
12002 * config/a29k/a29k-udi.mt: Obsolete.
12003 * config/a29k/a29k.mt: Obsolete.
12004 * config/a29k/tm-a29k.h: Obsolete.
12005 * config/a29k/tm-vx29k.h: Obsolete.
12006 * config/a29k/vx29k.mt: Obsolete.
12008 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12010 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
12011 with BFD_ENDIAN_BIG.
12013 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12015 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
12016 * configure, config.in: Re-generate.
12017 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
12018 * defs.h: Do not include <endian.h>.
12020 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
12022 * acconfig.h (HAVE_PT_GETXMMREGS): New.
12023 * config.in: Regenerate.
12024 * configure.in: Update copyright years.
12025 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
12026 * configure: Regenerate.
12027 * i386bsd-nat.c: Update copyright years.
12028 (fill_gregset): Use regcache_collect.
12029 (fetch_inferior_registers): Only fetch integer registers
12030 if requested to do so. Add support for XMM registers
12031 using PT_GETXMMREGS.
12032 (store_inferior_registers): Only store integer registers
12033 if requested to do so. Add support for XMM registers
12034 using PT_SETXMMREGS.
12035 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
12036 (store_inferior_registers): Remove.
12037 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
12038 (fetch_elfcore_registers): New function.
12039 (i386nbsd_elfcore_fns): New.
12040 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
12041 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
12043 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
12044 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
12045 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
12046 * config/i386/tm-nbsd.h: Update copyright years.
12047 (HAVE_SSE_REGS): Define.
12048 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
12049 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
12050 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
12051 (SIGCONTEXT_PC_OFFSET): Remove.
12052 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
12054 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12056 * configure.tgt: Remove powerpc-*-macos* target.
12057 * config/m68k/xm-mpw.h: Delete file.
12058 * config/xm-mpw.h: Delete file.
12059 * ser-mac.c: Delete file.
12060 * mpw-make.sed: Delete file.
12061 * mpw-config.in: Delete file.
12062 * mac-xdep.c: Delete file.
12063 * mac-gdb.r: Delete file.
12064 * mac-defs.h: Delete file.
12065 * mac-nat.c: Delete file.
12066 * config/powerpc/macos.mh: Delete file.
12067 * config/powerpc/macos.mt: Delete file.
12068 * config/powerpc/nm-macos.h: Delete file.
12069 * config/powerpc/tm-macos.h: Delete file.
12070 * source.c (openp, open_source_file): Remove obsolete code.
12071 * top.c (gdb_readline): Ditto.
12072 * utils.c (query): Ditto.
12073 * event-top.c (display_gdb_prompt): Ditto.
12074 * Makefile.in (ser-mac.o): Delete obsolete target.
12077 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12079 * defs.h (BIG_ENDIAN): Delete macro definition.
12080 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
12081 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
12082 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
12083 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
12084 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
12085 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
12086 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
12087 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
12088 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
12089 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
12090 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
12091 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12092 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12093 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12094 * gdbarch.c: Re-generate.
12096 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12098 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12101 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12103 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12105 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12107 * value.h (value_ptr): Delete typedef.
12109 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12111 * i386nbsd-nat.c: Update copyright years.
12112 Include i386-tdep.h.
12114 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
12116 * stabsread.c: Update copyright years.
12118 From Debashis Mahata <debashis.mahata@wipro.com>:
12119 (read_struct_fields): Deal with Sun C compiler erroneous stab
12120 output for structs and unions.
12123 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12125 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12128 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12130 * cp-abi.c: Fix whitespace.
12131 (baseclass_offset): New wrapper function.
12132 * cp-abi.h (baseclass_offset): Add prototype.
12133 (struct cp_abi_ops): Add baseclass_offset pointer.
12135 * valops.c (vb_match): Move to...
12136 * gnu-v2-abi.c (vb_match): here.
12137 * valops.c (baseclass_offset): Move to...
12138 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12140 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12142 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12143 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12144 * hpacc-abi.c (init_hpacc_ops): Likewise.
12146 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12148 * valops.c (find_overload_match): Accept obj as a
12149 reference parameter. Update it before returning.
12150 * value.h (find_overload_match): Update prototype.
12151 * eval.c (evaluate_subexp_standard): Pass object to
12152 find_overload_match by reference.
12154 2002-01-03 Andrew Cagney <ac131313@redhat.com>
12156 * valarith.c: Replace value_ptr with struct value pointer. Remove
12157 register attribute from value declarations.
12160 * scm-lang.c (scm_lookup_name): Ditto.
12162 2002-01-03 Michael Snyder <msnyder@redhat.com>
12164 Abstract the functionality of iterating over mapped memory
12165 regions into a general purpose iterator function.
12166 * procfs.c (iterate_over_mappings): New function, general purpose
12167 iterator for memory sections.
12168 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12169 (solib_mappings_callback): New function, callback for above.
12170 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12171 (info_mappings_callback): New function, callback for above.
12173 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12175 2002-01-01 Mark Kettenis <kettenis@gnu.org>
12177 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12178 * i386-tdep.c: Include "elf-bfd.h".
12179 (process_note_abi_tag_sections): New function.
12180 (i386_gdbarch_init): Add code to recognize various OS/ABI
12183 * maint.c (_initialize_maint_cmds): Add missing \ in
12186 For older changes see ChangeLog-2001
12192 version-control: never