1 2002-07-13 Aidan Skinner <aidan@velvet.net>
3 * ada-tasks.c (add_task_entry): replace calls to
5 * ada-tasks.c (init_task_list): replace calls to free with xfree()
7 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
8 ada_finish_decode_line_1, all_sals_for_line
9 ada_breakpoint_rewrite): replace calls to free() with xfree()
11 2002-07-12 Kevin Buettner <kevinb@redhat.com>
13 From Nicholas Duffek (with minor changes by Martin Hunt,
14 Louis Hamilton, and Kevin Buettner):
15 * aix-thread.c: New file.
17 2002-07-12 Petr Sorfa <petrs@caldera.com>
19 * dwarf2read.c (dwarf2_invalid_attrib_class): New
20 complaint for invalid attribute class or form.
21 (read_func_scope): DW_AT_frame_base
22 better handling of DW_AT_block*.
23 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
24 better handling of DW_AT_block*.
25 (read_common_block): DW_AT_location
26 better handling of DW_AT_block*.
27 (read_partial_die): DW_AT_location better handling
29 (new_symbol): DW_AT_external better handling of
30 DW_AT_block*. Proper initialization of variable
32 (attr_form_is_block): New function that returns true
33 if the attribute's form is of DW_FORM_block*.
35 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
37 * valops.c (find_method_list): Remove comment about
38 removed STATIC_MEMFUNCP argument.
39 (value_find_oload_method_list): Likewise.
41 2002-07-12 Kevin Buettner <kevinb@redhat.com>
44 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
45 target_new_objfile_hook.
47 2002-07-12 Kevin Buettner <kevinb@redhat.com>
50 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
53 2002-07-12 Andrew Cagney <cagney@redhat.com>
55 * MAINTAINERS: Mention --enable-sim-build-warnings.
56 (m68hc11-elf): Disable sim build warnings.
57 (m32r-elf): Mark as broken obsolete candidate.
58 (x86_64-linux-gnu): Mark as buildable with -Werror.
59 (arm-elf): Change -w to ``,'' which enables warnings but not
62 2002-07-12 Andrew Cagney <ac131313@redhat.com>
64 * bcache.h: Update copyright.
65 (struct bstring, struct bcache): Move definition to "bcache.c".
66 Replaced by opaque declaration.
67 (bcache_xfree): Replace free_bcache.
68 (bcache_xmalloc, bcache_memory_used): Declare.
70 * bcache.c: Update copyright.
71 (struct bstring, struct bcache): Moved to here from "bcache.h".
73 (bcache_xmalloc, bcache_memory_used): New functions.
74 (bcache_xfree): Replace function free_bcache.
76 * Makefile.in (objfiles.o): Add $(bcache_h).
77 (objfiles_h): Remove $(bcache_h).
78 (symfile.o): Add $(bcache_h).
80 * symmisc.c: Update copyright.
81 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
82 (print_objfile_statistics): Use bcache_memory_used.
84 * symfile.c: Include "bcache.h".
85 (reread_symbols): Use bcache_xfree.
86 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
87 (add_psymbol_to_list): Pass psymbol_cache by value.
88 (add_psymbol_with_dem_name_to_list): Ditto.
90 * objfiles.h: Update copyright.
91 (struct bcache): Declare opaque. Do not include "bcache.h".
92 (struct objfile): Change psymbol_cache and macro_cache to ``struct
94 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
96 * objfiles.c: Include "bcache.h". Update copyright.
97 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
99 (free_objfile): Use bcache_xfree.
101 2002-07-11 Grace Sainsbury <graces@redhat.com>
103 * monitor.c (monitor_fetch_register): Make name a constant.
104 (monitor_store_register): Same.
106 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
108 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
109 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
110 (finish_block) For non-function blocks, hash the symbol table. For
111 function blocks, mark the symbol table as unhashed.
112 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
113 (msymbol_hash_iw): Likewise.
114 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
116 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
117 (lookup_minimal_symbol): Likewise for both.
118 * symtab.h (struct block): Add `hashtable' flag. Comment the
120 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
121 (ALL_BLOCK_SYMBOLS): Update.
122 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
123 (struct symbol): Add `hash_next' pointer.
124 * symtab.c (lookup_block_symbol): Search using the hash table when
126 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
127 (search_symbols, find_addr_symbol): Likewise.
129 * dstread.c (process_dst_block): Clear hashtable bit for new block.
130 (read_dst_symtab): Likewise.
131 * jv-lang.c (get_java_class_symtab): Likewise.
132 * mdebugread.c: Include "gdb_assert.h".
133 (shrink_block): Assert that the block being modified is not hashed.
134 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
135 * symmisc.c (free_symtab_block): Walk the hash table when freeing
137 (dump_symtab): Recognize hashed blocks.
138 * printcmd.c (print_frame_args): Assert that function blocks do not
139 have hashed symbol tables.
140 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
141 (fill_in_ada_prototype, debug_print_block): Likewise.
142 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
144 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
146 * stack.c (print_frame): Use result of frame_address_in_block()
147 instead of fi->pc when evaluating symbols.
148 (backtrace_command_1): Ditto.
150 2002-07-11 Andrew Cagney <cagney@redhat.com>
152 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
155 * arm-tdep.c (arm_register_name): Make return type constant.
157 2002-07-10 Andrew Cagney <ac131313@redhat.com>
159 * win32-nat.c (has_detach_ability): Convert to strict ISO C
161 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
162 * s390-tdep.c (s390_fp_regnum): Ditto.
163 (s390_read_fp): Ditto.
164 (s390_pop_frame): Ditto.
165 (_initialize_s390_tdep): Ditto.
166 * remote.c (get_remote_state): Ditto.
167 * procfs.c (mappingflags): Ditto.
168 * memattr.c (_initialize_mem): Ditto.
169 * mcore-tdep.c (mcore_pop_frame): Ditto.
170 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
171 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
172 * language.c (set_case_str): Ditto.
173 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
174 * frv-tdep.c (new_variant): Ditto.
175 (frv_stopped_data_address): Ditto.
176 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
177 (context_alloc): Ditto.
178 (frame_state_alloc): Ditto.
179 (unwind_tmp_obstack_init): Ditto.
180 (unwind_tmp_obstack_free): Ditto.
181 (cfi_read_fp): Ditto.
182 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
183 (cris_pop_frame): Ditto.
184 * c-lang.c (scanning_macro_expansion): Ditto.
185 (finished_macro_expansion): Ditto.
186 (c_preprocess_and_parse): Ditto.
188 * gdbarch.h, gdbarch.c: Regenerate.
189 * config/mn10200/tm-mn10200.h: Adjust indentation.
190 * target.c: Adjust indentation.
191 * symtab.h: Adjust indentation.
192 * stabsread.h: Adjust indentation.
193 * remote-es.c: Adjust indentation.
194 * os9kread.c: Adjust indentation.
196 2002-07-10 Andrew Cagney <ac131313@redhat.com>
198 * wince.c (_initialize_wince): Rename _initialize_inftarg.
199 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
201 2002-07-10 Grace Sainsbury <graces@redhat.com>
203 * NEWS: Mention m68k, mcore multi-arching.
204 * MAINTAINERS: Change status of m68k, mcore to reflect
207 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
209 * valops.c (find_overload_match): Free oload_syms.
211 2002-07-09 Joel Brobecker <brobecker@gnat.com>
213 Define HAVE_SYS_PROC_H if sys/proc.h exists
214 * configure.in: Add check for sys/proc.h
215 * config.in: Regenerate.
216 * configure: Regenerate.
218 2002-07-09 Grace Sainsbury <graces@redhat.com>
220 * config/m68k/tm-m68k.h: Remove macros wrapped in
223 2002-07-09 David O'Brien <obrien@FreeBSD.org>
225 * gdbserver/gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
226 (perror_with_name, remote_close, remote_open, expect, play): Static.
228 2002-07-08 Andrew Cagney <ac131313@redhat.com>
230 * config.in, configure: Regenerate.
232 2002-07-08 Mark Kettenis <kettenis@gnu.org>
234 * dwarf2cfi.c: Include "gcore.h".
235 (execute_stack_op): Fix implementation of the
236 DW_OP_deref and DW_OP_deref_size operators by letting do their
237 lookup in the target.
239 2002-07-07 Mark Kettenis <kettenis@gnu.org>
241 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
242 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
245 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
247 Fix PR gdb/595, gdb/602
248 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
249 Don't call value_cast, just read the vtable pointer; update comments
252 2002-07-05 Grace Sainsbury <graces@redhat.com>
254 * config/mcore/tm-mcore.h: Remove file.
255 * config/mcore/mcore.mt: Remove definition of TM_FILE
256 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
258 2002-07-05 Mark Kettenis <kettenis@gnu.org>
260 * i386bsd-tdep.c: Include "gdb_string.h".
262 2002-07-04 Grace Sainsbury <graces@redhat.com>
264 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
265 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
267 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
268 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
269 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
270 (RETVAL_REGNUM): Move macros from tm-mcore.h
271 (mcore_reg_struct_has_addr): New function.
272 (mcore_gdbarch_init): Added initializations for the macros removed
275 2002-07-04 Mark Kettenis <kettenis@gnu.org>
277 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
278 traditonal string branding within the ELF header.
280 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
282 * symtab.c (remove_params): New function.
283 (make_symbol_overload_list): Use it instead of cplus_demangle.
284 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
286 2002-07-04 Mark Kettenis <kettenis@gnu.org>
288 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
290 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
292 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
293 and tdep->sigtramp_end.
294 * i386obsd-nat.c: New file.
295 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
297 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
298 Don't call get_current_frame().
300 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
302 * i386-nat.c (child_post_startup_inferior): New function
303 calling i386_cleanup_dregs if
304 I386_USE_GENERIC_WATCHPOINTS is defined.
305 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
306 conditional to acknowledge that i386-nat.c has its
307 own child_post_startup_inferior function.
309 2002-07-04 Mark Kettenis <kettenis@gnu.org>
311 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
312 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
313 instead of MAX_REGISTER_RAW_SIZE.
314 (i386_extract_return_value, i386_extract_struct_value_address):
315 Convert to use regcache.
316 (i386_gdbarch_init): Set max_register_raw_size and
317 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
318 Set extract_return_value and extract_struct_value_address instead
319 of their deprecated variants.
321 Convert i386 target to generic dummy frames.
322 * i386-tdep.c: Include "symfile.h".
323 (i386_frameless_signal_p): Consider a function to be frameless if
324 the pc points at the first instruction of the function.
325 (i386_frame_chain): Handle (generic) call dummies.
326 (i386_frame_saved_pc): Likewise.
327 (i386_frame_init_saved_regs): Remove code dealing with call
328 dummies on the stack.
329 (i386_push_dummy_frame): Removed.
330 (i386_call_dummy_words): Removed.
331 (i386_fix_call_dummy): Removed.
332 (i386_push_return_address): New function.
333 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
334 parameter, and don't call get_current_frame.
335 (i386_pop_frame): New function.
336 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
337 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
338 entry_point_address, set call_dummy_breakpoint_offset to 0, set
339 call_dummy_length to 0, set call_dummy_words to NULL, set
340 sizeof_call_dummy_words to 0, set fix_call_dummy to
341 generic_fix_call_dummy, set pc_in_call_dummy to
342 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
343 generic_push_dummy_frame, set push_return_address to
344 i386_push_return_address and set frame_chain_valid to
345 generic_file_frame_chain_valid.
347 2002-07-04 Michal Ludvig <mludvig@suse.cz>
349 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Make it an array of
350 byte offsets instead of an array of indexes.
351 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
353 2002-07-03 Andrew Cagney <ac131313@redhat.com>
355 * gdbarch.sh (struct regcache): Add opaque declaration.
356 (EXTRACT_RETURN_VALUE): New architecture method.
357 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
358 * gdbarch.h, gdbarch.c: Regenerate.
359 * arch-utils.c (legacy_extract_return_value): New function.
360 * arch-utils.h (legacy_extract_return_value): Declare.
361 * values.c (value_being_returned): Re-enable code handling
362 EXTRACT_STRUCT_VALUE_ADDRESS. Move
363 deprecated_grub_regcache_for_registers call to block handling
364 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
365 (EXTRACT_RETURN_VALUE): Do not define.
367 2002-07-03 Grace Sainsbury <graces@redhat.com>
369 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
370 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
371 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
372 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
373 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
374 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
375 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
376 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
377 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
378 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
379 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
380 argument so the function fits the prototype in the architecture
382 (mcore_pop_frame): Remove argument so the function fits the
383 prototype. Use get_current_frame instead of the argument.
384 (mcore_push_arguments): Change type of struct_return so the
385 function can be used in the architecture vector.
386 (mcore_store_struct_return): Add.
387 (mcore_frame_init_saved_regs): Add.
388 (mcore_gdbarch_init): Add function calls to replace the macros
389 removed from tm-mcore.h
391 2002-07-03 Andrew Cagney <ac131313@redhat.com>
393 * infcmd.c (print_return_value): Remove compatibility code calling
394 deprecated_grub_regcache_for_registers.
396 * values.c: Include "regcache.h".
397 (value_being_returned): Update. Use
398 deprecated_grub_regcache_for_registers to extract the register
400 * value.h (value_being_returned): Change ``retbuf'' parameter to a
402 * Makefile.in (values.o): Add dependency on $(regcache_h).
404 * inferior.h (run_stack_dummy): Change type of second parameter to
405 a ``struct regcache''.
406 * valops.c (hand_function_call): Change type of retbuf to ``struct
407 regcache''. Allocate using regcache_xmalloc, clean using
408 make_cleanup_regcache_xfree.
409 * infcmd.c (run_stack_dummy): Update. Use
410 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
412 * regcache.c (do_regcache_xfree): New function.
413 (make_cleanup_regcache_xfree): New function.
414 * regcache.h (make_cleanup_regcache_xfree): Declare.
416 2002-07-03 Martin M. Hunt <hunt@redhat.com>
418 * event-top.c (command_line_handler): Don't read past
421 2002-07-03 Martin M. Hunt <hunt@redhat.com>
423 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
425 (varobj_create): Store frame_id for root.
426 (varobj_gen_name): Use xasprintf.
427 (varobj_update): Save and restore frame using get_frame_id() and
429 (create_child): Use xasprintf.
430 (new_root_variable): Initialize frame_id.
431 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
432 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
433 to prevent memory leak.
435 2002-07-03 Andrew Cagney <ac131313@redhat.com>
437 * valops.c (hand_function_call): Move declaration of retbuf to
438 start of function, allocate using malloc, add a cleanup but before
439 the inf_status cleanup, cleanup the buffer. Rename local variable
440 old_chain to inf_status_cleanup.
442 2002-07-03 Martin M. Hunt <hunt@redhat.com>
444 * top.c (execute_command): Use cmd_func() and cmd_func_p().
446 * cli/cli-decode.c (cmd_func_p): New function.
447 (cmd_func): New function.
449 * command.h: Add cmd_func() and cmd_func_p().
451 2002-07-03 Grace Sainsbury <graces@redhat.com>
453 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
454 (REGISTER_SIZE): Remove.
455 (MAX_REGISTER_RAW_SIZE): Remove.
456 (REGISTER_VIRTUAL_TYPE): Remove.
457 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
458 (REGISTER_NAME): Remove.
459 (USE_GENERIC_DUMMY_FRAMES): Remove.
460 (CALL_DUMMY): Remove.
461 (CALL_DUMMY_START_OFFSET): Remove.
462 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
463 (CALL_DUMMY_LOCATION): Remove.
464 (FIX_CALL_DUMMY): Remove.
465 (CALL_DUMMY_ADDRESS): Remove.
466 (SIZEOF_CALL_DUMMY_WORDS): Remove.
467 (SAVE_DUMMY_FRAME_TOS): Remove.
468 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
469 (mcore_register_virtual_type): New function.
470 (mcore_register_byte): New function.
471 (mcore_register_size): New function.
472 (mcore_register_name): New function.
473 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
474 macros removed from tm-mcore.h.
475 (mcore_dump_tdep): Add.
476 (_initialize_mcore_tdep): Add gdbarch_register call.
478 2002-07-03 Mark Kettenis <kettenis@gnu.org>
480 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
481 frameless_look_for_prologue, such that we actually call this
484 2002-07-02 Joel Brobecker <brobecker@gnat.com>
486 * frame.h (frame_address_in_block): New function.
488 * blockframe.c (frame_address_in_block): New function extracted
489 from get_frame_block().
490 (get_frame_block): Use frame_address_in_block().
491 (block_innermost_frame): Use frame_address_in_block() to match
492 the frame pc address against the block boundaries rather than
493 the frame pc directly. This prevents a failure when a frame pc
494 is actually a return-address pointing immediately after the end
497 2002-07-02 Grace Sainsbury <graces@redhat.com>
499 * MAINTAINERS: Add self under write after approval.
501 2002-07-02 Grace Sainsbury <graces@redhat.com>
503 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
504 used in architecture vector. The default is
505 m68k_local_breakpoint_from_pc.
506 (m68k_local_breakpoint_from_pc): Add.
507 (enum): Add register numbers from tm-m68k.h.
508 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
510 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
511 GDB_MULTI_ARCH_PARTIAL.
512 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
513 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
515 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
516 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
517 to enum in m68k-tdep.c
519 2002-07-02 Joel Brobecker <brobecker@gnat.com>
521 * solib-osf.c (open_map): Compute the list of shared libraries
522 loaded by the inferior, rather than the list of libraries loaded
523 by GDB itself. Otherwise, GDB ends up reading the symbols from
524 the wrong shared libraries...
526 2002-07-02 Mark Kettenis <kettenis@gnu.org>
528 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
529 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
531 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
533 (FRAMELESS_SIGNAL): Remove function.
534 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
535 i386_linux_saved_pc_after_call): Removed.
536 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
537 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
538 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
540 * i386-tdep.c (i386_frameless_signal_p): New function.
541 (i386_frame_chain): Deal with frameless signals.
542 (i386_sigtramp_saved_sp): New function.
543 (i386_frame_saved_pc): Deal with frameless signals.
544 (i386_saved_pc_after_call): Make sure the correct value is
545 returned just after entry into a sigtramp.
546 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
547 i386fbsd4_sc_sp_offset): New variables.
548 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
549 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
550 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
551 similiar to what we already did for sc_pc_offset.
552 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
555 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
557 2002-07-02 Michal Ludvig <mludvig@suse.cz>
559 * config/i386/tm-x86-64linux.h: New.
560 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
562 * config/i386/nm-x86-64.h: Rename to ...
563 * config/i386/nm-x86-64linux.h: ... this one.
564 * config/i386/x86-64linux.mh: Reflect the above change.
566 2002-07-01 Mark Kettenis <kettenis@gnu.org>
568 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
569 with sigcontext_addr. Add sc_sp_offset.
570 (i386bsd_sigtramp_saved_pc): Remove prototype.
571 (i386bsd_sicontext_addr): Add prototype.
572 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
573 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
574 (i386_svr4_sigtramp_saved_pc): Removed.
575 (i386_svr4_sigcontext_addr): New function.
576 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
577 Initialize tdep->sigcontext_addr instead. Initialize
578 tdep->sc_pc_offset and tdep->sc_sp_offset.
579 (i386_gdbarch_init): Likewise.
580 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
582 (i386bsd_sigtramp_saved_pc): Remove function.
583 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
584 Initialize tdep->sigcontext_addr instead. Initialize
586 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
587 of tdep->sigtramp_saved_pc.
588 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
589 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
592 * i386-tdep.c (i386_frameless_function_invocation,
593 i386_frame_num_args, i386_frame_init_saved_regs,
594 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
595 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
596 i386_extract_return_value, i386_store_return_value,
597 i386_extract_struct_value_address, i386_register_virtual_type,
598 i386_register_convertible, i386_register_convert_to_virtual,
599 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
600 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
603 2002-07-01 Mark Kettenis <kettenis@gnu.org>
605 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
607 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
608 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
609 this macro. Include "value.h".
611 2002-06-30 Aidan Skinner <aidan@velvet.net>
613 * ada-exp.tab.c: remove as it's a generated file
614 * ada-lex.c: remove as it's a generated file
616 2002-06-30 Mark Kettenis <kettenis@gnu.org>
618 * config/i386/tm-i386.h (struct frame_info, struct
619 frame_saved_regs, struct value, struct type): Remove forward
622 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
623 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
624 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
625 (FILL_FPXREGSET): Define.
627 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
629 * configure.tgt (i[3456]86-*-openbsd*): Fold into
630 i[3456]86-*-netbsd* case.
631 * config/i386/tm-obsd.h: Removed.
632 * config/i386/obsd.mt: Removed.
633 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
635 (MH_CFLAGS): Add -DYYDEBUG=0.
637 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
638 i386nbsd_sc_pc_offset on OpenBSD too.
640 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
641 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
642 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
644 * i386bsd-tdep.c: Include "arch-utils.h".
645 (i386bsd_aout_in_solib_call_trampoline): New function.
646 (i386bsd_init_abi): Set in_solib_call_trampoline to
647 i386bsd_aout_in_solib_call_trampoline.
648 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
649 in_solib_call_trampoline to generic_in_solib_call_trampoline.
651 2002-06-28 Andrew Cagney <ac131313@redhat.com>
653 * macrotab.h: Do not include "obstack.h" or "bcache.h".
654 (struct obstack, struct bcache): Add opaque declarations.
655 * Makefile.in (macrotab_h): Update
657 2002-06-28 Andrew Cagney <ac131313@redhat.com>
659 * blockframe.c (generic_find_dummy_frame): Change return type to
661 (struct dummy_frame): Replace field ``registers'' with regcache, a
662 struct regcache object.
663 (generic_find_dummy_frame): Update.
664 (generic_push_dummy_frame): Update. Use regcache_xfree,
665 regcache_xmalloc and regcache_cpy.
666 (generic_pop_dummy_frame): Update. Use regcache_cpy and
668 (deprecated_generic_find_dummy_frame): Update.
669 (generic_read_register_dummy): Update. Use
670 regcache_read_as_address.
671 (generic_call_dummy_register_unwind): Update. Use regcache_read.
672 (generic_get_saved_register): Update. Use regcache_read.
674 2002-06-28 Andrew Cagney <ac131313@redhat.com>
676 * Makefile.in (objfiles_h): Add $(bcache_h).
677 * objfiles.h: Include "bcache.h".
679 * Makefile.in (symtab_h): Remove $(bcache_h).
680 * symtab.h: Do not include "bcache.h".
682 2002-06-28 Andrew Cagney <ac131313@redhat.com>
684 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
685 generic_func_frame_chain_valid.
687 2002-06-28 David O'Brien <obrien@FreeBSD.org>
689 * config/i386/nm-fbsd.h: Include <sys/param.h>.
690 * config/i386/tm-fbsd.h: Likewise.
692 2002-06-28 Andrew Cagney <ac131313@redhat.com>
694 * rs6000-tdep.c (rs6000_gdbarch_init): Use
695 generic_unwind_get_saved_register.
697 2002-06-27 Andrew Cagney <ac131313@redhat.com>
699 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
700 * regcache.c (supply_register): Add missing argument to
701 register_buffer call.
703 2002-06-27 Andrew Cagney <ac131313@redhat.com>
705 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
706 Solaris /bin/grep does not not like it. From Peter Schauer.
708 2002-06-26 Tom Tromey <tromey@redhat.com>
710 * command.h (add_setshow_cmd): Declare.
711 (add_setshow_cmd_full): Declare.
712 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
713 returns void. Use add_setshow_cmd_full.
714 (add_setshow_cmd_full): New function.
715 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
716 (add_setshow_boolean_cmd): Likewise.
718 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
720 * config/vax/tm-vax.h: Protect from multiple inclusion.
721 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
722 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
723 * config/vax/tm-vaxbsd.h: ...here. New file.
724 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
726 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
728 * config/vax/tm-vax.h (BREAKPOINT): Remove.
729 (BELIEVE_PCC_PROMOTION): Remove.
730 (AP_REGNUM): Move to...
731 * config/vax/nm-vax.h: ...here.
732 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
733 (vax_breakpoint_from_pc): New function.
734 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
735 and gdbarch_believe_pcc_promotion.
737 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
739 * Makefile.in (vax_tdep_h): Define.
740 (vax-tdep.o): Use $(vax_tdep_h).
741 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
742 (vax_dump_tdep): New function.
743 (_initialize_vax_tdep): Register vax_dump_tdep.
744 * vax-tdep.h: Include osabi.h.
745 (struct gdbarch_tdep): New.
747 2002-06-26 Andrew Cagney <cagney@redhat.com>
749 * frame.h (deprecated_generic_find_dummy_frame): Rename
750 generic_find_dummy_frame.
751 * blockframe.c (generic_find_dummy_frame): Make static.
752 (deprecated_generic_find_dummy_frame): New function.
753 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
754 generic_find_dummy_frame with deprecated_find_dummy_frame.
755 (sh64_nofp_frame_init_saved_regs): Ditto.
756 (sh_fp_frame_init_saved_regs): Ditto.
757 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
758 (s390_frame_chain): Ditto.
759 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
761 2002-06-26 Grace Sainsbury <graces@redhat.com>
763 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
764 gdbarch vector are at the top.
766 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
767 (FRAME_ARGS_ADDRESS): Remove.
768 (FRAME_LOCALS_ADDRESS): Remove.
769 (FRAME_NUM_ARGS): Remove.
770 (FRAME_ARGS_SKIP): Remove.
771 * m68k-tdep.c (enum): Add eumeration of special register numbers.
772 (m68k_gdbarch_init): Add gdbarch initializations for macros
773 undefined in tm-m68k.h
775 2002-06-26 Grace Sainsbury <graces@redhat.com>
777 * monitor.h: Add the function regname to monitor_ops
778 structure. This way NUM_REGS does not have to be a constant.
779 * monitor.c (monitor_fetch_register): Added support for regname
780 function. The function is called if the array regnames is NULL.
781 (monitor_store_register): Same.
782 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
784 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
785 cpu32bug_cmds.regname to point to new function.
786 * abug-rom.c (abug_regname): Same as above.
787 (init_abug_cmds): Same.
788 * dbug-rom.c (dbug_regname): Same as above.
789 (init_dbug_cmds): Same.
790 * remote-est.c (est_regname): Same.
791 (init_est_cmds): Same.
792 * rom68k-rom.c (rom68k_regname): Same.
793 (init_rom68k_cmds): Same.
795 2002-06-25 Tom Tromey <tromey@redhat.com>
797 * breakpoint.c (delete_command): Don't repeat `delete' commands.
799 2002-06-25 Andrew Cagney <cagney@redhat.com>
801 * infrun.c (stop_registers): Change variable's type to ``struct
803 (xmalloc_inferior_status): Delete function.
804 (free_inferior_status): Delete function.
805 (normal_stop): Use regcache_cpy.
806 (struct inferior_status): Change type of fields ``stop_registers''
807 and ``registers'' to ``struct regcache''.
808 (write_inferior_status_register): Use regcache_write.
809 (save_inferior_status): Instead of calling
810 xmalloc_inferior_status, allocate the inf_status buffer directly.
811 Use regcache_dup_no_passthrough and regcache_dup to save the
813 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
814 Replace the stop_registers regcache instead of overriding it. Use
815 regcache_xfree. Instead of calling free_inferior_status, xfree
817 (discard_inferior_status): Use regcache_xfree. Instead of calling
818 free_inferior_status, xfree the buffer directly.
819 (build_infrun): Use regcache_xmalloc.
820 (_initialize_infrun): Delete redundant call to build_infrun.
822 * Makefile.in (infcmd.o): Add $(regcache_h).
824 * infcmd.c: Include "regcache.h".
825 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
826 obtain the address of `stop_registers' register buffer.
827 (print_return_value): Ditto.
829 * inferior.h (struct regcache): Add opaque declaration.
830 (stop_registers): Change variable's declared type to ``struct
833 2002-06-24 Tom Tromey <tromey@redhat.com>
835 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
836 * target.c (initialize_targets): Fixed typo in
837 trust-readonly-sections `show' documentation.
839 * main.c: Marked all strings with _().
841 2002-06-24 Don Howard <dhoward@redhat.com>
843 * memattr.c (create_mem_region): Treat hi == 0 as a special case
844 that means max CORE_ADDR+1.
845 (lookup_mem_region): Ditto.
846 (mem_info_command): Ditto.
848 2002-06-24 Grace Sainsbury <graces@redhat.com>
850 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
851 (REGISTER_BYTES_OK): Remove.
852 (REGISTER_BYTES): Remove.
853 (STORE_STRUCT_RETURN): Remove.
854 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
855 (STORE_RETURN_VALUE): Remove.
856 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
857 (FRAME_CHAIN): Remove.
858 (FRAMELESS_FUNCTION_INVOCATION): Remove.
859 (FRAME_SAVED_PC): Remove.
860 * m68k-tdep.c (m68k_register_bytes_ok):Add.
861 (m68k_store_struct_return): Add.
862 (m68k_deprecated_extract_return_value): Add.
863 (m68k_deprecated_extract_struct_value_address): Add.
864 (m68k_store_return_value): Add.
865 (m68k_frame_chain): Add.
866 (m68k_frameless_function_invocation): Add.
867 (m68k_frame_saved_pc): Add.
868 (m68k_gdbarch_init): added set_gdbarch calls for new
869 functions and deleted macros.
871 2002-06-23 Tom Tromey <tromey@redhat.com>
873 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
874 (ALLDEPFILES): Likewise.
875 (udiheaders): Removed.
876 (udip2soc.o): Likewise.
877 (udi2go32.o): Likewise.
879 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
881 2002-06-22 Andrew Cagney <ac131313@redhat.com>
883 * infrun.c (_initialize_infrun): Delete unnecessary call to
886 * regcache.h: Update comments describing the regcache_cpy family
888 (regcache_save, regcache_restore): Delete declaration.
889 (regcache_save_no_passthrough): Delete declaration.
890 (regcache_restore_no_passthrough): Delete declaration.
891 * regcache.c (regcache_save): Delete function.
892 (regcache_save_no_passthrough): Delete function.
893 (regcache_restore): Delete function.
894 (regcache_restore_no_passthrough): Delete function.
896 2002-06-21 Andrew Cagney <ac131313@redhat.com>
898 * config/m68k/tm-m68k.h: Fix typo.
899 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
900 (m68k_frame_init_saved_regs): Declare.
902 2002-06-21 Jim Blandy <jimb@redhat.com>
904 Remove some vestiges of Harris 88k support.
905 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
906 register numbering quirk.
907 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
908 odd symbols occurring in Harris 88k ELF targets.
910 2002-06-21 Tom Tromey <tromey@redhat.com>
912 * gdb_locale.h: New file.
913 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
914 (defs_h): Added gdb_locale.h.
915 * configure, config.in: Rebuilt.
916 * configure.in (PACKAGE): Define.
917 * defs.h: Include gdb_locale.h.
918 * main.c (captured_main): Call setlocale, bindtextdomain,
921 2002-06-21 Dave Brolley <brolley@redhat.com>
923 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
924 * config/frv/frv.mt: New file.
925 * config/frv/tm-frv.h: New file.
926 * configure.tgt: Support frv-*-*.
927 * Makefile.in (frv-tdep.o): New target.
928 * frv-tdep.c: New file.
931 2002-06-21 Dave Brolley <brolley@redhat.com>
933 * MAINTAINERS: Add self to "Write After Approval" list.
935 2002-06-21 Grace Sainsbury <graces@redhat.com>
937 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
938 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
939 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
940 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
941 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
943 * m68k-tdep.c: Include arch-utils.h
944 (m68k_register_raw_size): Add.
945 (m68k_register_virtual_size): Add.
946 (m68k_register_virtual_type): Add.
947 (m68k_register_name): Add.
948 (m68k_stack_align): Add.
949 (m68k_register_byte): Add.
950 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
953 2002-06-21 Grace Sainsbury <graces@redhat.com>
955 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
956 m68k_find_saved_regs.
957 (m68k_pop_frame): Removed saved_regs structure, and replaced
958 references to it with frame->saved_regs.
959 (m68k_gdbarch_init): Added function calls to initialize the
961 (m68k_fix_call_dummy): Add.
962 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
963 (CALL_DUMMY): Remove.
964 (CALL_DUMMY_LENGTH): Remove.
965 (CALL_DUMMY_START_OFFSET): Remove.
966 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
967 (FIX_CALL_DUMMY): Remove.
968 (PUSH_DUMMY_FRAME): Remove.
971 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
973 * parse.c (parse_fprintf): New function used to avoid calls to
974 fprintf in bison parser generated debug code.
975 * parser-defs.h: Declaration of new parse_fprintf function.
976 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
977 Set YYDEBUG to 1 by default.
978 Set YYFPRINTF as parse_fprintf.
980 2002-06-21 Michal Ludvig <mludvig@suse.cz>
982 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
984 (pointer_encoding, enum ptr_encoding): New.
985 (execute_cfa_program): Take care about pointer encoding.
986 (dwarf2_build_frame_info): Only call parse_frame_info for
987 .debug_frame and .eh_frame.
988 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
989 fixed augmentation handling, added relative addressing,
990 ignore duplicate FDEs. Added comments.
991 * dwarf2cfi.c: Reindented.
993 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
995 * event-top.c (command_handler): Don't use space_at_cmd_start
996 unless there is sbrk() on the host. Assign time and space data
997 to union fields of the appropriate length.
999 2002-06-20 Michal Ludvig <mludvig@suse.cz>
1001 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
1002 x86_64_register_name. Return type changed to 'const char *'.
1003 (x86_64_register_name2nr): Rename to x86_64_register_number.
1004 (x86_64_gdbarch_init): Update to reflect the change.
1005 * x86-64-tdep.h: Ditto.
1006 * x86-64-linux-nat.c (x86_64_fxsave_offset)
1007 (supply_fpregset): Ditto.
1009 2002-06-19 Andrew Cagney <cagney@redhat.com>
1011 * regcache.h: Update copyright.
1012 (struct regcache, struct gdbarch): Add opaque declarations.
1013 (current_regcache): Declare global variable.
1014 (regcache_read, regcache_write): Add gdbarch parameter.
1015 (regcache_save, regcache_save_no_passthrough)
1016 (regcache_restore, regcache_restore_no_passthrough)
1017 (regcache_dup, regcache_dup_no_passthrough)
1018 (regcache_cpy, regcache_cpy_no_passthrough)
1019 (deprecated_grub_regcache_for_registers)
1020 (deprecated_grub_regcache_for_register_valid)
1021 (regcache_valid_p): Add function declarations.
1023 * regcache.c: Update copyright.
1024 (regcache_descr_handle): New global variable.
1025 (struct regcache_descr): Define.
1026 (init_legacy_regcache_descr, init_regcache_descr): New functions.
1027 (regcache_descr, xfree_regcache_descr): New functions.
1028 (struct regcache): Define.
1029 (regcache_xmalloc, regcache_xfree): New functions.
1030 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
1031 (regcache_dup, regcache_dup_no_passthrough): New functions.
1032 (regcache_valid_p, regcache_read_as_address): New functions.
1033 (deprecated_grub_regcache_for_registers): New function.
1034 (deprecated_grub_regcache_for_register_valid): New function.
1035 (current_regcache): New global variable.
1036 (register_buffer): Add regcache parameter. Update calls.
1037 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
1038 (read_register_gen, write_register_gen): Update register_buffer
1039 call. Test for legacy_p instead of gdbarch_register_read_p or
1040 gdbarch_register_write_p.
1041 (regcache_collect): Update register_buffer call.
1042 (build_regcache): Rewrite. Use deprecated grub functions.
1043 (regcache_save, regcache_save_no_passthrough): New functions.
1044 (regcache_restore, regcache_restore_no_passthrough): New
1046 (_initialize_regcache): Create the regcache_data_handle. Swap
1047 current_regcache global variable.
1049 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
1050 parameter to regcache_read and regcache_write calls.
1051 (sh4_register_read): Ditto.
1052 (sh64_pseudo_register_read): Ditto.
1053 (sh64_register_read): Ditto.
1054 (sh_pseudo_register_write): Ditto.
1055 (sh4_register_write): Ditto.
1056 (sh64_pseudo_register_write): Ditto.
1057 (sh64_register_write): Ditto.
1059 * defs.h (XCALLOC): Define.
1061 2002-06-19 Grace Sainsbury <graces@redhat.com>
1063 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
1064 * m68k-tdep.c (m68k_gdbarch_init): Added.
1065 (m68k_dump_tdep): Added.
1067 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
1069 * ada-lang.c (fill_in_ada_prototype): Update comment.
1071 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
1073 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
1075 (mips_abi_string, mips_abi_strings): New.
1076 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
1077 (mips_gdbarch_init): Set tdep->found_abi. Don't set
1078 tdep->mips_abi_string. Honor mips_abi_string. Default to
1079 O32 if no ABI is found.
1080 (mips_dump_tdep): Use mips_abi_strings.
1081 (mips_abi_update): New function.
1082 (_initialize_mips_tdep): Initialize mips_abi_string. Add
1083 ``set mips abi'' and ``show mips abi''. Check the size of
1086 2002-06-19 Andrew Cagney <cagney@redhat.com>
1088 * i386-linux-tdep.c (i386_linux_register_name): Make return type
1091 2002-06-18 Joel Brobecker <brobecker@gnat.com>
1093 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
1094 current frame using only the first stack size adjustment. All
1095 subsequent size adjustments are not considered to be part of
1096 the "static" part of the current frame.
1097 Compute the address of the saved registers relative to the
1098 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
1099 in use in this frame.
1101 2002-06-18 Don Howard <dhoward@redhat.com>
1103 * valops.c (value_ind): Use value_at_lazy() when dereferencing
1104 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
1105 suggesting this solution.
1107 2002-06-18 Andrew Cagney <ac131313@redhat.com>
1109 * config/romp/xm-rtbsd.h: Delete file.
1110 * config/romp/rtbsd.mh: Delete file.
1112 2002-06-18 Keith Seitz <keiths@redhat.com>
1114 * breakpoint.c (condition_command): Post breakpoint_modify
1115 when a condition is added to an existing breakpoint.
1116 (commands_command): Likewise for commands.
1117 (set_ignore_count): Likewise for ignore counts.
1118 If no tty, do not simply return, still need to send event
1120 (ignore_command): Only print a newline if the command came
1122 Don't call breakpoints_changed, since this is now properly
1123 handled by set_ignore_count.
1125 2002-06-18 Andrew Cagney <cagney@redhat.com>
1127 * MAINTAINERS: Note that cris-elf target can be compiled with
1129 * cris-tdep.c (cris_register_name): Make return type constant.
1130 (cris_breakpoint_from_pc): Ditto.
1132 2002-06-18 Michal Ludvig <mludvig@suse.cz>
1134 * frame.h (struct frame_info): Change type of context to
1137 2002-06-17 Andrew Cagney <cagney@redhat.com>
1139 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
1141 * gdbarch.h, gdbarch.c: Regenerate.
1142 * config/mips/tm-mips.h (mips_register_name): Update.
1143 * i386-tdep.h (i386_register_name): Update.
1144 * mips-tdep.c (mips_register_name): Update
1145 * alpha-tdep.c (alpha_register_name): Update.
1146 * arch-utils.c (legacy_register_name): Update.
1147 * arch-utils.h (legacy_register_name): Update.
1148 * avr-tdep.c (avr_register_name): Update.
1149 * ia64-tdep.c (ia64_register_name): Update.
1150 * i386-tdep.c (i386_register_name): Update.
1151 * sparc-tdep.c (sparc32_register_name): Update.
1152 (sparc64_register_name): Update.
1153 (sparclite_register_name): Update.
1154 (sparclet_register_name): Update.
1155 * sh-tdep.c (sh_generic_register_name): Update.
1156 (sh_sh_register_name): Update.
1157 (sh_sh3_register_name): Update.
1158 (sh_sh3e_register_name): Update.
1159 (sh_sh_dsp_register_name): Update.
1160 (sh_sh3_dsp_register_name): Update.
1161 (sh_sh4_register_name): Update.
1162 (sh_sh64_register_name): Update.
1163 * s390-tdep.c (s390_register_name): Update.
1164 * rs6000-tdep.c (rs6000_register_name): Update.
1165 * ns32k-tdep.c (ns32k_register_name_32082): Update.
1166 (ns32k_register_name_32382): Update.
1167 * d10v-tdep.c (d10v_ts2_register_name): Update.
1168 (d10v_ts3_register_name): Update.
1169 * xstormy16-tdep.c (xstormy16_register_name): Update.
1170 * vax-tdep.c (vax_register_name): Update.
1171 * v850-tdep.c (v850_register_name): Update.
1172 * m68hc11-tdep.c (m68hc11_register_name): Update.
1173 * mn10300-tdep.c (mn10300_generic_register_name): Update.
1174 (am33_register_name): Update.
1176 2002-06-17 Grace Sainsbury <graces@redhat.com>
1178 * m68k-tdep.c: Reindented.
1180 2002-06-17 Andrew Cagney <ac131313@redhat.com>
1182 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
1183 list of predefined types.
1185 2002-06-16 Mark Kettenis <kettenis@gnu.org>
1187 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
1188 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
1189 REGISTER_CONVERT_TO_RAW): Remove defines.
1190 (i386_register_virtual_type, i386_register_convertible,
1191 i386_register_convert_to_virtual, i386_register_convert_to_raw):
1193 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
1194 macros mentioned above.
1196 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
1197 (i386lynx_saved_pc_after_call): Remove prototype.
1198 * i386ly-tdep.c: Include "i386-tdep.h".
1199 (i386lynx_saved_pc_after_call): Make static. Use
1200 read_memory_nobpt instead of read_memory. Use
1201 read_memory_unsigned_integer instead of read_memory_integer.
1202 (i386lynx_init_abi): New function.
1203 (i386lynx_coff_osabi_sniffer): New function.
1204 (_initialize_i386bsd_tdep): New function.
1206 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
1207 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
1208 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
1209 (i386_fix_call_dummy): Remove prototype.
1210 * i386-tdep.c (i386_call_dummy_words): New variable.
1211 (i386_gdbarch_init): Adjust for removal of the
1212 macros mentioned above.
1214 2002-06-15 Andrew Cagney <ac131313@redhat.com>
1216 * command.h (add_setshow_auto_boolean_cmd): Replace
1217 add_set_auto_boolean_cmd.
1218 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
1219 add_set_auto_boolean_cmd.
1220 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
1221 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
1222 mask-address'' command.
1223 (show_mask_address): Add cmd parameter.
1224 * remote.c (add_packet_config_cmd): Update. Change type of
1225 set_func and show_func to cmd_sfunc_ftype.
1226 (_initialize_remote): Update `set remote Z-packet'
1227 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
1228 (show_remote_protocol_e_packet_cmd): Ditto.
1229 (show_remote_protocol_E_packet_cmd): Ditto.
1230 (show_remote_protocol_P_packet_cmd): Ditto.
1231 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
1232 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
1233 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
1234 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
1235 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
1236 (show_remote_protocol_Z_packet_cmd): Ditto.
1237 (show_remote_protocol_binary_download_cmd): Ditto.
1238 (show_remote_cmd): Pass NULL to all of above.
1240 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1242 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
1243 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
1244 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
1245 POP_FRAME): Remove defines.
1246 (i386_push_arguments, i386_store_struct_return,
1247 i386_extract_return_value, i386_store_return_value,
1248 i386_extract_struct_value_address, i386_push_dummy_frame,
1249 i386_pop_frame): Renove prototypes.
1250 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
1251 macros mentioned above.
1253 2002-06-15 Andrew Cagney <ac131313@redhat.com>
1255 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
1256 add_set_boolean_cmd.
1257 (add_setshow_cmd): New function.
1258 * command.h (add_setshow_boolean_cmd): Replace
1259 add_set_boolean_cmd.
1260 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
1261 and ``set rdiromatzero''.
1262 * maint.c (_initialize_maint_cmds): Update commented out code.
1263 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
1264 * target.c (initialize_targets): Update `set
1265 trust-readonly-sections'.
1266 * remote.c (_initialize_remote): Update `set remotebreak'.
1268 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1270 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
1271 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
1272 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
1273 fit into multi-arch framework.
1274 (i386_breakpoint_from_pc): New function.
1275 (i386_gdbarch_init): Adjust for removal of the macros mentioned
1278 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
1279 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
1280 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
1281 (i386_frameless_function_invocation, i386_frame_num_args,
1282 i386_frame_init_saved_regs): Remove prototypes.
1283 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
1284 macros mentioned above.
1286 2002-06-15 Andrew Cagney <ac131313@redhat.com>
1288 * cli/cli-decode.c (set_cmd_cfunc): Update.
1289 (set_cmd_sfunc): Update.
1290 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
1291 (set_cmd_sfunc, set_cmd_cfunc): Update.
1292 * cli/cli-decode.h: Update.
1294 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1296 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
1297 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
1299 2002-06-15 Andrew Cagney <ac131313@redhat.com>
1301 * defs.h (auto_boolean): Declare enum.
1302 * command.h (cmd_auto_boolean): Delete enum.
1303 * mips-tdep.c (mask_address_var): Update.
1304 (mips_mask_address_p): Update.
1305 (show_mask_address): Update.
1306 * remote.c (struct packet_config): Update.
1307 (update_packet_config): Update.
1308 (show_packet_config_cmd): Update.
1309 (packet_ok): Update.
1310 (add_packet_config_cmd): Update.
1311 (_initialize_remote):
1312 * command.h: Update.
1313 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
1314 (do_setshow_command): Update.
1315 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
1316 * cli/cli-decode.h: Update.
1318 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1320 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
1321 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
1322 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
1323 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
1324 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
1325 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
1327 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
1328 list of DJGPP COFF targets.
1330 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
1331 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
1332 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
1333 (FP0_REGNUM): Remove define.
1334 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
1335 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
1336 (i386_register_virtual_size): Remove protoype.
1337 * i386-tdep.c (i386_register_virtual_size): Removed.
1338 (i386_extract_return_value, i386_store_return_value): Use
1339 FP0_REGNUM instead of NUM_FREGS to determine whether the
1340 floating-point registers are available.
1341 (i386_gdbarch_init): Tweak FIXME about FPU registers.
1342 Adjust for removal of macros mentioned above.
1344 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1346 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
1348 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
1350 (supply_gregset, fill_gregset): Remove use of register keyword and
1351 remove declaration for regmap. Use I386_NUM_GREGS instead of
1352 NUM_REGS and NUM_FREGS.
1353 (FPREGSET_FSAVE_OFFSET): Remove.
1354 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
1355 NUM_FREGS to determine whether the floating-point registers are
1358 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
1359 gnu_store_registers): Replace usage of NUM_GREGS with
1362 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
1363 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
1364 usage of NUM_GREGS with I386_NUM_GREGS.
1366 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
1368 * i386bsd-nat.c: Include "i386-tdep.h".
1369 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
1372 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
1373 and associated comment. They no longer make any sense, since we
1374 don't use this file anymore on Linux.
1376 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
1377 * i386-tdep.c (i386_register_offset, i386_register_size): Use
1378 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
1379 elements in these arrays.
1380 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
1383 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1385 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
1386 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
1388 2002-06-14 Andrew Cagney <cagney@redhat.com>
1390 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
1391 EXTRACT_RETURN_VALUE.
1392 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
1393 EXTRACT_STRUCT_VALUE_ADDRESS.
1394 * gdbarch.h, gdbarch.c: Regenerate.
1396 * values.c (value_being_returned): Handle
1397 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
1398 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
1400 * arm-linux-tdep.c (arm_linux_init_abi): Update.
1401 * arm-tdep.c (arm_gdbarch_init): Update.
1402 * avr-tdep.c (avr_gdbarch_init): Update.
1403 * cris-tdep.c (cris_gdbarch_init): Update.
1404 * d10v-tdep.c (d10v_gdbarch_init): Update.
1405 * ia64-tdep.c (ia64_gdbarch_init): Update.
1406 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1407 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1408 * s390-tdep.c (s390_gdbarch_init): Update.
1409 * sh-tdep.c (sh_gdbarch_init): Update.
1410 * s390-tdep.c (s390_gdbarch_init): Update.
1411 * sparc-tdep.c (sparc_gdbarch_init): Update.
1412 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1413 * v850-tdep.c (v850_gdbarch_init): Update.
1414 * vax-tdep.c (vax_gdbarch_init): Update.
1415 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1416 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1418 * config/arc/tm-arc.h: Update.
1419 * config/d30v/tm-d30v.h: Update.
1420 * config/fr30/tm-fr30.h: Update.
1421 * config/h8300/tm-h8300.h: Update.
1422 * config/h8500/tm-h8500.h: Update.
1423 * config/i386/tm-i386.h: Update.
1424 * config/i386/tm-ptx.h: Update.
1425 * config/i386/tm-symmetry.h: Update.
1426 * config/i960/tm-i960.h: Update.
1427 * config/m32r/tm-m32r.h: Update.
1428 * config/m68k/tm-delta68.h: Update.
1429 * config/m68k/tm-linux.h: Update.
1430 * config/m68k/tm-m68k.h: Update.
1431 * config/m88k/tm-m88k.h: Update.
1432 * config/mcore/tm-mcore.h: Update.
1433 * config/mips/tm-mips.h: Update.
1434 * config/mn10200/tm-mn10200.h: Update.
1435 * config/pa/tm-hppa.h: Update.
1436 * config/pa/tm-hppa64.h: Update.
1437 * config/sparc/tm-sp64.h: Update.
1438 * config/sparc/tm-sparc.h: Update.
1439 * config/sparc/tm-sparclet.h: Update.
1440 * config/z8k/tm-z8k.h: Update.
1442 2002-06-14 Andrew Cagney <cagney@redhat.com>
1444 * Makefile.in (i386_linux_tdep_h): Define.
1445 (i386_tdep_h, i387_tdep_h): Define.
1446 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
1447 $(i386_tdep_h) and $(i387_tdep_h).
1448 * i386-linux-nat.c: Include "i386-linux-tdep.h".
1450 2002-06-14 Mark Kettenis <kettenis@gnu.org>
1452 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
1453 Already covered by the default.
1455 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
1456 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
1457 (i386_gdbarch_init): Initialize long_double_format and long_double
1460 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
1461 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
1463 * config/i386/i386sol2.mh: ... here.
1464 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
1465 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
1466 (SIGCONTEXT_PC_OFFSET): Remove define.
1467 (IN_SIGTRAMP): Remove define.
1468 * i386-sol2-tdep.c: New file.
1470 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
1471 * config/i386/tm-i386nw.h: Removed.
1473 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
1474 USE_STRUCT_CONVENTION): Remove defines.
1475 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
1476 (get_longjmp_target): Remove prototype.
1477 (IN_SIGTRAMP): Remove define.
1478 (i386bsd_in_sigtramp): Remove prototype.
1479 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
1480 function. Update comment accordingly
1481 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
1482 (FRAME_SAVED_PC): Remove define.
1483 (i386bsd_frame_saved_pc): Remove prototype.
1484 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
1485 GET_LONGJMP_TARGET): Remove defines.
1486 (get_longjmp_target): Remove prototype.
1487 (IN_SIGTRAMP): Remove define.
1488 (i386bsd_in_sigtramp): Remove prototype.
1489 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
1490 function. Update comment accordingly
1491 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
1492 (FRAME_SAVED_PC): Remove define.
1493 (i386bsd_frame_saved_pc): Remove prototype.
1494 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
1496 (USE_STRUCT_CONVENTION): Remove prototype.
1497 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
1499 (_initialize_i386bsd_nat): Revise logic to determine some
1500 constants at compile time when compiling a native GDB. Warn if
1501 things don't match up with what we expect.
1502 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
1504 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
1505 to use date stored in `struct gdbarch_tdep'.
1506 (i386bsd_sigcontext_offset): Remove varaible.
1507 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
1508 stored in `struct gdbarch_tdep'.
1509 (i386bsd_frame_saved_pc): Make static.
1510 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
1511 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
1512 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1513 i386fbsd4_sc_pc_offset): New variables.
1514 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
1515 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
1517 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
1519 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
1520 Modify the value of i386fbsd_sigtramp_start and
1521 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
1522 i386fbsd_sigtramp_end.
1523 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
1526 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
1527 define to i386-linux-tdep.h.
1528 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
1529 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
1531 (i386_linux_register_name, i386_linux_register_byte,
1532 i386_linux_register_raw_size): Remove prototypes.
1533 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
1534 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
1535 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
1536 TARGET_WRITE_PC): Remove defines.
1537 (i386_linux_in_sigtramp, i386_linux_frame_chain,
1538 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
1539 i386_linux_write_pc): Remove prototypes.
1540 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
1541 (get_longjmp_target): Remove prototype.
1542 * i386-linux-tdep.h: New file.
1543 * i386-linux-nat.c: Include "i386-linux-tdep.h".
1544 * i386-linux-tdep.c: Include "i386-tdep.h" and
1545 "i386-linux-tdep.h".
1546 (i386_linux_register_name, i386_linux_register_byte,
1547 i386_linux_register_raw_size, i386_linux_in_sigtramp,
1548 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
1550 (i386_linux_init_abi): New function.
1551 (_initialize_i386_linux_tdep): New function.
1553 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
1554 (i386_saved_pc_after_call): Remove prototype.
1555 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
1556 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
1557 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
1558 (i386_register_name, i386_stab_reg_to_regnum,
1559 i386_dwarf_reg_to_regnum): Remove prototypes.
1560 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
1561 SIZEOF_SSE_REGS): Remove defines.
1562 (REGISTER_BYTES): Remove define.
1563 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
1564 (i386_register_byte, i386_register_raw_size): Remove prototypes.
1565 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
1566 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
1567 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
1568 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
1569 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
1570 (get_longjmp_target): Remove prototype.
1571 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
1572 (sigtramp_saved_pc): Remove define.
1573 (i386v4_sigtramp_saved_pc): Remove prototype.
1574 * config/i386/tm-go32.h (FRAME_CHAIN,
1575 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
1576 (i386go32_frame_saved_pc): Remove prototype.
1577 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
1578 (get_longjmp_target): Remove prototype.
1579 * i386-tdep.h: Include "osabi.h".
1580 (enum i386_abi): Removed.
1581 (enum struct_return): New enum.
1582 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
1583 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
1584 sc_pc_offset members.
1585 (i386_gdbarch_register_os_abi): Remove prototype.
1586 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
1587 I386_SSE_NUM_REGS): New defines.
1588 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
1589 I386_SSE_SIZEOF_REGS): New defines.
1590 (i386_register_name, i386_register_byte, i386_register_raw_size):
1592 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
1593 (i386bsd_sigtramp_saved_pc): New prototype.
1594 * i386-tdep.c: Don't include "elf-bfd.h".
1595 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
1596 i386_frame_chain, i386_saved_pc_after_call): Make static.
1597 (i386_frame_saved_pc): Rewrite to call architecture dependent
1598 function to deal with signal handlers. Make static.
1599 (i386go32_frame_saved_pc): Removed.
1600 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
1602 (i386_get_longjmp_target): New function.
1603 (default_struct_convention, pcc_struct_convention,
1604 reg_struct_convention, valid_conventions, struct_convention): New
1606 (i386_use_struct_convention): New function.
1607 (i386v4_sigtramp_saved_pc): Renamed to
1608 i386_svr4_sigtramp_saved_pc. Made static. Moved.
1609 (i386_pc_in_sigtramp): New function.
1610 (i386_abi_names): Removed.
1611 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
1612 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
1614 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
1615 i386_gdbarch_register_os_abi): Removed.
1616 (struct i386_abi_handler): Removed.
1617 (i386_abi_handler_list): Removed.
1618 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
1620 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
1621 i386_nw_init_abi): New functions.
1622 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
1623 Use set_gdbarch_xxx() calls instead of relying on macros for a
1625 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
1626 (_initialize_i386_tdep): Add new 'struct-convcention' command.
1627 Register the various architecture variants defined in this file.
1629 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
1631 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
1632 (struct main_type): Remove arg_types member. Update comments for
1634 (TYPE_ARG_TYPES): Remove.
1635 (TYPE_FN_FIELD_ARGS): Update.
1636 (smash_to_method_type): Update prototype.
1638 * c-typeprint.c (cp_type_print_method_args): Take method type
1639 instead of argument list. Use new argument layout. Simplify.
1640 (c_type_print_args): Use new argument layout. Simplify.
1641 (c_type_print_base): Update call to cp_type_print_method_args.
1642 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
1643 argument; use die->type instead. Update call to
1644 smash_to_method_type.
1645 (read_structure_scope): Update call to dwarf2_add_member_fn.
1646 * gdbtypes.c (allocate_stub_method): Update comment.
1647 (smash_to_method_type): Take new NARGS and VARARGS arguments.
1648 Use new argument layout.
1649 (check_stub_method): Use new argument layout. Don't count
1650 void as an argument.
1651 (print_arg_types): Update comments. Use new argument layout.
1652 (recursive_dump_type): Don't print arg_types member.
1653 * hpread.c (hpread_read_struct_type): Use new argument layout.
1654 (fixup_class_method_type): Likewise.
1655 (hpread_type_lookup): Likewise.
1656 * stabsread.c (read_type): Update calls to read_args and
1657 smash_to_method_type.
1658 (read_args): Use new argument layout. Simplify.
1659 * valops.c (typecmp): Use new argument layout. Update parameters
1660 and comments. Simplify.
1661 (hand_function_call): Use new argument layout.
1662 (search_struct_method): Update call to typecmp.
1663 (find_overload_match): Use new argument layout.
1665 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
1667 * NEWS: Mention multithreaded debug support for gdbserver.
1669 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
1671 * MAINTAINERS: Mention NEWS.
1673 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
1675 * gdbserver/regcache.c: Add comment.
1677 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
1679 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
1680 (struct mips_objfile_private, compare_pdr_entries): New.
1681 (non_heuristic_proc_desc): Read the ".pdr" section if it
1684 2002-06-12 Andrew Cagney <ac131313@redhat.com>
1686 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
1687 (arm_debug): New static variable.
1688 (_initialize_arm_tdep): Add ``set debug arm'' command.
1690 2002-06-12 Andrew Cagney <ac131313@redhat.com>
1692 * Makefile.in (sim_arm_h): Define.
1693 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
1694 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
1695 (arm_register_sim_regno): New function, map an internal REGNUM
1696 onto a simulator register number.
1697 (arm_gdbarch_init): Set register_sim_regno.
1699 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
1701 * MAINTAINERS: Add self.
1703 2002-06-11 Jim Blandy <jimb@redhat.com>
1705 * source.c (source_info): Mention whether the symtab has
1706 information about preprocessor macros.
1708 Call the command `info macro', not `show macro'.
1709 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
1711 (_initialize_macrocmd): Register `info_macro_command' in
1712 `infolist', not `showlist'.
1714 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
1716 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
1717 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
1718 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
1719 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
1720 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
1722 (set_mipsfpu_single_command, set_mipsfpu_double_command)
1723 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
1724 (_initialize_mips_tdep): Remove dead code.
1725 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
1726 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
1727 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
1728 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
1729 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
1730 MIPS_LAST_FP_ARG_REGNUM): Remove.
1732 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
1734 * gdbserver/thread-db.c: New file.
1735 * gdbserver/proc-service.c: New file.
1736 * gdbserver/acinclude.m4: New file.
1737 * gdbserver/Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
1738 proc-service.o, and thread-db.o.
1739 (linux-low.o): Add USE_THREAD_DB.
1740 * gdbserver/acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
1741 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
1742 * gdbserver/aclocal.m4: Regenerated.
1743 * gdbserver/config.in: Regenerated.
1744 * gdbserver/configure: Regenerated.
1745 * gdbserver/configure.in: Check for proc_service.h, sys/procfs.h,
1746 thread_db.h, and linux/elf.h headrs.
1747 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
1748 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
1749 Check for -lthread_db and thread support.
1750 * gdbserver/configure.srv: Enable thread_db support for ARM, i386, MIPS,
1751 PowerPC, and SuperH.
1752 * gdbserver/i387-fp.c: Constify arguments.
1753 * gdbserver/i387-fp.h: Likewise.
1754 * gdbserver/inferiors.c: (struct thread_info): Renamed from
1755 `struct inferior_info'. Remove PID member. Use generic inferior
1756 list header. All uses updated.
1757 (inferiors, signal_pid): Removed.
1758 (all_threads): New variable.
1759 (get_thread): Define.
1760 (add_inferior_to_list): New function.
1761 (for_each_inferior): New function.
1762 (change_inferior_id): New function.
1763 (add_inferior): Removed.
1764 (remove_inferior): New function.
1765 (add_thread): New function.
1766 (free_one_thread): New function.
1767 (remove_thread): New function.
1768 (clear_inferiors): Use for_each_inferior and free_one_thread.
1769 (find_inferior): New function.
1770 (find_inferior_id): New function.
1771 (inferior_target_data): Update argument type.
1772 (set_inferior_target_data): Likewise.
1773 (inferior_regcache_data): Likewise.
1774 (set_inferior_regcache_data): Likewise.
1775 * gdbserver/linux-low.c (linux_bp_reinsert): Remove.
1776 (all_processes, stopping_threads, using_thrads)
1777 (struct pending_signals, debug_threads, pid_of): New.
1778 (inferior_pid): Replace with macro.
1779 (struct inferior_linux_data): Remove.
1780 (get_stop_pc, add_process): New functions.
1781 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
1782 Use add_process and add_thread.
1783 (linux_attach_lwp): New function, based on old linux_attach. Use
1784 add_process and add_thread. Set stop_expected for new threads.
1785 (linux_attach): New function.
1786 (linux_kill_one_process): New function.
1787 (linux_kill): Kill all LWPs.
1788 (linux_thread_alive): Use find_inferior_id.
1789 (check_removed_breakpoints, status_pending_p): New functions.
1790 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
1791 Update. Use WNOHANG. Wait for cloned processes also. Update process
1792 struct for the found process.
1793 (linux_wait_for_event): New function.
1794 (linux_wait): Use it. Support LWPs.
1795 (send_sigstop, wait_for_sigstop, stop_all_processes)
1796 (linux_resume_one_process, linux_continue_one_process): New functions.
1797 (linux_resume): Support LWPs.
1798 (REGISTER_RAW_SIZE): Remove.
1799 (fetch_register): Use register_size instead. Call supply_register.
1800 (usr_store_inferior_registers): Likewise. Call collect_register.
1802 (regsets_fetch_inferior_registers): Improve error message.
1803 (regsets_store_inferior_registers): Add debugging.
1804 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
1805 (unstopped_p, linux_signal_pid): New functions.
1806 (linux_target_ops): Add linux_signal_pid.
1807 (linux_init_signals): New function.
1808 (initialize_low): Call it. Initialize using_threads.
1809 * gdbserver/regcache.c (inferior_regcache_data): Add valid
1811 (get_regcache): Fetch registers lazily. Add fetch argument
1812 and update all callers.
1813 (regcache_invalidate_one, regcache_invalidate): New
1815 (new_register_cache): Renamed from create_register_cache.
1816 Return the new regcache.
1817 (free_register_cache): Change argument to a void *.
1818 (registers_to_string, registers_from_string): Call get_regcache
1819 with fetch flag set.
1820 (register_data): Make static. Pass fetch flag to get_regcache.
1821 (supply_register): Call get_regcache with fetch flag clear.
1822 (collect_register): Call get_regcache with fetch flag set.
1823 (collect_register_as_string): New function.
1824 * gdbserver/regcache.h: Update.
1825 * gdbserver/remote-utils.c (putpkt): Flush after debug output and use
1827 Handle input interrupts while waiting for an ACK.
1828 (input_interrupt): Use signal_pid method.
1829 (getpkt): Flush after debug output and use stderr.
1830 (outreg): Use collect_register_as_string.
1831 (new_thread_notify, dead_thread_notify): New functions.
1832 (prepare_resume_reply): Check using_threads. Set thread_from_wait
1834 (look_up_one_symbol): Flush after debug output.
1835 * gdbserver/server.c (step_thread, server_waiting): New variables.
1836 (start_inferior): Don't use signal_pid. Update call to mywait.
1837 (attach_inferior): Update call to mywait.
1838 (handle_query): Handle qfThreadInfo and qsThreadInfo.
1839 (main): Don't fetch/store registers explicitly. Use
1840 set_desired_inferior. Support proposed ``Hs'' packet. Update
1842 * gdbserver/server.h: Update.
1843 (struct inferior_list, struct_inferior_list_entry): New.
1844 * gdbserver/target.c (set_desired_inferior): New.
1845 (write_inferior_memory): Constify.
1846 (mywait): New function.
1847 * gdbserver/target.h: Update.
1848 (struct target_ops): New signal_pid method.
1849 (mywait): Removed macro, added prototype.
1851 * gdbserver/linux-low.h (regset_func): Removed.
1852 (regset_fill_func, regset_store_func): New.
1853 (enum regset_type): New.
1854 (struct regset_info): Add type field. Use new operation types.
1855 (struct linux_target_ops): stop_pc renamed to get_pc.
1856 Add decr_pc_after_break and breakpoint_at.
1857 (get_process, get_thread_proess, get_process_thread)
1858 (strut process_info, all_processes, linux_attach_lwp)
1859 (thread_db_init): New.
1861 * gdbserver/linux-arm-low.c (arm_get_pc, arm_set_pc,
1862 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
1863 (the_low_target): Add new members.
1864 * gdbserver/linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
1865 (i386_store_fpxregset): Constify.
1866 (target_regsets): Add new kind identifier.
1867 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
1868 (i386_set_pc): Add debugging.
1869 (i386_breakpoint_at): New function.
1870 (the_low_target): Add new members.
1871 * gdbserver/linux-mips-low.c (mips_get_pc, mips_set_pc)
1872 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
1873 (mips_breakpoint_at): New.
1874 (the_low_target): Add new members.
1875 * gdbserver/linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
1876 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
1877 (the_low_target): Add new members.
1878 * gdbserver/linux-sh-low.c (sh_get_pc, sh_set_pc)
1879 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
1880 (the_low_target): Add new members.
1881 * gdbserver/linux-x86-64-low.c (target_regsets): Add new kind
1884 2002-06-11 Michal Ludvig <mludvig@suse.cz>
1886 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
1887 (unwind_tmp_obstack_free, parse_frame_info)
1888 (update_context, cfi_read_fp, cfi_write_fp)
1889 (cfi_frame_chain, cfi_init_extra_frame_info)
1890 (cfi_virtual_frame_pointer): Use the above function.
1891 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
1893 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
1895 * v850-tdep.c (v850_type_is_scalar): New function.
1896 (v850_use_struct_convention): Match current gcc implementation
1897 as close as possible.
1898 (v850_push_arguments): Fix stack_offset handling. Don't write
1899 struct_addr into register. This is done by v850_store_struct_return.
1900 (v850_extract_return_value): Care for structs.
1901 (v850_store_return_value): Ditto.
1902 (v850_store_struct_return): Actually write address.
1904 2002-06-11 Michal Ludvig <mludvig@suse.cz>
1906 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
1907 without debug information too.
1909 2002-06-10 Andrew Cagney <ac131313@redhat.com>
1911 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
1912 Make multi-arch pure.
1913 * gdbarch.h, gdbarch.c: Re-generate.
1914 * arm-tdep.c (arm_print_float_info): Update.
1915 * arch-utils.h (default_print_float_info): Update.
1916 * arch-utils.c (default_print_float_info): Update.
1917 * infcmd.c (float_info): Update call.
1919 2002-06-10 Andrew Cagney <ac131313@redhat.com>
1921 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
1922 the front of the initialize list.
1924 2002-06-10 Andrew Cagney <ac131313@redhat.com>
1926 * infrun.c (struct inferior_status): Replace fields
1927 selected_frame_address and selected_level with field
1929 (save_inferior_status): Update. Use get_frame_id.
1930 (struct restore_selected_frame_args): Delete.
1931 (restore_selected_frame): Update. Use frame_find_by_id.
1932 (restore_inferior_status): Update.
1934 * breakpoint.h (struct breakpoint): Change type of
1935 watchpoint_frame to frame_id.
1936 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
1937 call to get_current_frame.
1938 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
1940 (watchpoint_check): Use frame_find_by_id.
1942 * frame.h (record_selected_frame): Delete declaration.
1943 * stack.c (record_selected_frame): Delete function.
1945 * frame.h (struct frame_id): Define.
1946 (get_frame_id): Declare.
1947 (frame_find_by_id): Declare.
1948 * frame.c (frame_find_by_id): New function.
1949 (get_frame_id): New function.
1951 2002-06-10 Andrey Volkov <avolkov@transas.com>
1953 * ser-e7kpc.c: Fix duplicated define and call of
1954 _initialize_ser_e7000pc
1956 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
1958 * signals/signals.c (target_signal_from_host): Fix #ifdef
1960 (do_target_signal_to_host): Likewise.
1962 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
1964 * mips-tdep.c (mips_find_abi_section): New function.
1965 (mips_gdbarch_init): Call it.
1967 2002-06-09 Mark Kettenis <kettenis@gnu.org>
1969 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
1970 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
1971 after Andrew's 2002-06-08 gdbarch change.
1973 2002-06-09 Mark Kettenis <kettenis@gnu.org>
1975 * i386-linux-nat.c (suppy_gregset): Don't supply
1976 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
1978 (fill_gregset): Don't fetch it under the same circumstances.
1980 2002-06-09 Andrew Cagney <cagney@redhat.com>
1982 * Makefile.in (callback_h): Define.
1983 (remote_sim_h): Update path to remote-sim.h.
1984 (remote-rdp.o): Add $(callback_h).
1985 (remote-sim.o): Use $(callback_h).
1986 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
1987 * remote-rdp.c: Include "gdb/callback.h".
1989 2002-06-09 Mark Kettenis <kettenis@gnu.org>
1991 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
1992 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
1994 2002-06-08 Andrew Cagney <ac131313@redhat.com>
1996 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
1997 * rdi-share/serpardr.c: Ditto.
1998 * rdi-share/unixcomm.c: Ditto.
1999 * rdi-share/serdrv.c: Ditto.
2000 * rdi-share/hostchan.h: Ditto.
2001 * rdi-share/hostchan.c: Ditto.
2002 * rdi-share/host.h: Ditto.
2003 * rdi-share/devsw.c: Ditto.
2005 * objfiles.h: Change type of obj_private to void pointer.
2006 * pa64solib.c: Update copyright. Don't include "assert.h", use
2007 strcmp instead of STREQ, use LONGEST, do not use PTR
2008 * somsolib.c: Ditto.
2010 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
2011 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
2012 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
2014 2002-06-08 Andrew Cagney <ac131313@redhat.com>
2016 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
2017 (default_get_saved_register): Delete function.
2018 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
2019 generic_unwind_get_saved_register.
2020 * gdbarch.h, gdbarch.c: Re-generate.
2022 2002-06-08 Andrew Cagney <ac131313@redhat.com>
2024 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
2025 generic_func_frame_chain_valid.
2026 * gdbarch.h, gdbarch.c: Re-generate.
2027 * blockframe.c (generic_func_frame_chain_valid): Only check
2028 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
2029 passing FP to PC_IN_CALL_DUMMY.
2032 2002-06-08 Andrew Cagney <ac131313@redhat.com>
2034 * gdbarch.sh (struct gdbarch_data): Add field init_p.
2035 (register_gdbarch_data): Initialize init_p.
2036 (gdbarch_data): Initialize data pointer using the init function.
2037 (init_gdbarch_data): Delete function.
2038 (gdbarch_update_p): Update.
2039 (initialize_non_multiarch): Update.
2040 (struct gdbarch): Add field initialized_p.
2041 * gdbarch.h, gdbarch.c: Re-generate.
2043 2002-06-07 Michal Ludvig <mludvig@suse.cz>
2045 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
2046 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
2047 better do the things actually here.
2048 * x86-64-tdep.c (x86_64_register_name2nr): New.
2049 (x86_64_register_name): Renamed to x86_64_register_nr2name.
2050 (x86_64_gdbarch_init): Respect the above change.
2051 * x86-64-tdep.h (x86_64_register_name2nr)
2052 (x86_64_register_nr2name): Add prototypes.
2053 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
2055 2002-06-06 Michael Snyder <msnyder@redhat.com>
2057 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
2058 Delete extra braces and re-indent.
2059 (d10v_store_return_value): Char return values
2060 must be shifted over by one byte in R0.
2061 (d10v_extract_return_value): Delete extra braces, re-indent.
2063 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
2065 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
2066 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
2067 (d10v_integer_to_address): Rewrite.
2068 (d10v_frame_init_saved_regs): When reading fp and sp registers use
2069 the d10v specific functions which take care of converting to the
2072 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
2074 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
2075 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
2077 2002-06-02 Andrew Cagney <ac131313@redhat.com>
2079 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
2081 * config/tm-linux.h: Ditto.
2082 * config/alpha/tm-alphalinux.h: Ditto.
2083 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
2084 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
2085 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
2086 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
2087 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
2088 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
2089 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
2090 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
2091 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
2092 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
2093 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
2094 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
2095 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
2096 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
2097 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
2098 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
2099 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
2100 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
2101 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
2102 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
2103 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
2104 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
2105 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
2106 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
2107 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
2108 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
2109 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
2110 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
2111 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
2112 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
2113 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
2114 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
2115 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
2116 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
2117 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
2118 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
2119 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
2121 2002-05-04 Aidan Skinner <aidan@velvet.net>
2123 * ada-exp.tab.c: New file
2124 * ada-exp.y: New file
2125 * ada-lang.c: New file
2126 * ada-lang.h: New file
2127 * ada-lex.c: New file
2128 * ada-lex.l: New file
2129 * ada-tasks.c: New file
2130 * ada-typeprint.c: New file
2131 * ada-valprint.c: New file
2133 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
2135 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
2136 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
2138 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
2140 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
2141 insetead of ppc-linux-tdep.o.
2142 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
2143 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
2145 2002-06-02 Andrew Cagney <ac131313@redhat.com>
2147 2002-05-07 Christian Groessler <chris@groessler.org>
2148 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
2149 bit register contents for little endian hosts.
2151 2002-06-01 Andrew Cagney <ac131313@redhat.com>
2153 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
2156 2002-06-01 Andrew Cagney <ac131313@redhat.com>
2158 * gdbarch.h: Regenerate.
2160 2002-06-01 Andrew Cagney <ac131313@redhat.com>
2162 * MAINTAINERS: Add everyone to write-after-approval list.
2164 2002-06-01 Andrew Cagney <ac131313@redhat.com>
2166 * stack.c (frame_info): Use frame_register_unwind instead of
2167 saved_regs. Mention when the SP is on the stack or in a register.
2169 * frame.h (frame_register_unwind_ftype): Define. Document.
2170 (struct frame_info): Add field register_unwind and
2171 register_unwind_cache.
2172 (frame_register_unwind): Declare.
2173 (generic_unwind_get_saved_register): Declare.
2175 * frame.c (frame_register_unwind): New function.
2176 (generic_unwind_get_saved_register): New function.
2178 * blockframe.c (generic_call_dummy_register_unwind): New function.
2179 (frame_saved_regs_register_unwind): New function.
2180 (set_unwind_by_pc): New function.
2181 (create_new_frame): New function.
2182 (get_prev_frame): New function.
2184 2002-05-30 Andrew Cagney <ac131313@redhat.com>
2186 * a29k-share/: Delete directory.
2187 * remote-vx29k.c: Delete file.
2189 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
2191 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
2192 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
2194 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
2196 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
2197 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
2200 (sparcnbsd-tdep.o): New dependency lists.
2201 * NEWS: Note new UltraSPARC NetBSD native configuration.
2202 * configure.host (sparc64-*-netbsd*): New host.
2203 * configure.tgt (sparc-*-netbsdelf*)
2204 (sparc-*-netbsd*): Set gdb_target to nbsd.
2205 (sparc64-*-netbsd*): New target.
2206 * sparc64nbsd-nat.c: New file.
2207 * sparcnbsd-nat.c: New file.
2208 * sparcnbsd-tdep.c: New file.
2209 * sparcnbsd-tdep.h: New file.
2210 * config/sparc/nbsd.mt: New file.
2211 * config/sparc/nbsd64.mh: New file.
2212 * config/sparc/nbsd64.mt: New file.
2213 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
2214 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
2216 * config/sparc/nbsdaout.mt: Remove.
2217 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
2218 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
2220 * config/sparc/nbsdelf.mt: Remove.
2221 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
2222 sparc-nat.c compatiblity defines.
2223 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
2224 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
2225 * config/sparc/tm-nbsd64.h: New file.
2226 * config/sparc/tm-nbsdaout.h: Remove.
2227 * config/sparc/xm-nbsd.h: Remove.
2229 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
2231 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
2232 * sparc-tdep.c: Include osabi.h.
2233 (gdbarch_tdep): Add osabi member.
2234 (_initialize_sparc_tdep): Use gdbarch_register.
2235 (sparc_gdbarch_init): Use generic OS ABI framework.
2236 (sparc_dump_tdep): New function.
2238 2002-05-30 Kevin Buettner <kevinb@redhat.com>
2240 * corefile.c (do_captured_read_memory_integer): Return non-zero
2242 (safe_read_memory_integer): Copy result of memory read when
2243 status is non-zero. Also, add comments.
2245 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
2247 * Makefile.in (ppc_tdep_h): Define.
2250 (rs6000-tdep.o): Use $(ppc_tdep_h).
2253 (ppcnbsd-tdep.o): New dependency lists.
2254 * ppc-tdep.h: Use generic OS ABI framework.
2255 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
2256 (ppc_linux_init_abi): New functions.
2257 (ppc_sysv_abi_broken_use_struct_convention)
2258 (ppc_sysv_abi_use_struct_convention)
2259 (ppc_sysv_abi_push_arguments): Move to...
2260 * ppc-sysv-tdep.c: ...here.
2261 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
2262 * rs6000-tdep.c (process_note_abi_tag_sections)
2263 (get_elfosabi): Remove.
2264 (rs6000_gdbarch_init): Use generic OS ABI framework.
2265 (rs6000_dump_tdep): New function.
2266 (_initialize_rs6000_tdep): Use gdbarch_register.
2267 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
2268 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
2269 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
2270 of ppc-linux-tdep.o.
2271 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
2272 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
2273 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
2274 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
2275 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
2276 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
2278 2002-05-29 Jim Blandy <jimb@redhat.com>
2280 * macroscope.c (default_macro_scope): Put `void' in empty argument
2283 2002-05-29 Andrew Cagney <ac131313@redhat.com>
2285 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
2286 * arch-utils.c: Include "sim-regno.h".
2287 * gdbarch.sh: Don't include "sim-regno.h".
2288 * gdbarch.h, gdbarch.c: Regenerate.
2289 * sim-regno.h (legacy_register_sim_regno): Move declaration from
2291 * arch-utils.h (legacy_register_sim_regno): To here.
2292 * remote-sim.c (legacy_register_sim_regno): Move function from
2294 * arch-utils.c (legacy_register_sim_regno): To here.
2296 2002-05-28 Andrew Cagney <ac131313@redhat.com>
2298 * sim-regno.h: New file.
2299 * Makefile.in (sim_regno_h): Define.
2300 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
2301 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
2302 (legacy_register_sim_regno): New function.
2303 (one2one_register_sim_regno): New function.
2304 (gdbsim_fetch_register): Rewrite.
2305 (gdbsim_store_register): Only store a register when
2306 REGISTER_SIM_REGNO is valid.
2307 * d10v-tdep.c: Include "sim-regno.h".
2308 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
2309 (d10v_ts3_register_sim_regno): Ditto.
2310 * gdbarch.sh: Include "sim-regno.h".
2311 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
2312 * gdbarch.h, gdbarch.c: Regenerate.
2313 * arch-utils.h (default_register_sim_regno): Delete declaration.
2314 * arch-utils.c (default_register_sim_regno): Delete function.
2316 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
2318 * ppcnbsd-nat.c: Rewrite.
2319 * ppcnbsd-tdep.c: New file.
2320 * ppcnbsd-tdep.h: New file.
2321 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
2322 solib.o, and solib-svr4.o.
2323 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
2324 nbsd-tdep.o, and corelow.o.
2326 2002-05-28 Andrew Cagney <ac131313@redhat.com>
2328 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
2329 `tr' and `sed'. Mention that `broken' targets are not expected to
2332 2002-05-27 Michal Ludvig <mludvig@suse.cz>
2334 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
2335 Let PC point right after the prologue before looking up symbols.
2337 2002-05-27 Martin M. Hunt <hunt@redhat.com>
2339 * i386-tdep.c (i386_register_virtual_type): Return
2340 builtin_type_vec128i for SSE registers.
2342 * gdbtypes.h (builtin_type_vec128i): Declare.
2344 * gdbtypes.c (build_builtin_type_vec128i): New function.
2345 (builtin_type_v2_double, builtin_type_v4_int64): New types.
2346 (builtin_type_vec128i): New type for SSE2 128-bit registers.
2347 (build_gdbtypes): Initialize new builtin vector types.
2348 (_initialize_gdbtypes): Register new vector types with gdbarch.
2350 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2352 * MAINTAINERS: ns32k is not longer an obsolete candidate,
2353 since it has been multi-arch'd.
2354 * NEWS: Note that ns32k-*-* is now partial multi-arch.
2355 Move Alpha and VAX multi-arch news entries to same section
2356 as other multi-arch news.
2358 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2360 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
2361 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
2362 static. Rename some register numbers to put them in ns32k-tdep
2364 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
2365 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
2367 (_initialize_ns32k_tdep): Use gdbarch_register.
2368 * ns32k-tdep.h: New file.
2369 * ns32knbsd-tdep.c: New file.
2370 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
2371 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
2372 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
2373 REGISTER_BYTES, REGISTER_BYTE): Remove.
2374 * config/ns32k/tm-ns32k.h: New file.
2375 * config/ns32k/tm-umax.h: Remove.
2377 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2379 * ns32k-tdep.c (ns32k_saved_pc_after_call,
2380 ns32k_store_struct_return, ns32k_extract_return_value,
2381 ns32k_store_return_value, ns32k_extract_struct_value_address): New
2383 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
2384 ns32k_saved_pc_after_call.
2385 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
2386 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
2387 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
2388 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
2389 ns32k_extract_struct_value_address.
2391 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2393 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
2394 ns32k_fix_call_dummy): New.
2395 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
2396 ns32k_call_dummy_words.
2397 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
2398 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
2399 CALL_DUMMY_NARGS): Remove.
2400 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
2402 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2404 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
2405 ns32k_frame_saved_pc, ns32k_frame_args_address,
2406 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
2407 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
2408 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
2409 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
2410 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
2411 (BREAKPOINT): Remove..
2412 (FRAME_CHAIN): Define as ns32k_frame_chain.
2413 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
2414 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
2415 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
2416 (FRAME_FIND_SAVED_REGS): Remove.
2417 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
2418 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
2419 (POP_FRAME): Define as ns32k_pop_frame.
2421 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2423 * ns32k-tdep.c (ns32k_register_byte_32082,
2424 ns32k_register_byte_32382, ns32k_register_raw_size,
2425 ns32k_register_virtual_size, ns32k_register_virtual_type): New
2427 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
2428 ns32k_register_byte_32382.
2429 * config/ns32k/tm-umax.h: Update copyright years.
2430 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
2431 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
2432 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
2433 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
2434 (ns32k_get_enter_addr): Fix prototype.
2436 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2438 * ns32k-tdep.c: Update copyright years.
2439 (ns32k_register_name_32082): New function.
2440 (ns32k_register_name_32382): Ditto.
2441 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
2442 (REGISTER_NAME): Define as ns32k_register_name_32382.
2443 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
2444 (REGISTER_NAME): Define as ns32k_register_name_32082.
2446 2002-05-24 Jim Blandy <jimb@redhat.com>
2448 * dwarf2read.c (free_line_header): Use xfree, not free.
2450 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
2452 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
2453 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
2455 2002-05-23 Andrew Cagney <ac131313@redhat.com>
2457 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
2459 2002-05-23 Andrew Cagney <ac131313@redhat.com>
2461 From Ross Alexander at NEC Europe:
2462 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
2464 2002-05-23 Michael Snyder <msnyder@redhat.com>
2466 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
2467 for input, rather than parse_and_eval_address.
2469 2002-05-23 Andrew Cagney <ac131313@redhat.com>
2471 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
2472 * Makefile.in (sim_d10v_h): Update definition.
2474 2002-05-24 Andrew Cagney <cagney@redhat.com>
2476 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
2477 change `2002-05-22 Michael Snyder' below.
2478 (d10v_push_arguments): Ditto.
2479 (d10v_extract_return_value): Ditto.
2481 2002-05-23 Jim Blandy <jimb@redhat.com>
2483 * macrotab.c (check_for_redefinition): Don't complain if the new
2484 definition is the same as the previous one. Take more arguments
2485 to allow the comparison.
2486 (macro_define_object, macro_define_function): Pass more arguments
2487 to check_for_redefinition.
2489 2002-05-22 Michael Snyder <msnyder@redhat.com>
2491 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
2492 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
2493 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
2494 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
2495 Don't bail if return_pc is PC_IN_CALL_DUMMY.
2496 Add a temp variable to save a call (and a memory read).
2497 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
2498 if possible (so that PC_IN_CALL_DUMMY will work).
2500 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
2502 * MAINTAINERS: Remove status `OBSOLETE' from v850.
2504 2002-05-22 Michal Ludvig <mludvig@suse.cz>
2506 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
2508 (dwarf2_build_frame_info): Corrected handling of eh_frame.
2509 (dwarf2_build_frame_info): Add offset to fde->initial_location
2510 so that frames of shared libraries are mapped correctly.
2511 (execute_stack_op): Change type of 'result' from ULONGEST to
2514 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
2516 * config/alpha/tm-nbsd.h: Include solib.h.
2518 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
2520 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
2521 assumptions about the host's byte order.
2523 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
2525 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
2527 * alphanbsd-tdep.c: Include solib-svr4.h.
2528 * shnbsd-tdep.c: Ditto.
2530 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
2532 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
2533 nbsd-tdep.h to dependency list.
2534 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
2535 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
2536 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
2537 nbsdaout.mh and nbsdelf.mh consistently.
2538 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
2539 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
2540 nbsdaout.mt and nbsdelf.mh consistently.
2541 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
2542 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
2543 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2544 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
2545 a.out shared library stuff from here...
2546 * config/nm-nbsdaout.h: ...to here.
2547 * config/tm-nbsd.h: Remove.
2548 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
2549 * config/arm/nbsd.mh: Remove.
2550 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
2552 * config/arm/nbsdaout.mh: New file.
2553 * config/arm/nbsdelf.mh: New file.
2554 * config/arm/nm-nbsdaout.h: New file.
2555 * config/i386/nbsd.mh: Remove.
2556 * config/i386/nbsd.mt: Remove.
2557 * config/i386/nbsdaout.mh: New file.
2558 * config/i386/nbsdaout.mt: New file.
2559 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
2560 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
2561 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
2562 i386_register_u_addr): Remove.
2563 * config/i386/nm-nbsdaout.h: New file.
2564 * config/i386/nm-nbsdelf.h: Remove.
2565 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
2566 (USE_STRUCT_CONVENTION): Remove.
2567 * config/i386/tm-nbsdaout.h: New file.
2568 * config/i386/tm-nbsdelf.h: Remove.
2569 * config/m68k/nbsd.mh: Remove.
2570 * config/m68k/nbsd.mt: Remove.
2571 * config/m68k/nbsdaout.mh: New file.
2572 * config/m68k/nbsdaout.mt: New file.
2573 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
2574 * config/m68k/nm-nbsdaout.h: New file.
2575 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
2576 (IN_SOLIB_CALL_TRAMPOLINE): Define.
2577 * config/ns32k/nbsd.mh: Remove.
2578 * config/ns32k/nbsd.mt: Remove.
2579 * config/ns32k/nbsdaout.mh: New file.
2580 * config/ns32k/nbsdaout.mt: New file.
2581 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
2582 * config/ns32k/nm-nbsdaout.h: New file.
2583 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
2584 (IN_SOLIB_CALL_TRAMPOLINE): Define.
2585 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
2586 (SVR4_SHARED_LIBS): Remove.
2587 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
2588 * config/sparc/nbsd.mh: Remove.
2589 * config/sparc/nbsd.mt: Remove.
2590 * config/sparc/nbsdaout.mh: New file.
2591 * config/sparc/nbsdaout.mt: New file.
2592 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
2593 * config/sparc/nbsdelf.mt: New file.
2594 * config/sparc/nm-nbsdaout.h: New file.
2595 * config/sparc/nm-nbsdelf.h: Remove.
2596 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
2597 * config/sparc/tm-nbsdaout.h: New file.
2599 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2601 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
2603 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
2605 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2607 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
2609 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
2611 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2613 * NEWS: Note new MIPS NetBSD native configuration.
2614 * configure.host (mips*-*-netbsd*): New host.
2615 * configure.tgt (mips*-*-netbsd*): New target.
2616 * mipsnbsd-nat.c: New file.
2617 * mipsnbsd-tdep.c: New file.
2618 * mipsnbsd-tdep.h: New file.
2619 * config/mips/nbsd.mh: New file.
2620 * config/mips/nbsd.mt: New file.
2621 * config/mips/nm-nbsd.h: New file.
2622 * config/mips/tm-nbsd.h: New file.
2624 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2626 * Makefile.in (SFILES): Add osabi.c.
2627 (COMMON_OBS): Add osabi.o.
2628 (osabi.o): New dependency list.
2629 * osabi.c: New file.
2630 * osabi.h: New file.
2631 * doc/gdbint.texinfo: Document new generic OS ABI framework.
2633 * Makefile.in (alpha_tdep_h): Define and use instead of
2635 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
2636 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
2638 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
2639 * alpha-tdep.h: Include osabi.h.
2640 (alpha_abi): Remove.
2641 (gdbarch_tdep): Use generic OS ABI framework.
2642 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
2643 gdbarch_register_osabi.
2644 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
2645 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
2646 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
2648 * Makefile.in (sh_tdep_h): Add osabi.h.
2649 * sh-tdep.h (sh_osabi): Remove.
2650 (gdbarch_tdep): Use generic OS ABI framework.
2651 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
2652 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
2653 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
2654 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
2656 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
2657 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
2658 gdbarch_register_osabi.
2659 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
2660 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
2661 (get_elfosabi): Rename to...
2662 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
2663 ABI framework support routines.
2664 (arm_gdbarch_init): Use generic OS ABI framework.
2665 (arm_dump_tdep): Likewise.
2666 (_initialize_arm_tdep): Likewise.
2667 * arm-tdep.h: Include osabi.h.
2669 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
2671 (arm_gdbarch_register_os_abi): Remove prototype.
2672 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
2673 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
2675 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
2676 * mips-tdep.c: Include osabi.h.
2677 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
2680 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
2682 * h8300-tdep.c: Fix formatting.
2684 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
2686 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
2687 printing vector registers.
2689 2002-05-19 Andrew Cagney <ac131313@redhat.com>
2691 From Fernando Nasser:
2692 * remote.c (remote_async_open_1): Re-throw the exception when the
2694 (remote_cisco_open): Ditto.
2695 (remote_open_1): Ditto.
2697 2002-05-19 Andrew Cagney <ac131313@redhat.com>
2699 * remote.c (remote_start_remote_dummy): Add uiout parameter.
2700 (remote_start_remote): Add uiout parameter. Pass through to
2701 remote_start_remote_dummy.
2702 (remote_open_1): Use catch_exception instead of catch_errors.
2703 (remote_async_open_1): Ditto.
2704 (remote_cisco_open): Ditto.
2706 2002-05-19 Andrew Cagney <ac131313@redhat.com>
2708 * remote.c (remote_start_remote): Replace PTR with void pointer.
2709 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
2712 2002-05-18 Andrew Cagney <ac131313@redhat.com>
2714 * gdb_indent.sh: Allow the script to be run in the sim directory.
2716 2002-05-18 Mark Kettenis <kettenis@gnu.org>
2718 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
2719 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
2721 * corelow.c (core_open): Only call set_gdbarch_from_file if
2724 2002-05-17 Andrey Volkov <avolkov@transas.com>
2726 * h8300-tdep.c: Add support of EXR register
2727 * config/h8300/tm-h8300.h: Ditto.
2729 2002-05-17 Andrey Volkov <avolkov@transas.com>
2731 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
2733 2002-05-17 Andrey Volkov <avolkov@transas.com>
2735 * h8300-tdep.c: Change literal regnums to REGNO.
2737 2002-05-17 Jim Blandy <jimb@redhat.com>
2739 * NEWS: Note addition of macro support.
2741 Expand preprocessor macros in C expressions.
2742 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
2743 (scan_macro_expansion, scanning_macro_expansion,
2744 finished_macro_expansion): New function declarations.
2745 (expression_macro_lookup_func, expression_macro_lookup_baton): New
2746 variable declarations.
2747 * parser-defs.h (expression_context_pc): New declaration.
2748 * parse.c (expression_context_pc): New variable.
2749 (parse_exp_1): Set expression_context_pc, as well as
2750 expression_context_block.
2751 * c-exp.y (yylex): If we're not already reading the result of a
2752 macro expansion, try to macro-expand the next token. When we're
2753 done scanning a macro expansion, switch back to the mainline text.
2754 Commas and `if's in a macro's expansion don't terminate the input.
2755 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
2756 (macro_original_text, macro_expanded_text,
2757 expression_macro_lookup_func, expression_macro_lookup_baton): New
2759 (scan_macro_expansion, scanning_macro_expansion,
2760 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
2761 c_preprocess_and_parse): New functions.
2762 (c_language_defn, cplus_language_defn, asm_language_defn): Call
2763 c_preprocess_and_parse, instead of c_parse.
2764 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
2765 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
2767 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
2769 * sh-tdep.c (gdb_print_insn_sh64): Delete.
2770 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
2771 (sh_gdbarch_init): Always use gdb_print_insn_sh.
2773 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
2775 * NEWS: Add section for multi-arched targets. Add v850 to that section.
2777 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
2779 * Makefile.in (sh_tdep_h): Define and use.
2780 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
2781 register enum): Move to...
2782 * * sh-tdep.h: ...here.
2783 * sh-tdep.c: Include sh-tdep.h.
2784 * sh3-rom.c: Likewise.
2785 * shnbsd-tdep.c: Likewise.
2787 2002-05-16 Michael Snyder <msnyder@redhat.com>
2789 * arm-tdep.c: Spelling fix in comment.
2791 2002-05-16 Jim Blandy <jimb@redhat.com>
2793 Add commands for manually expanding macros and showing their
2795 * macrocmd.c, macroscope.c, macroscope.h: New files.
2796 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
2797 (macroscope_h): New variable.
2798 (HFILES_NO_SRCDIR): Add macroscope.h.
2799 (COMMON_OBS): Add macrocmd.o, macroscope.o.
2800 (macroscope.o, macrocmd.o): New rules.
2802 Teach the Dwarf 2 reader to read macro information.
2803 * dwarf2read.c: #include "macrotab.h".
2804 (dwarf_macinfo_buffer): New variable.
2805 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
2807 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
2808 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
2809 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
2810 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
2811 dwarf2_macro_spaces_in_definition): New complaints.
2812 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
2813 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
2814 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
2815 the partial symbol table.
2816 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
2817 from what's recorded in the partial symbol table.
2818 (read_file_scope): If the compilation unit has a
2819 `DW_AT_macro_info' attribute, read its macro information.
2820 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
2822 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
2825 * ser-tcp.c: Don't include <netinet/udp.h>.
2827 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
2829 * MAINTAINERS: Update my email address.
2831 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
2833 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
2834 include file of the same name.
2836 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
2838 * configure.tgt: Mark v850 as multi-arched.
2839 * config/v850/tm-v850.h: Remove file.
2840 * config/v850/v850.mt: Eliminate TM_FILE.
2842 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
2844 * v850-tdep.c: Full multi-arch.
2845 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
2846 Define GDB_MULTI_ARCH to 2.
2848 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
2850 * p-exp.y (current_type): New static variable.
2851 Carries the type of the expression at the position that is parsed.
2852 (push_current_type, pop_current_type): Two new functions. Used
2853 to store/restore current_type in expression on specific tokens.
2854 (search_field): New static variable. Set to one after parsing a point
2855 as at that point only a FIELDNAME token should be searched.
2856 (FIELDNAME): New token. After a point only a token belonging to
2857 current_type type definition is allowed.
2858 (all over token rules): reset and change current_type according
2860 (exp '[' rule): insert implicit array index field if
2861 exp is a pascal string type.
2863 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
2865 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
2866 frame info. Use frame_info's saved_regs instead of matching member
2867 in extra_frame_info throughout.
2868 (v850_frame_init_saved_regs): New function.
2869 (v850_init_extra_frame_info): Move most functionality into
2870 v850_frame_init_saved_regs().
2871 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
2872 (v850_frame_find_saved_regs): Remove declaration.
2873 (FRAME_FIND_SAVED_REGS): Remove definition.
2874 (v850_frame_init_saved_regs): Add declaration.
2875 (FRAME_INIT_SAVED_REGS): Add definition.
2877 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
2879 * v850-tdep.c: Begin multi-arch'ing v850.
2880 (v850_target_architecture_hook): Remove function.
2881 (v850_gdbarch_init): New function. Add code previously in
2882 v850_target_architecture_hook().
2883 (_initialize_v850_tdep): Don't set target_architecture_hook.
2884 Call register_gdbarch_init() instead.
2886 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
2888 * gdbtypes.h (struct cplus_struct_type): Remove args field.
2889 * hpread.c (hpread_read_struct_type): Remove assignments to args.
2890 (fixup_class_method_type): Likewise.
2892 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
2894 From Martin Pool <mbp@samba.org>:
2895 * gdbserver/server.c (gdbserver_usage): New function.
2898 2002-05-15 Jim Blandy <jimb@redhat.com>
2900 Add macro structures to GDB's symbol tables. Nobody puts anything
2902 * symtab.h (struct symtab): New member: `macro_table'.
2903 * buildsym.h (pending_macros): New global variable.
2904 * buildsym.c: #include "macrotab.h".
2905 (buildsym_init): Initialize `pending_macros'.
2906 (end_symtab): If we found macro information while reading a CU's
2907 debugging info, do build a symtab structure for it. Make the
2908 symtab point to the macro information, and clear the
2909 `pending_macros' pointer which held it while we were reading the
2911 (really_free_pendings): Free any pending macro table.
2912 * objfiles.h (struct objfile): New member: `macro_cache'.
2913 * objfiles.c (allocate_objfile): Set allocate and free functions
2914 for the macro cache's objstack.
2915 (free_objfile): Empty the macro cache's obstack.
2916 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
2917 set new allocate and free functions for it.
2918 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
2919 free functions for the macro cache's objstack. (Why is this
2920 function building its own objfile?)
2921 * symmisc.c (print_objfile_statistics): Print statistics on the
2923 * Makefile.in: Note that buildsym.o depends on macrotab.h.
2925 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
2927 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
2928 (REGISTER_U_ADDR): Delete definition.
2929 (arm_register_u_addr): Delete declaration.
2931 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
2933 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
2934 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
2936 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
2938 * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
2941 2002-05-14 Andrew Cagney <ac131313@redhat.com>
2943 * regcache.c (register_valid): Revise comments refering to "Not
2944 available" and "unavailable".
2945 * frame.c (frame_register_read): Ditto.
2946 * findvar.c (value_of_register): Ditto.
2948 2002-05-15 Andrew Cagney <cagney@redhat.com>
2950 * Makefile.in (remote_sim_h): Replace remote-sim_h.
2951 (remote-sim.o): Update dependencies.
2952 (d10v-tdep.o): Specify dependencies.
2953 (sim_d10v_h): Define.
2955 2002-05-14 Jim Blandy <jimb@redhat.com>
2957 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
2958 * macrotab.c (macro_lookup_inclusion, find_definition,
2959 new_macro_table): Same.
2961 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
2962 not `! strcmp ()'. This is a dubious improvement.
2963 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
2965 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
2966 although it's not necessary, to avoid a warning.
2968 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
2970 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
2971 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
2972 TYPE_INSTANCE_FLAGS.
2973 (struct main_type): New.
2974 (struct type): Move most members to struct main_type. Change
2975 cv_type and as_type to new type_chain member. Add instance_flags.
2976 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
2977 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
2978 (finish_cv_type): Remove prototype.
2979 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
2981 (alloc_type_instance): New function.
2982 (smash_type): New function.
2983 (make_pointer_type, make_reference_type, make_function_type)
2984 (smash_to_member_type, smash_to_method_type): Call smash_type.
2985 (make_qualified_type): New function.
2986 (make_type_with_address_space): Call make_qualified_type.
2987 (make_cv_type): Likewise.
2988 (finish_cv_type): Remove unnecessary function.
2989 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
2990 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
2991 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
2992 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
2993 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
2994 * hpread.c (hpread_read_struct_type): Likewise.
2995 * stabsread.c (read_struct_type): Likewise.
2997 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
2999 * configure.tgt: Add a catch all sh* target, for cases like
3000 sh[2,3,4]-elf and sh-hms.
3002 2002-05-14 Keith Seitz <keiths@redhat.com>
3004 * event-loop.c (create_file_handler): Don't do anything but
3005 update data when we are given a fd which we are already
3008 2002-05-14 Michal Ludvig <mludvig@suse.cz>
3010 * dwarf2cfi.c (context_cpy): Copy registers correctly.
3011 (update_context): Use __func__ in warnings.
3013 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
3015 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
3016 and tcp_close to net_open and net_close.
3017 (net_open): Accept "udp:" and "tcp:" specifications. Connect
3018 using UDP if requested. Don't try to disable Nagle on UDP
3020 * remote.c (remote_serial_open): New function. Warn about UDP.
3021 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
3023 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
3025 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
3027 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
3029 * configure.tgt: Remove sh-hms target.
3030 * MAINTAINERS: Don't list sh-hms as a separate target.
3032 2002-05-13 Jim Blandy <jimb@redhat.com>
3034 Add first preprocessor macro-expansion files.
3035 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
3036 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
3037 (splay_tree_h, macroexp_h, macrotab_h): New variable.
3038 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
3039 (COMMON_OBS): Add macrotab.o, macroexp.o.
3040 (macroexp.o, macrotab.o): New rules.
3042 2002-05-13 Andrew Cagney <ac131313@redhat.com>
3044 * config/m88k/tm-m88k.h: Update copyright.
3045 (m88k_target_write_pc): Declare
3046 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
3047 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
3048 (SHIFT_INST_REGS): Update definition.
3049 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
3050 using old definition of TARGET_WRITE_PC.
3051 * regcache.c (generic_target_write_pc): Delete code handling
3053 * gdbarch.sh (NNPC_REGNUM): Delete.
3054 * gdbarch.h, gdbarch.c: Regenerate.
3056 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
3058 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
3061 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
3063 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
3064 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
3065 (gen_address_of, gen_struct_ref, gen_repeat): Use type
3067 * c-typeprint.c (cp_type_print_method_args): Likewise.
3068 (c_type_print_args): Likewise.
3069 * d10v-tdep.c (d10v_push_arguments): Likewise.
3070 (d10v_extract_return_value): Likewise.
3071 * expprint.c (print_subexp): Likewise.
3072 * gdbtypes.c (lookup_primitive_typename): Likewise.
3073 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
3074 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
3075 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
3076 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
3077 (TYPE_VECTOR): Likewise.
3078 * hpread.c (hpread_read_struct_type)
3079 (fix_static_member_physnames, fixup_class_method_type)
3080 (hpread_type_lookup): Likewise.
3081 * mdebugread.c (parse_symbol, parse_type): Likewise.
3082 * p-lang.c (is_pascal_string_type): Likewise.
3083 * valops.c (hand_function_call): Likewise.
3084 * x86-64-tdep.c (classify_argument): Likewise.
3086 * hpread.c (hpread_read_function_type)
3087 (hpread_read_doc_function_type): Call replace_type.
3088 * dstread.c (create_new_type): Delete.
3089 (decode_dst_structure, process_dst_function): Call alloc_type.
3090 Use type access macros.
3092 2002-05-12 Mark Kettenis <kettenis@gnu.org>
3094 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
3095 the're not supported by the current architecture.
3096 (i387_fill_fxsave): Likewise.
3098 2002-05-12 Fred Fish <fnf@redhat.com>
3100 * symfile.c (default_symfile_offsets): Arrange for uninitialized
3101 sect_index_xxx members to index the first slot in section_offsets
3102 if all of the section_offsets are zero.
3104 2002-05-12 Mark Kettenis <kettenis@gnu.org>
3106 * configure.tgt (sparc-*openbsd): Remove entry accidentially
3107 checked in with last change.
3109 2002-05-12 Mark Kettenis <kettenis@gnu.org>
3111 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
3112 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
3115 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
3117 * Makefile.in: Update dependencies.
3119 2002-05-11 Andrew Cagney <ac131313@redhat.com>
3121 * language.c (local_hex_string_custom): Simplify. Do not depend
3122 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
3124 * memattr.c (mem_info_command): Replace calls to
3125 longest_local_hex_string and longest_local_hex_string_custom.
3126 * buildsym.c (make_blockvector): Ditto.
3127 * solib.c (info_sharedlibrary_command): Ditto.
3128 * tracepoint.c (tracepoints_info): Ditto.
3129 * symtab.c (print_msymbol_info): Ditto.
3131 * language.c (local_hex_string): Delete.
3132 (local_hex_string_custom): Delete.
3133 (longest_local_hex_string): Rename to local_hex_string.
3134 (longest_local_hex_string_custom): Rename to
3135 local_hex_string_custom.
3136 * language.h (local_hex_string): Change parameter type to LONGEST.
3137 (local_hex_string_custom): Ditto.
3138 (longest_local_hex_string): Delete declaration.
3139 (longest_local_hex_string_custom): Ditto.
3141 * solib.c: Update copyright.
3142 * memattr.c: Update copyright.
3144 2002-05-11 Andrew Cagney <ac131313@redhat.com>
3146 * arch-utils.h (legacy_register_to_value): Declare.
3147 (legacy_value_to_register): Declare.
3148 (legacy_convert_register_p): Declare.
3149 * arch-utils.c (legacy_register_to_value): New function.
3150 (legacy_value_to_register): New function.
3151 (legacy_convert_register_p): New function.
3153 * gdbarch.sh (REGISTER_TO_VALUE): Define.
3154 (VALUE_TO_REGISTER): Define.
3155 (CONVERT_REGISTER_P): Define.
3156 * gdbarch.h, gdbarch.c: Regenerate.
3158 * valops.c (value_assign): Use CONVERT_REGISTER_P and
3160 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
3163 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
3164 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3166 * Makefile.in: Update dependencies for valops.c.
3167 * valops.c: Include "gdb_assert.h".
3168 (typecmp): Skip THIS parameter to methods.
3169 (find_method_list): Remove static_memfuncp argument,
3170 update callers. Check for stub methods.
3171 (find_value_oload_method_list): Don't set *static_memfuncp.
3172 (find_overload_match): Don't check for stub methods. Assert
3173 that methods are not stubbed. Handle static methods.
3174 (value_find_oload_method_list): Remove static_memfuncp argument.
3175 * gdbtypes.c (check_stub_method): Do not add THIS pointer
3176 to the argument list for static stub methods.
3177 * value.h (value_find_oload_method_list): Update prototype.
3179 2002-05-11 Andrew Cagney <ac131313@redhat.com>
3181 * arch-utils.h (generic_register_size): Declare.
3182 (generic_register_raw_size, generic_register_virtual_size): Delete
3184 * arch-utils.c (generic_register_raw_size): Delete.
3185 (generic_register_size): New function.
3186 (generic_register_virtual_size): Delete.
3188 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
3189 default generic_register_size.
3190 * gdbarch.h, gdbarch.c: Re-generate.
3192 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
3193 register_virtual_size.
3194 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
3195 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3197 2002-05-11 Andrew Cagney <ac131313@redhat.com>
3199 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
3200 * gdbarch.h, gdbarch.c: Regenerate.
3201 * gnu-v3-abi.c: Update copyright.
3202 (vtable_address_point_offset): Update.
3203 (gnuv3_rtti_type): Update.
3204 (gnuv3_baseclass_offset): Update.
3205 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
3206 (init_fetch_link_map_offsets): Update.
3207 * remote.c (get_remote_state): Update.
3209 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
3211 * TODO: Remove value_headof/value_from_vtable_info comment.
3212 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
3213 * values.c (value_headof, value_from_vtable_info): Delete.
3214 * value.h (value_from_vtable_info): Delete prototype.
3216 2002-05-11 Andrew Cagney <ac131313@redhat.com>
3218 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
3219 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
3221 (gdb_assert_h): Define.
3222 (gdb_wait_h): Define.
3223 (gdb_regex_h): Define.
3225 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
3227 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
3228 * linespec.c (find_methods): Handle GCC 3.x template constructors.
3230 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3232 * nbsd-tdep.c: Fix comment.
3234 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3236 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
3237 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
3238 (nbsd-tdep.o): New dependency list.
3239 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
3241 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
3242 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
3243 * nbsd-tdep.c: New file.
3244 * nbsd-tdep.h: New file.
3245 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
3247 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
3248 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3249 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3250 * config/sh/nbsd.mt (TDEPFILES): Ditto.
3252 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3254 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
3255 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
3256 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
3257 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
3258 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
3259 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
3261 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3263 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
3264 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
3265 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
3266 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
3267 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
3268 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
3269 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
3271 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3273 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
3274 fetch_elfcore_registers to...
3275 * i386nbsd-tdep.c: ...here.
3276 (i386nbsd_use_struct_convention): Rename to...
3277 (i386nbsd_aout_use_struct_convention): ...this.
3278 (i386nbsd_supply_reg): New function.
3279 (i386nbsd_fill_reg): New function.
3280 (fetch_core_registers): Use i386nbsd_supply_reg.
3281 (fetch_elfcore_registers): Likewise.
3282 (_initialize_i386nbsd_tdep): New function.
3283 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
3284 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
3285 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
3286 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
3287 (i386nbsd_aout_use_struct_convention): ...this.
3289 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3291 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
3292 (store_inferior_registers): Use shnbsd_fill_reg.
3293 * shnbsd-tdep.c (sh_nbsd_supply_registers,
3294 sh_nbsd_supply_register): Collapse into...
3295 (shnbsd_supply_reg): ...this.
3296 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
3297 (shnbsd_fill_reg): ...this.
3298 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
3299 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
3300 (fetch_core_registers): Use shnbsd_supply_reg.
3301 (fetch_elfcore_registers): Use shnbsd_supply_reg.
3302 (sh_nbsd_core_fns): Rename to...
3303 (shnbsd_core_fns): ...this.
3304 (sh_nbsd_elfcore_fns): Rename to...
3305 (shnbsd_elfcore_fns): ...this.
3306 (sh_nbsd_init_abi): Rename to...
3307 (shnbsd_init_abi): ...this.
3308 (_initialize_sh_nbsd_tdep): Rename to...
3309 (_initialize_shnbsd_tdep): ...this.
3310 * shnbsd-tdep.h (sh_nbsd_supply_registers,
3311 sh_nbsd_supply_register, sh_nbsd_fill_registers,
3312 sh_nbsd_fill_register): Remove prototypes.
3313 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
3315 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3317 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
3318 (i387-nat.o): Delete dependency list.
3319 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
3320 (x86-64-linux-nat.o): Likewise.
3321 * i387-nat.c: Delete file, moving contents to...
3322 * i387-tdep.c: ...here.
3323 * i387-nat.h: Rename...
3324 * i387-tdep.h: ...to this.
3325 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
3326 * i386-linux-nat.c: Likewise.
3327 * i386bsd-nat.c: Likewise.
3328 * i386gnu-nat.c: Likewise.
3329 * i386nbsd-nat.c: Likewise.
3330 * i386v4-nat.c: Likewise.
3331 * x86-64-linux-nat.c: Likewise.
3332 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
3333 * config/i386/go32.mh (NATDEPFILES): Likewise.
3334 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
3335 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
3336 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
3337 * config/i386/linux.mh (NATDEPFILES): Likewise.
3338 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
3339 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
3340 * config/i386/obsd.mh (NATDEPFILES): Likewise.
3341 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3343 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3345 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
3346 (alphanbsd-nat.o): Remove dependency list.
3347 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
3348 * alphanbsd-nat.c: Delete. Contents moved to...
3349 * alphanbsd-tdep.c: ...here.
3350 (_initialize_alphanbsd_tdep): Register core functions.
3351 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
3353 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3355 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
3356 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
3357 (alphanbsd-nat.o): Likewise.
3358 (alphabsd-tdep.o): New dependency list.
3359 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
3360 (fill_gregset): Use alphabsd_fill_reg.
3361 (supply_fpregset): Use alphabsd_supply_fpreg.
3362 (fill_fpregset): Use alphabsd_fill_fpreg.
3363 (fetch_inferior_registers): Use struct reg and struct fpreg
3364 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
3365 and alphabsd_supply_fpreg.
3366 (store_inferior_registers): Use struct reg and struct fpreg
3367 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
3368 and alphabsd_fill_fpreg.
3369 * alphabsd-tdep.c: New file.
3370 * alphabsd-tdep.h: New file.
3371 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
3372 (fetch_elfcore_registers): Use alphabsd_supply_reg and
3373 alphabsd_supply_fpreg.
3374 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
3375 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3377 2002-05-11 Eric Christopher <echristo@redhat.com>
3379 * mips-tdep.c (mips_double_register_type): Fix thinko.
3380 (mips_single_register_type): Ditto.
3381 * MAINTAINERS: Add self.
3383 2002-05-11 Mark Kettenis <kettenis@gnu.org>
3385 * i387-nat.c (i387_supply_register, i387_fill_fsave,
3386 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
3387 right thing on architectures with different endianness and/or
3390 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
3392 From Christian Limpach <chris@Pin.LU>
3393 * configure.in: Change sed expression which comments out
3394 NATDEPFILES to also comment out continuation lines.
3395 * configure: Regenerate.
3397 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
3399 * sh-tdep.c: Clean up code erroneously reintroduced by previous
3402 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
3404 * sh-tdep.c: Include correct file.
3406 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
3408 New support for sh64-elf (sh5) target.
3410 * configure.tgt: For sh64-elf target, default to sh-elf.
3412 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
3413 (struct gdbarch_tdep): Add new fields for new registers and ABI
3416 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
3417 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
3418 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
3419 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
3420 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
3421 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
3422 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
3423 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
3424 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
3425 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
3426 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
3427 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
3428 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
3429 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
3430 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
3431 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
3432 sh64_get_gdb_regnum, sh64_media_reg_base_num,
3433 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
3434 sign_extend, sh64_nofp_frame_init_saved_regs,
3435 sh64_init_extra_frame_info, sh64_get_saved_register,
3436 sh64_extract_struct_value_address, sh64_pop_frame,
3437 sh64_push_arguments, sh64_extract_return_value,
3438 sh64_store_return_value, sh64_show_media_regs,
3439 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
3440 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
3441 sh_sh64_register_virtual_type,
3442 sh_sh64_register_convert_to_virtual,
3443 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
3444 sh64_register_read, sh64_pseudo_register_write,
3445 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
3446 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
3447 sh64_do_pseudo_register, sh_compact_do_registers_info,
3448 sh64_do_registers_info, sh_gdbarch_init): New functions.
3450 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
3452 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
3454 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
3456 * linespec.c (decode_line_1): Check for a double quote after
3457 a filename correctly.
3459 2002-05-10 Jim Blandy <jimb@redhat.com>
3461 Properly track the size of the current objfile's .debug_line section.
3462 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
3463 (DWARF_LINE_SIZE): New macro.
3464 (dwarf2_build_psymtabs_hard): Record the line section's size in
3465 the partial symbol table.
3466 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
3469 2002-05-10 Petr Sorfa <petrs@caldera.com>
3471 * ia64-tdep.c: Handle breakpoints on L instruction type
3472 in MLX instruction bundle by moving the breakpoint to
3473 the third slot (X instruction type) as L holds only data.
3475 2002-05-10 Kevin Buettner <kevinb@redhat.com>
3477 * dbxread.c (discarding_local_symbols_complaint): New complaint.
3478 (process_one_symbol): Complain about discarding local symbols
3479 due to a misplaced N_LBRAC entry.
3481 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
3483 From Daniel Berlin <dan@cgsoftware.com>
3484 * linespec.c (find_toplevel_char): '<' and '>' also increase and
3485 decrease the depth we are at, in the case of templates.
3487 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
3489 * mips-tdep.c (mips_float_register_type): New function.
3490 (mips_double_register_type): New function.
3491 (mips_print_register): Use them.
3492 (do_fp_register_row): Likewise.
3494 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
3496 * signals/signals.c (signals): Remove conditional compilation around
3497 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
3498 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
3500 2002-05-09 Michael Snyder <msnyder@redhat.com>
3502 * remote-rdp.c (remote_rdp_can_run): Remove.
3504 2002-05-09 Tom Tromey <tromey@redhat.com>
3506 * jv-valprint.c (java_val_print): Handle `char' as a special case
3509 2002-05-09 Michael Snyder <msnyder@redhat.com>
3511 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
3512 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
3513 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
3514 str r(0123),[sp,#nn].
3515 (arm_skip_prologue): Ditto. Also make disassembly
3516 order-independent by placing it in a loop.
3518 2002-05-06 Michael Snyder <msnyder@redhat.com>
3520 * stabsread.c (read_type): Add recognition for new attribute:
3521 "@V;" means that an array type is actually a vector.
3522 This is analogous to the vector flag that's been added to dwarf2.
3524 2002-05-09 Mark Kettenis <kettenis@gnu.org>
3526 * i386-tdep.h (i386_abi): New enum.
3527 (struct gdbarch_tdep): Replace os_ident member with abi.
3528 (i386_gdbarch_register_os_abi): New prototype.
3529 * i386-tdep.c (i386_abi_names): New array.
3530 (process_note_abi_tag_sections): Removed.
3531 (process_note_sections): New function.
3532 (i386_elf_abi_from_note, i386_elf_abi): New functions.
3533 (struct i386_abi_handler): New struct.
3534 (i386_abi_handler_list): New variable.
3535 (i386_gdbarch_register_os_abi): New function.
3536 (i386_gdbarch_init): Adapt for the changes given above.
3538 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
3540 * gregset.h: Say "GNU/Linux".
3542 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
3544 * gdbtypes.c : Add new builtin type for 64 bit vectors.
3545 (build_gdbtypes): Build builtin_type_v2_float.
3546 (_initialize_gdbtypes): Register new builtin type.
3548 2002-05-08 Andrew Cagney <ac131313@redhat.com>
3550 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
3551 (clear_gdbarch_swap): New function.
3552 (initialize_non_multiarch): Call.
3553 (gdbarch_update_p): Before calling init(), swap out and clear the
3554 existing architecture.
3555 * gdbarch.c: Regenerate.
3557 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
3559 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
3562 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
3564 * sh-nbsd-nat.c: Rename to...
3565 * shnbsd-nat.c: ...this.
3566 * sh-nbsd-tdep.c: Rename to...
3567 * shnbsd-tdep.c: ...this.
3568 * sh-nbsd-tdep.h: Rename to...
3569 * shnbsd-tdep.h: ...this.
3570 * config/sh/nbsd.mh: Use shnbsd-nat.o.
3571 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
3573 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
3575 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
3576 concatenation for command help messages.
3578 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
3580 * NEWS: Note new sh*-*-netbsdelf* configuration.
3581 * configure.host: Set gdb_host_cpu to sh for all sh*.
3582 (sh*-*-netbsdelf*): New host.
3583 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
3584 (sh*-*-netbsdelf*): New target.
3585 * sh-nbsd-nat.c: New file.
3586 * sh-nbsd-tdep.c: New file.
3587 * sh-nbsd-tdep.h: New file.
3588 * config/sh/nbsd.mh: New file.
3589 * config/sh/nbsd.mt: New file.
3590 * config/sh/nm-nbsd.h: New file.
3591 * config/sh/tm-nbsd.h: New file.
3593 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
3595 * sh-tdep.c (sh_osabi_names): Declare.
3596 (process_note_abi_tag_sections): New function.
3597 (get_elfosabi): Ditto.
3598 (sh_gdbarch_register_os_abi): Ditto.
3599 (sh_dump_tdep): Ditto.
3600 _initialize_sh_tdep): Use gdbarch_register to register
3601 sh_gdbarch_init and sh_dump_tdep.
3602 * config/sh/tm-sh.h (sh_osabi): Declare.
3603 (gdbarch_tdep): Add sh_osabi and osabi_name members.
3605 2002-05-07 Andrew Cagney <ac131313@redhat.com>
3607 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
3608 (thumb_scan_prologue): Ditto.
3609 (arm_find_callers_reg): Ditto.
3610 (arm_frame_chain): Ditto.
3611 (arm_init_extra_frame_info): Ditto.
3612 (arm_frame_saved_pc): Ditto.
3613 (arm_pop_frame): Ditto.
3614 (arm_push_return_address): New function.
3615 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
3616 call_dummy_location, call_dummy_breakpoint_offset_p,
3617 call_dummy_breakpoint_offset, call_dummy_p,
3618 call_dummy_stack_adjust_p, call_dummy_words,
3619 sizeof_call_dummy_words, call_dummy_start_offset,
3620 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
3621 call_dummy_address, push_return_address and push_dummy_frame for
3622 generic dummy frames.
3624 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
3626 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
3627 size computation for alloca.
3628 (sh_fp_frame_init_saved_regs): Likewise.
3630 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
3632 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
3633 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
3634 * arm-tdep.c (arm_store_return_value): Use them.
3635 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
3636 * remote-rdp.c (remote_rdp_fetch_register): Use
3637 ARM_MAX_REGISTER_RAW_SIZE.
3638 (remote_rdp_store_register): Likewise.
3640 2002-05-07 Michal Ludvig <mludvig@suse.cz>
3642 * dwarf2cfi.c: Code cleanup, removed unused variables,
3643 added default labels to switch {} statements.
3644 * x86-64-tdep.c: Ditto.
3645 * x86-64-linux-nat.c: Ditto.
3647 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
3649 * solib.h: Protect against multiple inclusion.
3651 2002-05-06 Jim Blandy <jimb@redhat.com>
3653 Add first preprocessor macro-expansion files.
3654 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
3655 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
3656 (splay_tree_h, macroexp_h, macrotab_h): New variable.
3657 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
3658 (COMMON_OBS): Add macrotab.o, macroexp.o.
3659 (macroexp.o, macrotab.o): New rules.
3661 Separate the job of reading the line number info statement program
3662 header (...expialidocious) out into its own function.
3663 * dwarf2read.c (struct line_head, struct filenames, struct
3664 directories): Replace with...
3665 (struct line_header): New structure, containing the full
3666 contents of the statement program header, including the
3667 include directory and file name tables.
3668 (read_file_scope): If we have line number info, instead of just
3669 calling dwarf_decode_lines to do all the work, call
3670 dwarf_decode_line_header first to get a `struct line_header'
3671 containing the data in the statement program header, and then
3672 pass that to dwarf_decode_lines, which will pick up where that
3673 left off. Be sure to clean up the `struct line_header' object.
3674 (dwarf_decode_line_header, free_line_header, add_include_dir,
3675 add_file_name): New functions.
3676 (dwarf_decode_lines): Move all the code to read the statement
3677 program header into dwarf_decode_line_header. Take the line
3678 header it built as the first argument, instead of the offset to
3679 the compilation unit's line number info. Use the new `struct
3680 line_header' type instead of the old structures. No need to do
3681 cleanups here now, since we don't allocate anything.
3682 (dwarf2_statement_list_fits_in_line_number_section,
3683 dwarf2_line_header_too_long): New complaints.
3685 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
3687 * gdbtypes.c (init_vector_type): New function.
3688 (build_builtin_type_vec128): Simplify the representation of SIMD
3690 (build_gdbtypes): Initialize new builtin vector types.
3691 (_initialize_gdbtypes): Register new vector types with gdbarch.
3692 (builtin_type_v4_float, builtin_type_v4_int32,
3693 builtin_type_v8_int16, builtin_type_v16_int8,
3694 builtin_type_v2_int32, builtin_type_v4_int16,
3695 builtin_type_v8_int8): New (renamed) SIMD types.
3697 2002-05-06 Mark Kettenis <kettenis@gnu.org>
3699 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
3700 (i387_fill_fxsave): Likewise.
3702 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
3704 * alpha-tdep.c (alpha_extract_return_value): Don't use
3705 non-constant array size in prototype.
3707 2002-05-04 Andrew Cagney <ac131313@redhat.com>
3709 From Brian Taylor <briant at model dot com>:
3710 * ui-out.c (ui_out_field_core_addr): Use the function
3711 longest_local_hex_string_custom'to format addresses > 32 bits
3714 * ui-out.c (ui_out_field_core_addr): Update comment.
3716 2002-05-04 Andrew Cagney <ac131313@redhat.com>
3718 * stack.c (select_and_print_frame): Make static. Delete the
3720 (func_command): Update call.
3721 (select_frame_command): Delete code computing the frame level.
3722 * frame.h (select_and_print_frame): Delete declaration.
3724 2002-05-04 Andrew Cagney <ac131313@redhat.com>
3726 * sparc-tdep.c (sparc_get_saved_register): Comment why
3727 get_prev_frame call is safe.
3729 2002-05-04 Andrew Cagney <ac131313@redhat.com>
3731 * frame.h (select_frame): Delete level parameter.
3732 * stack.c (select_frame): Update. Use frame_relative_level to
3733 obtain the frame's level.
3734 (select_and_print_frame): Update call.
3735 (select_frame_command): Ditto.
3736 (up_silently_base): Ditto.
3737 (down_silently_base): Ditto.
3738 * ocd.c (ocd_start_remote): Ditto.
3739 * remote-rdp.c (remote_rdp_open): Ditto.
3740 * remote-mips.c (mips_initialize): Ditto.
3741 (common_open): Ditto.
3742 * remote-e7000.c (e7000_start_remote): Ditto.
3743 * m3-nat.c (select_thread): Ditto.
3744 * hppa-tdep.c (child_get_current_exception_event): Ditto.
3745 (child_get_current_exception_event): Ditto.
3746 * varobj.c (varobj_create): Ditto.
3747 (varobj_update): Ditto.
3748 (c_value_of_root): Ditto.
3749 * tracepoint.c (finish_tfind_command): Ditto.
3750 * corelow.c (core_open): Ditto.
3751 * arch-utils.c (generic_prepare_to_proceed): Ditto.
3752 * thread.c (info_threads_command): Ditto.
3753 (switch_to_thread): Ditto.
3754 * infrun.c (normal_stop): Ditto.
3755 (restore_selected_frame): Ditto.
3756 (restore_inferior_status): Ditto.
3757 * breakpoint.c (insert_breakpoints): Ditto.
3758 (watchpoint_check): Ditto.
3759 (bpstat_stop_status): Ditto.
3760 (do_enable_breakpoint): Ditto.
3761 * blockframe.c (flush_cached_frames): Ditto.
3762 (reinit_frame_cache): Ditto.
3764 2002-05-04 Andrew Cagney <ac131313@redhat.com>
3766 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
3769 2002-05-04 Jim Blandy <jimb@redhat.com>
3771 * gdbtypes.c (replace_type): Doc fix.
3773 2002-05-04 Andrew Cagney <ac131313@redhat.com>
3775 * valprint.c (strcat_longest): Delete commented out function.
3778 2002-05-04 Andrew Cagney <ac131313@redhat.com>
3780 * MAINTAINERS: Mark a29k as deleted.
3781 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
3782 Move new configurations to the top.
3783 * configure.tgt: Remove a29k.
3784 * config/a29k/tm-vx29k.h: Delete.
3785 * config/a29k/vx29k.mt: Delete.
3786 * config/a29k/tm-a29k.h: Delete.
3787 * config/a29k/a29k-udi.mt: Delete.
3788 * config/a29k/a29k.mt: Delete.
3789 * a29k-tdep.c: Delete.
3790 * remote-udi.c: Delete.
3791 * remote-mm.c: Delete.
3792 * remote-eb.c: Delete.
3793 * remote-adapt.c: Delete.
3794 * Makefile.in: Remove obsolete code.
3795 * gdbserver/Makefile.in: Ditto.
3796 * config/s390/s390x.mt: Ditto.
3797 * config/s390/s390.mt: Ditto.
3798 * config/sparc/sparclynx.mh: Ditto.
3799 * config/sparc/linux.mh: Ditto.
3800 * config/pa/hppaosf.mh: Ditto.
3801 * config/pa/hppabsd.mh: Ditto.
3802 * config/ns32k/nbsd.mt: Ditto.
3803 * config/mips/vr5000.mt: Ditto.
3804 * config/m68k/sun3os4.mh: Ditto.
3805 * config/m68k/nbsd.mt: Ditto.
3806 * config/m68k/m68klynx.mh: Ditto.
3807 * config/m32r/m32r.mt: Ditto.
3808 * config/i386/x86-64linux.mt: Ditto.
3809 * config/i386/nbsdelf.mt: Ditto.
3810 * config/i386/nbsd.mt: Ditto.
3811 * config/i386/i386lynx.mh: Ditto.
3813 2002-05-04 Andrew Cagney <ac131313@redhat.com>
3815 * target.c (debug_print_register): New function. Handle oversize
3817 (debug_to_fetch_registers): Call.
3818 (debug_to_store_registers): Call.
3820 2002-05-03 Jim Blandy <jimb@redhat.com>
3822 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
3823 (read_type): Doc fix.
3824 * gdbtypes.c (replace_type): Doc fix.
3826 * stabsread.c (multiply_defined_struct): New complaint.
3827 (read_struct_type): If the type we were passed isn't empty, or
3828 incomplete, don't read the new struct type into it; complain,
3829 and return the original type unchanged. Take a new `type_code'
3830 argument, which is the type code for the new type.
3831 (read_type): Rather than storing the type's type code here, pass
3832 it as an argument to read_struct_type, and let that take care of
3833 storing it. That way, we don't overwrite the original type code,
3834 so read_struct_type can use it to decide whether we're overwriting
3835 something we shouldn't.
3836 (complain_about_struct_wipeout): New function.
3838 2002-05-03 Andrew Cagney <ac131313@redhat.com>
3840 * gdbarch.sh: Assert that gdbarch is non-NULL.
3841 * gdbarch.c: Regenerate.
3843 2002-05-03 Jason Merrill <jason@redhat.com>
3845 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
3848 2002-05-03 Michal Ludvig <mludvig@suse.cz>
3850 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
3851 (x86_64_dwarf2gdb_regno_map_length),
3852 (x86_64_dwarf2_reg_to_regnum): Added.
3853 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
3854 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
3855 (_initialize_x86_64_tdep): Synced with the change above.
3856 (x86_64_skip_prologue): Reformulated message.
3858 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
3860 * f-exp.y: Also use new prev_lexptr variable
3861 to improve error reporting. Based on Michael Snyder
3862 2002-04-24 dated patch to c-exp.y.
3863 * jv-exp.y: Likewise.
3864 * m2-exp.y: Likewise.
3866 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
3868 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
3869 we are dealing with vectors.
3871 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
3873 * config/m68k/tm-nbsd.h: Obvious fix,
3874 correct machine name.
3876 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
3878 * p-typeprint.c (pascal_type_print_base): Add support
3879 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
3881 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
3883 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
3884 for fondamental pascal 'char' type.
3886 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
3888 * p-lang.h (is_pascal_string_type): Declaration changed,
3889 new sixth argument of type char ** added.
3890 * p-lang.c (is_pascal_string_type): Implementation
3891 changed. Args length_pos, length_size, string_pos, char_size
3892 can now be NULL. New argument arrayname set to the field
3893 name of the char array. Return value set to char array
3894 field index plus one.
3895 * p-valprint.c (pascal_val_print): Adapt to new declaration of
3896 is_pascal_string_type function.
3898 2002-05-02 Andrew Cagney <cagney@redhat.com>
3900 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
3901 <cagney@redhat.com> change.
3902 * gdbarch.c: Regenerate.
3904 2002-05-02 Andrew Cagney <cagney@redhat.com>
3906 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
3907 before probing for a new one. Detect errorenous gdbarch_init
3909 * gdbarch.c: Regenerate.
3911 2002-05-01 Andrew Cagney <cagney@redhat.com>
3913 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
3914 * config/mcore/tm-mcore.h: Ditto. Update copyright.
3915 * config/v850/tm-v850.h: Ditto. Update copyright.
3917 2002-04-30 Andrew Cagney <ac131313@redhat.com>
3919 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
3922 2002-04-30 Michael Snyder <msnyder@redhat.com>
3924 * arm-tdep.c: Whitespace clean-ups.
3925 (arm_skip_prologue): Fix thinko; two lines
3926 should have been removed as part of 4/24 change.
3928 2002-04-30 Kevin Buettner <kevinb@redhat.com>
3930 * rs6000-tdep.c: Added comment describing how fpscr register
3931 numbers were chosen.
3933 2002-04-30 Michael Snyder <msnyder@redhat.com>
3935 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
3937 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
3939 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
3940 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
3941 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
3943 2002-04-29 Kevin Buettner <kevinb@redhat.com>
3945 From Louis Hamilton <hamilton@redhat.com>:
3946 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
3947 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
3948 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
3949 not bfd-private xcoff data, to determine wordsize.
3950 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
3952 2002-04-29 Andrew Cagney <ac131313@redhat.com>
3954 GDB 5.2 released from 5.2 branch.
3956 2002-04-29 Michal Ludvig <mludvig@suse.cz>
3958 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
3959 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
3960 (x86_64_register_info_table): Added comments with register numbers.
3962 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
3964 * rs6000-tdep.c (rs6000_extract_return_value,
3965 rs6000_store_return_value): Handle returning vectors.
3966 (rs6000_gdbarch_init): Use
3967 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
3968 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
3970 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
3972 (ppc_sysv_abi_push_arguments): Handle vector parameters.
3973 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
3975 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
3977 * hpread.c (hpread_psymtab_to_symtab_1,
3978 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
3979 with fprintf_unfiltered (gdb_stderr,...).
3981 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
3983 * remote-array.c (printf_monitor, write_monitor,
3984 array_insert_breakpoint, array_remove_breakpoint ):
3985 Replace fprintf (stderr,...
3986 with fprintf_unfiltered (gdb_stderr,....
3987 * remote-es.c: Likewise.
3988 * remote-os9k.c: Likewise.
3989 * remote-st.c: Likewise.
3991 2002-04-28 Andreas Schwab <schwab@suse.de>
3993 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
3994 linux-proc.o and gcore.o.
3996 2002-04-26 Michal Ludvig <mludvig@suse.cz>
3998 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
3999 code without frame pointers.
4001 2002-04-26 Andrew Cagney <ac131313@redhat.com>
4003 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
4006 2002-04-26 Ben Elliston <bje@redhat.com>
4008 * target.c (do_xfer_memory): Correct reference to the new option
4009 "trust-readonly-sections".
4011 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
4013 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
4014 * gdbtypes.c (recursive_dump_type): Output the vector flag.
4015 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
4017 (read_array_type): Record the fact that this array type is really a
4018 vector (i.e. are passed in by value).
4020 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
4022 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
4023 * alpha-tdep.c (alpha_sigcontext_addr): New function.
4024 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
4025 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
4026 * alpha-linux-tdep.c: Include frame.h.
4027 (alpha_linux_sigcontext_addr): New function.
4028 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
4029 alpha_linux_sigcontext_addr.
4030 * alpha-osf1-tdep.c: Include gdbcore.h.
4031 (alpha_osf1_sigcontext_addr): New function.
4032 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
4033 alpha_osf1_sigcontext_addr.
4034 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
4035 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
4037 2002-04-26 Andrew Cagney <ac131313@redhat.com>
4039 * stack.c (selected_frame_level):
4040 (select_frame): Do not set selected_frame_level.
4041 * frame.h (selected_frame_level): Delete declaration.
4043 2002-04-26 Andrew Cagney <ac131313@redhat.com>
4045 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
4046 convert_from_func_ptr-addr when AIX / PowerOpen.
4048 2002-04-25 Andrew Cagney <ac131313@redhat.com>
4050 * valops.c (hand_function_call): Call
4051 generic_save_call_dummy_addr.
4052 * frame.h (generic_save_call_dummy_addr): Declare.
4053 * blockframe.c (struct dummy_frame): Add fields call_lo and
4055 (generic_find_dummy_frame): Check for PC in range call_lo to
4056 call_hi instead of entry_point_address.
4057 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
4058 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
4059 (generic_save_call_dummy_addr): New function.
4061 2002-04-24 David S. Miller <davem@redhat.com>
4063 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
4064 sparc_skip_prologue.
4065 (sparc_skip_prologue): Kill frameless_p arg, and use line number
4066 information to find prologue when possible.
4067 (sparc_prologue_frameless_p): Call examine_prologue directly.
4068 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
4069 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
4071 (SKIP_PROLOGUE): Likewise.
4073 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
4075 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
4076 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
4077 indicate that the condition it was testing is always true.
4078 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
4079 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
4080 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
4082 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
4084 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
4085 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
4086 tdep->jb_pc and tdep->jb_elt_size.
4087 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
4088 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
4089 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4090 * alpha-nat.c (get_longjmp_target): Remove.
4091 (JB_ELEMENT_SIZE): Ditto.
4093 * alpha-tdep.c (alpha_get_longjmp_target): New function.
4094 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
4095 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
4096 to alpha_get_longjmp_target.
4097 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
4098 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
4099 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
4101 2002-04-25 Andrew Cagney <ac131313@redhat.com>
4103 * README: Update to GDB 5.2.
4105 2002-04-25 Andrew Cagney <ac131313@redhat.com>
4107 * gdbarch.sh (LC_ALL): Set to `c'.
4109 2002-04-25 Theodore A. Roth <troth@verinet.com>
4111 * avr-tdep.c: Ran through gdb_indent.sh.
4113 2002-04-25 Theodore A. Roth <troth@verinet.com>
4115 * MAINTAINERS: Add myself as AVR maintainer.
4116 * NEWS: Note new target avr.
4118 2002-04-25 Theodore A. Roth <troth@verinet.com>
4120 * Makefile.in: Add support for AVR target.
4121 * configure.tgt: Add support for AVR target.
4122 * avr-tdep.c: New file
4123 * config/avr/avr.mt: New file.
4125 2002-04-25 Theodore A. Roth <troth@verinet.com>
4127 * MAINTAINERS: Add myself to write-after-approval.
4129 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
4131 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
4132 with fprintf_unfiltered (gdb_stderr,....
4134 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
4137 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
4139 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
4141 * p-exp.y: Also use new prev_lexptr variable
4142 to improve error reporting. Based on Michael Snyder
4143 2002-04-24 dated patch to c-exp.y.
4145 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
4147 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
4148 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
4149 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
4151 * config/alpha/tm-alpha.h: Remove forward decls of struct type
4153 (FUNCTION_START_OFFSET): Remove.
4154 (BREAKPOINT): Ditto.
4156 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
4158 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
4161 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4163 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
4164 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
4165 alpha_linux_pc_in_sigtramp.
4166 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
4167 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
4168 alpha_osf1_pc_in_sigtramp.
4169 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
4170 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
4171 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4172 alphafbsd_pc_in_sigtramp.
4173 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
4174 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4175 alphanbsd_pc_in_sigtramp.
4176 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
4177 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
4179 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4181 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4183 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4185 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
4187 (alphanbsd-nat.o): New dependency list.
4188 (alphanbsd-tdep.o): Ditto.
4189 * NEWS: Note new native NetBSD/alpha configuration.
4190 * alphanbsd-nat.c: New file.
4191 * alphanbsd-tdep.c: Ditto.
4192 * configure.host (alpha*-*-netbsd*): New host.
4193 * configure.tgt (alpha*-*-netbsd*): New target.
4194 * config/alpha/nbsd.mh: New file.
4195 * config/alpha/nbsd.mt: Ditto.
4196 * config/alpha/nm-nbsd.h: Ditto.
4197 * config/alpha/tm-nbsd.h: Ditto.
4199 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4201 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
4202 (alpha-osf1-tdep.o): New dependency list.
4203 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
4204 and skip_sigtramp_frame members.
4205 * alpha-linux-tdep.c: Include gdbcore.h.
4206 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
4207 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
4208 * alpha-osf1-tdep.c: New file.
4209 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
4211 (alpha_frame_past_sigtramp_frame): New function.
4212 (alpha_dynamic_sigtramp_offset): Ditto.
4213 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
4214 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
4215 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
4216 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
4217 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
4218 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
4219 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
4220 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
4221 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
4222 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
4223 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
4224 to find_solib_trampoline_target.
4225 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
4226 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
4227 (SKIP_TRAMPOLINE_CODE): Remove.
4228 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4229 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4230 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
4231 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
4232 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
4233 (PROC_SIGTRAMP_MAGIC): Ditto.
4234 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4235 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4236 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4237 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
4238 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
4240 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4242 * NEWS: Note that Alpha targets are now multi-arch.
4244 2002-04-24 Michael Snyder <msnyder@redhat.com>
4246 * parser-defs.h (prev_lexptr): New external variable.
4247 * parse.c (parse_exp_1): Set prev_lexptr to null before
4248 calling the language-specific parser.
4249 * c-exp.y (yylex): Set prev_lexptr to start of current token.
4250 (yyerror): Use prev_lexptr in error reporting.
4252 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
4254 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
4255 * gregset.h: If FILL_FPXREGSET is defined, provide
4256 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
4257 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
4258 is defined, call fill_fpxregset.
4260 2002-04-24 Roland McGrath <roland@frob.com>
4262 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
4263 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
4264 (supply_gregset, supply_fpregset): New functions.
4266 * gnu-nat.c (gnu_find_memory_regions): New function.
4267 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
4268 (gnu_xfer_memory): Add a cast.
4270 2002-04-24 Michael Snyder <msnyder@redhat.com>
4272 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
4273 loop. Add handling for "str lr, [sp, #-4]!" and for saves
4274 of argument regs ("str r(0123), [r11, #-nn"]).
4275 (arm_skip_prologue): Better handling for frameless functions.
4276 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
4277 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
4279 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
4281 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
4282 NUM_PSEUDO_REGS can be used.
4284 2002-04-24 Andrew Cagney <ac131313@redhat.com>
4286 * arch-utils.h: Update copyright.
4288 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
4289 * gdbarch.h, gdbarch.c: Re-generate.
4291 * inferior.h (IN_SIGTRAMP): Delete definition.
4292 * arch-utils.c (legacy_pc_in_sigtramp): New function.
4293 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
4295 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
4296 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
4297 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
4298 (find_proc_framesize): Ditto.
4299 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
4300 (alpha_init_extra_frame_info): Ditto.
4301 * infrun.c (handle_inferior_event): Ditto.
4302 (handle_inferior_event): Ditto.
4303 (check_sigtramp2): Ditto.
4304 * blockframe.c (create_new_frame): Ditto.
4305 (get_prev_frame): Ditto.
4306 * ppc-linux-tdep.c: Update comments.
4307 * i386-linux-tdep.c: Update comments.
4308 * breakpoint.c (bpstat_what): Update comment.
4310 2002-04-24 Michal Ludvig <mludvig@suse.cz>
4312 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
4313 (regsets_store_inferior_registers): Removed cast to int from
4315 * gdbserver/regcache.h: Added declaration of struct inferior_info.
4317 2002-04-24 David S. Miller <davem@redhat.com>
4319 * i960-tdep.c (register_in_window_p): New function.
4320 (i960_find_saved_register): Use it instead of
4321 REGISTER_IN_WINDOW_P.
4322 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
4324 * symtab.h (find_stab_function_addr): Kill extern.
4325 * minsyms.c (find_stab_function_addr): Remove from here...
4326 * dbxread.c: ... to here, and mark it static.
4328 2002-04-20 David S. Miller <davem@redhat.com>
4330 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
4331 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
4333 2002-04-21 David S. Miller <davem@redhat.com>
4335 * remote-vxsparc.c (vx_read_register): Fix typo, we want
4336 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
4337 (vx_write_register): Likewise.
4339 2002-04-23 J. Brobecker <brobecker@gnat.com>
4341 * source.c (is_regular_file): New function.
4342 (openp): Check wether file to open is a regular file
4343 to avoid opening directories.
4345 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4347 * findvar.c (extract_signed_integer): Cast printf argument
4348 to suppress format warning.
4349 (extract_unsigned_integer): Likewise.
4350 * infcmd.c (registers_info): Likewise.
4351 * top.c (get_prompt_1): Likewise.
4352 * valops.c (value_assign): Likewise.
4353 * valprint.c (print_decimal): Likewise.
4355 2002-04-22 H.J. Lu (hjl@gnu.org)
4357 * c-exp.y (typebase): Support
4359 [long|long long|short] [signed|unsigned] [int|]
4363 signed [long|long long|short] int
4365 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4367 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
4369 * vax-tdep.h: New file.
4370 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
4371 Make several routines static.
4372 (vax_get_saved_register): New function.
4373 (vax_gdbarch_init): New function.
4374 (_initialize_vax_tdep): Register vax_gdbarch_init.
4375 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
4376 Remove macros now under the control of gdbarch.
4378 2002-04-22 Michael Snyder <msnyder@redhat.com>
4380 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
4381 Some whitespace and coding standards tweaks.
4383 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4385 * vax-tdep.c: Include regcache.h.
4386 (vax_call_dummy_words): New.
4387 (sizeof_vax_call_dummy_words): New.
4388 (vax_fix_call_dummy): New function.
4389 (vax_saved_pc_after_call): Ditto.
4390 * config/vax/tm-vax.h: Don't include regcache.h.
4391 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
4392 (CALL_DUMMY): Remove.
4393 (CALL_DUMMY_WORDS): Define.
4394 (SIZEOF_CALL_DUMMY_WORDS): Define.
4395 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
4397 2002-04-18 Michael Snyder <msnyder@redhat.com>
4399 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
4401 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4403 * vax-tdep.c (vax_frame_chain): New function.
4404 (vax_push_dummy_frame): Ditto.
4405 (vax_pop_frame): Ditto.
4406 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
4407 (FRAMELESS_FUNCTION_INVOCATION): Use
4408 generic_frameless_function_invocation_not.
4409 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
4410 (POP_FRAME): Use vax_pop_frame.
4412 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4414 * vax-tdep.c (vax_store_struct_return): New function.
4415 (vax_extract_return_value): Ditto.
4416 (vax_store_return_value): Ditto.
4417 (vax_extract_struct_value_address): Ditto.
4418 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
4419 vax_store_struct_return.
4420 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
4421 (STORE_RETURN_VALUE): Use vax_store_return_value.
4422 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
4424 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4426 * vax-tdep.c (vax_frame_saved_pc): New function.
4427 (vax_frame_args_address_correct): Ditto.
4428 (vax_frame_args_address): Ditto.
4429 (vax_frame_locals_address): Ditto.
4430 (vax_frame_num_args): Move code to be in proximity to
4431 other frame-related functions.
4432 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
4433 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
4434 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
4435 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
4436 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
4438 2002-04-22 H.J. Lu (hjl@gnu.org)
4440 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
4443 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4445 * vax-tdep.c (vax_frame_init_saved_regs): New function.
4446 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
4447 (FRAME_INIT_SAVED_REGS): New macro.
4449 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4451 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
4453 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4455 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
4457 (fetch_osf_core_registers): Likewise.
4458 (supply_gregset): Likewise.
4460 2002-04-22 J. Brobecker <brobecker@gnat.com>
4462 * symfile.h (get_section_index): Define.
4463 * symfile.c (get_section_index): New function.
4464 * mdebugread.c (SC_IS_SBSS): New macro.
4465 (SC_IS_BSS): Return true for the scBss storage class only, as
4466 the scSBss storage class refers to the .sbss section.
4467 (parse_partial_symbols): Discard the symbols which associated
4468 section does not exist.
4469 Make sure to use the .sbss section index for symbols which
4470 storage class is scBss, rather than using the .bss section index.
4472 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4474 * vax-tdep.c: Update copyright years.
4475 (vax_register_name): New function.
4476 (vax_register_byte): Ditto.
4477 (vax_register_raw_size): Ditto.
4478 (vax_register_virtual_size): Ditto.
4479 (vax_register_virtual_type): Ditto.
4480 * config/vax/tm-vax.h: Update copyright years.
4481 (REGISTER_NAMES): Remove.
4482 (REGISTER_NAME): Define.
4483 (REGISTER_BYTE): Use vax_register_byte.
4484 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
4485 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
4486 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
4488 2002-04-21 Andrew Cagney <ac131313@redhat.com>
4490 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
4492 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
4494 2002-04-21 David S. Miller <davem@redhat.com>
4496 * arch-utils.c (generic_prologue_frameless_p): Kill
4497 SKIP_PROLOGUE_FRAMELESS_P code.
4498 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
4500 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
4501 * arc-tdep.c (arc_prologue_frameless_p): Implement.
4502 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
4504 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
4505 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
4506 (sparc_gdbarch_init): Pass it to
4507 set_gdbarch_prologue_frameless_p.
4509 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4511 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
4512 (alphabsd-nat.o): New dependency list.
4514 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4516 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
4518 (alpha-linux-tdep.o): New dependency list.
4519 (alphafbsd-tdep.o): Likewise.
4521 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4523 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
4525 * alpha-tdep.c: ...from here.
4526 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
4528 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4530 * config/alpha/tm-alpha.h: Move alpha_software_single_step
4531 prototype from here...
4532 * alpha-tdep.h: ...to here.
4534 2002-04-21 Andrew Cagney <ac131313@redhat.com>
4536 * frame.h (selected_frame_level): Document as deprecated.
4537 (frame_relative_level): Declare.
4538 * stack.c (frame_relative_level): New function.
4539 (selected_frame_level): Document as deprecated.
4540 (select_frame): Do not set the selected_frame_level.
4542 * stack.c (frame_info, record_selected_frame): Update.
4543 (frame_command, current_frame_command): Update.
4544 (up_silently_base, up_command, down_silently_base): Update.
4545 (down_command): Update.
4546 * inflow.c (kill_command): Update.
4547 * tracepoint.c (finish_tfind_command): Update.
4548 * corelow.c (core_open): Update.
4549 * thread.c (info_threads_command): Update.
4550 (do_captured_thread_select): Update.
4551 * infcmd.c (finish_command): Update.
4552 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
4554 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4556 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
4558 2002-04-21 Andrew Cagney <ac131313@redhat.com>
4560 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
4563 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4565 * alphafbsd-tdep.c: Update copyright years. Include
4567 (alphafbsd_use_struct_convention): Make static.
4568 (alphafbsd_init_abi): New function.
4569 (_initialize_alphafbsd_tdep): New function.
4570 * config/alpha/tm-fbsd.h: Update copyright years.
4571 (USE_STRUCT_CONVENTION): Remove.
4573 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4575 * alpha-tdep.c (alpha_abi_handler): New structure to describe
4576 an Alpha ABI variant.
4577 (alpha_abi_handler_list): Declare.
4578 (alpha_gdbarch_register_os_abi): New function.
4579 (alpha_gdbarch_init): Give registered ABI variant handlers a
4580 chance to tweak the gdbarch once we have set up defaults.
4581 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
4583 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4585 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
4586 to standard_coerce_float_to_double.
4587 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
4589 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4591 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
4592 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
4593 from gdbarch_tdep rather than a constant.
4594 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
4595 the default text address for all Alpha Unix ABIs.
4596 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
4597 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
4599 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4601 * alpha-tdep.h: New file. Includes several Alpha target constants
4603 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
4604 let gdbarch deal with.
4605 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
4606 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
4608 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
4609 Alpha target register names.
4610 * alphabsd-nat.c: Likewise.
4611 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
4612 Alpha target register names. Make serveral routines static.
4613 (alpha_get_saved_register): New function.
4614 (alpha_abi_names): New.
4615 (process_note_abi_tag_sections): New function.
4616 (get_elfosabi): New function.
4617 (alpha_gdbarch_init): New function.
4618 (alpha_dump_tdep): New function.
4619 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
4621 2002-04-21 Andrew Cagney <ac131313@redhat.com>
4623 * frame.c (find_saved_register): Delete #ifdef
4624 HAVE_REGISTER_WINDOWS code.
4625 * config/sparc/tm-sparc.h: Update comments.
4626 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
4628 2002-04-21 Andrew Cagney <ac131313@redhat.com>
4630 * i960-tdep.c (i960_find_saved_register): New function.
4631 (i960_get_saved_register): New function.
4632 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
4633 (i960_get_saved_register): Declare.
4634 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
4636 2002-04-20 David S. Miller <davem@redhat.com>
4638 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
4640 2002-04-20 Andrew Cagney <ac131313@redhat.com>
4642 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
4643 instead of NUM_PSEUDO_REGS.
4645 2002-04-20 David S. Miller <davem@redhat.com>
4647 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
4648 GDB_MULTI_ARCH_PARTIAL
4649 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
4650 define, let tm-sp64.h do it.
4652 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
4654 * frame.c (find_saved_register): Avoid a NULL pointer
4655 dereference and actually walk the frame list.
4657 2002-04-20 Andrew Cagney <ac131313@redhat.com>
4659 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
4660 sorted in most most-recent-used order. Document.
4661 * gdbarch.h, gdbarch.c: Regenerate.
4663 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
4665 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
4666 (add_inferior): Call create_register_cache.
4667 (clear_inferiors): Call free_register_cache.
4668 (inferior_regcache_data, set_inferior_regcache_data): New functions.
4669 * gdbserver/regcache.c (struct inferior_regcache_data): New.
4670 (registers): Remove.
4671 (get_regcache): New function.
4672 (create_register_cache, free_register_cache): New functions.
4673 (set_register_cache): Don't initialize the register cache here.
4674 (registers_to_string, registers_from_string, register_data): Call
4676 * gdbserver/regcache.h: Add prototypes.
4677 * gdbserver/server.h: Likewise.
4679 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
4681 * gdbserver/mem-break.c: New file.
4682 * gdbserver/mem-break.h: New file.
4683 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
4685 * gdbserver/inferiors.c (struct inferior_info): Add target_data
4687 (clear_inferiors): Free target_data member if set.
4688 (inferior_target_data, set_inferior_target_data): New functions.
4689 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
4690 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
4691 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
4692 (struct inferior_linux_data): New.
4693 (linux_create_inferior): Use set_inferior_target_data.
4694 (linux_attach): Likewise. Call add_inferior.
4695 (linux_wait_for_one_inferior): New function.
4696 (linux_wait): Call it.
4697 (linux_write_memory): Add const.
4698 (initialize_low): Call set_breakpoint_data.
4699 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
4701 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
4703 * gdbserver/server.h: Include mem-break.h. Update inferior.c
4705 * gdbserver/target.c (read_inferior_memory)
4706 (write_inferior_memory): New functions.
4707 * gdbserver/target.h (read_inferior_memory)
4708 (write_inferior_memory): Change macros to prototypes.
4709 (struct target_ops): Update comments. Add const to write_memory
4712 2002-04-19 Andrew Cagney <ac131313@redhat.com>
4714 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
4716 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
4717 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
4718 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
4721 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
4724 * gdbtypes.c (init_simd_type): Rewrite using new functions.
4725 (build_builtin_type_vec128): Ditto.
4726 (append_composite_type_field): Fix calculation of type length in
4729 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
4731 * config/djgpp/README: Update.
4733 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
4736 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
4738 * alpha-tdep.c (setup_arbitrary_frame): Rename...
4739 (alpha_setup_arbitrary_frame): ...to this.
4740 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
4741 for alpha_setup_arbitrary_frame.
4743 2002-04-18 Andrew Cagney <cagney@redhat.com>
4745 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
4746 * gdbarch.h, gdbarch.c: Regenerate.
4748 * defs.h (breakpoint_from_pc_fn): Delete type definition.
4749 * target.h (memory_breakpoint_from_pc): Update declaration.
4750 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
4752 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
4753 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
4754 * mem-break.c (memory_breakpoint_from_pc): Ditto.
4755 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
4756 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
4757 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
4758 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
4759 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
4760 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
4761 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
4762 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
4763 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
4765 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
4767 * monitor.c (monitor_insert_breakpoint): Ditto.
4768 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
4770 * config/mcore/tm-mcore.h: Update copyright.
4771 * mem-break.c: Ditto.
4772 * xstormy16-tdep.c: Ditto.
4774 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
4776 * p-exp.y: Add precedence rule for '^' token.
4777 This removes the shift/reduce conflicts.
4778 Remove the comment concerning these shift/reduce conflicts.
4780 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
4782 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
4783 (registers_powerpc_nofp): New register set for processors
4784 without floating point unit.
4786 2002-04-18 David S. Miller <davem@redhat.com>
4788 * MAINTAINERS: Add myself to write-after-approval.
4790 2002-04-17 Michael Snyder <msnyder@redhat.com>
4792 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
4794 2002-04-17 Andrew Cagney <ac131313@redhat.com>
4796 * rs6000-tdep.c (frame_initial_stack_address): Use
4797 frame_register_read to read the alloca_reg.
4799 2002-04-17 Andrew Cagney <ac131313@redhat.com>
4801 * frame.c (find_saved_register): Find saved registers in the next
4805 2002-04-17 Andrew Cagney <ac131313@redhat.com>
4807 * gdbarch.sh (LANG): Set to ``c''.
4809 2002-04-15 Andrew Cagney <ac131313@redhat.com>
4811 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
4813 2002-04-15 Andrew Cagney <ac131313@redhat.com>
4815 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
4818 * hpread.c (hpread_get_lntt): Add declaration.
4819 Also fix PR gdb/391.
4821 2002-04-14 Andrew Cagney <ac131313@redhat.com>
4823 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
4824 * aclocal.m4, configure: Re-generate.
4827 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
4829 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
4830 instead of tm_print_insn.
4832 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
4834 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
4836 2002-04-14 Andrew Cagney <ac131313@redhat.com>
4838 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
4839 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
4840 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
4842 2002-04-12 Don Howard <dhoward@redhat.com>
4844 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
4845 max_user_call_depth.
4846 (init_cmd_lists): Initialize the new value;
4847 * cli/cli-script.c (execute_user_command): Limit the call depth of
4848 user defined commands. This avoids a core-dump when user commands
4849 are infinitly recursive.
4851 2002-04-12 Kevin Buettner <kevinb@redhat.com>
4853 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
4854 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
4855 from tdep struct instead of DEFAULT_LR_SAVE.
4856 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
4857 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
4858 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
4860 2002-04-12 Michael Snyder <msnyder@redhat.com>
4862 * Remote.c: Spelling fix.
4863 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
4864 If no symbol found for "sbrk", try "_sbrk".
4865 (make_output_phdrs): Use bfd_section_name.
4866 (gcore_copy_callback): Use bfd_section_name.
4867 * eval.c: Indentation fix-ups.
4868 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
4869 in case it gets applied to an address that is already
4870 in the instruction space.
4871 * cli/cli-decode.c (help_list): Allow long lines to wrap.
4872 * symfile.c: Fix indentation, long lines.
4873 * source.c: White space fix-up.
4875 2002-04-12 Andrew Cagney <cagney@redhat.com>
4877 * defs.h (read_relative_register_raw_bytes): Delete declaration.
4878 * frame.c (frame_register_read): New function. Return non-zero on
4880 (read_relative_register_raw_bytes_for_frame): Delete.
4881 (read_relative_register_raw_bytes): Delete.
4882 * frame.h (frame_register_read): Declare.
4883 * d30v-tdep.c: Update Copyright. Use frame_register_read.
4885 * infcmd.c (do_registers_info): Ditto.
4886 * hppa-tdep.c: Ditto.
4887 * rs6000-tdep.c: Ditto.
4888 * h8500-tdep.c: Ditto.
4889 * mips-tdep.c: Ditto.
4890 * h8300-tdep.c: Ditto.
4891 * z8k-tdep.c: Ditto.
4893 2002-04-12 Kevin Buettner <kevinb@redhat.com>
4895 From Jimi X <jimix@watson.ibm.com>:
4896 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
4899 2002-04-12 Kevin Buettner <kevinb@redhat.com>
4901 From Jimi X <jimix@watson.ibm.com>:
4902 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
4905 2002-04-12 Kevin Buettner <kevinb@redhat.com>
4907 From Jimi X <jimix@watson.ibm.com>:
4908 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
4909 register sets for these processor variants.
4911 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
4913 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
4914 registers which are allowed to fail to store.
4915 * gdbserver/linux-low.h (linux_target_ops): Likewise.
4916 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
4917 (ppc_cannot_store_register): FPSCR may not be storable.
4918 * regformats/reg-ppc.dat: Support FPSCR.
4920 2002-04-11 Kevin Buettner <kevinb@redhat.com>
4922 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
4923 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
4924 Add fpscr as an invalid/unfetchable register.
4925 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
4926 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
4927 (fill_fpregset): Add support for register fpscr.
4928 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
4929 (fill_gregset): Account for the fact that register ``mq'' might
4931 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
4932 (registers_power): Add fpscr to register set at slot 71.
4933 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
4934 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
4936 2002-04-11 Michael Snyder <msnyder@redhat.com>
4938 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
4939 * configure: Regenerate.
4940 * config.in: Regenerate.
4941 * acconfig.h: Add define for _SYSCALL32.
4942 * core-sol2.c: Remove #define _SYSCALL32.
4943 * solib-legacy.c: Remove #define _SYSCALL32.
4945 2002-04-10 Andrew Cagney <ac131313@redhat.com>
4947 * stack.c (select_frame): Cleanup internal error message, do not
4950 2002-04-10 Andrew Cagney <ac131313@redhat.com>
4952 * stack.c (select_frame): Check that selected_frame and the
4953 specified level are as expected.
4954 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
4956 * frame.h (struct frame_info): Add field `level'. Update
4958 Work-in-progress PR gdb/464.
4960 2002-04-10 Andrew Cagney <ac131313@redhat.com>
4962 * maint.c (maint_print_section_info): Rename print_section_info.
4963 (print_bfd_section_info, print_objfile_section_info): Update.
4964 * inferior.h (struct gdbarch): Add opaque declaration.
4965 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
4966 * gdbarch.h: Regenerate.
4968 2002-04-10 Michal Ludvig <mludvig@suse.cz>
4970 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
4971 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
4972 (kernel_u_size): Added.
4973 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
4974 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
4976 2002-04-04 Jim Ingham <jingham@apple.com>
4978 * valarith.c (find_size_for_pointer_math): New function, either returns
4979 the size for a pointer's target, returns 1 for void *, or errors for
4981 (value_add, value_sub): use find_size_for_pointer_math.
4983 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
4985 * linux-low.c (linux_look_up_symbols): New hook.
4986 (linux_target_ops): Add linux_look_up_symbols.
4987 * remote-utils.c (decode_address): New function.
4988 (look_up_one_symbol): New function.
4989 * server.c (handle_query): Call target look_up_symbols hook.
4990 * server.h (look_up_one_symbol): Add prototype.
4991 * target.h (struct target_ops): Add look_up_symbols hook.
4993 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
4995 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
4996 * ChangeLog: Correct paths in last ChangeLog entry.
4998 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5000 * gdbserver/linux-low.h: Remove obsolete prototypes.
5001 (struct linux_target_ops): New.
5002 (extern the_low_target): New.
5003 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
5004 (register_addr): Use the_low_target explicitly.
5005 (fetch_register): Likewise.
5006 (usr_fetch_inferior_registers): Likewise.
5007 (usr_store_inferior_registers): Likewise.
5008 * gdbserver/linux-arm-low.c (num_regs): Remove.
5009 (arm_num_regs): Define.
5010 (arm_regmap): Renamed from regmap, made static.
5011 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
5013 (arm_cannot_store_register): Renamed from cannot_store_register,
5015 (the_low_target): New.
5016 * gdbserver/linux-i386-low.c (num_regs): Remove.
5017 (i386_num_regs): Define.
5018 (i386_regmap): Renamed from regmap, made static.
5019 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
5021 (i386_cannot_store_register): Renamed from cannot_store_register,
5023 (the_low_target): New.
5024 * gdbserver/linux-ia64-low.c (num_regs): Remove.
5025 (ia64_num_regs): Define.
5026 (ia64_regmap): Renamed from regmap, made static.
5027 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
5029 (ia64_cannot_store_register): Renamed from cannot_store_register,
5031 (the_low_target): New.
5032 * gdbserver/linux-m68k-low.c (num_regs): Remove.
5033 (m68k_num_regs): Define.
5034 (m68k_regmap): Renamed from regmap, made static.
5035 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
5037 (m68k_cannot_store_register): Renamed from cannot_store_register,
5039 (the_low_target): New.
5040 * gdbserver/linux-mips-low.c (num_regs): Remove.
5041 (mips_num_regs): Define.
5042 (mips_regmap): Renamed from regmap, made static.
5043 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
5045 (mips_cannot_store_register): Renamed from cannot_store_register,
5047 (the_low_target): New.
5048 * gdbserver/linux-ppc-low.c (num_regs): Remove.
5049 (ppc_num_regs): Define.
5050 (ppc_regmap): Renamed from regmap, made static.
5051 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
5053 (ppc_cannot_store_register): Renamed from cannot_store_register,
5055 (the_low_target): New.
5056 * gdbserver/linux-s390-low.c (num_regs): Remove.
5057 (s390_num_regs): Define.
5058 (s390_regmap): Renamed from regmap, made static.
5059 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
5061 (s390_cannot_store_register): Renamed from cannot_store_register,
5063 (the_low_target): New.
5064 * gdbserver/linux-sh-low.c (num_regs): Remove.
5065 (sh_num_regs): Define.
5066 (sh_regmap): Renamed from regmap, made static.
5067 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
5069 (sh_cannot_store_register): Renamed from cannot_store_register,
5071 (the_low_target): New.
5072 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
5073 (the_low_target): New.
5075 2002-04-09 Andrew Cagney <ac131313@redhat.com>
5077 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
5078 override FP_REGNUM with frame->fp. Update copyright.
5079 * parse.c (num_std_regs, std_regs): Delete.
5080 (target_map_name_to_register): Do not search std_regs. Update
5081 function description.
5082 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
5083 declarations. Update copyright.
5086 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5088 * gdbserver/Makefile.in: Add stamp-h target.
5089 * gdbserver/configure.in: Create stamp-h.
5090 * gdbserver/configure: Regenerated.
5092 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5094 * gdbserver/inferiors.c: New file.
5095 * gdbserver/target.c: New file.
5096 * gdbserver/target.h: New file.
5097 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
5099 * gdbserver/linux-low.c (inferior_pid): New static variable,
5100 moved from server.c.
5101 (linux_create_inferior): Renamed from create_inferior.
5102 Call add_inferior. Return 0 on success instead of a PID.
5103 (linux_attach): Renamed from myattach.
5104 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
5105 (linux_thread_alive): Renamed from mythread_alive.
5106 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
5108 (linux_resume): Renamed from myresume. Add missing ``return 0''.
5109 (regsets_store_inferior_registers): Correct error message.
5110 Add missing ``return 0''.
5111 (linux_fetch_registers): Renamed from fetch_inferior_registers.
5112 (linux_store_registers): Renamed from store_inferior_registers.
5113 (linux_read_memory): Renamed from read_inferior_memory.
5114 (linux_write_memory): Renamed from write_inferior_memory.
5115 (linux_target_ops): New structure.
5116 (initialize_low): Call set_target_ops ().
5117 * gdbserver/remote-utils.c (unhexify): New function.
5118 (hexify): New function.
5119 (input_interrupt): Send signals to ``signal_pid''.
5120 * gdbserver/server.c (inferior_pid): Remove.
5121 (start_inferior): Update create_inferior call.
5122 (attach_inferior): Call add_inferior.
5123 (handle_query): New function.
5124 (main): Call handle_query for `q' packets.
5125 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
5126 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
5128 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5130 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
5132 * gdbserver/configure.in: Check for <string.h>
5133 * gdbserver/configure: Regenerate.
5134 * gdbserver/config.in: Regenerate.
5135 * gdbserver/gdbreplay.c: Include needed system headers.
5136 (remote_open): Remove strchr prototype.
5137 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
5138 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
5139 (supply_register_by_name): Likewise.
5140 (collect_register): Change buf argument to void *.
5141 (collect_register_by_name): Likewise.
5142 * gdbserver/regcache.h: Add missing prototypes.
5143 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
5144 * gdbserver/server.c (handle_query): New function.
5145 (attached): New static variable, moved out of main.
5146 (main): Quiet longjmp clobber warnings.
5147 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
5148 * gdbserver/utils.c (error): Remove NORETURN.
5151 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5153 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
5154 after the last symbol in a block.
5156 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
5158 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
5159 is non zero as a found symbol.
5161 2002-04-08 Andrew Cagney <ac131313@redhat.com>
5163 * findvar.c: Include "builtin-regs.h".
5164 (value_of_register): Call value_of_builtin_reg when applicable.
5165 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
5166 (target_map_name_to_register): Call
5167 builtin_reg_map_name_to_regnum.
5168 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
5169 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
5170 (builtin_regs_h): Define.
5171 (builtin-regs.o): New target.
5172 (findvar.o): Add $(builtin_regs_h).
5173 * builtin-regs.c, builtin-regs.h: New files.
5174 * std-regs.c: New file.
5175 Partial fix for PR gdb/251.
5177 2002-04-08 Kevin Buettner <kevinb@redhat.com>
5179 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
5180 it's no longer required.
5182 2002-04-08 Andrew Cagney <ac131313@redhat.com>
5184 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
5186 2002-04-08 Kevin Buettner <kevinb@redhat.com>
5188 From Jimi X <jimix@watson.ibm.com>:
5189 * rs6000-tdep.c (rs6000_software_single_step): Use
5190 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
5191 and size. Use target_insert_breakpoint() and
5192 target_remove_breakpoint() to insert and remove breakpoints
5193 instead of explicit memory reads and writes.
5195 2002-04-08 Kevin Buettner <kevinb@redhat.com>
5197 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
5198 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
5199 ELF_OBJECT_FORMAT ifdef.
5201 2002-04-08 Kevin Buettner <kevinb@redhat.com>
5203 From Jimi X <jimix@watson.ibm.com>:
5204 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
5206 2002-04-08 Kevin Buettner <kevinb@redhat.com>
5208 From Jimi X <jimix@watson.ibm.com>:
5209 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
5210 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
5212 2002-04-07 Mark Kettenis <kettenis@gnu.org>
5214 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
5215 s/asprintf/xasprintf/.
5216 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
5218 2002-04-07 Andrew Cagney <ac131313@redhat.com>
5220 I believe Jeff Law denies responsability for this one:
5221 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
5222 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
5223 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
5224 Work-around for PR gdb/366.
5226 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
5228 * remote-e7000.c (write_small, e7000_read_inferior_memory,
5229 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
5230 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
5232 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
5234 * sh-tdep.c (sh_fp_frame_init_saved_regs,
5235 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
5238 2002-04-07 Andrew Cagney <ac131313@redhat.com>
5240 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
5243 2002-04-07 Andrew Cagney <ac131313@redhat.com>
5245 * README (Reporting Bugs in GDB): Document the bug web page as the
5246 prefered way of submitting bugs.
5249 2002-04-06 Andrew Cagney <ac131313@redhat.com>
5251 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
5253 * gdbarch.h, gdbarch.c: Re-generate.
5255 2002-04-07 Andreas Schwab <schwab@suse.de>
5257 * m68klinux-nat.c (fill_fpregset): Properly pass address of
5258 buffer to regcache_collect.
5260 2002-04-06 Andrew Cagney <ac131313@redhat.com>
5262 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
5263 * gdbarch.c, gdbarch.h: Re-generate.
5265 2002-04-06 Andrew Cagney <ac131313@redhat.com>
5267 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
5268 declaration. Fix -Werror.
5270 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
5272 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
5273 * gdbarch.c: Regenerate.
5275 2002-04-05 Michael Snyder <msnyder@redhat.com>
5277 * breakpoint.c (clear_command): Rewrite middle section to
5278 combine two loops with identical control conditions.
5279 Add a cleanup to eliminate a memory leak.
5280 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
5282 2002-04-05 H.J. Lu (hjl@gnu.org)
5284 * solib-svr4.c (bkpt_names): Add "__start".
5286 2002-04-04 Andrew Cagney <ac131313@redhat.com>
5288 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
5289 as test for 64 bit target.
5291 2002-04-05 Andrew Cagney <ac131313@redhat.com>
5293 * h8500-tdep.c (h8500_write_fp): Delete function.
5294 * dwarf2cfi.c (cfi_write_fp): Document as not used.
5295 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
5296 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
5297 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
5298 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
5299 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
5301 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
5302 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
5303 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
5304 (d10v_write_fp): Delete function.
5305 * inferior.h (write_fp, generic_target_write_fp): Delete
5307 * regcache.c (generic_target_write_fp): Delete function.
5308 (write_fp): Delete function.
5309 * gdbarch.sh (TARGET_WRITE_FP): Delete.
5310 * gdbarch.h, gdbarch.c: Regenerate.
5311 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
5312 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
5313 (sparc64_write_fp): Delete declaration.
5314 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
5315 (h8500_write_fp): Delete declaration.
5317 2002-04-04 Andrew Cagney <ac131313@redhat.com>
5319 * sparc-tdep.c (sparc64_write_fp): Delete.
5320 (sparc_push_dummy_frame): Replace write_fp call with code to store
5322 (sparc_gdbarch_init): Do not initialize write_fp.
5324 2002-04-05 Kevin Buettner <kevinb@redhat.com>
5326 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
5329 2002-03-29 Jim Blandy <jimb@redhat.com>
5331 * stack.c (get_selected_block): Add new argument `addr_in_block',
5332 used to return the exact code address we used to select the block,
5334 * blockframe.c (get_frame_block, get_current_block): Same.
5335 * frame.h (get_frame_block, get_current_block,
5336 get_selected_block): Update declarations.
5337 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
5338 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
5340 2002-04-05 Michael Snyder <msnyder@redhat.com>
5342 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
5345 2002-04-05 J. Brobecker <brobecker@gnat.com>
5347 * utils.c (xfullpath): New function.
5348 * defs.h (xfullpath): Add declaration.
5349 * source.c (openp): Use xfullpath in place of gdb_realpath to
5350 avoid resolving the basename part of filenames when the
5351 associated file is a symbolic link. This fixes a potential
5352 inconsistency between the filenames known to GDB and the
5353 filenames it prints in the annotations.
5354 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
5355 to be able to match a filename with either the real filename, or
5356 the name of any symbolic link to this file.
5357 (lookup_partial_symtab): Ditto.
5359 2002-04-04 Michael Snyder <msnyder@redhat.com>
5361 * breakpoint.c: Add support for hardware breakpoints in overlays.
5362 (overlay_events_enabled): New state variable.
5363 (insert_breakpoints): Use overlay_events_enabled to decide
5364 whether to attempt to set a breakpoint at the overlay load addr.
5365 Handle bp_hardware_breakpoint as well as bp_breakpoint.
5366 (remove_breakpoint): Use overlay_events_enabled to decide
5367 whether breakpoints need to be removed from overlay load addr.
5368 Handle bp_hardware_breakpoint as well as bp_breakpoint.
5369 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
5370 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
5371 disable_overlay_breakpoints): Update overlay_events_enabled.
5373 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
5375 * dwarf2read.c (struct function_range): New.
5376 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
5377 (check_cu_functions): New.
5378 (read_file_scope): Initialize global function lists.
5379 Call dwarf_decode_line after processing children.
5380 (read_func_scope): Add to global function list.
5381 (dwarf_decode_lines): Call check_cu_functions everywhere
5382 record_line is called. Call record_line with a linenumber
5383 of 0 to mark sequence ends.
5385 2002-04-04 Michal Ludvig <mludvig@suse.cz>
5387 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
5388 change sync with glibc.
5390 2002-04-03 Jim Blandy <jimb@redhat.com>
5392 * configure.in: Call AC_C_INLINE.
5393 * configure: Regenerated.
5395 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
5397 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
5398 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
5400 2002-03-31 Mark Kettenis <kettenis@gnu.org>
5402 * NEWS: Mention gcore support on FreeBSD/i386.
5404 * fbsd-proc.c: New file.
5405 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
5406 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
5408 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
5411 2002-03-29 Jim Blandy <jimb@redhat.com>
5413 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
5414 unescaped newlines in string literals, but newer ones don't. So
5417 2002-03-26 Michael Snyder <msnyder@redhat.com>
5418 Andrew Cagney <cagney@redhat.com>
5420 * cli/cli-dump.c: New file. Dump memory to file,
5421 restore file to memory.
5422 * cli/cli-dump.h: New file.
5423 * Makefile.in: Add rules, dependencies for cli-dump.o.
5424 * NEWS: Mention new commands.
5426 2002-03-28 Michael Snyder <msnyder@redhat.com>
5428 * symfile.c (symbol_file_add): Move test for null symbols to later.
5430 2002-03-27 Andrew Cagney <ac131313@redhat.com>
5432 From veksler at il.ibm.com:
5433 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
5434 the xstrduped original path.
5437 2002-03-27 Michael Snyder <msnyder@redhat.com>
5439 * breakpoint.c (_initialize_breakpoint): Clean up help string.
5440 * infcmd.c (_initialize_infcmd): Ditto.
5441 * language.c (_initialize_language): Ditto.
5442 * symfile.c (_initialize_symfile): Ditto.
5443 * top.c (_init_main): Ditto.
5444 * cli/cli-cmds.c (init_cli_cmds): Ditto.
5446 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
5448 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
5449 vector registers handling.
5450 (skip_prologue): Handle new AltiVec instructions. Fill in new
5451 fields of frame data.
5452 (frame_get_saved_regs): Fill in information for AltiVec registers.
5454 2002-03-27 Jim Blandy <jimb@redhat.com>
5456 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
5457 a function; leave this macro here to invoke that function.
5458 (symbol_init_mangled_name): Declaration for that function.
5459 * symtab.c (symbol_init_mangled_name): New function.
5461 2002-03-27 Andrew Cagney <ac131313@redhat.com>
5463 * valarith.c: Replace strerror with safe_strerror.
5464 * tracepoint.c: Ditto.
5466 * go32-nat.c: Ditto.
5470 2002-03-27 Andreas Schwab <schwab@suse.de>
5472 * event-top.c (command_line_handler): Remove useless if.
5474 2002-03-27 Andreas Jaeger <aj@suse.de>
5476 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
5479 2002-03-27 Michal Ludvig <mludvig@suse.cz>
5481 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
5482 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
5483 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
5484 (x86_64_linux_dr_get_status, supply_gregset),
5485 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
5486 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
5487 (x86_64_register_info_table): Add.
5488 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
5489 (x86_64_register_raw_size, x86_64_register_virtual_type),
5490 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
5491 general x86_64_register_info_table.
5492 (i386_gdbarch_init): gdbarch_register_bytes is now set
5493 dynamicaly during initialization.
5494 * regformats/reg-x86-64.dat: Synced with changes to registers above.
5495 * gdbserver/linux-x86-64-low.c: Ditto.
5497 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
5499 * gdbserver/server.c (main): Call target_signal_to_host_p
5500 and target_signal_to_host on signals received from the remote.
5501 * gdbserver/remote-utils.c (prepare_resume_reply): Call
5502 target_signal_from_host on signals sent to the remote.
5503 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
5504 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
5506 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
5508 * signals/signals.c: Include "server.h" in gdbserver build.
5509 (target_signal_from_name): Don't use STREQ.
5510 (_initialize_signals): Likewise. Don't include function in
5513 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
5515 * signals.c: Moved to...
5516 * signals/signals.c: Here.
5517 * Makefile (signals.o): Update.
5519 2002-03-26 Jeff Law (law@redhat.com)
5521 * somread.c (som_symtab_read): Remove some commented out code and
5522 updated related comments. Do not set the minimal symbol table to
5523 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
5524 in a dynamic executable.
5525 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
5526 where we are unable to find the minimal symbol for the given
5529 2002-03-25 Jeff Law (law@redhat.com)
5531 * linux-proc.c (read_mapping): Scan up to end of line for filename.
5533 2002-03-25 Michal Ludvig <mludvig@suse.cz>
5535 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
5537 2002-03-23 Andrew Cagney <ac131313@redhat.com>
5539 * command.h: Update copyright.
5540 (struct cmd_list_element): Replace definition with opaque
5542 (enum cmd_types): Document that it will eventually be moved to
5544 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
5545 (MALLOCED_REPLACEMENT): Delete macro.
5546 * Makefile.in (cli_decode_h): Add $(command_h).
5547 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
5548 * top.c: Include "cli/cli-decode.h".
5549 * completer.c: Include "cli/cli-decode.h".
5550 * maint.c: Include "cli/cli-decode.h".
5551 * cli/cli-decode.h: Include "command.h".
5552 (enum command_class): Delete.
5553 (enum cmd_types): Comment out.
5554 (enum cmd_auto_boolean): Delete.
5555 (enum var_types): Delete.
5557 2002-03-23 Andrew Cagney <ac131313@redhat.com>
5559 * cli/cli-decode.c: Include "gdb_assert.h".
5560 (add_set_or_show_cmd): New static function.
5561 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
5562 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
5563 all fields, such as func, from the set command.
5565 2002-03-23 Andrew Cagney <ac131313@redhat.com>
5567 * MAINTAINERS (sh-elf): Change warning flag to -w.
5569 2002-03-23 Andrew Cagney <cagney@redhat.com>
5571 * defs.h (error): Add printf format attribute.
5572 * thread-db.c (thread_from_lwp): Fix error format string.
5573 * stack.c (parse_frame_specification): Ditto.
5574 * cli/cli-decode.c (undef_cmd_error): Ditto.
5575 * scm-lang.c (scm_lookup_name): Ditto.
5576 * tracepoint.c (trace_error): Ditto.
5577 * remote-utils.c (usage): Ditto.
5578 * remote.c (compare_sections_command): Ditto.
5581 2002-03-22 Andrew Cagney <ac131313@redhat.com>
5583 * gdbtypes.c (append_composite_type_field): New function.
5584 (init_composite_type): New function.
5585 * gdbtypes.h (append_composite_type_field): Declare.
5586 (init_composite_type): Ditto.
5588 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
5590 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
5592 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
5593 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
5594 structure returning convention for SYSV ABI case, but not
5595 for GNU/Linux, FreeBSD, or NetBSD.
5597 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
5599 * symtab.h (lookup_block_symbol): Add mangled_name argument
5602 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
5603 with new mangled_name argument.
5604 * linespec.c (decode_line_1): Likewise.
5605 * valops (value_of_this): Likewise.
5606 * symtab.c (lookup_transparent_type): Likewise.
5607 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
5608 (lookup_symbol): If we are given a mangled name, pass it down
5609 to lookup_symbol_aux.
5610 (lookup_block_symbol): If we are given a mangled name to check
5611 against, only return symbols which match it.
5613 2002-03-22 Christopher Faylor <cgf@redhat.com>
5615 * win32-nat.c (child_create_inferior): Check for proper shell to use
5616 here, in case the user changes it on the fly.
5617 (_initialize_inftarg): Remove shell path considerations.
5619 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
5621 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
5622 for gdbarch_max_register_raw_size and max_register_virtual_size.
5623 Adjust copyright year.
5625 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
5627 * dbxread.c (process_one_symbol): Extend the first N_SLINE
5628 in a function to cover the entire beginning of the function
5629 as well if it does not already.
5631 2002-03-21 Tom Rix <trix@redhat.com>
5633 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
5634 (rs6000_ptrace64): Renamed from ptrace64.
5636 2002-03-20 Martin M. Hunt <hunt@redhat.com>
5638 * gdbserver/remote-utils.c (remote_open): Don't call
5639 getprotobyname, we're all using TCP here so just use
5641 * gdbserver/gdbreplay.c (remote_open): Ditto.
5643 2002-03-20 Martin M. Hunt <hunt@redhat.com>
5645 * regcache.c (_initialize_regcache): No need to call
5646 build_regcache() at this time; it gets called whenever
5647 the gdbarch changes.
5649 2002-03-20 David O'Brien <obrien@FreeBSD.org>
5651 * sparc-nat.c: Include sys/param.h where possible.
5653 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
5656 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
5657 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
5658 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
5660 * stabsread.c (rs6000_builtin_type): Likewise.
5661 (read_sun_floating_type): Likewise.
5663 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5665 * stabsread.c (read_member_functions): Remove skip code for duplicate
5666 constructor/destructor methods. Use standard parsing for these
5667 methods and just do not chain them to the list of methods after
5670 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
5672 * coffread.c: Remove redundant static declarations. Replace
5673 occurrences of `PTR' with `void *'.
5674 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
5675 * top.h (quit_cover): Likewise.
5676 * defs.h (catch_errors): Likewise.
5678 2002-03-18 Andrew Cagney <ac131313@redhat.com>
5680 * defs.h (XMALLOC): Define.
5681 * gdb-events.sh (XMALLOC): Delete macro.
5682 * gdb-events.c, gdb-events.h: Regenerate.
5683 * gdbarch.sh (XMALLOC): Delete macro.
5684 * gdbarch.c: Regenerate.
5685 * serial.c (XMALLOC): Delete macro.
5686 * ui-file.c (XMALLOC): Ditto.
5687 * ser-unix.h (XMALLOC): Ditto.
5688 * sh-tdep.c (XMALLOC): Ditto.
5689 * ui-out.c (XMALLOC): Ditto.
5690 * utils.c (XMALLOC): Ditto.
5691 * i386-tdep.c (XMALLOC): Ditto.
5692 * gdb-events.c (XMALLOC): Ditto.
5693 * d10v-tdep.c (XMALLOC): Ditto.
5694 * cli-out.c (XMALLOC): Ditto.
5696 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
5697 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
5698 * ui-file.c, ui-out.c: Ditto.
5700 2002-03-18 Andrew Cagney <ac131313@redhat.com>
5702 * command.h (struct cmd_list_element): Add field context.
5703 (set_cmd_context, get_cmd_context): Declare.
5704 * cli/cli-decode.h: Ditto.
5705 * cli/cli-decode.c (get_cmd_context): New function.
5706 (set_cmd_context): New function.
5707 (add_cmd): Initialize context.
5708 Part of fixing PR gdb/145 and PR gdb/146.
5710 2002-03-17 Andrew Cagney <ac131313@redhat.com>
5712 * cli/cli-decode.c (cmd_type): New function.
5713 * command.h (cmd_type): Declare.
5714 * infrun.c (set_schedlock_func): Call function cmd_type.
5715 * kod.c (kod_set_os): Call cmd_type.
5716 * cris-tdep.c (cris_version_update): Use function cmd_type.
5717 (cris_mode_update, cris_abi_update): Ditto.
5719 * command.h: (execute_cmd_post_hook): Declare.
5720 (execute_cmd_pre_hook): Declare.
5721 * cli/cli-script.c (clear_hook_in_cleanup): New function.
5722 (execute_cmd_post_hook, execute_cmd_pre_hook): New
5723 functions. Execute pre/post hook while ensuring that afterwords
5725 * top.c (execute_command): Use execute_cmd_post_hook, and
5726 execute_cmd_pre_hook to execute pre/post commands.
5727 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
5729 (hook_stop_stub): Call execute_cmd_pre_hook.
5731 2002-03-17 Andrew Cagney <ac131313@redhat.com>
5733 * kod.c (kod_set_os): Revert previous change. Is called by ``info
5734 set'' and this leads to a core dump. Move xstrdup of
5735 operating_system to after check that it is not NULL.
5737 2002-03-17 Andrew Cagney <ac131313@redhat.com>
5739 * kod.c (kod_set_os): Remove unnecessary check that
5740 ``command->type'' is set_cmd.
5742 * valprint.c (set_input_radix): Use input_radix.
5743 (set_output_radix): Use output_radix.
5744 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
5747 2002-03-16 Andrew Cagney <ac131313@redhat.com>
5749 * value.h (struct value): Delete field ``substring_addr''. Change
5750 aligner fields to force_doublest_align, force_longest_align,
5751 force_core_addr_align and force_pointer_aligh.
5753 * value.h (struct value): Fix typo in above change.
5755 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5757 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
5758 to fix internal_error from ``maintenance print architecture''.
5760 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5762 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
5763 for gcc versions after gcc-2.8.1.
5765 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5767 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
5768 for method resolution. Restore adjustment of ``this'' pointer after
5769 calling value_struct_elt, which was accidentally removed during the
5772 2002-03-15 Andrew Cagney <ac131313@redhat.com>
5774 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
5776 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
5778 * value.h (value_of_register): Update.
5780 2002-03-14 Richard Henderson <rth@redhat.com>
5782 * configure.in: Detect declaration for canonicalize_file_name.
5783 * utils.c (canonicalize_file_name): Declare, if needed.
5784 (gdb_realpath): Prefer realpath if available and usable.
5785 * config.in, configure: Rebuild.
5787 2002-03-14 Richard Henderson <rth@redhat.com>
5789 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
5790 a constant array bound.
5792 * MAINTAINERS: Add myself to write-after-approval.
5794 2002-03-14 Michael Snyder <msnyder@redhat.com>
5796 * symfile.c (syms_from_objfile): Return immediately if no syms.
5797 (symbol_file_add): Return immediately if no syms.
5798 (find_sym_fns): Return immediately if no syms.
5800 2002-03-13 Michal Ludvig <mludvig@suse.cz>
5802 * gdbserver/remote-util.c (remote_open): Print remote-side's
5803 IP address when remote debugging over the network.
5805 2002-03-12 David O'Brien <obrien@FreeBSD.org>
5807 * config/sparc/fbsd.mh: Fix copyright.
5808 * config/sparc/fbsd.mt: Likewise.
5810 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
5812 * MAINTAINERS: Fix typo in name of gdb warnings option.
5813 (x86-64): Fix formating so that this can be parsed by awk.
5815 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
5817 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
5818 * defs.h: Include "gdb/signals.h".
5819 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
5821 2002-03-10 Michal Ludvig <mludvig@suse.cz>
5823 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
5824 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
5827 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
5828 Don Howard <dhoward@redhat.com>
5830 * mips-tdep.c (ST0_FR): Define.
5831 (mips2_fp_compat): New function, temporarily disabled.
5832 (mips_read_fp_register_single): New function.
5833 (mips_read_fp_register_double): New function.
5834 (mips_print_register): Use them.
5835 (do_fp_register_row): Likewise.
5837 2002-03-09 Andrew Cagney <ac131313@redhat.com>
5839 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
5842 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5844 * stabsread.c (read_member_functions): Fix is_stub test for
5845 static member functions, improve comment.
5847 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
5849 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
5850 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
5851 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
5852 commands that set boolean values.
5853 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
5854 (arm_rdi_resume): Always initialize PC.
5855 (arm_rdi_open): Don't use rslt as a boolean.
5856 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
5857 (arm_rdi_fetch_registers, arm_rdi_store_registers)
5858 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
5859 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
5861 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
5863 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
5864 * configure: Rebuilt.
5866 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5868 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
5869 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
5871 2002-03-06 Andrew Cagney <ac131313@redhat.com>
5873 * cli/cli-decode.c (set_cmd_completer): New function.
5874 * command.h (set_cmd_completer): Declare.
5875 * cli/cli-decode.h (set_cmd_completer): Ditto.
5877 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
5878 * cli/cli-cmds.c (init_cli_cmds): Ditto.
5879 * win32-nat.c (_initialize_inftarg): Ditto.
5880 * remote-rdi.c (_initialize_remote_rdi): Ditto.
5881 * proc-api.c (_initialize_proc_api): Ditto.
5882 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
5883 * source.c (_initialize_source): Ditto.
5884 * exec.c (_initialize_exec): Ditto.
5885 * solib.c (_initialize_solib): Ditto.
5886 * top.c (init_main): Ditto.
5887 * tracepoint.c (_initialize_tracepoint): Ditto.
5888 * symfile.c (_initialize_symfile): Ditto.
5889 * printcmd.c (_initialize_printcmd): Ditto.
5890 * infcmd.c (_initialize_infcmd): Ditto.
5891 * corefile.c (_initialize_core): Ditto.
5893 2002-03-05 Andrew Cagney <ac131313@redhat.com>
5895 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
5897 2002-03-05 Andrew Cagney <ac131313@redhat.com>
5899 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
5901 2002-03-05 Andrew Cagney <ac131313@redhat.com>
5903 * NEWS: Update headings, 5.2 has branched.
5905 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
5907 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
5908 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
5909 (register_addr, REGISTER_RAW_SIZE): Likewise.
5910 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
5911 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
5913 2002-03-03 Michal Ludvig <mludvig@suse.cz>
5915 * MAINTAINERS (x86-64): Add myself.
5916 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
5917 changed value_ptr -> struct value *
5919 2002-03-01 David O'Brien <obrien@FreeBSD.org>
5921 * configure.host (sparc64-*-freebsd): Add.
5922 * configure.tgt: Likewise.
5923 * config/sparc/fbsd.mh: New file.
5924 * config/sparc/fbsd.mt: Likewise.
5925 * config/sparc/nm-fbsd.h: Likewise.
5926 * config/sparc/tm-fbsd.h: Likewise.
5928 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
5930 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
5931 regformats/reg-s390x.dat.
5933 2002-03-01 Andrew Cagney <ac131313@redhat.com>
5935 * utils.c: Add FIXME explaining true/false problem.
5937 2002-02-28 Andrew Cagney <ac131313@redhat.com>
5939 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
5941 2002-02-28 Michael Chastain <mec@shout.net>
5943 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
5945 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
5947 * gdbserver/linux-s390-low.c: New file.
5948 * regformats/reg-s390.dat: New file.
5949 * regformats/reg-s390x.dat: New file.
5950 * gdbserver/configure.srv: Add S/390.
5951 * gdbserver/Makefile.in: Add S/390.
5952 * configure.tgt: Enable gdbserver for S/390.
5954 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
5956 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
5957 first line of the doc string for "info dos", except at the end of
5958 the sentence, since the short help stops at the first period.
5960 2002-02-28 Jason Merrill <jason@redhat.com>
5962 * dwarf2read.c (dwarf_cfi_name): Add new codes.
5964 2002-02-27 Fred Fish <fnf@redhat.com>
5966 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
5967 comment (dumy -> dummy).
5969 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5971 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
5973 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
5975 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
5977 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
5979 * gdbserver/acconfig.h: New file.
5980 * gdbserver/i387-fp.c: New file.
5981 * gdbserver/i387-fp.h: New file.
5982 * gdbserver/linux-x86-64.c: New file.
5983 * regformats/reg-x86-64.dat: New file.
5984 * configure.tgt: Add x86_64-*-linux* gdbserver support.
5985 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
5986 * gdbserver/configure.in: Add support for regsets.
5987 * gdbserver/config.in: Regenerate.
5988 * gdbserver/configure: Regenerate.
5989 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
5990 * gdbserver/linux-low.h: New file.
5991 * gdbserver/linux-low.c: Include "linux-low.h". Add support
5993 * gdbserver/linux-arm-low.c: Include "linux-low.h".
5994 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
5995 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
5996 * gdbserver/linux-mips-low.c: Include "linux-low.h".
5997 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
5998 * gdbserver/linux-sh-low.c: Include "linux-low.h".
5999 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
6000 "i387-fp.h". Add PTRACE_GETREGS and friends.
6001 * gdbserver/regcache.c (supply_register): New function.
6002 (supply_register_by_name): New function.
6003 (collect_register): New function.
6004 (collect_register_by_name): New function.
6006 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
6008 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
6009 (config.status): Add configure.srv dependency.
6010 (server_h): Add config.h dependency.
6012 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
6014 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
6015 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
6016 * gdbserver/configure.srv: Change i386-*-linux* to use
6019 2002-02-26 Andrew Cagney <ac131313@redhat.com>
6021 * x86-64-tdep.c: Re-indent. Update copyright date.
6023 2002-02-26 Andrew Cagney <ac131313@redhat.com>
6025 From Michal Ludvig <mludvig@suse.cz>:
6026 * x86-64-tdep.c (value.h): Delete.
6027 (gdb_assert.h): Include.
6028 (x86_64_register_convert_to_virtual,
6029 x86_64_register_convert_to_raw ): Add check which lets only
6030 floating-point values to be converted.
6031 (value_push): Delete.
6032 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
6033 (i386_gdbarch_init): Number of register_bytes fixed.
6035 2002-02-26 Andrew Cagney <ac131313@redhat.com>
6037 * MAINTAINERS: Add x86-64 target.
6039 2002-02-26 Andrew Cagney <ac131313@redhat.com>
6041 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
6042 * osfsolib.c (solib_map_sections): Ditto.
6043 * irix5-nat.c (solib_map_sections): Ditto.
6044 * corelow.c (gdb_check_format): Ditto.
6045 * symfile.c (symfile_bfd_open): Ditto.
6046 * solib.c (solib_map_sections): Ditto.
6049 2002-02-26 Andrew Cagney <ac131313@redhat.com>
6051 * remote.c (_initialize_remote): By default, disable ``e'' and
6052 ``E'' step out-of-range packets.
6054 2002-02-26 Andreas Schwab <schwab@suse.de>
6056 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
6057 m68k_linux_frame_saved_pc.
6058 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
6060 (SIGCONTEXT_PC_OFFSET): Remove.
6061 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
6062 m68k_linux_sigtramp_saved_pc): New functions.
6063 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
6064 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
6065 (UCONTEXT_PC_OFFSET): Define.
6066 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
6067 non-RT and RT signal trampolines.
6069 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
6071 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
6072 (TARGET_NBPG, STACK_END_ADDR): Delete
6073 (VARIABLES_INSIDE_BLOCK): Delete.
6075 2002-02-25 Andrew Cagney <ac131313@redhat.com>
6077 * utils.c (perror_with_name): Make string parameter constant.
6078 (print_sys_errmsg): Ditto.
6080 * defs.h (perror_with_name): Update.
6081 (print_sys_errmsg): Update.
6084 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
6086 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
6087 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
6089 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6091 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
6092 if it already matches the current architecture from the exec file.
6093 Include arch-utils.h for gdbarch_info_init prototype.
6094 * Makefile.in (rs6000-nat.o): Update dependencies.
6096 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
6098 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
6099 list of exported variables.
6101 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
6103 * gdbserver/configure.srv: New file.
6104 * gdbserver/configure.in: Use configure.srv instead
6105 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
6107 * gdbserver/configure: Regenerated.
6108 * gdbserver/terminal.h: New file.
6109 * gdbserver/Makefile.in: Update for configure changes. Remove
6110 more unneeded include paths.
6112 2002-02-24 Andrew Cagney <ac131313@redhat.com>
6114 From wiz at danbala:
6115 * config/sparc/tm-sp64.h: Fix grammar and typos.
6118 2002-02-24 Andrew Cagney <ac131313@redhat.com>
6120 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
6121 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
6122 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
6123 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
6124 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
6125 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
6126 * s390-tdep.c: Ditto.
6127 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
6128 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
6129 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
6130 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
6131 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
6132 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
6133 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
6134 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
6135 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
6136 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
6139 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6141 * lin-thread.c: Delete file.
6142 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
6143 to gdb_proc_service.h.
6144 * configure: Re-generate.
6146 * ocd.c (ocd_open): Do not try to open the "ocd" device.
6147 * serial.c (serial_open): Delete check for "ocd".
6150 * Makefile.in (linux-thread.o): Delete target.
6151 * linux-thread.c: Delete file.
6153 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
6154 renamed SH files to be consistent.
6156 * symtab.c (sort_search_symbols): Use xfree.
6158 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
6160 * arm-linux-tdep.c (arm_linux_init_abi): Register
6161 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
6162 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
6163 definition with undef, since we don't want the sysvr4 definition.
6164 (SKIP_TRAMPOLINE_CODE): Likewise.
6166 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6168 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
6170 * configure.in: (AC_CHECK_FUNCS) Added test for
6171 canonicalize_file_name Regenerated.
6172 * config.in, configure: Regenerated.
6173 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
6174 defined use canonicalize_file_name.
6176 2002-02-23 Michael Chastain <mec@shout.net>
6178 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
6180 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6182 * README: Remove references to cygnus.com.
6183 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
6184 dot com'' form. Remove references to cygnus.com and sourceware.
6186 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6188 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
6189 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
6190 1003.1-2001 no longer allows "head -1".
6191 * gdb/Makefile.in (version.c): Likewise.
6192 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
6193 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
6194 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
6196 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6198 * cli/cli-decode.c (cmd_cfunc_eq): New function.
6199 * command.h (cmd_cfunc_eq): Declare.
6200 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
6202 * cli/cli-cmds.h (is_complete_command): Change parameter to a
6203 ``struct cmd_list_element *''.
6204 * cli/cli-cmds.c (is_complete_command): Update. Use
6206 * top.c (execute_command): Pass the command to
6207 is_complete_command.
6208 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
6210 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6212 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
6213 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
6214 architecture defines.
6215 * s390-tdep.c (s390_gdbarch_init): Likewise.
6217 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
6219 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
6220 (arm_linux_push_arguments): Likewise.
6221 (arm_linux_init_abi): Register them. Also register linux-specific
6223 (find_minsym_and_objfile): Use strcmp, not STREQ.
6224 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
6225 (arm_linux_call_dummy_words): Delete declaration.
6226 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
6227 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
6229 (LOWEST_PC): Delete.
6231 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6233 * maint.c (print_section_info): Do not prepend `0x' to filepos
6234 output, it will be handled by local_hex_string_custom.
6236 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
6238 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
6239 (store_newfpe_double, store_newfpe_extended, store_fpregister)
6240 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
6242 2002-02-22 Jim Blandy <jimb@redhat.com>
6244 Indicate that the bcache functions don't change the strings
6246 * bcache.h (bcache, hash): Add `const' keywords to declarations.
6247 * bcache.c (bcache, hash): Add `const' keywords to definitions.
6249 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
6251 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
6253 2002-02-21 Christopher Faylor <cgf@redhat.com>
6255 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
6256 find the complete path to a loaded DLL.
6258 2002-02-21 Fred Fish <fnf@redhat.com>
6260 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
6261 that marks the end of the range of a function, enter a line number
6262 entry that has a line number of zero and a PC offset that matches
6263 the end of the function. This starts a range of PC's for which no
6264 line number information is known.
6265 * symtab.c (find_pc_sect_line): If our best fit is in a range of
6266 PC's for which no line number info is found (line number is zero)
6267 then we didn't find any valid line information.
6268 * symtab.h: Document use of zero line number entry.
6270 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
6272 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
6273 (have_ptrace_getvrregs): Define for run time checks.
6274 (gdb_vrregset_t): New type for Altivec register handling.
6275 (fetch_register, store_register): Fetch/store altivec register
6277 (fetch_altivec_register, store_altivec_register): New functions.
6278 (supply_vrregset, fill_vrregset): New functions.
6279 (fetch_altivec_registers, store_altivec_registers): New functions.
6280 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
6283 2002-02-21 Jiri Smid <smid@suse.cz>
6285 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
6287 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
6289 * Makefile.in (armnbsd-nat.o): Update dependencies.
6290 * armnbsd-nat.c (supply_gregset): New function. Common code to
6291 supply the integer register set.
6292 (supply_fparegset): New function. Similar for FPA registers.
6293 (fetch_regs, fetch_fp_regs): Use them.
6294 (fetch_core_registers): Likewise.
6295 (fetch_elfcore_registers): New function.
6296 (arm_netbsd_elfcore_fns): New core-file type specification.
6297 (_initialize_arm_netbsd_nat): Register it.
6299 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
6301 * armnbsd-nat.c: Include gdbcore.h.
6302 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
6303 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
6304 'void' to declaration, to shut up ARI.
6305 (fetch_core_registers): Make static. Rewrite using supply_register.
6306 (arm_netbsd_core_fns): New core-file type specification.
6307 (_initialize_arm_netbsd_nat): New function.
6309 2002-02-21 Christopher Faylor <cgf@redhat.com>
6311 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
6314 2002-02-20 Christopher Faylor <cgf@redhat.com>
6316 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
6319 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
6321 * jv-exp.y (parse_number): Change type of implicit longs
6322 to builtin_type_uint64.
6324 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
6326 * gdbserver/linux-low.c (mywait): Change argument to waitpid
6327 to be an integer instead of a `union wait'.
6329 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
6331 * mips-linux-nat.c: Call the operating system GNU/Linux.
6332 * mips-linux-tdep.c: Likewise.
6333 * mips-tdep.c: Likewise.
6335 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
6338 * jv-exp.y (parse_number): Handle 64-bit integers.
6340 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
6342 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
6343 AC_STDC_HEADERS to AC_HEADER_STDC.
6344 * gdbserver/configure: Regenerated.
6346 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
6348 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
6350 * sparc-tdep.c (get_longjmp_target): Likewise.
6352 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
6354 * News: Add news about ARM and Multi-arch. Mention the new target
6357 2002-02-19 Jim Blandy <jimb@redhat.com>
6359 * stabsread.c (error_type_complaint): Improve error message.
6361 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
6363 * gdbserver/README: Update documentation.
6364 * gdbserver/configure.in: Update configury to match documentation.
6365 * gdbserver/Makefile.in: Likewise.
6366 * gdbserver/configure: Regenerated.
6367 * gdbserver/aclocal.m4: New file, generated by aclocal.
6368 * gdbserver/config.in: New file, generated by autoheader.
6370 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6372 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
6375 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6377 * arm-tdep.h (enum arm_float_model): New enum.
6378 (struct gdbarch_tdep): Add fp_model.
6379 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
6380 up floating-point conversions until we know the floating-point model
6381 in use by the inferior. Don't complain about being unable to
6382 determine the ABI of the inferior when we don't have one.
6383 (arm_extract_return_value): Support different floating-point models.
6384 (arm_store_return_value): Likewise.
6385 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
6387 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
6389 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6391 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
6392 of ``current_gdbarch''.
6394 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6396 * armnbsd-nat.c : ANSIfy all function declarations.
6397 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
6398 (fetch_inferior_registers): Re-implement in terms of above.
6399 (store_register, store_regs, store_fp_register, store_fp_regs): New.
6400 (store_inferior_registers): Re-implement in terms of above.
6402 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6404 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
6406 * arm-linux-tdep.c: Likewise.
6407 * config/arm/tm-linux.h: Likewise.
6409 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6411 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
6412 * config/arm/nbsd.mt (TM_FILE): Delete.
6413 * config/arm/tm-nbsd.h: Delete.
6415 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6417 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
6418 Initialize CALL_DUMMY_LENGTH.
6420 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6422 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
6424 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
6425 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
6426 defines one thing and that is incorrect for this port.
6427 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
6429 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6431 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
6433 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6435 * win32-nat.c (display_selector): New function. Displays information
6436 about the information returned by GetThreadSelectorEntry API function.
6437 (display_selectors): New function. Displays the infomation of
6438 the selector given as argument, or of CS, DS ans FS selectors
6439 if no argument is given.
6440 ( _initialize_inftarg): Add "w32" as info prefix command.
6441 Add "info w32 selector" as command calling display_selectors.
6443 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
6445 * i386-tdep.c (get_longjmp_target): Fix compilation failure
6446 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
6449 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
6451 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
6453 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
6455 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
6456 (arm_fix_call_dummy): Call it.
6457 (arm_call_dummy_breakpoint_offset): Delete.
6458 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
6459 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
6461 2002-02-18 Andrew Cagney <ac131313@redhat.com>
6463 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
6464 Default to func_frame_chain_valid.
6465 * gdbarch.h, gdbarch.c: Re-generate.
6466 * frame.h (FRAME_CHAIN_VALID): Delete definition.
6468 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
6470 * ppc-linux-nat.c: Update copyright.
6471 (fetch_register, store_register): Add tid parameter, don't compute
6473 (fetch_ppc_registers, store_ppc_registers): Add tid
6474 parameter. Pass it along to callees.
6475 (fetch_inferior_registers, store_inferior_registers): Compute tid
6476 here, and pass it to calleed functions.
6477 (fill_gregset, supply_fpregset): Clean up formatting.
6479 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
6481 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
6482 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
6484 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
6486 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
6487 * gdbarch.c gdbarch.h: Regenerate.
6488 * breakpoint.c (create_longjmp_breakpoint): Always compile this
6490 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
6491 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
6492 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
6494 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
6495 * arm-tdep.c (arm_get_longjmp_target): New function.
6496 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
6497 this to a positive value register arm_get_longjmp_target as the
6499 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
6500 (arm_linux_init_abi): Set up longjmp description in tdep.
6501 * armnbsd-nat.c (get_longjmp_target): Delete.
6502 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
6503 description in tdep.
6504 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
6505 (get_longjmp_target): Delete declaration.
6506 (GET_LONGJMP_TARGET): Delete.
6507 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
6508 (GET_LONGJMP_TARGET): Delete.
6510 2002-02-17 Kevin Buettner <kevinb@redhat.com>
6512 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
6513 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
6514 of ``current_gdbarch''.
6516 2002-02-17 Tom Tromey <tromey@redhat.com>
6518 * cli/cli-cmds.c (compare_strings): New function.
6519 (complete_command): Only print each unique item once.
6520 * completer.h (complete_line): Declare.
6521 * completer.c (complete_line): New function.
6522 (line_completion_function): Use it.
6524 2002-02-16 Andrew Cagney <ac131313@redhat.com>
6526 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
6527 * gdbarch.h, gdbarch.c: Re-generate.
6529 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
6531 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
6533 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
6535 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6536 * valops.c (value_arg_coerce): Don't take the address of a reference
6537 to convert an argument to a reference.
6539 2002-02-15 Christopher Faylor <cgf@redhat.com>
6541 * win32-nat.c (get_image_name): New function.
6542 (handle_load_dll): Use get_image_name function.
6543 (get_child_debug_event): Avoid registering debug events until possibly
6544 execed process is started.
6545 (child_create_inferior): Allow invocation via shell so that command
6546 line redirection, etc. works ok.
6547 (_initialize_inftarg): Add new command: "set shell" to control whether
6548 a shell is used to start a process.
6550 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
6552 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
6553 instead of find_register_by_number.
6554 (cannot_store_register): Likewise.
6556 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
6558 * dwarf2read.c: Replace fprintf (stderr, ...) by
6559 fprintf_unfiltered (gdb_stderr, ...).
6561 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
6563 * gdbserver/gdbserver.1: Document --attach.
6565 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
6567 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
6569 * arm-tdep.c (arm_default_arm_le_breakpoint)
6570 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
6571 (arm_default_thumb_be_breakpoint): New. Initialize them from
6572 traditional breakpoint defines.
6573 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
6574 (arm_gdbarch_init): Initialize new breakpoint variables.
6575 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
6576 (arm_linux_init_abi): Initialize linux-specific breakpoint.
6577 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
6578 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
6580 (arm_netbsd_init_abi_common): ... here; new function.
6581 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
6582 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
6583 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
6584 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
6586 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
6588 * arm-tdep.h (enum arm_abi): New enum.
6589 (struct gdbarch_tdep): New structure.
6590 (LOWEST_PC): Provide a default.
6591 (arm_gdbarch_register_os_abi): Declare new function.
6592 * arm-tdep.c (arm_abi_names): New array.
6593 (process_note_abi_tag_sections): New function.
6594 (get_elfosabi): New function.
6595 (arm_gdbarch_register_os_abi): New function.
6596 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
6597 support for that ABI has been built in, then call the appropriate
6598 configuration routine. Use gdbarch_num_regs() to get the number
6600 (arm_dump_tdep): New function.
6601 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
6602 place-holder functions.
6603 (_initialize_arm_tdep): Register them.
6604 * config/arm/tm-arm.h (LOWEST_PC): Delete.
6606 * armnbsd-tdep.c: New file.
6607 * Makefile.in (armnbsd-tdep.o): Add dependencies.
6608 * config/arm/nbsd.mt (TDEPFILES): Add it.
6609 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
6611 * armnbsd-nat.c: Include regcache.h.
6612 * Makefile.in (armnbsd-nat.o): Update dependency list.
6614 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
6616 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
6618 * gdbserver/Makefile.in: Fix typos in target rules.
6620 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
6622 Fix part of PR gdb/267.
6623 * linespec.c (find_methods): Handle constructors specially for now.
6625 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
6627 * arm-tdep.c (arm_push_arguments): Eliminate special float type
6629 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
6630 standard_coerce_float_to_double().
6632 2002-02-14 Christopher Faylor <cgf@redhat.com>
6634 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
6637 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
6639 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
6640 find_variant_by_name, because it confuses the multiarch
6641 framework. Return NULL if there isn't an architecture with the
6642 user supplied name, instead of forcing a different one without
6643 recording the change with the multiarch machinery.
6644 (find_variant_by_name): Delete.
6646 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6648 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
6649 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
6651 2002-02-13 Martin M. Hunt <hunt@redhat.com>
6653 * stack.c (print_frame_info_base): When calling
6654 print_frame_info_listing_hook, set current_source_symtab.
6656 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
6658 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
6659 and remove unused $(INCLUDE_DIR).
6660 Add regcache.c to OBS.
6661 Add generated register protocol files to clean target.
6662 Update dependencies for new objects, obsolete old target code.
6664 * gdbserver/linux-low.c: Remove all platform-specific code to
6665 new files. Remove various dead code. Update to use regcache
6667 * gdbserver/remote-utils.c (fromhex): Add return statement
6669 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
6671 (input_interrupt): Add integer parameter to match prototype
6672 of a signal handler.
6673 (outreg): Use register_data ().
6674 (prepare_resume_reply): Use gdbserver_expedite_regs.
6675 * gdbserver/server.c (main): Dynamically allocate own_buf because
6676 PBUFSIZ is no longer constant. Use registers_to_string () and
6677 registers_from_string ().
6678 * gdbserver/server.h: No longer include "defs.h". Add prototypes
6679 for error (), fatal (), and warning (). Update definition of
6680 PBUFSIZ to use regcache functionality. Add include guard.
6681 * gdbserver/utils.c (fatal): Add missing ``const''.
6682 (warning): New function.
6684 * regformats/regdat.sh: Include "regcache.h" in generated files.
6685 Provide init_registers () function.
6686 * regformats/regdef.h: Add prototype for set_register_cache ().
6689 * gdbserver/linux-arm-low.c: New file.
6690 * gdbserver/linux-i386-low.c: New file.
6691 * gdbserver/linux-ia64-low.c: New file.
6692 * gdbserver/linux-m68k-low.c: New file.
6693 * gdbserver/linux-mips-low.c: New file.
6694 * gdbserver/linux-ppc-low.c: New file.
6695 * gdbserver/linux-sh-low.c: New file.
6697 * gdbserver/regcache.c: New file.
6698 * gdbserver/regcache.h: New file.
6700 * gdbserver/low-linux.c: Removed obsolete file.
6702 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
6704 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
6705 * config/i386/linux.mt: Likewise.
6706 * config/ia64/linux.mt: Likewise.
6707 * config/m68k/linux.mh: Likewise.
6708 * config/powerpc/linux.mh: Likewise.
6709 * config/mips/linux.mt: Likewise.
6711 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
6713 * config/i386/i386lynx.mh: Mark gdbserver variables
6714 as (currently) obsolete for this target.
6715 * config/i386/nbsd.mt: Likewise.
6716 * config/i386/nbsdelf.mt: Likewise.
6717 * config/m32r/m32r.mt: Likewise.
6718 * config/m68k/m68klynx.mh: Likewise.
6719 * config/m68k/nbsd.mt: Likewise.
6720 * config/m68k/sun3os4.mh: Likewise.
6721 * config/mips/vr5000.mt: Likewise.
6722 * config/ns32k/nbsd.mt: Likewise.
6723 * config/pa/hppabsd.mh: Likewise.
6724 * config/pa/hppaosf.mh: Likewise.
6725 * config/powerpc/nbsd.mt: Likewise.
6726 * config/rs6000/rs6000lynx.mh: Likewise.
6727 * config/s390/s390.mt: Likewise.
6728 * config/s390/s390x.mt: Likewise.
6729 * config/sparc/sparclynx.mh: Likewise.
6730 * config/sparc/sun4os4.mh: Likewise.
6731 * config/i386/x86-64linux.mt: Likewise.
6732 * config/sparc/linux.mh: Likewise.
6734 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
6736 * configure.tgt: Configure gdbserver only for known working
6737 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
6738 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
6739 SUBDIRS if it is configured. Update comment for ${nativefile}.
6740 * configure: Regenerated.
6742 2002-02-13 Michael Snyder <msnyder@redhat.com>
6744 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
6746 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
6747 (default_gcore_mach): Just return 0, work around a problem in bfd.
6748 (default_gcore_target): OK to return NULL if exec_bfd is null.
6749 (make_mem_sec): Use a cast, avoid a warning.
6751 * procfs.c (find_memory_regions_callback): Use a cast instead of
6752 calling host_pointer_to_address (which complains if
6753 sizeof (host pointer) != sizeof (target pointer)).
6754 (procfs_make_note_section): Avoid overflow in psargs string.
6756 * procfs.c (procfs_make_note_section): Make the default
6757 implementation return an error.
6759 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
6761 * procfs.c (procfs_make_note_section): Provide a default definition
6762 (for alpha-dec-osf4.0f). Fix typos.
6764 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
6766 * linux-proc.c: Add include of regcache.h.
6767 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
6769 2002-02-13 Andrew Cagney <ac131313@redhat.com>
6771 From 2002-01-18 Greg McGary <greg@mcgary.org>:
6772 * memattr.c (create_mem_region): Disallow useless empty region.
6773 Regions are half-open intervals, so allow [A..B) [B..C) as
6776 2002-02-13 Michael Chastain <mec@shout.net>
6778 * defs.h: Kill CONST_PTR.
6779 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
6780 * c-lang.c (c_builtin_types): Likewise.
6781 * ch-lang.c (ch_builtin_types): Likewise.
6782 * f-lang.c (f_builtin_types): Likewise.
6783 * language.c (unknown_builtin_types): Likewise.
6784 * m2-lang.c (m2_builtin_types): Likewise.
6785 * p-lang.c (pascal_builtin_types): Likewise.
6786 * scm-lang.c (c_builtin_types): Likewise.
6788 2002-02-13 Keith Seitz <keiths@redhat.com>
6790 * arm-tdep.h (arm_get_next_pc): Add declaration.
6792 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
6794 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
6795 with other related struct-returning functions.
6796 (arm_extract_struct_value_address): New function.
6797 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
6798 initialize float_format, double_format and long_double_format as
6799 appropriate to the endianness of the target.
6800 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
6801 (arm_use_struct_convention): Delete declaration.
6802 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
6804 2002-02-13 Keith Seitz <keiths@redhat.com>
6806 * defs.h (core_addr_to_string_nz): New function.
6808 2002-02-13 Mark Kettenis <kettenis@gnu.org>
6810 Apply missing bits of 2002-01-15 patch.
6811 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
6812 (fill_fpregset): Use i387_fill_fsave.
6814 2002-02-12 Keith Seitz <keiths@redhat.com>
6816 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
6817 (core_addr_to_string_nz): New function.
6819 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
6821 * arm-linux-nat.c: Really include arm-tdep.h.
6822 * config/arm/tm-linux.h (struct type, struct value): Declare.
6824 2002-02-11 Michael Snyder <msnyder@redhat.com>
6826 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
6827 (gcore section): Ifdef for Solaris and Unixware only.
6828 (procfs_do_thread_registers): Unixware needs one lwpstatus
6829 per thread (not one prstatus or pstatus).
6830 (procfs_make_note_section): Iterate only over kernel threads (lwps),
6831 not over all gdb threads. For unixware, call elfcore_write_pstatus
6832 once before iterating over threads.
6834 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
6836 * arm-tdep.h: New file.
6837 * arm-tdep.c: Include arm-tdep.h.
6838 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
6839 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
6840 (arm_print_float_info, arm_register_type, convert_to_extended)
6841 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
6842 (arm_extract_return_value, arm_register_name): Make static.
6843 (arm_software_single_step): Similarly. Fix types in declaration.
6844 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
6845 (arm_store_return_value, arm_store_struct_return): New functions.
6846 (arm_gdbarch_init): Register the above functions. Also register
6847 call_dummy_start_offset, sizeof_call_dummy_words,
6848 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
6849 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
6850 max_register_virtual_size, register_size. Set up
6851 prologue_cache.saved_regs here, rather than ...
6852 (_initialize_arm_tdep): ... here.
6853 * config/arm/tm-arm.h (struct type, struct value): Delete forward
6855 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
6856 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
6857 (arm_print_float_info, arm_register_type, convert_to_extended)
6858 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
6859 (arm_extract_return_value, arm_register_name): Delete declarations.
6860 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
6861 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
6862 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
6863 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
6864 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6865 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
6866 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
6867 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
6868 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
6869 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
6870 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
6871 (arm_get_next_pc): No-longer static -- these are needed by the RDI
6873 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
6874 * remote-rdi.c remote-rdp.c: Likewise.
6875 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
6876 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
6877 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
6880 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
6881 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
6882 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
6883 from non-ARM_ prefixed definitions.
6884 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
6886 * remote-rdi.c remote-rdp.c: Likewise.
6887 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
6889 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
6891 * arm-tdep.c (arm_frameless_function_invocation)
6892 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
6893 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
6894 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
6895 (arm_pop_frame, arm_get_next_pc): Make static.
6896 (arm_gdbarch_init): Register above in gdbarch structure.
6897 (arm_read_fp): Renamed from arm_target_read_fp.
6898 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
6899 * config/arm/tm-arm.h (arm_frameless_function_invocation)
6900 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
6901 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
6902 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
6903 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
6904 (arm_pc_is_thumb_dummy): Delete declarations.
6905 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
6906 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
6907 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
6908 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
6910 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
6912 * symtab.c (compare_search_syms): New function.
6913 (sort_search_symbols): New function.
6914 (search_symbols): Sort symbols after searching rather than
6917 2002-02-10 Andrew Cagney <ac131313@redhat.com>
6919 * NEWS: Linux -> GNU/Linux.
6921 2002-02-10 Andrew Cagney <ac131313@redhat.com>
6923 * gdbarch.sh: For for level one methods, disallow a definition
6924 when partially multi-arched. Add comments explaining rationale.
6925 * gdbarch.h: Re-generate.
6927 2002-02-10 Andrew Cagney <ac131313@redhat.com>
6929 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
6932 2002-02-10 Andrew Cagney <ac131313@redhat.com>
6934 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
6936 * gdbarch.c: Re-generate.
6938 2002-02-10 Andrew Cagney <ac131313@redhat.com>
6940 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
6941 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
6944 2002-02-10 Andrew Cagney <ac131313@redhat.com>
6946 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
6948 (PUSH_ARGUMENTS): Switch to using predefault.
6949 * gdbarch.c: Regenerate.
6951 2002-02-10 Andrew Cagney <ac131313@redhat.com>
6953 * valops.c (PUSH_ARGUMENTS): Delete definition.
6954 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
6955 partial. Default to default_push_arguments.
6956 * gdbarch.h, gdbarch.c: Regenerate.
6958 2002-02-09 Andrew Cagney <ac131313@redhat.com>
6960 * defs.h (throw_exception): Rename return_to_top_level. Update
6962 * utils.c (error_stream, internal_verror, quit): Ditto.
6963 * top.c (throw_exception, catcher): Ditto.
6964 * sparclet-rom.c (sparclet_load): Ditto.
6965 * remote.c (interrupt_query, minitelnet): Ditto.
6966 * remote-sds.c (interrupt_query): Ditto.
6967 * remote-mips.c (mips_error, mips_kill): Ditto.
6968 * ocd.c (interrupt_query): Ditto.
6969 * monitor.c (monitor_interrupt_query): Ditto.
6970 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
6971 * target.h: Update comment.
6973 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
6975 2002-02-09 Andrew Cagney <ac131313@redhat.com>
6977 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
6978 default_double_format.
6979 * gdbarch.h, gdbarch.c: Re-generate.
6980 * findvar.c (floatformat_unknown): Delete variable definition.
6981 * doublest.h (floatformat_unknown): Delete variable declaration.
6983 2002-02-09 Jim Blandy <jimb@redhat.com>
6985 * stabsread.c (read_type): Add code to parse Sun's syntax for
6986 prototyped function types.
6988 2002-02-09 Andrew Cagney <ac131313@redhat.com>
6990 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
6991 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
6993 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6995 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
6996 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
6997 now _initialize_xcoffsolib gets called again and overrides the
6998 commands from solib.c in a native configuration.
7000 2002-02-09 Mark Kettenis <kettenis@gnu.org>
7002 * doublest.c (store_typed_floating): Don't try to return a value.
7005 2002-02-08 Jim Blandy <jimb@redhat.com>
7007 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
7008 is prototyped and has no arguments, print its argument list as
7011 2002-02-08 Chris Demetriou <cgd@broadcom.com>
7013 * MAINTAINERS (write-after-approval): Add myself.
7014 (paper-trail): I've escaped!
7016 2002-02-08 Christopher Faylor <cgf@redhat.com>
7018 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
7020 (_initialize_check_for_gdb_ini): Ditto.
7022 2002-02-08 Martin M. Hunt <hunt@redhat.com>
7024 * win32-nat.c (cygwin_pid_to_str): Fix typo.
7025 xaprintf -> xasprintf.
7027 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
7029 * win32-nat.c: Remove use of printf and sprintf functions.
7031 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
7033 * arm-tdep.c (arm_frame_chain_valid): Make static.
7034 (arm_push_arguments): Likewise.
7035 (arm_gdbarch_init): New function.
7036 (_initialize_arm_tdep): Call it.
7037 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
7038 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
7039 (FRAME_CHAIN_VALID): Delete.
7040 (arm_frame_chain_valid): Delete declaration.
7041 (PUSH_ARGUMENTS): Delete.
7042 (arm_push_arguments): Delete declaration.
7043 (CALL_DUMMY_P): Delete.
7045 2002-02-08 Andrew Cagney <ac131313@redhat.com>
7046 Corinna Vinschen <vinschen@redhat.com>
7048 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
7049 on builtin float types.
7051 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
7053 * utils.c: Include <curses.h> before "bfd.h".
7054 * tui/tui-hooks.c: Likewise.
7055 * tui/tui.c: Likewise.
7056 * tui/tuiCommand.c: Likewise.
7057 * tui/tuiData.c: Likewise.
7058 * tui/tuiDataWin.c: Likewise.
7059 * tui/tuiDisassem.c: Likewise.
7060 * tui/tuiGeneralWin.c: Likewise.
7061 * tui/tuiIO.c: Likewise.
7062 * tui/tuiLayout.c: Likewise.
7063 * tui/tuiRegs.c: Likewise.
7064 * tui/tuiSource.c: Likewise.
7065 * tui/tuiSourceWin.c: Likewise.
7066 * tui/tuiStack.c: Likewise.
7067 * tui/tuiWin.c: Likewise.
7069 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
7071 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
7072 to include space for pseudoregs as well. Update loops accordingly.
7073 (sh_fp_frame_init_saved_regs): Ditto.
7074 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
7076 2002-02-07 Andrew Cagney <ac131313@redhat.com>
7078 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
7079 Add Richard Earnshaw to Arm maintainers.
7081 2002-02-07 Andrew Cagney <ac131313@redhat.com>
7083 * defs.h (warning_begin): Delete declaration.
7085 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
7088 2002-02-07 Michael Snyder <msnyder@redhat.com>
7090 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
7091 Logic bug, remove misplaced else.
7093 2002-02-07 Klee Dienes <klee@apple.com>
7095 * fork-inferior.c (fork_inferior): Add '!' to the list of
7096 characters that need to be quoted when building a string for the
7097 shell. Quote '!' specifically with a backslash, since CSH chokes
7098 when trying to evaluate "str!str".
7100 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
7102 * rdi-share/host.h: Only provide a typedef for bool if it is not
7105 2002-02-04 Michael Snyder <msnyder@redhat.com>
7107 * breakpoint.h (enum bptype): Add new overlay event bp type.
7108 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
7110 * breakpoint.c (create_internal_breakpoint): New function.
7111 (internal_breakpoint_number): Moved into create_internal_breakpoint.
7112 (create_longjmp_breakpoint): Use create_internal_breakpoint.
7113 (create_thread_event_breakpoint): Ditto.
7114 (create_solib_event_breakpoint): Ditto.
7115 (create_overlay_event_breakpoint): New function.
7116 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
7117 (update_breakpoints_after_exec): Delete and re-initialize
7118 overlay event breakpoints after an exec. Add FIXME comment
7119 about longjmp breakpoint.
7120 (print_it_typical): Ignore overlay event breakpoints.
7121 (print_one_breakpoint): Ditto.
7123 (bpstat_what): Do not stop for overlay event breakpoints.
7124 (delete_breakpoint): Don't delete overlay event breakpoints.
7125 (breakpoint_re_set_one): Delete the overlay event breakpoint.
7126 (breakpoint_re_set): Re-create overlay event breakpoint.
7128 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
7129 (overlay_manual_command): Disable overlay breakpoints.
7130 (overlay_off_command): Disable overlay breakpoints.
7132 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
7134 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
7135 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
7136 to here from config/tm-arm.h.
7137 (coff_sym_is_thumb): Make static.
7138 (arm_elf_make_msymbol_special): New function.
7139 (arm_coff_make_msymbol_special): New function.
7140 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
7141 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
7142 (coff_sym_is_thumb): Delete declaration.
7143 (arm_elf_make_msymbol_special): Declare.
7144 (arm_coff_make_msymbol_special): Declare.
7145 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
7146 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
7148 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
7150 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
7152 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
7154 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
7155 * gdbarch.c gdbarch.h: Regenerate.
7156 * arch-utils.c (default_print_float_info): New function.
7157 * arch-utils.h (default_print_float_info): Prototype it.
7158 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
7159 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
7160 (PRINT_FLOAT_INFO): Document it.
7162 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
7163 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
7164 (PRINT_FLOAT_INFO): Define.
7166 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
7168 * win32-nat.c (_initialize_check_for_gdb_ini):
7169 Add typecast to sprintf argument to suppress a warning.
7171 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
7173 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7174 to allow easier handling of pass state.
7175 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
7176 that gives exception name and address.
7177 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
7178 and set last_sig value to ourstatus->value.sig. Some missing
7180 (child_continue): Correctly report continue_status.
7181 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7182 TARGET_SIGNAL_0 (new default value).
7183 (child_resume): consider sig argument passed to decide if
7184 the exception should be passed to debuggee or not.
7186 2002-02-05 Michael Snyder <msnyder@redhat.com>
7188 * regcache.c (fetch_register): Call target_fetch_register
7189 only if we don't call FETCH_PSEUDO_REGISTER.
7190 (store_register): Call target_store_register only if we
7191 don't call STORE_PSEUDO_REGISTER.
7193 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
7195 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
7196 ELF_MAKE_MSYMBOL_SPECIAL.
7197 * gdbarch.c, gdbarch.h: Regenerate.
7198 * arch-utils.c (default_make_msymbol_special): New function.
7199 * arch-utils.h (default_make_msymbol_special): Export.
7200 * elfread.c (elf_symtab_read): Compile use of
7201 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
7203 * coffread.c (coff_symtab_read): Ditto, for
7204 COFF_MAKE_MSYMBOL_SPECIAL.
7206 2002-02-05 Jim Blandy <jimb@redhat.com>
7208 * solib-svr4.c (svr4_truncate_ptr): New function.
7209 (svr4_relocate_section_addresses): Do the address arithmetic with
7210 the appropriate truncation for target addresses, even when
7211 CORE_ADDR is larger than a target address.
7213 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7215 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
7218 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7220 * gdbserver/linux-low.c (kill_inferior): Remove commented out
7223 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7225 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
7227 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7229 * gdbserver/linux-low.c: Remove unused include files.
7231 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7233 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
7234 (read_inferior_memory): Use it.
7235 (write_inferior_memory): Likewise.
7237 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7239 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
7240 grubbing through sys_errlist.
7242 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7244 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
7246 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
7247 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
7249 2002-02-04 Andrew Cagney <ac131313@redhat.com>
7251 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
7252 (do_sfunc, set_cmd_sfunc): New functions.
7254 * command.h (struct cmd_list_element): Add field func.
7255 * cli/cli-decode.h (struct cmd_list_element): Ditto.
7256 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
7257 * cli/cli-decode.h: Ditto.
7259 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
7260 (help_all, help_cmd_list): Ditto.
7261 (find_cmd, complete_on_cmdlist): Ditto.
7262 * top.c (execute_command): Ditto.
7264 * cli/cli-setshow.c (do_setshow_command): Call func instead of
7267 * infcmd.c (notice_args_read): Fix function signature.
7269 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
7270 * cli/cli-decode.c (add_set_cmd): Ditto.
7271 * utils.c (initialize_utils): Ditto.
7272 * maint.c (_initialize_maint_cmds): Ditto.
7273 * infrun.c (_initialize_infrun): Ditto.
7274 * demangle.c (_initialize_demangler): Ditto.
7275 * remote.c (add_packet_config_cmd): Ditto.
7276 * mips-tdep.c (_initialize_mips_tdep): Ditto.
7277 * cris-tdep.c (_initialize_cris_tdep): Ditto.
7278 * proc-api.c (_initialize_proc_api): Ditto.
7279 * kod.c (_initialize_kod): Ditto.
7280 * valprint.c (_initialize_valprint): Ditto.
7281 * top.c (init_main): Ditto.
7282 * infcmd.c (_initialize_infcmd): Ditto.
7283 * corefile.c (_initialize_core): Ditto.
7284 * arm-tdep.c (_initialize_arm_tdep): Ditto.
7285 * arch-utils.c (initialize_current_architecture): Ditto.
7286 (_initialize_gdbarch_utils): Ditto.
7287 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
7289 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
7290 * wince.c (_initialize_inftarg): Ditto.
7291 * symfile.c (_initialize_symfile): Ditto.
7292 * mips-tdep.c (_initialize_mips_tdep): Ditto.
7293 * language.c (_initialize_language): Ditto.
7294 * arc-tdep.c (_initialize_arc_tdep): Ditto.
7296 2002-02-04 Michael Snyder <msnyder@redhat.com>
7298 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
7300 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
7302 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
7303 Add rules for building the register data files.
7305 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
7307 * regformats/regdat.sh: Add braces to the definition of
7308 expedite_regs_${arch}.
7310 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
7312 * regformats/regdef.h (struct reg): Add comment describing the
7313 requirements for offset and size fields.
7315 2002-02-04 Andreas Schwab <schwab@suse.de>
7317 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
7318 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
7320 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
7322 * gdbarch.sh (copyright): Update years in generated header.
7323 (SMASH_TEXT_ADDRESS): Add rule.
7324 * gdbarch.h, gdbarch.c: Re-generate.
7325 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
7326 * dbxread.c: Likewise.
7327 * dwarfread.c: Likewise.
7328 * elfread.c: Likewise.
7329 * somread.c: Likewise.
7331 * arm-tdep.c (arm_smash_text_address): New function.
7332 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
7334 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
7336 Add support for hardware watchpoints on win32 native.
7337 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
7338 CONTEXT_DEBUG_REGISTERS.
7339 (dr variable): New variable. Static array containing a local copy
7341 (debug_registers_changed): New variable. Reflects when debug registers
7342 are changed and need to be written to inferior.
7343 (debug_registers_used): New variable. Reflects when any debug register
7344 was set, used when new threads are created.
7345 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
7347 (thread_rec): Set dr array if id is the thread of current_event .
7348 (child_continue, child_resume): Change the debug registers for all
7349 threads if debug_registers_changed.
7350 (child_add_thread): Change the debug registers if debug_registers_used.
7351 * config/i386/cygwin.mh: Add use of i386-nat.o file.
7352 Link nm.h to new nm-cygwin.h file.
7353 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
7354 of hardware registers.
7356 2002-02-03 Andrew Cagney <ac131313@redhat.com>
7358 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
7359 Restore behavour broken by 2002-01-20 Andrew Cagney
7360 <ac131313@redhat.com> IEEE_FLOAT removal.
7362 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
7364 * c-valprint.c (c_val_print): Pass a proper valaddr to
7365 cp_print_class_method.
7366 * valops.c (search_struct_method): If there is only one method
7367 and args is NULL, return that method.
7369 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
7371 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
7372 accessing tag_name directly.
7374 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
7376 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
7377 of accessing tag_name directly.
7379 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
7382 * gdbtypes.c (replace_type): New function.
7383 * gdbtypes.h (replace_type): Add prototype.
7384 * stabsread.c (read_type): Use replace_type.
7386 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
7388 * Makefile.in (memattr.o): Add missing dependencies rule.
7390 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7392 * breakpoint.c (break_at_finish_command): Really export.
7393 (break_at_finish_at_depth_command): Ditto.
7394 (tbreak_at_finish_command): Ditto.
7395 * hppa-tdep.c: Include completer.h.
7396 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
7397 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
7399 2002-02-01 Andrew Cagney <ac131313@redhat.com>
7401 * utils.c (do_write): New function.
7402 (error_stream): Rewrite combining the code from error_begin and
7404 (verror): Rewrite using error_stream.
7405 (error_begin): Delete function.
7407 2002-02-01 Andrew Cagney <ac131313@redhat.com>
7409 * utils.c (error_begin): Make static.
7410 * defs.h (error_begin): Delete declaration.
7412 * linespec.c (cplusplus_error): Replace cplusplus_hint.
7413 (decode_line_1): Use cplusplus_error instead of error_begin,
7414 cplusplus_hint and return_to_top_level.
7415 * coffread.c (coff_symfile_read): Use error instead of error_begin
7416 and return_to_top_level.
7417 * infrun.c (default_skip_permanent_breakpoint): Ditto.
7419 2002-02-01 Andrew Cagney <ac131313@redhat.com>
7421 * language.h (type_error, range_error): Make string parameter
7423 * language.c (warning_pre_print): Delete extern declaration.
7424 * dwarfread.c (warning_pre_print): Ditto.
7425 * language.c (type_error, range_error): Rewrite to use verror and
7426 vwarning instead of warning_begin.
7428 2002-02-01 Michael Snyder <msnyder@redhat.com>
7430 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
7431 (set_ignore_count): Move misplaced comment back where it belongs.
7433 2002-02-01 Andrew Cagney <ac131313@redhat.com>
7435 * command.h (NO_FUNCTION): Delete macro.
7436 * cli/cli-decode.h (NO_FUNCTION): Ditto.
7437 * top.c (execute_command): Replace NO_FUNCTION with NULL.
7438 * tracepoint.c (_initialize_tracepoint): Ditto.
7439 * cli/cli-decode.c (add_set_cmd): Ditto.
7440 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7442 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
7444 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
7445 Update ``this'' pointer when calling virtual functions.
7447 2002-02-01 Michael Snyder <msnyder@redhat.com>
7449 * breakpoint.c (create_temp_exception_breakpoint): Delete.
7450 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
7452 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
7454 * regformats/reg-arm.dat: New file.
7455 * regformats/reg-i386.dat: New file.
7456 * regformats/reg-ia64.dat: New file.
7457 * regformats/reg-m68k.dat: New file.
7458 * regformats/reg-mips.dat: New file.
7459 * regformats/reg-ppc.dat: New file.
7460 * regformats/reg-sh.dat: New file.
7461 * regformats/regdef.h: New file.
7462 * regformats/regdat.sh: New file.
7464 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
7466 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
7467 (arm_frame_args_address, arm_frame_locals_address): New functions.
7468 (arm_frame_num_args): New function.
7469 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
7470 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
7471 (FRMA_NUM_ARGS): Call arm_frame_num_args.
7473 2002-01-31 Michael Snyder <msnyder@redhat.com>
7475 * breakpoint.c (break_at_finish_command): Export.
7476 (break_at_finish_at_depth_command): Export.
7477 (tbreak_at_finish_command): Export.
7478 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
7479 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
7480 "tbreak" commands, which are HPPA specific.
7482 * printcmd.c (disassemble_command): Remove an ancient
7483 artifact of an old merge.
7485 * symfile.h (enum overlay_debugging_state):
7486 Define enum constant values for overlay mode.
7487 * symfile.c (overlay_debugging): Use enums instead of literals.
7488 (overlay_is_mapped, overlay_auto_command,
7489 overlay_manual_command): Ditto.
7491 * breakpoint.c (insert_breakpoints, remove_breakpoint,
7492 breakpoint_here_p, breakpoint_inserted_here_p,
7493 breakpoint_thread_match, bpstat_stop_status,
7494 describe_other_breakpoints, check_duplicates, clear_command):
7495 Coding standard fixes.
7497 * target.c (target_xfer_memory): Add spaces, coding standard.
7498 (do_xfer_memory): Add missing line to trust-readonly
7499 code: check bfd SEC_READONLY flag for section.
7501 2002-01-31 Andrew Cagney <ac131313@redhat.com>
7503 * PROBLEMS: Fix typo, 5.1->5.1.1.
7505 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
7507 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
7508 data symbols, since we search based on textlow and texthigh.
7509 (find_pc_sect_symtab): Likewise.
7511 2002-01-30 Andrew Cagney <ac131313@redhat.com>
7513 * defs.h (vwarning): Declare.
7514 * utils.c (vwarning): New function.
7515 (warning): Call vwarning.
7516 (warning_begin): Delete function.
7518 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
7519 the warning message.
7520 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
7523 2002-01-30 Michael Snyder <msnyder@redhat.com>
7525 * NEWS: Mention "set trust-readonly-sections" command.
7526 Mention generate-core-file command.
7528 2002-01-15 Michael Snyder <msnyder@redhat.com>
7530 * target.c: New command, "set trust-readonly-sections on".
7531 (do_xfer_memory): Honor the suggestion to trust readonly sections
7532 by reading them from the object file instead of from the target.
7533 (initialize_targets): Register command "set trust-readonly-sections".
7535 2002-01-29 Andrew Cagney <ac131313@redhat.com>
7537 * parse.c (target_map_name_to_register): Simplify, search regs and
7538 pseudo-regs using a single loop.
7540 2002-01-30 Andrew Cagney <ac131313@redhat.com>
7542 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
7544 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
7546 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
7547 * config/i386/i386v42mp.mh: Add i387-nat.o .
7548 * i386v4-nat.c: Include i387-nat.h.
7549 (supply_fpregset): Use i387_supply_fsave.
7550 (fill_fpregset): Use i387_fill_fsave.
7552 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
7554 * arm-tdep.c (arm_call_dummy_words): Define.
7555 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
7556 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
7557 (CALL_DUMMY_WORDS): Define.
7558 (arm_call_dummy_words): Declare.
7559 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
7560 (arm_linux_call_dummy_words): Declare.
7562 2002-01-30 Andreas Schwab <schwab@suse.de>
7564 * m68klinux-nat.c: Fix last change to use regcache_collect
7565 instead of referencing registers[] directly.
7567 2002-01-29 Andrew Cagney <ac131313@redhat.com>
7569 * parse.c (target_map_name_to_register): Delete code wrapped in
7570 #ifdef REGISTER_NAME_ALIAS_HOOK.
7572 2002-01-28 Michael Snyder <msnyder@redhat.com>
7574 * regcache.c (legacy_read_register_gen): Need to be able to
7575 read pseudo-register as well as real register.
7576 (legacy_write_register_gen): Ditto.
7578 2002-01-28 Andrew Cagney <ac131313@redhat.com>
7580 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
7581 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
7582 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
7583 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
7584 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
7585 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
7586 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
7587 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
7588 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
7589 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
7590 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
7591 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
7592 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
7593 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
7594 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
7595 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
7596 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
7597 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
7598 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
7599 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
7601 2002-01-28 Andrew Cagney <ac131313@redhat.com>
7603 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
7604 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
7605 (initialize_current_architecture): Update target_byte_order using
7606 information from BFD.
7607 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
7608 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
7610 2002-01-28 Andrew Cagney <ac131313@redhat.com>
7612 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
7613 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
7615 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
7616 #ifdef INVALID_FLOAT.
7617 * infcmd.c (do_registers_info): Ditto.
7618 * values.c (unpack_double): Ditto. Add comment.
7620 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
7621 already commented out.
7623 2002-01-26 Andreas Schwab <schwab@suse.de>
7625 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
7626 * m68klinux-nat.c: Update ptrace interface for fetching/storing
7627 registers and add support for PTRACE_GETREGS.
7629 2002-01-24 Andrew Cagney <ac131313@redhat.com>
7631 GDB 5.1.1 released from 5.1 branch.
7632 * NEWS: Add 5.1.1 news.
7633 * README: Sync with 5.1 branch.
7635 2002-01-23 Fred Fish <fnf@redhat.com>
7637 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
7638 stabstring on initial malloc. Reallocing will copy it for us,
7641 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
7643 * Makefile.in (hpread_h): Delete.
7644 (HFILES_NO_SRCDIR): Remove hpread.h.
7645 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
7646 (hpread.o): Update dependencies.
7647 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
7649 * hp-psymtab-read.c: Remove file.
7650 * hp-symtab-read.c: Remove file.
7651 * hpread.h: Remove file.
7653 * hpread.c: Merge all contents of hp-psymtab-read.c,
7654 hp-symtab-read.c and hpread.h into this file, as it was prior to
7657 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
7658 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
7659 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
7660 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
7662 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
7664 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
7665 fill_gregset): Call gdbarch_tdep() just once, assign result to
7666 variable and use that, instead of calling the function several
7669 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
7671 * configure.host: Accept sparcv9 as alias for sparc64.
7672 * configure.tgt: Likewise.
7674 2002-01-22 Kevin Buettner <kevinb@redhat.com>
7676 * solib-aix5.c (build_so_list_from_mapfile)
7677 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
7678 arguments is not reversed.
7679 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
7680 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
7682 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
7684 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
7685 modified version of obsolete sh_fetch_pseudo_register.
7686 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
7687 (sh4_register_read): New function.
7688 (sh_pseudo_register_write): New function. Renamed and modified
7689 version of obsolete sh_store_pseudo_register.
7690 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
7691 (sh4_register_write): New function.
7692 (sh_gdbarch_init): Remove setting of gdbarch function
7693 fetch_pseudo_register and store_pseudo_register. Remove setting of
7694 register_convert_to_raw, register_convert_to_virtual,
7695 register_convertible.
7696 (sh_sh4_register_convertible): Delete. No longer needed. All is
7697 taken care by architecture specific functions
7698 register_read/register_write.
7699 (sh_sh4_register_convert_to_virtual): Make static.
7700 (sh_sh4_register_convert_to_raw): Ditto.
7702 2002-01-22 Andrew Cagney <ac131313@redhat.com>
7704 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
7705 (floatformat_is_nan, floatformat_mantissa): Ditto.
7707 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
7708 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
7709 builtin_type_ieee_double_little,
7710 builtin_type_ieee_double_littlebyte_bigword,
7711 builtin_type_m68881_ext, builtin_type_i960_ext,
7712 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
7713 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
7714 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
7715 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
7717 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
7719 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
7720 parameter. Set frameless flag if it exists and depended of
7721 whether the scanned function is frameless or not.
7722 (xstormy16_skip_prologue): If function is frameless, return
7723 result of xstormy16_scan_prologue().
7724 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
7727 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
7729 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
7730 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
7731 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
7732 sh_sh4_register_byte, sh_sh4_register_raw_size,
7733 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
7734 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
7735 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
7736 sh_store_pseudo_register, sh_do_pseudo_register): Call
7737 gdbarch_tdep() just once, assign result to variable and use that,
7738 instead of calling the function several times.
7740 2002-01-20 Mark Kettenis <kettenis@gnu.org>
7742 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
7743 macros instead of LAST_FPU_CTRL_REGNUM.
7744 (store_register): Likewise.
7746 2002-01-21 Jim Blandy <jimb@redhat.com>
7748 * infcmd.c (run_command): Check that the `exec' target layer's BFD
7749 is up-to-date before running the program, not just when a program
7752 2002-01-21 Fred Fish <fnf@redhat.com>
7754 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
7755 when we have found all instructions we are looking for.
7757 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
7759 * arm-tdep.c (arm_register_name): New function.
7760 (arm_registers_names): Make static.
7761 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
7762 (arm_register_name): Declare.
7763 (REGISTER_NAME): Use it.
7765 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
7766 Kevin Buettner <kevinb@redhat.com>
7768 Convert arm targets to new FRAME interface.
7769 * arm-tdep.c (struct frame_extra_info): Remove fsr.
7770 (arm_frame_find_save_regs): Delete.
7771 (arm_frame_init_saved_regs): New.
7772 (arm_init_extra_frame_info): Alloacte saved_regs as required.
7773 Allocate extra_info as required. Convert all uses of fsr.regs
7774 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
7776 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
7777 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
7778 (check_prologue_cache, save_prologue_cache): Likewise.
7779 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
7780 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
7781 (FRAME_FIND_SAVED_REGS): Delete.
7782 (arm_frame_find_saved_regs): Delete prototype.
7783 (arm_frame_init_saved_regs): New prototype.
7784 (FRAME_INIT_SAVED_REGS): Define.
7786 2002-01-20 Andrew Cagney <ac131313@redhat.com>
7788 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
7790 2002-01-20 Andrew Cagney <ac131313@redhat.com>
7792 From Jeff Law <law@redhat.com>:
7793 * infttrace.c: Include <sys/pstat.h>.
7794 (child_pid_to_exec_file): Revamp. Use pstat call to get the
7795 exec file if the ttrace equivalent fails.
7797 2002-01-20 Andrew Cagney <ac131313@redhat.com>
7799 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
7800 (closeLogFile): Ditto.
7802 2002-01-20 Michael Chastain <mec@shout.net>
7804 * top.c (print_gdb_version): Bump copyright year to 2002.
7806 2002-01-20 Andrew Cagney <ac131313@redhat.com>
7808 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
7809 Zannoni and Eli Zaretskii.
7811 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
7813 * buildsym.c: Update copyright years.
7814 * c-typeprint.c: Likewise.
7815 * dwarf2read.c: Likewise.
7816 * f-typeprint.c: Likewise.
7817 * gdbtypes.c: Likewise.
7818 * gdbtypes.h: Likewise.
7819 * hp-symtab-read.c: Likewise.
7820 * hpread.c: Likewise.
7821 * mdebugread.c: Likewise.
7822 * p-typeprint.c: Likewise.
7824 2002-01-20 Andrew Cagney <ac131313@redhat.com>
7826 * remote-sim.c (gdbsim_open): Simplify code testing the macro
7827 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
7828 byte-order selectable.
7829 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
7830 * arch-utils.c: Ditto.
7831 (set_endian): Ditto.
7832 (set_endian_from_file): Ditto.
7833 * gdbserver/low-sim.c (create_inferior): Ditto.
7834 * gdbarch.sh: Ditto.
7835 * gdbarch.h: Re-generate.
7836 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
7837 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
7838 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
7839 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
7840 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
7841 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
7842 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
7843 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
7845 * config/mips/tm-wince.h: Remove #undef of macro
7846 TARGET_BYTE_ORDER_SELECTABLE.
7847 * config/sh/tm-wince.h: Ditto.
7849 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
7851 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
7852 member function fields. Add accessor macro
7853 TYPE_FN_FIELD_ARTIFICIAL.
7854 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
7855 * c-typeprint.c (c_type_print_base): Skip artificial member
7858 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
7860 * f-typeprint.c: Delete unused function f_type_print_args.
7861 * p-typeprint.c: Delete unused function pascal_type_print_args.
7863 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
7865 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
7866 comment. Add ``artificial'' to ``union field_location''.
7868 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
7870 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
7871 * mdebugread.c (parse_symbol): Likewise.
7872 * stabsread.c (define_symbol): Likewise.
7873 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
7874 initializing TYPE_FIELD_BITPOS to n (obsolete).
7875 (hpread_doc_function_type): Likewise.
7876 * hpread.c (hpread_function_type): Likewise.
7878 2002-01-20 Andrew Cagney <ac131313@redhat.com>
7880 * configure.in (host_makefile_frag): Only require a host makefile
7881 fragment when a native build.
7882 * configure: Re-generate.
7884 2002-01-20 Andrew Cagney <ac131313@redhat.com>
7886 * doublest.h (floatformat_from_type): Declare.
7887 * doublest.c (floatformat_from_type): New function.
7888 (convert_typed_floating): Use.
7890 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
7891 call to function floatformat_from_type.
7893 * gdbarch.sh (IEEE_FLOAT): Delete.
7894 * gdbarch.h, gdbarch.c: Re-generate.
7895 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
7896 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
7897 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
7898 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
7899 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
7900 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
7901 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
7902 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
7903 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
7904 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
7905 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
7906 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
7908 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
7909 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7910 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7911 * sh-tdep.c (sh_gdbarch_init): Ditto.
7912 * mips-tdep.c (mips_gdbarch_init): Ditto.
7913 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7914 * cris-tdep.c (cris_gdbarch_init): Ditto.
7916 2002-01-20 Jiri Smid <smid@suse.cz>
7918 * configure.host, configure.tgt: Support x86-64.
7919 * NEWS: Note new target x86-64.
7921 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
7922 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
7923 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
7924 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
7925 x86-64-linux-nat.o): Fix dependencies.
7927 2002-01-19 Andrew Cagney <ac131313@redhat.com>
7929 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
7930 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
7931 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
7932 * config/sparc/xm-sun4os4.h: Delete file.
7933 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
7935 2002-01-19 Andrew Cagney <ac131313@redhat.com>
7937 * config/sparc/sparclynx.mh (XM_FILE): Delete.
7938 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
7939 * config/m68k/m68klynx.mh (XM_FILE): Delete.
7940 * config/i386/i386lynx.mh (XM_FILE): Delete.
7941 * config/rs6000/xm-rs6000ly.h: Delete file.
7942 * config/sparc/xm-sparclynx.h: Delete file.
7943 * config/m68k/xm-m68klynx.h: Delete file.
7944 * config/i386/xm-i386lynx.h: Delete file.
7945 * config/xm-lynx.h: Delete file.
7946 * config/djgpp/fnchange.lst: Update.
7948 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
7950 * alpha-tdep.c (alpha_register_byte): New function.
7951 (alpha_register_raw_size): Ditto.
7952 (alpha_register_virtual_size): Ditto.
7953 (alpha_skip_prologue_internal): Renamed from
7954 alpha_skip_prologue.
7955 (alpha_skip_prologue): New version that calls
7956 alpha_skip_prologue_internal.
7957 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
7958 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
7959 second argument from alpha_skip_prologue.
7960 (REGISTER_BYTE): Use alpha_register_byte.
7961 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
7962 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
7963 (FRAMELESS_FUNCTION_INVOCATION): Use
7964 generic_frameless_function_invocation_not.
7965 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
7966 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
7968 2002-01-19 Andrew Cagney <ac131313@redhat.com>
7970 * config/mips/xm-news-mips.h: Delete file.
7971 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
7973 * config/m88k/xm-m88k.h: Delete file.
7974 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
7975 * config/m88k/xm-delta88v4.h: Ditto.
7976 * config/m88k/xm-delta88.h: Ditto.
7978 * config/alpha/xm-fbsd.h: Delete file.
7979 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
7981 * config/sparc/xm-sparc.h: Delete file.
7982 * Makefile.in (xm-sun4os4.h): Delete dependency.
7983 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
7984 * config/sparc/xm-sun4os4.h: Ditto.
7985 * config/sparc/xm-linux.h: Ditto.
7987 * config/i386/xm-windows.h: Delete file.
7989 2002-01-19 Andrew Cagney <ac131313@redhat.com>
7991 * utils.c: Include <sys/param.h> for MAXPATHLEN.
7992 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
7994 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
7996 * alpha-tdep.c (alpha_call_dummy_words): New.
7997 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
7998 (CALL_DUMMY_P): Define.
7999 (CALL_DUMMY_WORDS): Define.
8000 (SIZEOF_CALL_DUMMY_WORDS): Define.
8002 2002-01-19 Per Bothner <per@bothner.com>
8004 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
8005 isn't NULL, which can happen with some gcj-3.x-produced code.
8007 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
8009 * alpha-tdep.c (alpha_register_virtual_type): New function.
8010 (alpha_init_frame_pc_first): Ditto.
8011 (alpha_fix_call_dummy): Ditto.
8012 (alpha_store_struct_return): Ditto.
8013 (alpha_extract_struct_value_address): Ditto.
8014 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
8015 alpha_register_virtual_type.
8016 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
8017 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
8018 alpha_extract_struct_value_address.
8019 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
8020 (INIT_FRAME_PC): Use init_frame_pc_noop.
8021 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
8023 2002-01-19 Mark Kettenis <kettenis@gnu.org>
8025 * i386gnu-nat.c: Include "i386-tdep.h".
8026 (fetch_fpregs): Simplify code dealing with uninitialized floating
8027 point states such that it doesn't require FP7_REGNUM.
8029 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
8031 * alpha-tdep.c (frame_extra_info): New.
8032 (alpha_find_saved_regs): Make static. Use
8034 (alpha_frame_init_saved_regs): New function.
8035 (alpha_frame_saved_pc): Use frame->extra_info.
8036 (temp_saved_regs): Don't declare as struct frame_saved_regs.
8037 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
8038 (init_extra_frame_info): Rename to...
8039 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
8040 (alpha_print_extra_frame_info): New function.
8041 (alpha_frame_locals_address): Ditto.
8042 (alpha_frame_args_address): Ditto.
8043 (alpha_pop_frame): Use frame->extra_info.
8044 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
8045 alpha_frame_args_address.
8046 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
8047 (alpha_find_saved_regs): Remove prototype.
8048 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
8049 (EXTRA_FRAME_INFO): Remove.
8050 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
8051 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
8053 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
8055 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
8056 (alpha_cannot_fetch_register): Ditto.
8057 (alpha_cannot_store_register): Ditto.
8058 (alpha_register_convertible): Ditto.
8059 (alpha_use_struct_convention): Ditto.
8060 * config/alpha/tm-alpha.h: Update copyright years.
8061 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
8062 (INNER_THAN): Use core_addr_lessthan.
8063 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
8064 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
8065 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
8066 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
8067 (FRAME_CHAIN): Remove unnecessary cast.
8069 2002-01-18 Andrew Cagney <ac131313@redhat.com>
8071 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
8074 2002-01-18 Andrew Cagney <ac131313@redhat.com>
8076 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
8077 * monitor.c, remote-array.c, remote-bug.c: Ditto.
8078 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
8079 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
8080 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
8081 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
8082 * x86-64-linux-nat.c: Ditto.
8084 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
8086 * alpha-tdep.c (alpha_register_name): New function.
8087 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
8088 (REGISTER_NAME): Define.
8090 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
8092 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
8094 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
8096 * alpha-tdep.c: Update copyright years.
8097 (alpha_next_pc): New function.
8098 (alpha_software_single_step): Ditto.
8099 * config/alpha/tm-alpha.h: Add prototype for
8100 alpha_software_single_step.
8102 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
8104 * alphabsd-nat.c: Update copyright years.
8105 (fill_gregset): Use regcache_collect.
8106 (fill_fpregset): Likewise.
8107 (fetch_inferior_registers): Only fetch integer registers
8108 if requested to do so.
8109 (store_inferior_registers): Only store integer registers
8110 if requested to do so.
8112 2002-01-17 Andrew Cagney <ac131313@redhat.com>
8114 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
8115 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
8116 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
8117 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
8118 * config/alpha/fbsd.mh (XDEPFILES): Delete.
8119 * config/arm/linux.mh (XDEPFILES): Delete.
8120 * config/arm/nbsd.mh (XDEPFILES): Delete.
8121 * config/i386/i386dgux.mh (XDEPFILES): Delete.
8122 * config/i386/i386sol2.mh (XDEPFILES): Delete.
8123 * config/i386/i386m3.mh (XDEPFILES): Delete.
8124 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
8125 * config/i386/i386gnu.mh (XDEPFILES): Delete.
8126 * config/i386/fbsd.mh (XDEPFILES): Delete.
8127 * config/i386/i386bsd.mh (XDEPFILES): Delete.
8128 * config/i386/i386sco5.mh (XDEPFILES): Delete.
8129 * config/i386/i386v4.mh (XDEPFILES): Delete.
8130 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
8131 * config/i386/i386sco4.mh (XDEPFILES): Delete.
8132 * config/i386/i386aix.mh (XDEPFILES): Delete.
8133 * config/i386/go32.mh (XDEPFILES): Delete.
8134 * config/i386/cygwin.mh (XDEPFILES): Delete.
8135 * config/i386/i386lynx.mh (XDEPFILES): Delete.
8136 * config/i386/i386mach.mh (XDEPFILES): Delete.
8137 * config/i386/i386v32.mh (XDEPFILES): Delete.
8138 * config/i386/linux.mh (XDEPFILES): Delete.
8139 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
8140 * config/i386/ncr3000.mh (XDEPFILES): Delete.
8141 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
8142 * config/i386/i386sco.mh (XDEPFILES): Delete.
8143 * config/i386/i386v.mh (XDEPFILES): Delete.
8144 * config/i386/nbsd.mh (XDEPFILES): Delete.
8145 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
8146 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
8147 * config/i386/symmetry.mh (XDEPFILES): Delete.
8148 * config/i386/obsd.mh (XDEPFILES): Delete.
8149 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
8150 * config/ia64/linux.mh (XDEPFILES): Delete.
8151 * config/ia64/aix.mh (XDEPFILES): Delete.
8152 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
8153 * config/m68k/dpx2.mh (XDEPFILES): Delete.
8154 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
8155 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
8156 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
8157 * config/m68k/linux.mh (XDEPFILES): Delete.
8158 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
8159 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
8160 * config/m68k/nbsd.mh (XDEPFILES): Delete.
8161 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
8162 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
8163 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
8164 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
8165 * config/m88k/delta88.mh (XDEPFILES): Delete.
8166 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
8167 * config/m88k/m88k.mh (XDEPFILES): Delete.
8168 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
8169 * config/mips/linux.mh (XDEPFILES): Delete.
8170 * config/mips/irix6.mh (XDEPFILES): Delete.
8171 * config/mips/irix5.mh (XDEPFILES): Delete.
8172 * config/mips/irix4.mh (XDEPFILES): Delete.
8173 * config/mips/irix3.mh (XDEPFILES): Delete.
8174 * config/mips/decstation.mh (XDEPFILES): Delete.
8175 * config/mips/mipsm3.mh (XDEPFILES): Delete.
8176 (NATDEPFILES): Move core-aout.o to here.
8177 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
8178 * config/pa/hpux1020.mh (XDEPFILES): Delete.
8179 * config/pa/hppabsd.mh (XDEPFILES): Delete.
8180 * config/pa/hppahpux.mh (XDEPFILES): Delete.
8181 * config/pa/hpux11w.mh (XDEPFILES): Delete.
8182 * config/pa/hppaosf.mh (XDEPFILES): Delete.
8183 * config/pa/hpux11.mh (XDEPFILES): Delete.
8184 * config/powerpc/aix.mh (XDEPFILES): Delete.
8185 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
8186 * config/powerpc/linux.mh (XDEPFILES): Delete.
8187 * config/romp/rtbsd.mh: Rename XDEPFILES.
8188 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
8189 * config/rs6000/aix4.mh (XDEPFILES): Delete.
8190 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
8191 * config/s390/s390.mh (XDEPFILES): Delete.
8192 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
8193 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
8194 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
8195 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
8196 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
8197 * config/sparc/nbsd.mh (XDEPFILES): Delete.
8198 * config/sparc/linux.mh (XDEPFILES): Delete.
8199 * config/vax/vaxult.mh (XDEPFILES): Delete.
8200 * config/vax/vaxult2.mh (XDEPFILES): Delete.
8201 * Makefile.in (DEPFILES): Remove XDEPFILES.
8203 2002-01-17 Andrew Cagney <ac131313@redhat.com>
8205 * utils.c (internal_verror): Fix comments, default is yes not no.
8206 Update queries to match. Default to quit and dump core.
8208 2002-01-17 Andrew Cagney <ac131313@redhat.com>
8210 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
8212 * defs.h, event-top.c, gdbcmd.h: Ditto.
8213 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
8214 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
8215 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
8216 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
8217 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
8218 * mi/mi-main.c:Ditto.
8220 * stack.c, symfile.c: Update copyright.
8222 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
8224 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
8225 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
8226 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
8227 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
8229 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
8231 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
8232 * gdbserver/low-lynx.c (myattach): Likewise.
8233 * gdbserver/low-nbsd.c (myattach): Likewise.
8234 * gdbserver/low-sim.c (myattach): Likewise.
8235 * gdbserver/low-sparc.c (myattach): Likewise.
8236 * gdbserver/low-sun3.c (myattach): Likewise.
8238 * gdbserver/low-linux.c (myattach): New function.
8240 * gdbserver/server.c (attach_inferior): New function.
8241 (main): Handle "--attach".
8243 2002-01-16 Andrew Cagney <ac131313@redhat.com>
8245 * MAINTAINERS (language support): Daniel Jacobwitz is C++
8248 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
8250 * c-typeprint.c (is_type_conversion_operator): Add additional
8251 check for non-conversion operators.
8253 2002-01-15 Michael Snyder <msnyder@redhat.com>
8255 * linux-proc.c: Add "info proc" command, a la procfs.c.
8256 (read_mapping): New function, abstract and re-use code.
8257 (linux_find_memory_regions): Use new func read_mapping.
8258 (linux_info_proc_cmd): New function, implement "info proc".
8259 (_initialize_linux_proc): Add new command "info proc".
8261 2002-01-15 Michael Snyder <msnyder@redhat.com>
8263 * symfile.c (generic_load): Use bfd_map_over_sections method
8264 instead of manipulating bfd structure members directly.
8265 (add_section_size_callback): New function, bfd sections callback
8266 used by generic_load.
8267 (load_sections_callback): New function, bfd sections callback
8268 used by generic_load.
8270 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
8272 [Based on work by Jim Blandy]
8273 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
8274 (builtin_type_vec128): Export.
8275 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
8277 (builtin_type_vec128): New builtin type for 128 bit vector
8279 (build_gdbtypes): Initialize builtin_type_v16qi and
8280 builtin_type_v8hi. Create the vec128 register builtin type
8282 (build_builtin_type_vec128): New function.
8283 (_initialize_gdbtypes): Register builtin_type_v16qi and
8284 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
8285 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
8286 AltiVec register to new builtin type.
8288 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
8290 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
8293 2002-01-14 Andrew Cagney <ac131313@redhat.com>
8295 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
8296 CLEAN_UP_REGISTER_VALUE.
8297 * regcache.c (supply_register): Update only call.
8299 2002-01-14 Andrew Cagney <ac131313@redhat.com>
8301 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
8302 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
8303 a29k-*-vxworks* targets as obsolete.
8305 2002-01-14 Michael Snyder <msnyder@redhat.com>
8307 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
8308 until we can resolve portability issues.
8309 * gregset.h: Remove references to fpxregs.
8310 * gcore.c (gcore_command): Initialize note_sec to NULL.
8312 2002-01-13 Andrew Cagney <ac131313@redhat.com>
8314 * signals.c (target_signal_to_name): Rewrite. Only use
8315 signals[].name when in bounds and non-NULL.
8317 2002-01-13 Andrew Cagney <ac131313@redhat.com>
8319 From Petr Ledvina <ledvinap@kae.zcu.cz>:
8320 * signals.c (target_signal_to_name): Verify that SIG is within the
8321 bounds of the signals array.
8323 2002-01-13 Andrew Cagney <ac131313@redhat.com>
8325 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
8327 2002-01-13 Keith Seitz <keiths@redhat.com>
8329 * stack.c (print_frame_info_base): Print the frame's pc
8330 only if when print_frame_info_listing_hook is not defined.
8332 2002-01-13 Keith Seitz <keiths@redhat.com>
8334 * varobj.c (varobj_set_value): Make sure that there were no
8335 errors evaluating the object before attempting to set its
8337 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
8338 so this offset adjustment is no longer necessary.
8339 (create_child): Don't set the error flag if the child is
8341 (value_of_child): If value_fetch_lazy fails, return NULL
8342 so that callers will be notified that an error occurred.
8343 (c_value_of_variable): Delay check of variable's validity
8344 until later. We actually want all structs and unions to have
8346 Do not return "???" for variables which could not be evaluated.
8347 This error condition must be returned to the caller so that it
8348 can get the error condition from gdb.
8349 (cplus_name_of_child): Adjust index for vptr before figuring
8350 out the name of the child.
8351 (cplus_value_of_child): If a child's (real) parent is not valid,
8352 don't even bother trying to give a value for it. Just return
8353 an error. Change all instances in this function.
8354 (cplus_type_of_child): If our parent is one of the "fake"
8355 parents, we need to get at the type of the real parent, and
8356 derive the child's true type using this information.
8358 2002-01-13 Andrew Cagney <ac131313@redhat.com>
8360 From 2002-01-09 John Marshall <johnm@falch.net>:
8361 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
8362 sources.redhat.com, and tweak some related URLs which had
8363 suffered from linkrot.
8365 2002-01-13 Andrew Cagney <ac131313@redhat.com>
8368 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
8369 structures passed in registers.
8371 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
8373 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
8374 white space which prevented compilation. Reported by DSK
8375 <dsk@student.unsw.edu.au>.
8377 2002-01-11 Michael Snyder <msnyder@redhat.com>
8379 * symfile.c (build_section_addr_info_from_section_tab):
8380 Use bfd access method instead of manipulating bfd directly.
8381 (syms_from_objfile): Ditto.
8382 (simple_overlay_update_1): Ditto.
8383 (simple_overlay_update): Ditto.
8384 (generic_load): Ditto.
8385 (overlay_unmapped_address): FIXME comment, bfd access methods.
8386 (sections_overlap): FIXME comment, bfd access methods.
8387 (pc_in_mapped_range): FIXME comment, bfd access methods.
8388 (pc_in_unmapped_range): FIXME comment, bfd access methods.
8389 (section_is_mapped): FIXME comment, bfd access methods.
8390 (section_is_overlay): FIXME comment, bfd access methods.
8392 * symfile.c (generic_load): Whitespace and long line cleanups.
8393 Remove duplicate variable, change several local variables to
8394 more appropriate data types.
8395 (print_transfer_performance): Use %lu instead of %ld for ulongs.
8397 2002-01-12 Andrew Cagney <ac131313@redhat.com>
8400 * language.c (longest_local_hex_string_custom): Use phex_nz to
8401 convert NUM to a hex string.
8403 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
8405 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
8407 Update Copyright year.
8409 2002-01-12 Andrew Cagney <ac131313@redhat.com>
8411 * language.c (longest_raw_hex_string): Delete unused function.
8413 2002-01-11 Petr Sorfa <petrs@caldera.com>
8415 * MAINTAINERS (write-after-approval): Add myself.
8416 * dwarf2read.c (read_tag_string_type): Handling of
8418 (read_tag_string_type): FORTRAN fix to prevent propagation of
8420 (set_cu_language): Handling of DW_LANG_Fortran95
8422 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
8424 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
8425 GETPID(inferior_ptid).
8426 (store_inferior_registers): Likewise.
8428 2002-01-10 Jason Merrill <jason@redhat.com>
8430 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
8433 2002-01-10 Andrew Cagney <ac131313@redhat.com>
8435 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
8436 and bfd/elf32-sh-nbsd.c.
8438 2002-01-10 Michael Snyder <msnyder@redhat.com>
8440 * NEWS: Mention --pid and corefile/proc-id behavior change.
8442 * Makefile.in: Add rules for gcore.o and linux-proc.o.
8443 * gcore.c: Include cli/cli-decode.h instead of command.h.
8445 * main.c (captured_main): Add new command line option "--pid".
8446 If the second command line argument (following the symbol-file)
8447 begins with a digit, try to attach to it before trying to open
8449 (print_gdb_help): Document the "--pid" argument.
8451 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
8453 * completer.c (command_completer): New function.
8455 * completer.h <command_completer>: Add prototype.
8457 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
8458 completer for the "help" command.
8460 2002-01-09 Jason Merrill <jason@redhat.com>
8462 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
8464 2002-01-09 Michael Snyder <msnyder@redhat.com>
8466 * i386-linux-nat.c (fill_fpxregset): Make global.
8467 (store_fpxregset): Ditto.
8469 * gregset.h (gdb_fpxregset_t): Define.
8470 (supply_fpxregset): Prototype.
8471 (fill_fpxregset): Prototype.
8473 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
8475 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
8477 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
8478 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
8479 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
8481 2002-01-09 Andrew Cagney <ac131313@redhat.com>
8483 * MAINTAINERS: Update target maintainer rules so that any
8484 Maintainer can approve a tested patch for a maintenance-only
8487 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
8489 * MAINTAINERS (write-after-approval): Add myself.
8491 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
8494 2002-01-08 Michael Snyder <msnyder@redhat.com>
8496 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
8497 real name of the executable, rather than the /proc name.
8499 2002-01-03 Michael Snyder <msnyder@redhat.com>
8501 Implement a "generate-core-file" command in gdb, save target state.
8502 * gcore.c: New file. Implement new command 'generate-core-file'.
8503 Save a corefile image of the current state of the inferior.
8504 * linux-proc.c: Add linux-specific code for saving corefiles.
8505 * target.h (struct target_ops): Add new target vectors for saving
8506 corefiles; to_find_memory_regions and to_make_corefile_notes.
8507 (target_find_memory_regions): New macro.
8508 (target_make_corefile_notes): New macro.
8509 * target.c (update_current_target): Inherit new target methods.
8510 (dummy_find_memory_regions): New place-holder method.
8511 (dummy_make_corefile_notes): New place-holder method.
8512 (init_dummy_target): Initialize new dummy target vectors.
8513 * exec.c (exec_set_find_memory_regions): New function.
8514 Allow the exec_ops vector for memory regions to be taken over.
8515 (exec_make_note_section): New function, target vector method.
8516 * defs.h (exec_set_find_memory_regions): Export prototype.
8517 * procfs.c (proc_find_memory_regions): New function, corefile method.
8518 (procfs_make_note_section): New function, corefile method.
8519 (init_procfs_ops): Set new target vector pointers.
8520 (find_memory_regions_callback): New function.
8521 (procfs_do_thread_registers): New function.
8522 (procfs_corefile_thread_callback): New function.
8523 * sol-thread.c (sol_find_memory_regions): New function.
8524 (sol_make_note_section): New function.
8525 (init_sol_thread_ops): Initialize new target vectors.
8526 * inftarg.c (inftarg_set_find_memory_regions): New function.
8527 Allow to_find_memory_regions vector to be taken over.
8528 (inftarg_set_make_corefile_notes): New function.
8529 Allow to_make_corefile_notes vector to be taken over.
8530 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
8531 interface layer if not target_has_execution (may be a corefile).
8532 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
8533 * config/sparc/sun4sol2.mh: Ditto.
8534 * config/alpha/alpha-linux.mh: Ditto.
8535 * config/arm/linux.mh: Ditto.
8536 * config/i386/x86-64linux.mh: Ditto.
8537 * config/ia64/linux.mh: Ditto.
8538 * config/m68k/linux.mh: Ditto.
8539 * config/mips/linux.mh: Ditto.
8540 * config/powerpc/linux.mh: Ditto.
8541 * config/sparc/linux.mh: Ditto.
8543 2002-01-07 Michael Snyder <msnyder@redhat.com>
8545 * arm-linux-nat.c: Remove references to regcache.c internal data
8546 (registers[] and register_valid[]).
8548 2002-01-07 Michael Snyder <msnyder@redhat.com>
8550 * linux-proc.c: New file. Implement child_pid_to_exec_file,
8551 so that attaching to a pid will automatically read the process's
8552 symbol file and shlibs.
8553 * Makefile.in: Add rule for linux-proc.o.
8554 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
8555 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
8556 * config/arm/linux.mh: Ditto.
8557 * config/i386/linux.mh: Ditto.
8558 * config/i386/x86-64linux.mh: Ditto.
8559 * config/ia64/linux.mh: Ditto.
8560 * config/m68k/linux.mh: Ditto.
8561 * config/mips/linux.mh: Ditto.
8562 * config/powerpc/linux.mh: Ditto.
8563 * config/sparc/linux.mh: Ditto.
8565 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
8567 * win32-nat.c: Add i386-tdep.h dependency.
8569 2002-01-07 Michael Snyder <msnyder@redhat.com>
8571 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
8572 instead of bfd_get_arch_size. Don't bail out just because
8573 there's no exec_bfd.
8575 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
8576 * p-valprint.c (pascal_object_print_value): Ditto.
8577 * somread.c (som_symtab_read): Ditto.
8578 * symfile.c (simple_free_overlay_region_table): Ditto.
8579 * valops.c (value_assign): Ditto.
8581 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
8582 use tilde_expand and strerror for opening save-tracepoints file.
8584 * thread-db.c (thread_db_new_objfile): Indendation fix.
8586 * infptrace.c (GDB_MAX_ALLOCA): New define.
8587 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
8588 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
8589 can be overridden with whatever value is appropriate to the host).
8590 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
8591 alloca to allocate potentially large buffer.
8592 * rs6000-nat.c (child_xfer_memory): Ditto.
8593 * symm-nat.c (child_xfer_memory): Ditto.
8594 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
8596 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
8598 From Nick Clifton <nickc@redhat.com>
8599 * d10v-tdep.c: Set STACK_START to 0x200bffe.
8601 2002-01-07 Michael Snyder <msnyder@redhat.com>
8603 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
8604 Don't use exec_bfd if it's NULL.
8606 2002-01-06 Mark Kettenis <kettenis@gnu.org>
8608 * valops.c (value_arg_coerce): Fix formatting.
8610 2002-01-06 Andrew Cagney <ac131313@redhat.com>
8612 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
8615 2002-01-06 Andrew Cagney <ac131313@redhat.com>
8617 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
8618 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
8619 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
8620 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
8621 z8k-coff have not been multi-arched. Update z8k-coff build
8624 2002-01-06 Andrew Cagney <ac131313@redhat.com>
8626 * MAINTAINERS: Mark a29k target as obsolete.
8627 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
8628 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
8630 * NEWS: Note that a29k targets are obsolete.
8631 * a29k-tdep.c: Mark as obsolete.
8632 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
8633 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
8634 a29k-*-vxworks* targets as obsolete.
8635 * remote-adapt.c: Obsolete.
8636 * remote-eb.c: Obsolete.
8637 * remote-mm.c: Obsolete.
8638 * remote-udi.c: Obsolete.
8639 * config/a29k/a29k-udi.mt: Obsolete.
8640 * config/a29k/a29k.mt: Obsolete.
8641 * config/a29k/tm-a29k.h: Obsolete.
8642 * config/a29k/tm-vx29k.h: Obsolete.
8643 * config/a29k/vx29k.mt: Obsolete.
8645 2002-01-05 Andrew Cagney <ac131313@redhat.com>
8647 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
8648 with BFD_ENDIAN_BIG.
8650 2002-01-05 Andrew Cagney <ac131313@redhat.com>
8652 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
8653 * configure, config.in: Re-generate.
8654 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
8655 * defs.h: Do not include <endian.h>.
8657 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
8659 * acconfig.h (HAVE_PT_GETXMMREGS): New.
8660 * config.in: Regenerate.
8661 * configure.in: Update copyright years.
8662 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
8663 * configure: Regenerate.
8664 * i386bsd-nat.c: Update copyright years.
8665 (fill_gregset): Use regcache_collect.
8666 (fetch_inferior_registers): Only fetch integer registers
8667 if requested to do so. Add support for XMM registers
8668 using PT_GETXMMREGS.
8669 (store_inferior_registers): Only store integer registers
8670 if requested to do so. Add support for XMM registers
8671 using PT_SETXMMREGS.
8672 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
8673 (store_inferior_registers): Remove.
8674 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
8675 (fetch_elfcore_registers): New function.
8676 (i386nbsd_elfcore_fns): New.
8677 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
8678 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
8680 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8681 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
8682 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
8683 * config/i386/tm-nbsd.h: Update copyright years.
8684 (HAVE_SSE_REGS): Define.
8685 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
8686 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
8687 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
8688 (SIGCONTEXT_PC_OFFSET): Remove.
8689 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
8691 2002-01-05 Andrew Cagney <ac131313@redhat.com>
8693 * configure.tgt: Remove powerpc-*-macos* target.
8694 * config/m68k/xm-mpw.h: Delete file.
8695 * config/xm-mpw.h: Delete file.
8696 * ser-mac.c: Delete file.
8697 * mpw-make.sed: Delete file.
8698 * mpw-config.in: Delete file.
8699 * mac-xdep.c: Delete file.
8700 * mac-gdb.r: Delete file.
8701 * mac-defs.h: Delete file.
8702 * mac-nat.c: Delete file.
8703 * config/powerpc/macos.mh: Delete file.
8704 * config/powerpc/macos.mt: Delete file.
8705 * config/powerpc/nm-macos.h: Delete file.
8706 * config/powerpc/tm-macos.h: Delete file.
8707 * source.c (openp, open_source_file): Remove obsolete code.
8708 * top.c (gdb_readline): Ditto.
8709 * utils.c (query): Ditto.
8710 * event-top.c (display_gdb_prompt): Ditto.
8711 * Makefile.in (ser-mac.o): Delete obsolete target.
8714 2002-01-04 Andrew Cagney <ac131313@redhat.com>
8716 * defs.h (BIG_ENDIAN): Delete macro definition.
8717 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
8718 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
8719 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
8720 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
8721 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
8722 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
8723 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
8724 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
8725 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
8726 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
8727 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
8728 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
8729 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
8730 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
8731 * gdbarch.c: Re-generate.
8733 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
8735 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
8738 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
8740 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
8742 2002-01-04 Andrew Cagney <ac131313@redhat.com>
8744 * value.h (value_ptr): Delete typedef.
8746 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
8748 * i386nbsd-nat.c: Update copyright years.
8749 Include i386-tdep.h.
8751 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
8753 * stabsread.c: Update copyright years.
8755 From Debashis Mahata <debashis.mahata@wipro.com>:
8756 (read_struct_fields): Deal with Sun C compiler erroneous stab
8757 output for structs and unions.
8760 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
8762 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
8765 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
8767 * cp-abi.c: Fix whitespace.
8768 (baseclass_offset): New wrapper function.
8769 * cp-abi.h (baseclass_offset): Add prototype.
8770 (struct cp_abi_ops): Add baseclass_offset pointer.
8772 * valops.c (vb_match): Move to...
8773 * gnu-v2-abi.c (vb_match): here.
8774 * valops.c (baseclass_offset): Move to...
8775 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
8777 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
8779 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
8780 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
8781 * hpacc-abi.c (init_hpacc_ops): Likewise.
8783 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
8785 * valops.c (find_overload_match): Accept obj as a
8786 reference parameter. Update it before returning.
8787 * value.h (find_overload_match): Update prototype.
8788 * eval.c (evaluate_subexp_standard): Pass object to
8789 find_overload_match by reference.
8791 2002-01-03 Andrew Cagney <ac131313@redhat.com>
8793 * valarith.c: Replace value_ptr with struct value pointer. Remove
8794 register attribute from value declarations.
8797 * scm-lang.c (scm_lookup_name): Ditto.
8799 2002-01-03 Michael Snyder <msnyder@redhat.com>
8801 Abstract the functionality of iterating over mapped memory
8802 regions into a general purpose iterator function.
8803 * procfs.c (iterate_over_mappings): New function, general purpose
8804 iterator for memory sections.
8805 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
8806 (solib_mappings_callback): New function, callback for above.
8807 (info_proc_mappings): Reimpliment using iterate_over_mappings.
8808 (info_mappings_callback): New function, callback for above.
8810 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
8812 2002-01-01 Mark Kettenis <kettenis@gnu.org>
8814 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
8815 * i386-tdep.c: Include "elf-bfd.h".
8816 (process_note_abi_tag_sections): New function.
8817 (i386_gdbarch_init): Add code to recognize various OS/ABI
8820 * maint.c (_initialize_maint_cmds): Add missing \ in
8823 For older changes see ChangeLog-2001
8829 version-control: never