1 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
3 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
4 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5 (finish_block) For non-function blocks, hash the symbol table. For
6 function blocks, mark the symbol table as unhashed.
7 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
8 (msymbol_hash_iw): Likewise.
9 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
11 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
12 (lookup_minimal_symbol): Likewise for both.
13 * symtab.h (struct block): Add `hashtable' flag. Comment the
15 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
16 (ALL_BLOCK_SYMBOLS): Update.
17 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
18 (struct symbol): Add `hash_next' pointer.
19 * symtab.c (lookup_block_symbol): Search using the hash table when
21 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
22 (search_symbols, find_addr_symbol): Likewise.
24 * dstread.c (process_dst_block): Clear hashtable bit for new block.
25 (read_dst_symtab): Likewise.
26 * jv-lang.c (get_java_class_symtab): Likewise.
27 * mdebugread.c: Include "gdb_assert.h".
28 (shrink_block): Assert that the block being modified is not hashed.
29 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
30 * symmisc.c (free_symtab_block): Walk the hash table when freeing
32 (dump_symtab): Recognize hashed blocks.
33 * printcmd.c (print_frame_args): Assert that function blocks do not
34 have hashed symbol tables.
35 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
36 (fill_in_ada_prototype, debug_print_block): Likewise.
37 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
39 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
41 * stack.c (print_frame): Use result of frame_address_in_block()
42 instead of fi->pc when evaluating symbols.
43 (backtrace_command_1): Ditto.
45 2002-07-11 Andrew Cagney <cagney@redhat.com>
47 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
50 * arm-tdep.c (arm_register_name): Make return type constant.
52 2002-07-10 Andrew Cagney <ac131313@redhat.com>
54 * win32-nat.c (has_detach_ability): Convert to strict ISO C
56 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
57 * s390-tdep.c (s390_fp_regnum): Ditto.
58 (s390_read_fp): Ditto.
59 (s390_pop_frame): Ditto.
60 (_initialize_s390_tdep): Ditto.
61 * remote.c (get_remote_state): Ditto.
62 * procfs.c (mappingflags): Ditto.
63 * memattr.c (_initialize_mem): Ditto.
64 * mcore-tdep.c (mcore_pop_frame): Ditto.
65 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
66 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
67 * language.c (set_case_str): Ditto.
68 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
69 * frv-tdep.c (new_variant): Ditto.
70 (frv_stopped_data_address): Ditto.
71 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
72 (context_alloc): Ditto.
73 (frame_state_alloc): Ditto.
74 (unwind_tmp_obstack_init): Ditto.
75 (unwind_tmp_obstack_free): Ditto.
77 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
78 (cris_pop_frame): Ditto.
79 * c-lang.c (scanning_macro_expansion): Ditto.
80 (finished_macro_expansion): Ditto.
81 (c_preprocess_and_parse): Ditto.
83 * gdbarch.h, gdbarch.c: Regenerate.
84 * config/mn10200/tm-mn10200.h: Adjust indentation.
85 * target.c: Adjust indentation.
86 * symtab.h: Adjust indentation.
87 * stabsread.h: Adjust indentation.
88 * remote-es.c: Adjust indentation.
89 * os9kread.c: Adjust indentation.
91 2002-07-10 Andrew Cagney <ac131313@redhat.com>
93 * wince.c (_initialize_wince): Rename _initialize_inftarg.
94 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
96 2002-07-10 Grace Sainsbury <graces@redhat.com>
98 * NEWS: Mention m68k, mcore multi-arching.
99 * MAINTAINERS: Change status of m68k, mcore to reflect
102 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
104 * valops.c (find_overload_match): Free oload_syms.
106 2002-07-09 Joel Brobecker <brobecker@gnat.com>
108 Define HAVE_SYS_PROC_H if sys/proc.h exists
109 * configure.in: Add check for sys/proc.h
110 * config.in: Regenerate.
111 * configure: Regenerate.
113 2002-07-09 Grace Sainsbury <graces@redhat.com>
115 * config/m68k/tm-m68k.h: Remove macros wrapped in
118 2002-07-09 David O'Brien <obrien@FreeBSD.org>
120 * gdbserver/gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
121 (perror_with_name, remote_close, remote_open, expect, play): Static.
123 2002-07-08 Andrew Cagney <ac131313@redhat.com>
125 * config.in, configure: Regenerate.
127 2002-07-08 Mark Kettenis <kettenis@gnu.org>
129 * dwarf2cfi.c: Include "gcore.h".
130 (execute_stack_op): Fix implementation of the
131 DW_OP_deref and DW_OP_deref_size operators by letting do their
132 lookup in the target.
134 2002-07-07 Mark Kettenis <kettenis@gnu.org>
136 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
137 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
140 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
142 Fix PR gdb/595, gdb/602
143 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
144 Don't call value_cast, just read the vtable pointer; update comments
147 2002-07-05 Grace Sainsbury <graces@redhat.com>
149 * config/mcore/tm-mcore.h: Remove file.
150 * config/mcore/mcore.mt: Remove definition of TM_FILE
151 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
153 2002-07-05 Mark Kettenis <kettenis@gnu.org>
155 * i386bsd-tdep.c: Include "gdb_string.h".
157 2002-07-04 Grace Sainsbury <graces@redhat.com>
159 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
160 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
162 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
163 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
164 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
165 (RETVAL_REGNUM): Move macros from tm-mcore.h
166 (mcore_reg_struct_has_addr): New function.
167 (mcore_gdbarch_init): Added initializations for the macros removed
170 2002-07-04 Mark Kettenis <kettenis@gnu.org>
172 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
173 traditonal string branding within the ELF header.
175 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
177 * symtab.c (remove_params): New function.
178 (make_symbol_overload_list): Use it instead of cplus_demangle.
179 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
181 2002-07-04 Mark Kettenis <kettenis@gnu.org>
183 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
185 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
187 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
188 and tdep->sigtramp_end.
189 * i386obsd-nat.c: New file.
190 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
192 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
193 Don't call get_current_frame().
195 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
197 * i386-nat.c (child_post_startup_inferior): New function
198 calling i386_cleanup_dregs if
199 I386_USE_GENERIC_WATCHPOINTS is defined.
200 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
201 conditional to acknowledge that i386-nat.c has its
202 own child_post_startup_inferior function.
204 2002-07-04 Mark Kettenis <kettenis@gnu.org>
206 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
207 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
208 instead of MAX_REGISTER_RAW_SIZE.
209 (i386_extract_return_value, i386_extract_struct_value_address):
210 Convert to use regcache.
211 (i386_gdbarch_init): Set max_register_raw_size and
212 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
213 Set extract_return_value and extract_struct_value_address instead
214 of their deprecated variants.
216 Convert i386 target to generic dummy frames.
217 * i386-tdep.c: Include "symfile.h".
218 (i386_frameless_signal_p): Consider a function to be frameless if
219 the pc points at the first instruction of the function.
220 (i386_frame_chain): Handle (generic) call dummies.
221 (i386_frame_saved_pc): Likewise.
222 (i386_frame_init_saved_regs): Remove code dealing with call
223 dummies on the stack.
224 (i386_push_dummy_frame): Removed.
225 (i386_call_dummy_words): Removed.
226 (i386_fix_call_dummy): Removed.
227 (i386_push_return_address): New function.
228 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
229 parameter, and don't call get_current_frame.
230 (i386_pop_frame): New function.
231 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
232 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
233 entry_point_address, set call_dummy_breakpoint_offset to 0, set
234 call_dummy_length to 0, set call_dummy_words to NULL, set
235 sizeof_call_dummy_words to 0, set fix_call_dummy to
236 generic_fix_call_dummy, set pc_in_call_dummy to
237 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
238 generic_push_dummy_frame, set push_return_address to
239 i386_push_return_address and set frame_chain_valid to
240 generic_file_frame_chain_valid.
242 2002-07-04 Michal Ludvig <mludvig@suse.cz>
244 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Make it an array of
245 byte offsets instead of an array of indexes.
246 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
248 2002-07-03 Andrew Cagney <ac131313@redhat.com>
250 * gdbarch.sh (struct regcache): Add opaque declaration.
251 (EXTRACT_RETURN_VALUE): New architecture method.
252 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
253 * gdbarch.h, gdbarch.c: Regenerate.
254 * arch-utils.c (legacy_extract_return_value): New function.
255 * arch-utils.h (legacy_extract_return_value): Declare.
256 * values.c (value_being_returned): Re-enable code handling
257 EXTRACT_STRUCT_VALUE_ADDRESS. Move
258 deprecated_grub_regcache_for_registers call to block handling
259 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
260 (EXTRACT_RETURN_VALUE): Do not define.
262 2002-07-03 Grace Sainsbury <graces@redhat.com>
264 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
265 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
266 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
267 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
268 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
269 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
270 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
271 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
272 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
273 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
274 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
275 argument so the function fits the prototype in the architecture
277 (mcore_pop_frame): Remove argument so the function fits the
278 prototype. Use get_current_frame instead of the argument.
279 (mcore_push_arguments): Change type of struct_return so the
280 function can be used in the architecture vector.
281 (mcore_store_struct_return): Add.
282 (mcore_frame_init_saved_regs): Add.
283 (mcore_gdbarch_init): Add function calls to replace the macros
284 removed from tm-mcore.h
286 2002-07-03 Andrew Cagney <ac131313@redhat.com>
288 * infcmd.c (print_return_value): Remove compatibility code calling
289 deprecated_grub_regcache_for_registers.
291 * values.c: Include "regcache.h".
292 (value_being_returned): Update. Use
293 deprecated_grub_regcache_for_registers to extract the register
295 * value.h (value_being_returned): Change ``retbuf'' parameter to a
297 * Makefile.in (values.o): Add dependency on $(regcache_h).
299 * inferior.h (run_stack_dummy): Change type of second parameter to
300 a ``struct regcache''.
301 * valops.c (hand_function_call): Change type of retbuf to ``struct
302 regcache''. Allocate using regcache_xmalloc, clean using
303 make_cleanup_regcache_xfree.
304 * infcmd.c (run_stack_dummy): Update. Use
305 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
307 * regcache.c (do_regcache_xfree): New function.
308 (make_cleanup_regcache_xfree): New function.
309 * regcache.h (make_cleanup_regcache_xfree): Declare.
311 2002-07-03 Martin M. Hunt <hunt@redhat.com>
313 * event-top.c (command_line_handler): Don't read past
316 2002-07-03 Martin M. Hunt <hunt@redhat.com>
318 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
320 (varobj_create): Store frame_id for root.
321 (varobj_gen_name): Use xasprintf.
322 (varobj_update): Save and restore frame using get_frame_id() and
324 (create_child): Use xasprintf.
325 (new_root_variable): Initialize frame_id.
326 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
327 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
328 to prevent memory leak.
330 2002-07-03 Andrew Cagney <ac131313@redhat.com>
332 * valops.c (hand_function_call): Move declaration of retbuf to
333 start of function, allocate using malloc, add a cleanup but before
334 the inf_status cleanup, cleanup the buffer. Rename local variable
335 old_chain to inf_status_cleanup.
337 2002-07-03 Martin M. Hunt <hunt@redhat.com>
339 * top.c (execute_command): Use cmd_func() and cmd_func_p().
341 * cli/cli-decode.c (cmd_func_p): New function.
342 (cmd_func): New function.
344 * command.h: Add cmd_func() and cmd_func_p().
346 2002-07-03 Grace Sainsbury <graces@redhat.com>
348 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
349 (REGISTER_SIZE): Remove.
350 (MAX_REGISTER_RAW_SIZE): Remove.
351 (REGISTER_VIRTUAL_TYPE): Remove.
352 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
353 (REGISTER_NAME): Remove.
354 (USE_GENERIC_DUMMY_FRAMES): Remove.
355 (CALL_DUMMY): Remove.
356 (CALL_DUMMY_START_OFFSET): Remove.
357 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
358 (CALL_DUMMY_LOCATION): Remove.
359 (FIX_CALL_DUMMY): Remove.
360 (CALL_DUMMY_ADDRESS): Remove.
361 (SIZEOF_CALL_DUMMY_WORDS): Remove.
362 (SAVE_DUMMY_FRAME_TOS): Remove.
363 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
364 (mcore_register_virtual_type): New function.
365 (mcore_register_byte): New function.
366 (mcore_register_size): New function.
367 (mcore_register_name): New function.
368 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
369 macros removed from tm-mcore.h.
370 (mcore_dump_tdep): Add.
371 (_initialize_mcore_tdep): Add gdbarch_register call.
373 2002-07-03 Mark Kettenis <kettenis@gnu.org>
375 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
376 frameless_look_for_prologue, such that we actually call this
379 2002-07-02 Joel Brobecker <brobecker@gnat.com>
381 * frame.h (frame_address_in_block): New function.
383 * blockframe.c (frame_address_in_block): New function extracted
384 from get_frame_block().
385 (get_frame_block): Use frame_address_in_block().
386 (block_innermost_frame): Use frame_address_in_block() to match
387 the frame pc address against the block boundaries rather than
388 the frame pc directly. This prevents a failure when a frame pc
389 is actually a return-address pointing immediately after the end
392 2002-07-02 Grace Sainsbury <graces@redhat.com>
394 * MAINTAINERS: Add self under write after approval.
396 2002-07-02 Grace Sainsbury <graces@redhat.com>
398 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
399 used in architecture vector. The default is
400 m68k_local_breakpoint_from_pc.
401 (m68k_local_breakpoint_from_pc): Add.
402 (enum): Add register numbers from tm-m68k.h.
403 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
405 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
406 GDB_MULTI_ARCH_PARTIAL.
407 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
408 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
410 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
411 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
412 to enum in m68k-tdep.c
414 2002-07-02 Joel Brobecker <brobecker@gnat.com>
416 * solib-osf.c (open_map): Compute the list of shared libraries
417 loaded by the inferior, rather than the list of libraries loaded
418 by GDB itself. Otherwise, GDB ends up reading the symbols from
419 the wrong shared libraries...
421 2002-07-02 Mark Kettenis <kettenis@gnu.org>
423 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
424 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
426 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
428 (FRAMELESS_SIGNAL): Remove function.
429 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
430 i386_linux_saved_pc_after_call): Removed.
431 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
432 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
433 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
435 * i386-tdep.c (i386_frameless_signal_p): New function.
436 (i386_frame_chain): Deal with frameless signals.
437 (i386_sigtramp_saved_sp): New function.
438 (i386_frame_saved_pc): Deal with frameless signals.
439 (i386_saved_pc_after_call): Make sure the correct value is
440 returned just after entry into a sigtramp.
441 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
442 i386fbsd4_sc_sp_offset): New variables.
443 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
444 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
445 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
446 similiar to what we already did for sc_pc_offset.
447 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
450 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
452 2002-07-02 Michal Ludvig <mludvig@suse.cz>
454 * config/i386/tm-x86-64linux.h: New.
455 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
457 * config/i386/nm-x86-64.h: Rename to ...
458 * config/i386/nm-x86-64linux.h: ... this one.
459 * config/i386/x86-64linux.mh: Reflect the above change.
461 2002-07-01 Mark Kettenis <kettenis@gnu.org>
463 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
464 with sigcontext_addr. Add sc_sp_offset.
465 (i386bsd_sigtramp_saved_pc): Remove prototype.
466 (i386bsd_sicontext_addr): Add prototype.
467 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
468 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
469 (i386_svr4_sigtramp_saved_pc): Removed.
470 (i386_svr4_sigcontext_addr): New function.
471 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
472 Initialize tdep->sigcontext_addr instead. Initialize
473 tdep->sc_pc_offset and tdep->sc_sp_offset.
474 (i386_gdbarch_init): Likewise.
475 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
477 (i386bsd_sigtramp_saved_pc): Remove function.
478 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
479 Initialize tdep->sigcontext_addr instead. Initialize
481 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
482 of tdep->sigtramp_saved_pc.
483 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
484 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
487 * i386-tdep.c (i386_frameless_function_invocation,
488 i386_frame_num_args, i386_frame_init_saved_regs,
489 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
490 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
491 i386_extract_return_value, i386_store_return_value,
492 i386_extract_struct_value_address, i386_register_virtual_type,
493 i386_register_convertible, i386_register_convert_to_virtual,
494 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
495 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
498 2002-07-01 Mark Kettenis <kettenis@gnu.org>
500 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
502 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
503 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
504 this macro. Include "value.h".
506 2002-06-30 Aidan Skinner <aidan@velvet.net>
508 * ada-exp.tab.c: remove as it's a generated file
509 * ada-lex.c: remove as it's a generated file
511 2002-06-30 Mark Kettenis <kettenis@gnu.org>
513 * config/i386/tm-i386.h (struct frame_info, struct
514 frame_saved_regs, struct value, struct type): Remove forward
517 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
518 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
519 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
520 (FILL_FPXREGSET): Define.
522 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
524 * configure.tgt (i[3456]86-*-openbsd*): Fold into
525 i[3456]86-*-netbsd* case.
526 * config/i386/tm-obsd.h: Removed.
527 * config/i386/obsd.mt: Removed.
528 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
530 (MH_CFLAGS): Add -DYYDEBUG=0.
532 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
533 i386nbsd_sc_pc_offset on OpenBSD too.
535 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
536 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
537 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
539 * i386bsd-tdep.c: Include "arch-utils.h".
540 (i386bsd_aout_in_solib_call_trampoline): New function.
541 (i386bsd_init_abi): Set in_solib_call_trampoline to
542 i386bsd_aout_in_solib_call_trampoline.
543 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
544 in_solib_call_trampoline to generic_in_solib_call_trampoline.
546 2002-06-28 Andrew Cagney <ac131313@redhat.com>
548 * macrotab.h: Do not include "obstack.h" or "bcache.h".
549 (struct obstack, struct bcache): Add opaque declarations.
550 * Makefile.in (macrotab_h): Update
552 2002-06-28 Andrew Cagney <ac131313@redhat.com>
554 * blockframe.c (generic_find_dummy_frame): Change return type to
556 (struct dummy_frame): Replace field ``registers'' with regcache, a
557 struct regcache object.
558 (generic_find_dummy_frame): Update.
559 (generic_push_dummy_frame): Update. Use regcache_xfree,
560 regcache_xmalloc and regcache_cpy.
561 (generic_pop_dummy_frame): Update. Use regcache_cpy and
563 (deprecated_generic_find_dummy_frame): Update.
564 (generic_read_register_dummy): Update. Use
565 regcache_read_as_address.
566 (generic_call_dummy_register_unwind): Update. Use regcache_read.
567 (generic_get_saved_register): Update. Use regcache_read.
569 2002-06-28 Andrew Cagney <ac131313@redhat.com>
571 * Makefile.in (objfiles_h): Add $(bcache_h).
572 * objfiles.h: Include "bcache.h".
574 * Makefile.in (symtab_h): Remove $(bcache_h).
575 * symtab.h: Do not include "bcache.h".
577 2002-06-28 Andrew Cagney <ac131313@redhat.com>
579 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
580 generic_func_frame_chain_valid.
582 2002-06-28 David O'Brien <obrien@FreeBSD.org>
584 * config/i386/nm-fbsd.h: Include <sys/param.h>.
585 * config/i386/tm-fbsd.h: Likewise.
587 2002-06-28 Andrew Cagney <ac131313@redhat.com>
589 * rs6000-tdep.c (rs6000_gdbarch_init): Use
590 generic_unwind_get_saved_register.
592 2002-06-27 Andrew Cagney <ac131313@redhat.com>
594 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
595 * regcache.c (supply_register): Add missing argument to
596 register_buffer call.
598 2002-06-27 Andrew Cagney <ac131313@redhat.com>
600 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
601 Solaris /bin/grep does not not like it. From Peter Schauer.
603 2002-06-26 Tom Tromey <tromey@redhat.com>
605 * command.h (add_setshow_cmd): Declare.
606 (add_setshow_cmd_full): Declare.
607 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
608 returns void. Use add_setshow_cmd_full.
609 (add_setshow_cmd_full): New function.
610 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
611 (add_setshow_boolean_cmd): Likewise.
613 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
615 * config/vax/tm-vax.h: Protect from multiple inclusion.
616 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
617 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
618 * config/vax/tm-vaxbsd.h: ...here. New file.
619 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
621 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
623 * config/vax/tm-vax.h (BREAKPOINT): Remove.
624 (BELIEVE_PCC_PROMOTION): Remove.
625 (AP_REGNUM): Move to...
626 * config/vax/nm-vax.h: ...here.
627 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
628 (vax_breakpoint_from_pc): New function.
629 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
630 and gdbarch_believe_pcc_promotion.
632 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
634 * Makefile.in (vax_tdep_h): Define.
635 (vax-tdep.o): Use $(vax_tdep_h).
636 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
637 (vax_dump_tdep): New function.
638 (_initialize_vax_tdep): Register vax_dump_tdep.
639 * vax-tdep.h: Include osabi.h.
640 (struct gdbarch_tdep): New.
642 2002-06-26 Andrew Cagney <cagney@redhat.com>
644 * frame.h (deprecated_generic_find_dummy_frame): Rename
645 generic_find_dummy_frame.
646 * blockframe.c (generic_find_dummy_frame): Make static.
647 (deprecated_generic_find_dummy_frame): New function.
648 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
649 generic_find_dummy_frame with deprecated_find_dummy_frame.
650 (sh64_nofp_frame_init_saved_regs): Ditto.
651 (sh_fp_frame_init_saved_regs): Ditto.
652 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
653 (s390_frame_chain): Ditto.
654 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
656 2002-06-26 Grace Sainsbury <graces@redhat.com>
658 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
659 gdbarch vector are at the top.
661 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
662 (FRAME_ARGS_ADDRESS): Remove.
663 (FRAME_LOCALS_ADDRESS): Remove.
664 (FRAME_NUM_ARGS): Remove.
665 (FRAME_ARGS_SKIP): Remove.
666 * m68k-tdep.c (enum): Add eumeration of special register numbers.
667 (m68k_gdbarch_init): Add gdbarch initializations for macros
668 undefined in tm-m68k.h
670 2002-06-26 Grace Sainsbury <graces@redhat.com>
672 * monitor.h: Add the function regname to monitor_ops
673 structure. This way NUM_REGS does not have to be a constant.
674 * monitor.c (monitor_fetch_register): Added support for regname
675 function. The function is called if the array regnames is NULL.
676 (monitor_store_register): Same.
677 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
679 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
680 cpu32bug_cmds.regname to point to new function.
681 * abug-rom.c (abug_regname): Same as above.
682 (init_abug_cmds): Same.
683 * dbug-rom.c (dbug_regname): Same as above.
684 (init_dbug_cmds): Same.
685 * remote-est.c (est_regname): Same.
686 (init_est_cmds): Same.
687 * rom68k-rom.c (rom68k_regname): Same.
688 (init_rom68k_cmds): Same.
690 2002-06-25 Tom Tromey <tromey@redhat.com>
692 * breakpoint.c (delete_command): Don't repeat `delete' commands.
694 2002-06-25 Andrew Cagney <cagney@redhat.com>
696 * infrun.c (stop_registers): Change variable's type to ``struct
698 (xmalloc_inferior_status): Delete function.
699 (free_inferior_status): Delete function.
700 (normal_stop): Use regcache_cpy.
701 (struct inferior_status): Change type of fields ``stop_registers''
702 and ``registers'' to ``struct regcache''.
703 (write_inferior_status_register): Use regcache_write.
704 (save_inferior_status): Instead of calling
705 xmalloc_inferior_status, allocate the inf_status buffer directly.
706 Use regcache_dup_no_passthrough and regcache_dup to save the
708 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
709 Replace the stop_registers regcache instead of overriding it. Use
710 regcache_xfree. Instead of calling free_inferior_status, xfree
712 (discard_inferior_status): Use regcache_xfree. Instead of calling
713 free_inferior_status, xfree the buffer directly.
714 (build_infrun): Use regcache_xmalloc.
715 (_initialize_infrun): Delete redundant call to build_infrun.
717 * Makefile.in (infcmd.o): Add $(regcache_h).
719 * infcmd.c: Include "regcache.h".
720 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
721 obtain the address of `stop_registers' register buffer.
722 (print_return_value): Ditto.
724 * inferior.h (struct regcache): Add opaque declaration.
725 (stop_registers): Change variable's declared type to ``struct
728 2002-06-24 Tom Tromey <tromey@redhat.com>
730 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
731 * target.c (initialize_targets): Fixed typo in
732 trust-readonly-sections `show' documentation.
734 * main.c: Marked all strings with _().
736 2002-06-24 Don Howard <dhoward@redhat.com>
738 * memattr.c (create_mem_region): Treat hi == 0 as a special case
739 that means max CORE_ADDR+1.
740 (lookup_mem_region): Ditto.
741 (mem_info_command): Ditto.
743 2002-06-24 Grace Sainsbury <graces@redhat.com>
745 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
746 (REGISTER_BYTES_OK): Remove.
747 (REGISTER_BYTES): Remove.
748 (STORE_STRUCT_RETURN): Remove.
749 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
750 (STORE_RETURN_VALUE): Remove.
751 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
752 (FRAME_CHAIN): Remove.
753 (FRAMELESS_FUNCTION_INVOCATION): Remove.
754 (FRAME_SAVED_PC): Remove.
755 * m68k-tdep.c (m68k_register_bytes_ok):Add.
756 (m68k_store_struct_return): Add.
757 (m68k_deprecated_extract_return_value): Add.
758 (m68k_deprecated_extract_struct_value_address): Add.
759 (m68k_store_return_value): Add.
760 (m68k_frame_chain): Add.
761 (m68k_frameless_function_invocation): Add.
762 (m68k_frame_saved_pc): Add.
763 (m68k_gdbarch_init): added set_gdbarch calls for new
764 functions and deleted macros.
766 2002-06-23 Tom Tromey <tromey@redhat.com>
768 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
769 (ALLDEPFILES): Likewise.
770 (udiheaders): Removed.
771 (udip2soc.o): Likewise.
772 (udi2go32.o): Likewise.
774 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
776 2002-06-22 Andrew Cagney <ac131313@redhat.com>
778 * infrun.c (_initialize_infrun): Delete unnecessary call to
781 * regcache.h: Update comments describing the regcache_cpy family
783 (regcache_save, regcache_restore): Delete declaration.
784 (regcache_save_no_passthrough): Delete declaration.
785 (regcache_restore_no_passthrough): Delete declaration.
786 * regcache.c (regcache_save): Delete function.
787 (regcache_save_no_passthrough): Delete function.
788 (regcache_restore): Delete function.
789 (regcache_restore_no_passthrough): Delete function.
791 2002-06-21 Andrew Cagney <ac131313@redhat.com>
793 * config/m68k/tm-m68k.h: Fix typo.
794 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
795 (m68k_frame_init_saved_regs): Declare.
797 2002-06-21 Jim Blandy <jimb@redhat.com>
799 Remove some vestiges of Harris 88k support.
800 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
801 register numbering quirk.
802 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
803 odd symbols occurring in Harris 88k ELF targets.
805 2002-06-21 Tom Tromey <tromey@redhat.com>
807 * gdb_locale.h: New file.
808 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
809 (defs_h): Added gdb_locale.h.
810 * configure, config.in: Rebuilt.
811 * configure.in (PACKAGE): Define.
812 * defs.h: Include gdb_locale.h.
813 * main.c (captured_main): Call setlocale, bindtextdomain,
816 2002-06-21 Dave Brolley <brolley@redhat.com>
818 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
819 * config/frv/frv.mt: New file.
820 * config/frv/tm-frv.h: New file.
821 * configure.tgt: Support frv-*-*.
822 * Makefile.in (frv-tdep.o): New target.
823 * frv-tdep.c: New file.
826 2002-06-21 Dave Brolley <brolley@redhat.com>
828 * MAINTAINERS: Add self to "Write After Approval" list.
830 2002-06-21 Grace Sainsbury <graces@redhat.com>
832 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
833 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
834 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
835 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
836 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
838 * m68k-tdep.c: Include arch-utils.h
839 (m68k_register_raw_size): Add.
840 (m68k_register_virtual_size): Add.
841 (m68k_register_virtual_type): Add.
842 (m68k_register_name): Add.
843 (m68k_stack_align): Add.
844 (m68k_register_byte): Add.
845 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
848 2002-06-21 Grace Sainsbury <graces@redhat.com>
850 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
851 m68k_find_saved_regs.
852 (m68k_pop_frame): Removed saved_regs structure, and replaced
853 references to it with frame->saved_regs.
854 (m68k_gdbarch_init): Added function calls to initialize the
856 (m68k_fix_call_dummy): Add.
857 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
858 (CALL_DUMMY): Remove.
859 (CALL_DUMMY_LENGTH): Remove.
860 (CALL_DUMMY_START_OFFSET): Remove.
861 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
862 (FIX_CALL_DUMMY): Remove.
863 (PUSH_DUMMY_FRAME): Remove.
866 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
868 * parse.c (parse_fprintf): New function used to avoid calls to
869 fprintf in bison parser generated debug code.
870 * parser-defs.h: Declaration of new parse_fprintf function.
871 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
872 Set YYDEBUG to 1 by default.
873 Set YYFPRINTF as parse_fprintf.
875 2002-06-21 Michal Ludvig <mludvig@suse.cz>
877 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
879 (pointer_encoding, enum ptr_encoding): New.
880 (execute_cfa_program): Take care about pointer encoding.
881 (dwarf2_build_frame_info): Only call parse_frame_info for
882 .debug_frame and .eh_frame.
883 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
884 fixed augmentation handling, added relative addressing,
885 ignore duplicate FDEs. Added comments.
886 * dwarf2cfi.c: Reindented.
888 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
890 * event-top.c (command_handler): Don't use space_at_cmd_start
891 unless there is sbrk() on the host. Assign time and space data
892 to union fields of the appropriate length.
894 2002-06-20 Michal Ludvig <mludvig@suse.cz>
896 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
897 x86_64_register_name. Return type changed to 'const char *'.
898 (x86_64_register_name2nr): Rename to x86_64_register_number.
899 (x86_64_gdbarch_init): Update to reflect the change.
900 * x86-64-tdep.h: Ditto.
901 * x86-64-linux-nat.c (x86_64_fxsave_offset)
902 (supply_fpregset): Ditto.
904 2002-06-19 Andrew Cagney <cagney@redhat.com>
906 * regcache.h: Update copyright.
907 (struct regcache, struct gdbarch): Add opaque declarations.
908 (current_regcache): Declare global variable.
909 (regcache_read, regcache_write): Add gdbarch parameter.
910 (regcache_save, regcache_save_no_passthrough)
911 (regcache_restore, regcache_restore_no_passthrough)
912 (regcache_dup, regcache_dup_no_passthrough)
913 (regcache_cpy, regcache_cpy_no_passthrough)
914 (deprecated_grub_regcache_for_registers)
915 (deprecated_grub_regcache_for_register_valid)
916 (regcache_valid_p): Add function declarations.
918 * regcache.c: Update copyright.
919 (regcache_descr_handle): New global variable.
920 (struct regcache_descr): Define.
921 (init_legacy_regcache_descr, init_regcache_descr): New functions.
922 (regcache_descr, xfree_regcache_descr): New functions.
923 (struct regcache): Define.
924 (regcache_xmalloc, regcache_xfree): New functions.
925 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
926 (regcache_dup, regcache_dup_no_passthrough): New functions.
927 (regcache_valid_p, regcache_read_as_address): New functions.
928 (deprecated_grub_regcache_for_registers): New function.
929 (deprecated_grub_regcache_for_register_valid): New function.
930 (current_regcache): New global variable.
931 (register_buffer): Add regcache parameter. Update calls.
932 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
933 (read_register_gen, write_register_gen): Update register_buffer
934 call. Test for legacy_p instead of gdbarch_register_read_p or
935 gdbarch_register_write_p.
936 (regcache_collect): Update register_buffer call.
937 (build_regcache): Rewrite. Use deprecated grub functions.
938 (regcache_save, regcache_save_no_passthrough): New functions.
939 (regcache_restore, regcache_restore_no_passthrough): New
941 (_initialize_regcache): Create the regcache_data_handle. Swap
942 current_regcache global variable.
944 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
945 parameter to regcache_read and regcache_write calls.
946 (sh4_register_read): Ditto.
947 (sh64_pseudo_register_read): Ditto.
948 (sh64_register_read): Ditto.
949 (sh_pseudo_register_write): Ditto.
950 (sh4_register_write): Ditto.
951 (sh64_pseudo_register_write): Ditto.
952 (sh64_register_write): Ditto.
954 * defs.h (XCALLOC): Define.
956 2002-06-19 Grace Sainsbury <graces@redhat.com>
958 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
959 * m68k-tdep.c (m68k_gdbarch_init): Added.
960 (m68k_dump_tdep): Added.
962 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
964 * ada-lang.c (fill_in_ada_prototype): Update comment.
966 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
968 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
970 (mips_abi_string, mips_abi_strings): New.
971 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
972 (mips_gdbarch_init): Set tdep->found_abi. Don't set
973 tdep->mips_abi_string. Honor mips_abi_string. Default to
974 O32 if no ABI is found.
975 (mips_dump_tdep): Use mips_abi_strings.
976 (mips_abi_update): New function.
977 (_initialize_mips_tdep): Initialize mips_abi_string. Add
978 ``set mips abi'' and ``show mips abi''. Check the size of
981 2002-06-19 Andrew Cagney <cagney@redhat.com>
983 * i386-linux-tdep.c (i386_linux_register_name): Make return type
986 2002-06-18 Joel Brobecker <brobecker@gnat.com>
988 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
989 current frame using only the first stack size adjustment. All
990 subsequent size adjustments are not considered to be part of
991 the "static" part of the current frame.
992 Compute the address of the saved registers relative to the
993 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
994 in use in this frame.
996 2002-06-18 Don Howard <dhoward@redhat.com>
998 * valops.c (value_ind): Use value_at_lazy() when dereferencing
999 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
1000 suggesting this solution.
1002 2002-06-18 Andrew Cagney <ac131313@redhat.com>
1004 * config/romp/xm-rtbsd.h: Delete file.
1005 * config/romp/rtbsd.mh: Delete file.
1007 2002-06-18 Keith Seitz <keiths@redhat.com>
1009 * breakpoint.c (condition_command): Post breakpoint_modify
1010 when a condition is added to an existing breakpoint.
1011 (commands_command): Likewise for commands.
1012 (set_ignore_count): Likewise for ignore counts.
1013 If no tty, do not simply return, still need to send event
1015 (ignore_command): Only print a newline if the command came
1017 Don't call breakpoints_changed, since this is now properly
1018 handled by set_ignore_count.
1020 2002-06-18 Andrew Cagney <cagney@redhat.com>
1022 * MAINTAINERS: Note that cris-elf target can be compiled with
1024 * cris-tdep.c (cris_register_name): Make return type constant.
1025 (cris_breakpoint_from_pc): Ditto.
1027 2002-06-18 Michal Ludvig <mludvig@suse.cz>
1029 * frame.h (struct frame_info): Change type of context to
1032 2002-06-17 Andrew Cagney <cagney@redhat.com>
1034 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
1036 * gdbarch.h, gdbarch.c: Regenerate.
1037 * config/mips/tm-mips.h (mips_register_name): Update.
1038 * i386-tdep.h (i386_register_name): Update.
1039 * mips-tdep.c (mips_register_name): Update
1040 * alpha-tdep.c (alpha_register_name): Update.
1041 * arch-utils.c (legacy_register_name): Update.
1042 * arch-utils.h (legacy_register_name): Update.
1043 * avr-tdep.c (avr_register_name): Update.
1044 * ia64-tdep.c (ia64_register_name): Update.
1045 * i386-tdep.c (i386_register_name): Update.
1046 * sparc-tdep.c (sparc32_register_name): Update.
1047 (sparc64_register_name): Update.
1048 (sparclite_register_name): Update.
1049 (sparclet_register_name): Update.
1050 * sh-tdep.c (sh_generic_register_name): Update.
1051 (sh_sh_register_name): Update.
1052 (sh_sh3_register_name): Update.
1053 (sh_sh3e_register_name): Update.
1054 (sh_sh_dsp_register_name): Update.
1055 (sh_sh3_dsp_register_name): Update.
1056 (sh_sh4_register_name): Update.
1057 (sh_sh64_register_name): Update.
1058 * s390-tdep.c (s390_register_name): Update.
1059 * rs6000-tdep.c (rs6000_register_name): Update.
1060 * ns32k-tdep.c (ns32k_register_name_32082): Update.
1061 (ns32k_register_name_32382): Update.
1062 * d10v-tdep.c (d10v_ts2_register_name): Update.
1063 (d10v_ts3_register_name): Update.
1064 * xstormy16-tdep.c (xstormy16_register_name): Update.
1065 * vax-tdep.c (vax_register_name): Update.
1066 * v850-tdep.c (v850_register_name): Update.
1067 * m68hc11-tdep.c (m68hc11_register_name): Update.
1068 * mn10300-tdep.c (mn10300_generic_register_name): Update.
1069 (am33_register_name): Update.
1071 2002-06-17 Grace Sainsbury <graces@redhat.com>
1073 * m68k-tdep.c: Reindented.
1075 2002-06-17 Andrew Cagney <ac131313@redhat.com>
1077 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
1078 list of predefined types.
1080 2002-06-16 Mark Kettenis <kettenis@gnu.org>
1082 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
1083 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
1084 REGISTER_CONVERT_TO_RAW): Remove defines.
1085 (i386_register_virtual_type, i386_register_convertible,
1086 i386_register_convert_to_virtual, i386_register_convert_to_raw):
1088 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
1089 macros mentioned above.
1091 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
1092 (i386lynx_saved_pc_after_call): Remove prototype.
1093 * i386ly-tdep.c: Include "i386-tdep.h".
1094 (i386lynx_saved_pc_after_call): Make static. Use
1095 read_memory_nobpt instead of read_memory. Use
1096 read_memory_unsigned_integer instead of read_memory_integer.
1097 (i386lynx_init_abi): New function.
1098 (i386lynx_coff_osabi_sniffer): New function.
1099 (_initialize_i386bsd_tdep): New function.
1101 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
1102 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
1103 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
1104 (i386_fix_call_dummy): Remove prototype.
1105 * i386-tdep.c (i386_call_dummy_words): New variable.
1106 (i386_gdbarch_init): Adjust for removal of the
1107 macros mentioned above.
1109 2002-06-15 Andrew Cagney <ac131313@redhat.com>
1111 * command.h (add_setshow_auto_boolean_cmd): Replace
1112 add_set_auto_boolean_cmd.
1113 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
1114 add_set_auto_boolean_cmd.
1115 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
1116 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
1117 mask-address'' command.
1118 (show_mask_address): Add cmd parameter.
1119 * remote.c (add_packet_config_cmd): Update. Change type of
1120 set_func and show_func to cmd_sfunc_ftype.
1121 (_initialize_remote): Update `set remote Z-packet'
1122 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
1123 (show_remote_protocol_e_packet_cmd): Ditto.
1124 (show_remote_protocol_E_packet_cmd): Ditto.
1125 (show_remote_protocol_P_packet_cmd): Ditto.
1126 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
1127 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
1128 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
1129 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
1130 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
1131 (show_remote_protocol_Z_packet_cmd): Ditto.
1132 (show_remote_protocol_binary_download_cmd): Ditto.
1133 (show_remote_cmd): Pass NULL to all of above.
1135 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1137 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
1138 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
1139 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
1140 POP_FRAME): Remove defines.
1141 (i386_push_arguments, i386_store_struct_return,
1142 i386_extract_return_value, i386_store_return_value,
1143 i386_extract_struct_value_address, i386_push_dummy_frame,
1144 i386_pop_frame): Renove prototypes.
1145 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
1146 macros mentioned above.
1148 2002-06-15 Andrew Cagney <ac131313@redhat.com>
1150 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
1151 add_set_boolean_cmd.
1152 (add_setshow_cmd): New function.
1153 * command.h (add_setshow_boolean_cmd): Replace
1154 add_set_boolean_cmd.
1155 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
1156 and ``set rdiromatzero''.
1157 * maint.c (_initialize_maint_cmds): Update commented out code.
1158 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
1159 * target.c (initialize_targets): Update `set
1160 trust-readonly-sections'.
1161 * remote.c (_initialize_remote): Update `set remotebreak'.
1163 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1165 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
1166 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
1167 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
1168 fit into multi-arch framework.
1169 (i386_breakpoint_from_pc): New function.
1170 (i386_gdbarch_init): Adjust for removal of the macros mentioned
1173 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
1174 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
1175 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
1176 (i386_frameless_function_invocation, i386_frame_num_args,
1177 i386_frame_init_saved_regs): Remove prototypes.
1178 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
1179 macros mentioned above.
1181 2002-06-15 Andrew Cagney <ac131313@redhat.com>
1183 * cli/cli-decode.c (set_cmd_cfunc): Update.
1184 (set_cmd_sfunc): Update.
1185 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
1186 (set_cmd_sfunc, set_cmd_cfunc): Update.
1187 * cli/cli-decode.h: Update.
1189 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1191 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
1192 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
1194 2002-06-15 Andrew Cagney <ac131313@redhat.com>
1196 * defs.h (auto_boolean): Declare enum.
1197 * command.h (cmd_auto_boolean): Delete enum.
1198 * mips-tdep.c (mask_address_var): Update.
1199 (mips_mask_address_p): Update.
1200 (show_mask_address): Update.
1201 * remote.c (struct packet_config): Update.
1202 (update_packet_config): Update.
1203 (show_packet_config_cmd): Update.
1204 (packet_ok): Update.
1205 (add_packet_config_cmd): Update.
1206 (_initialize_remote):
1207 * command.h: Update.
1208 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
1209 (do_setshow_command): Update.
1210 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
1211 * cli/cli-decode.h: Update.
1213 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1215 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
1216 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
1217 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
1218 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
1219 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
1220 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
1222 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
1223 list of DJGPP COFF targets.
1225 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
1226 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
1227 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
1228 (FP0_REGNUM): Remove define.
1229 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
1230 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
1231 (i386_register_virtual_size): Remove protoype.
1232 * i386-tdep.c (i386_register_virtual_size): Removed.
1233 (i386_extract_return_value, i386_store_return_value): Use
1234 FP0_REGNUM instead of NUM_FREGS to determine whether the
1235 floating-point registers are available.
1236 (i386_gdbarch_init): Tweak FIXME about FPU registers.
1237 Adjust for removal of macros mentioned above.
1239 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1241 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
1243 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
1245 (supply_gregset, fill_gregset): Remove use of register keyword and
1246 remove declaration for regmap. Use I386_NUM_GREGS instead of
1247 NUM_REGS and NUM_FREGS.
1248 (FPREGSET_FSAVE_OFFSET): Remove.
1249 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
1250 NUM_FREGS to determine whether the floating-point registers are
1253 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
1254 gnu_store_registers): Replace usage of NUM_GREGS with
1257 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
1258 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
1259 usage of NUM_GREGS with I386_NUM_GREGS.
1261 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
1263 * i386bsd-nat.c: Include "i386-tdep.h".
1264 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
1267 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
1268 and associated comment. They no longer make any sense, since we
1269 don't use this file anymore on Linux.
1271 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
1272 * i386-tdep.c (i386_register_offset, i386_register_size): Use
1273 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
1274 elements in these arrays.
1275 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
1278 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1280 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
1281 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
1283 2002-06-14 Andrew Cagney <cagney@redhat.com>
1285 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
1286 EXTRACT_RETURN_VALUE.
1287 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
1288 EXTRACT_STRUCT_VALUE_ADDRESS.
1289 * gdbarch.h, gdbarch.c: Regenerate.
1291 * values.c (value_being_returned): Handle
1292 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
1293 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
1295 * arm-linux-tdep.c (arm_linux_init_abi): Update.
1296 * arm-tdep.c (arm_gdbarch_init): Update.
1297 * avr-tdep.c (avr_gdbarch_init): Update.
1298 * cris-tdep.c (cris_gdbarch_init): Update.
1299 * d10v-tdep.c (d10v_gdbarch_init): Update.
1300 * ia64-tdep.c (ia64_gdbarch_init): Update.
1301 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1302 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1303 * s390-tdep.c (s390_gdbarch_init): Update.
1304 * sh-tdep.c (sh_gdbarch_init): Update.
1305 * s390-tdep.c (s390_gdbarch_init): Update.
1306 * sparc-tdep.c (sparc_gdbarch_init): Update.
1307 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1308 * v850-tdep.c (v850_gdbarch_init): Update.
1309 * vax-tdep.c (vax_gdbarch_init): Update.
1310 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1311 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1313 * config/arc/tm-arc.h: Update.
1314 * config/d30v/tm-d30v.h: Update.
1315 * config/fr30/tm-fr30.h: Update.
1316 * config/h8300/tm-h8300.h: Update.
1317 * config/h8500/tm-h8500.h: Update.
1318 * config/i386/tm-i386.h: Update.
1319 * config/i386/tm-ptx.h: Update.
1320 * config/i386/tm-symmetry.h: Update.
1321 * config/i960/tm-i960.h: Update.
1322 * config/m32r/tm-m32r.h: Update.
1323 * config/m68k/tm-delta68.h: Update.
1324 * config/m68k/tm-linux.h: Update.
1325 * config/m68k/tm-m68k.h: Update.
1326 * config/m88k/tm-m88k.h: Update.
1327 * config/mcore/tm-mcore.h: Update.
1328 * config/mips/tm-mips.h: Update.
1329 * config/mn10200/tm-mn10200.h: Update.
1330 * config/pa/tm-hppa.h: Update.
1331 * config/pa/tm-hppa64.h: Update.
1332 * config/sparc/tm-sp64.h: Update.
1333 * config/sparc/tm-sparc.h: Update.
1334 * config/sparc/tm-sparclet.h: Update.
1335 * config/z8k/tm-z8k.h: Update.
1337 2002-06-14 Andrew Cagney <cagney@redhat.com>
1339 * Makefile.in (i386_linux_tdep_h): Define.
1340 (i386_tdep_h, i387_tdep_h): Define.
1341 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
1342 $(i386_tdep_h) and $(i387_tdep_h).
1343 * i386-linux-nat.c: Include "i386-linux-tdep.h".
1345 2002-06-14 Mark Kettenis <kettenis@gnu.org>
1347 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
1348 Already covered by the default.
1350 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
1351 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
1352 (i386_gdbarch_init): Initialize long_double_format and long_double
1355 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
1356 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
1358 * config/i386/i386sol2.mh: ... here.
1359 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
1360 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
1361 (SIGCONTEXT_PC_OFFSET): Remove define.
1362 (IN_SIGTRAMP): Remove define.
1363 * i386-sol2-tdep.c: New file.
1365 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
1366 * config/i386/tm-i386nw.h: Removed.
1368 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
1369 USE_STRUCT_CONVENTION): Remove defines.
1370 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
1371 (get_longjmp_target): Remove prototype.
1372 (IN_SIGTRAMP): Remove define.
1373 (i386bsd_in_sigtramp): Remove prototype.
1374 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
1375 function. Update comment accordingly
1376 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
1377 (FRAME_SAVED_PC): Remove define.
1378 (i386bsd_frame_saved_pc): Remove prototype.
1379 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
1380 GET_LONGJMP_TARGET): Remove defines.
1381 (get_longjmp_target): Remove prototype.
1382 (IN_SIGTRAMP): Remove define.
1383 (i386bsd_in_sigtramp): Remove prototype.
1384 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
1385 function. Update comment accordingly
1386 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
1387 (FRAME_SAVED_PC): Remove define.
1388 (i386bsd_frame_saved_pc): Remove prototype.
1389 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
1391 (USE_STRUCT_CONVENTION): Remove prototype.
1392 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
1394 (_initialize_i386bsd_nat): Revise logic to determine some
1395 constants at compile time when compiling a native GDB. Warn if
1396 things don't match up with what we expect.
1397 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
1399 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
1400 to use date stored in `struct gdbarch_tdep'.
1401 (i386bsd_sigcontext_offset): Remove varaible.
1402 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
1403 stored in `struct gdbarch_tdep'.
1404 (i386bsd_frame_saved_pc): Make static.
1405 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
1406 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
1407 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1408 i386fbsd4_sc_pc_offset): New variables.
1409 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
1410 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
1412 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
1414 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
1415 Modify the value of i386fbsd_sigtramp_start and
1416 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
1417 i386fbsd_sigtramp_end.
1418 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
1421 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
1422 define to i386-linux-tdep.h.
1423 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
1424 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
1426 (i386_linux_register_name, i386_linux_register_byte,
1427 i386_linux_register_raw_size): Remove prototypes.
1428 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
1429 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
1430 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
1431 TARGET_WRITE_PC): Remove defines.
1432 (i386_linux_in_sigtramp, i386_linux_frame_chain,
1433 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
1434 i386_linux_write_pc): Remove prototypes.
1435 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
1436 (get_longjmp_target): Remove prototype.
1437 * i386-linux-tdep.h: New file.
1438 * i386-linux-nat.c: Include "i386-linux-tdep.h".
1439 * i386-linux-tdep.c: Include "i386-tdep.h" and
1440 "i386-linux-tdep.h".
1441 (i386_linux_register_name, i386_linux_register_byte,
1442 i386_linux_register_raw_size, i386_linux_in_sigtramp,
1443 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
1445 (i386_linux_init_abi): New function.
1446 (_initialize_i386_linux_tdep): New function.
1448 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
1449 (i386_saved_pc_after_call): Remove prototype.
1450 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
1451 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
1452 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
1453 (i386_register_name, i386_stab_reg_to_regnum,
1454 i386_dwarf_reg_to_regnum): Remove prototypes.
1455 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
1456 SIZEOF_SSE_REGS): Remove defines.
1457 (REGISTER_BYTES): Remove define.
1458 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
1459 (i386_register_byte, i386_register_raw_size): Remove prototypes.
1460 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
1461 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
1462 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
1463 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
1464 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
1465 (get_longjmp_target): Remove prototype.
1466 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
1467 (sigtramp_saved_pc): Remove define.
1468 (i386v4_sigtramp_saved_pc): Remove prototype.
1469 * config/i386/tm-go32.h (FRAME_CHAIN,
1470 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
1471 (i386go32_frame_saved_pc): Remove prototype.
1472 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
1473 (get_longjmp_target): Remove prototype.
1474 * i386-tdep.h: Include "osabi.h".
1475 (enum i386_abi): Removed.
1476 (enum struct_return): New enum.
1477 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
1478 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
1479 sc_pc_offset members.
1480 (i386_gdbarch_register_os_abi): Remove prototype.
1481 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
1482 I386_SSE_NUM_REGS): New defines.
1483 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
1484 I386_SSE_SIZEOF_REGS): New defines.
1485 (i386_register_name, i386_register_byte, i386_register_raw_size):
1487 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
1488 (i386bsd_sigtramp_saved_pc): New prototype.
1489 * i386-tdep.c: Don't include "elf-bfd.h".
1490 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
1491 i386_frame_chain, i386_saved_pc_after_call): Make static.
1492 (i386_frame_saved_pc): Rewrite to call architecture dependent
1493 function to deal with signal handlers. Make static.
1494 (i386go32_frame_saved_pc): Removed.
1495 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
1497 (i386_get_longjmp_target): New function.
1498 (default_struct_convention, pcc_struct_convention,
1499 reg_struct_convention, valid_conventions, struct_convention): New
1501 (i386_use_struct_convention): New function.
1502 (i386v4_sigtramp_saved_pc): Renamed to
1503 i386_svr4_sigtramp_saved_pc. Made static. Moved.
1504 (i386_pc_in_sigtramp): New function.
1505 (i386_abi_names): Removed.
1506 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
1507 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
1509 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
1510 i386_gdbarch_register_os_abi): Removed.
1511 (struct i386_abi_handler): Removed.
1512 (i386_abi_handler_list): Removed.
1513 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
1515 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
1516 i386_nw_init_abi): New functions.
1517 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
1518 Use set_gdbarch_xxx() calls instead of relying on macros for a
1520 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
1521 (_initialize_i386_tdep): Add new 'struct-convcention' command.
1522 Register the various architecture variants defined in this file.
1524 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
1526 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
1527 (struct main_type): Remove arg_types member. Update comments for
1529 (TYPE_ARG_TYPES): Remove.
1530 (TYPE_FN_FIELD_ARGS): Update.
1531 (smash_to_method_type): Update prototype.
1533 * c-typeprint.c (cp_type_print_method_args): Take method type
1534 instead of argument list. Use new argument layout. Simplify.
1535 (c_type_print_args): Use new argument layout. Simplify.
1536 (c_type_print_base): Update call to cp_type_print_method_args.
1537 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
1538 argument; use die->type instead. Update call to
1539 smash_to_method_type.
1540 (read_structure_scope): Update call to dwarf2_add_member_fn.
1541 * gdbtypes.c (allocate_stub_method): Update comment.
1542 (smash_to_method_type): Take new NARGS and VARARGS arguments.
1543 Use new argument layout.
1544 (check_stub_method): Use new argument layout. Don't count
1545 void as an argument.
1546 (print_arg_types): Update comments. Use new argument layout.
1547 (recursive_dump_type): Don't print arg_types member.
1548 * hpread.c (hpread_read_struct_type): Use new argument layout.
1549 (fixup_class_method_type): Likewise.
1550 (hpread_type_lookup): Likewise.
1551 * stabsread.c (read_type): Update calls to read_args and
1552 smash_to_method_type.
1553 (read_args): Use new argument layout. Simplify.
1554 * valops.c (typecmp): Use new argument layout. Update parameters
1555 and comments. Simplify.
1556 (hand_function_call): Use new argument layout.
1557 (search_struct_method): Update call to typecmp.
1558 (find_overload_match): Use new argument layout.
1560 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
1562 * NEWS: Mention multithreaded debug support for gdbserver.
1564 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
1566 * MAINTAINERS: Mention NEWS.
1568 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
1570 * gdbserver/regcache.c: Add comment.
1572 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
1574 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
1575 (struct mips_objfile_private, compare_pdr_entries): New.
1576 (non_heuristic_proc_desc): Read the ".pdr" section if it
1579 2002-06-12 Andrew Cagney <ac131313@redhat.com>
1581 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
1582 (arm_debug): New static variable.
1583 (_initialize_arm_tdep): Add ``set debug arm'' command.
1585 2002-06-12 Andrew Cagney <ac131313@redhat.com>
1587 * Makefile.in (sim_arm_h): Define.
1588 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
1589 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
1590 (arm_register_sim_regno): New function, map an internal REGNUM
1591 onto a simulator register number.
1592 (arm_gdbarch_init): Set register_sim_regno.
1594 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
1596 * MAINTAINERS: Add self.
1598 2002-06-11 Jim Blandy <jimb@redhat.com>
1600 * source.c (source_info): Mention whether the symtab has
1601 information about preprocessor macros.
1603 Call the command `info macro', not `show macro'.
1604 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
1606 (_initialize_macrocmd): Register `info_macro_command' in
1607 `infolist', not `showlist'.
1609 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
1611 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
1612 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
1613 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
1614 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
1615 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
1617 (set_mipsfpu_single_command, set_mipsfpu_double_command)
1618 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
1619 (_initialize_mips_tdep): Remove dead code.
1620 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
1621 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
1622 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
1623 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
1624 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
1625 MIPS_LAST_FP_ARG_REGNUM): Remove.
1627 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
1629 * gdbserver/thread-db.c: New file.
1630 * gdbserver/proc-service.c: New file.
1631 * gdbserver/acinclude.m4: New file.
1632 * gdbserver/Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
1633 proc-service.o, and thread-db.o.
1634 (linux-low.o): Add USE_THREAD_DB.
1635 * gdbserver/acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
1636 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
1637 * gdbserver/aclocal.m4: Regenerated.
1638 * gdbserver/config.in: Regenerated.
1639 * gdbserver/configure: Regenerated.
1640 * gdbserver/configure.in: Check for proc_service.h, sys/procfs.h,
1641 thread_db.h, and linux/elf.h headrs.
1642 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
1643 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
1644 Check for -lthread_db and thread support.
1645 * gdbserver/configure.srv: Enable thread_db support for ARM, i386, MIPS,
1646 PowerPC, and SuperH.
1647 * gdbserver/i387-fp.c: Constify arguments.
1648 * gdbserver/i387-fp.h: Likewise.
1649 * gdbserver/inferiors.c: (struct thread_info): Renamed from
1650 `struct inferior_info'. Remove PID member. Use generic inferior
1651 list header. All uses updated.
1652 (inferiors, signal_pid): Removed.
1653 (all_threads): New variable.
1654 (get_thread): Define.
1655 (add_inferior_to_list): New function.
1656 (for_each_inferior): New function.
1657 (change_inferior_id): New function.
1658 (add_inferior): Removed.
1659 (remove_inferior): New function.
1660 (add_thread): New function.
1661 (free_one_thread): New function.
1662 (remove_thread): New function.
1663 (clear_inferiors): Use for_each_inferior and free_one_thread.
1664 (find_inferior): New function.
1665 (find_inferior_id): New function.
1666 (inferior_target_data): Update argument type.
1667 (set_inferior_target_data): Likewise.
1668 (inferior_regcache_data): Likewise.
1669 (set_inferior_regcache_data): Likewise.
1670 * gdbserver/linux-low.c (linux_bp_reinsert): Remove.
1671 (all_processes, stopping_threads, using_thrads)
1672 (struct pending_signals, debug_threads, pid_of): New.
1673 (inferior_pid): Replace with macro.
1674 (struct inferior_linux_data): Remove.
1675 (get_stop_pc, add_process): New functions.
1676 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
1677 Use add_process and add_thread.
1678 (linux_attach_lwp): New function, based on old linux_attach. Use
1679 add_process and add_thread. Set stop_expected for new threads.
1680 (linux_attach): New function.
1681 (linux_kill_one_process): New function.
1682 (linux_kill): Kill all LWPs.
1683 (linux_thread_alive): Use find_inferior_id.
1684 (check_removed_breakpoints, status_pending_p): New functions.
1685 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
1686 Update. Use WNOHANG. Wait for cloned processes also. Update process
1687 struct for the found process.
1688 (linux_wait_for_event): New function.
1689 (linux_wait): Use it. Support LWPs.
1690 (send_sigstop, wait_for_sigstop, stop_all_processes)
1691 (linux_resume_one_process, linux_continue_one_process): New functions.
1692 (linux_resume): Support LWPs.
1693 (REGISTER_RAW_SIZE): Remove.
1694 (fetch_register): Use register_size instead. Call supply_register.
1695 (usr_store_inferior_registers): Likewise. Call collect_register.
1697 (regsets_fetch_inferior_registers): Improve error message.
1698 (regsets_store_inferior_registers): Add debugging.
1699 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
1700 (unstopped_p, linux_signal_pid): New functions.
1701 (linux_target_ops): Add linux_signal_pid.
1702 (linux_init_signals): New function.
1703 (initialize_low): Call it. Initialize using_threads.
1704 * gdbserver/regcache.c (inferior_regcache_data): Add valid
1706 (get_regcache): Fetch registers lazily. Add fetch argument
1707 and update all callers.
1708 (regcache_invalidate_one, regcache_invalidate): New
1710 (new_register_cache): Renamed from create_register_cache.
1711 Return the new regcache.
1712 (free_register_cache): Change argument to a void *.
1713 (registers_to_string, registers_from_string): Call get_regcache
1714 with fetch flag set.
1715 (register_data): Make static. Pass fetch flag to get_regcache.
1716 (supply_register): Call get_regcache with fetch flag clear.
1717 (collect_register): Call get_regcache with fetch flag set.
1718 (collect_register_as_string): New function.
1719 * gdbserver/regcache.h: Update.
1720 * gdbserver/remote-utils.c (putpkt): Flush after debug output and use
1722 Handle input interrupts while waiting for an ACK.
1723 (input_interrupt): Use signal_pid method.
1724 (getpkt): Flush after debug output and use stderr.
1725 (outreg): Use collect_register_as_string.
1726 (new_thread_notify, dead_thread_notify): New functions.
1727 (prepare_resume_reply): Check using_threads. Set thread_from_wait
1729 (look_up_one_symbol): Flush after debug output.
1730 * gdbserver/server.c (step_thread, server_waiting): New variables.
1731 (start_inferior): Don't use signal_pid. Update call to mywait.
1732 (attach_inferior): Update call to mywait.
1733 (handle_query): Handle qfThreadInfo and qsThreadInfo.
1734 (main): Don't fetch/store registers explicitly. Use
1735 set_desired_inferior. Support proposed ``Hs'' packet. Update
1737 * gdbserver/server.h: Update.
1738 (struct inferior_list, struct_inferior_list_entry): New.
1739 * gdbserver/target.c (set_desired_inferior): New.
1740 (write_inferior_memory): Constify.
1741 (mywait): New function.
1742 * gdbserver/target.h: Update.
1743 (struct target_ops): New signal_pid method.
1744 (mywait): Removed macro, added prototype.
1746 * gdbserver/linux-low.h (regset_func): Removed.
1747 (regset_fill_func, regset_store_func): New.
1748 (enum regset_type): New.
1749 (struct regset_info): Add type field. Use new operation types.
1750 (struct linux_target_ops): stop_pc renamed to get_pc.
1751 Add decr_pc_after_break and breakpoint_at.
1752 (get_process, get_thread_proess, get_process_thread)
1753 (strut process_info, all_processes, linux_attach_lwp)
1754 (thread_db_init): New.
1756 * gdbserver/linux-arm-low.c (arm_get_pc, arm_set_pc,
1757 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
1758 (the_low_target): Add new members.
1759 * gdbserver/linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
1760 (i386_store_fpxregset): Constify.
1761 (target_regsets): Add new kind identifier.
1762 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
1763 (i386_set_pc): Add debugging.
1764 (i386_breakpoint_at): New function.
1765 (the_low_target): Add new members.
1766 * gdbserver/linux-mips-low.c (mips_get_pc, mips_set_pc)
1767 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
1768 (mips_breakpoint_at): New.
1769 (the_low_target): Add new members.
1770 * gdbserver/linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
1771 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
1772 (the_low_target): Add new members.
1773 * gdbserver/linux-sh-low.c (sh_get_pc, sh_set_pc)
1774 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
1775 (the_low_target): Add new members.
1776 * gdbserver/linux-x86-64-low.c (target_regsets): Add new kind
1779 2002-06-11 Michal Ludvig <mludvig@suse.cz>
1781 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
1782 (unwind_tmp_obstack_free, parse_frame_info)
1783 (update_context, cfi_read_fp, cfi_write_fp)
1784 (cfi_frame_chain, cfi_init_extra_frame_info)
1785 (cfi_virtual_frame_pointer): Use the above function.
1786 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
1788 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
1790 * v850-tdep.c (v850_type_is_scalar): New function.
1791 (v850_use_struct_convention): Match current gcc implementation
1792 as close as possible.
1793 (v850_push_arguments): Fix stack_offset handling. Don't write
1794 struct_addr into register. This is done by v850_store_struct_return.
1795 (v850_extract_return_value): Care for structs.
1796 (v850_store_return_value): Ditto.
1797 (v850_store_struct_return): Actually write address.
1799 2002-06-11 Michal Ludvig <mludvig@suse.cz>
1801 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
1802 without debug information too.
1804 2002-06-10 Andrew Cagney <ac131313@redhat.com>
1806 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
1807 Make multi-arch pure.
1808 * gdbarch.h, gdbarch.c: Re-generate.
1809 * arm-tdep.c (arm_print_float_info): Update.
1810 * arch-utils.h (default_print_float_info): Update.
1811 * arch-utils.c (default_print_float_info): Update.
1812 * infcmd.c (float_info): Update call.
1814 2002-06-10 Andrew Cagney <ac131313@redhat.com>
1816 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
1817 the front of the initialize list.
1819 2002-06-10 Andrew Cagney <ac131313@redhat.com>
1821 * infrun.c (struct inferior_status): Replace fields
1822 selected_frame_address and selected_level with field
1824 (save_inferior_status): Update. Use get_frame_id.
1825 (struct restore_selected_frame_args): Delete.
1826 (restore_selected_frame): Update. Use frame_find_by_id.
1827 (restore_inferior_status): Update.
1829 * breakpoint.h (struct breakpoint): Change type of
1830 watchpoint_frame to frame_id.
1831 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
1832 call to get_current_frame.
1833 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
1835 (watchpoint_check): Use frame_find_by_id.
1837 * frame.h (record_selected_frame): Delete declaration.
1838 * stack.c (record_selected_frame): Delete function.
1840 * frame.h (struct frame_id): Define.
1841 (get_frame_id): Declare.
1842 (frame_find_by_id): Declare.
1843 * frame.c (frame_find_by_id): New function.
1844 (get_frame_id): New function.
1846 2002-06-10 Andrey Volkov <avolkov@transas.com>
1848 * ser-e7kpc.c: Fix duplicated define and call of
1849 _initialize_ser_e7000pc
1851 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
1853 * signals/signals.c (target_signal_from_host): Fix #ifdef
1855 (do_target_signal_to_host): Likewise.
1857 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
1859 * mips-tdep.c (mips_find_abi_section): New function.
1860 (mips_gdbarch_init): Call it.
1862 2002-06-09 Mark Kettenis <kettenis@gnu.org>
1864 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
1865 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
1866 after Andrew's 2002-06-08 gdbarch change.
1868 2002-06-09 Mark Kettenis <kettenis@gnu.org>
1870 * i386-linux-nat.c (suppy_gregset): Don't supply
1871 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
1873 (fill_gregset): Don't fetch it under the same circumstances.
1875 2002-06-09 Andrew Cagney <cagney@redhat.com>
1877 * Makefile.in (callback_h): Define.
1878 (remote_sim_h): Update path to remote-sim.h.
1879 (remote-rdp.o): Add $(callback_h).
1880 (remote-sim.o): Use $(callback_h).
1881 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
1882 * remote-rdp.c: Include "gdb/callback.h".
1884 2002-06-09 Mark Kettenis <kettenis@gnu.org>
1886 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
1887 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
1889 2002-06-08 Andrew Cagney <ac131313@redhat.com>
1891 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
1892 * rdi-share/serpardr.c: Ditto.
1893 * rdi-share/unixcomm.c: Ditto.
1894 * rdi-share/serdrv.c: Ditto.
1895 * rdi-share/hostchan.h: Ditto.
1896 * rdi-share/hostchan.c: Ditto.
1897 * rdi-share/host.h: Ditto.
1898 * rdi-share/devsw.c: Ditto.
1900 * objfiles.h: Change type of obj_private to void pointer.
1901 * pa64solib.c: Update copyright. Don't include "assert.h", use
1902 strcmp instead of STREQ, use LONGEST, do not use PTR
1903 * somsolib.c: Ditto.
1905 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
1906 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
1907 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
1909 2002-06-08 Andrew Cagney <ac131313@redhat.com>
1911 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
1912 (default_get_saved_register): Delete function.
1913 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
1914 generic_unwind_get_saved_register.
1915 * gdbarch.h, gdbarch.c: Re-generate.
1917 2002-06-08 Andrew Cagney <ac131313@redhat.com>
1919 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
1920 generic_func_frame_chain_valid.
1921 * gdbarch.h, gdbarch.c: Re-generate.
1922 * blockframe.c (generic_func_frame_chain_valid): Only check
1923 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
1924 passing FP to PC_IN_CALL_DUMMY.
1927 2002-06-08 Andrew Cagney <ac131313@redhat.com>
1929 * gdbarch.sh (struct gdbarch_data): Add field init_p.
1930 (register_gdbarch_data): Initialize init_p.
1931 (gdbarch_data): Initialize data pointer using the init function.
1932 (init_gdbarch_data): Delete function.
1933 (gdbarch_update_p): Update.
1934 (initialize_non_multiarch): Update.
1935 (struct gdbarch): Add field initialized_p.
1936 * gdbarch.h, gdbarch.c: Re-generate.
1938 2002-06-07 Michal Ludvig <mludvig@suse.cz>
1940 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
1941 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
1942 better do the things actually here.
1943 * x86-64-tdep.c (x86_64_register_name2nr): New.
1944 (x86_64_register_name): Renamed to x86_64_register_nr2name.
1945 (x86_64_gdbarch_init): Respect the above change.
1946 * x86-64-tdep.h (x86_64_register_name2nr)
1947 (x86_64_register_nr2name): Add prototypes.
1948 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
1950 2002-06-06 Michael Snyder <msnyder@redhat.com>
1952 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
1953 Delete extra braces and re-indent.
1954 (d10v_store_return_value): Char return values
1955 must be shifted over by one byte in R0.
1956 (d10v_extract_return_value): Delete extra braces, re-indent.
1958 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
1960 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
1961 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
1962 (d10v_integer_to_address): Rewrite.
1963 (d10v_frame_init_saved_regs): When reading fp and sp registers use
1964 the d10v specific functions which take care of converting to the
1967 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
1969 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
1970 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
1972 2002-06-02 Andrew Cagney <ac131313@redhat.com>
1974 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
1976 * config/tm-linux.h: Ditto.
1977 * config/alpha/tm-alphalinux.h: Ditto.
1978 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
1979 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
1980 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
1981 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
1982 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
1983 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
1984 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
1985 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
1986 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
1987 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
1988 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
1989 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
1990 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
1991 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
1992 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
1993 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
1994 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
1995 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
1996 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
1997 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
1998 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
1999 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
2000 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
2001 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
2002 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
2003 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
2004 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
2005 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
2006 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
2007 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
2008 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
2009 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
2010 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
2011 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
2012 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
2013 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
2014 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
2016 2002-05-04 Aidan Skinner <aidan@velvet.net>
2018 * ada-exp.tab.c: New file
2019 * ada-exp.y: New file
2020 * ada-lang.c: New file
2021 * ada-lang.h: New file
2022 * ada-lex.c: New file
2023 * ada-lex.l: New file
2024 * ada-tasks.c: New file
2025 * ada-typeprint.c: New file
2026 * ada-valprint.c: New file
2028 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
2030 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
2031 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
2033 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
2035 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
2036 insetead of ppc-linux-tdep.o.
2037 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
2038 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
2040 2002-06-02 Andrew Cagney <ac131313@redhat.com>
2042 2002-05-07 Christian Groessler <chris@groessler.org>
2043 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
2044 bit register contents for little endian hosts.
2046 2002-06-01 Andrew Cagney <ac131313@redhat.com>
2048 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
2051 2002-06-01 Andrew Cagney <ac131313@redhat.com>
2053 * gdbarch.h: Regenerate.
2055 2002-06-01 Andrew Cagney <ac131313@redhat.com>
2057 * MAINTAINERS: Add everyone to write-after-approval list.
2059 2002-06-01 Andrew Cagney <ac131313@redhat.com>
2061 * stack.c (frame_info): Use frame_register_unwind instead of
2062 saved_regs. Mention when the SP is on the stack or in a register.
2064 * frame.h (frame_register_unwind_ftype): Define. Document.
2065 (struct frame_info): Add field register_unwind and
2066 register_unwind_cache.
2067 (frame_register_unwind): Declare.
2068 (generic_unwind_get_saved_register): Declare.
2070 * frame.c (frame_register_unwind): New function.
2071 (generic_unwind_get_saved_register): New function.
2073 * blockframe.c (generic_call_dummy_register_unwind): New function.
2074 (frame_saved_regs_register_unwind): New function.
2075 (set_unwind_by_pc): New function.
2076 (create_new_frame): New function.
2077 (get_prev_frame): New function.
2079 2002-05-30 Andrew Cagney <ac131313@redhat.com>
2081 * a29k-share/: Delete directory.
2082 * remote-vx29k.c: Delete file.
2084 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
2086 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
2087 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
2089 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
2091 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
2092 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
2095 (sparcnbsd-tdep.o): New dependency lists.
2096 * NEWS: Note new UltraSPARC NetBSD native configuration.
2097 * configure.host (sparc64-*-netbsd*): New host.
2098 * configure.tgt (sparc-*-netbsdelf*)
2099 (sparc-*-netbsd*): Set gdb_target to nbsd.
2100 (sparc64-*-netbsd*): New target.
2101 * sparc64nbsd-nat.c: New file.
2102 * sparcnbsd-nat.c: New file.
2103 * sparcnbsd-tdep.c: New file.
2104 * sparcnbsd-tdep.h: New file.
2105 * config/sparc/nbsd.mt: New file.
2106 * config/sparc/nbsd64.mh: New file.
2107 * config/sparc/nbsd64.mt: New file.
2108 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
2109 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
2111 * config/sparc/nbsdaout.mt: Remove.
2112 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
2113 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
2115 * config/sparc/nbsdelf.mt: Remove.
2116 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
2117 sparc-nat.c compatiblity defines.
2118 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
2119 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
2120 * config/sparc/tm-nbsd64.h: New file.
2121 * config/sparc/tm-nbsdaout.h: Remove.
2122 * config/sparc/xm-nbsd.h: Remove.
2124 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
2126 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
2127 * sparc-tdep.c: Include osabi.h.
2128 (gdbarch_tdep): Add osabi member.
2129 (_initialize_sparc_tdep): Use gdbarch_register.
2130 (sparc_gdbarch_init): Use generic OS ABI framework.
2131 (sparc_dump_tdep): New function.
2133 2002-05-30 Kevin Buettner <kevinb@redhat.com>
2135 * corefile.c (do_captured_read_memory_integer): Return non-zero
2137 (safe_read_memory_integer): Copy result of memory read when
2138 status is non-zero. Also, add comments.
2140 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
2142 * Makefile.in (ppc_tdep_h): Define.
2145 (rs6000-tdep.o): Use $(ppc_tdep_h).
2148 (ppcnbsd-tdep.o): New dependency lists.
2149 * ppc-tdep.h: Use generic OS ABI framework.
2150 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
2151 (ppc_linux_init_abi): New functions.
2152 (ppc_sysv_abi_broken_use_struct_convention)
2153 (ppc_sysv_abi_use_struct_convention)
2154 (ppc_sysv_abi_push_arguments): Move to...
2155 * ppc-sysv-tdep.c: ...here.
2156 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
2157 * rs6000-tdep.c (process_note_abi_tag_sections)
2158 (get_elfosabi): Remove.
2159 (rs6000_gdbarch_init): Use generic OS ABI framework.
2160 (rs6000_dump_tdep): New function.
2161 (_initialize_rs6000_tdep): Use gdbarch_register.
2162 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
2163 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
2164 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
2165 of ppc-linux-tdep.o.
2166 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
2167 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
2168 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
2169 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
2170 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
2171 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
2173 2002-05-29 Jim Blandy <jimb@redhat.com>
2175 * macroscope.c (default_macro_scope): Put `void' in empty argument
2178 2002-05-29 Andrew Cagney <ac131313@redhat.com>
2180 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
2181 * arch-utils.c: Include "sim-regno.h".
2182 * gdbarch.sh: Don't include "sim-regno.h".
2183 * gdbarch.h, gdbarch.c: Regenerate.
2184 * sim-regno.h (legacy_register_sim_regno): Move declaration from
2186 * arch-utils.h (legacy_register_sim_regno): To here.
2187 * remote-sim.c (legacy_register_sim_regno): Move function from
2189 * arch-utils.c (legacy_register_sim_regno): To here.
2191 2002-05-28 Andrew Cagney <ac131313@redhat.com>
2193 * sim-regno.h: New file.
2194 * Makefile.in (sim_regno_h): Define.
2195 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
2196 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
2197 (legacy_register_sim_regno): New function.
2198 (one2one_register_sim_regno): New function.
2199 (gdbsim_fetch_register): Rewrite.
2200 (gdbsim_store_register): Only store a register when
2201 REGISTER_SIM_REGNO is valid.
2202 * d10v-tdep.c: Include "sim-regno.h".
2203 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
2204 (d10v_ts3_register_sim_regno): Ditto.
2205 * gdbarch.sh: Include "sim-regno.h".
2206 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
2207 * gdbarch.h, gdbarch.c: Regenerate.
2208 * arch-utils.h (default_register_sim_regno): Delete declaration.
2209 * arch-utils.c (default_register_sim_regno): Delete function.
2211 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
2213 * ppcnbsd-nat.c: Rewrite.
2214 * ppcnbsd-tdep.c: New file.
2215 * ppcnbsd-tdep.h: New file.
2216 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
2217 solib.o, and solib-svr4.o.
2218 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
2219 nbsd-tdep.o, and corelow.o.
2221 2002-05-28 Andrew Cagney <ac131313@redhat.com>
2223 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
2224 `tr' and `sed'. Mention that `broken' targets are not expected to
2227 2002-05-27 Michal Ludvig <mludvig@suse.cz>
2229 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
2230 Let PC point right after the prologue before looking up symbols.
2232 2002-05-27 Martin M. Hunt <hunt@redhat.com>
2234 * i386-tdep.c (i386_register_virtual_type): Return
2235 builtin_type_vec128i for SSE registers.
2237 * gdbtypes.h (builtin_type_vec128i): Declare.
2239 * gdbtypes.c (build_builtin_type_vec128i): New function.
2240 (builtin_type_v2_double, builtin_type_v4_int64): New types.
2241 (builtin_type_vec128i): New type for SSE2 128-bit registers.
2242 (build_gdbtypes): Initialize new builtin vector types.
2243 (_initialize_gdbtypes): Register new vector types with gdbarch.
2245 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2247 * MAINTAINERS: ns32k is not longer an obsolete candidate,
2248 since it has been multi-arch'd.
2249 * NEWS: Note that ns32k-*-* is now partial multi-arch.
2250 Move Alpha and VAX multi-arch news entries to same section
2251 as other multi-arch news.
2253 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2255 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
2256 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
2257 static. Rename some register numbers to put them in ns32k-tdep
2259 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
2260 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
2262 (_initialize_ns32k_tdep): Use gdbarch_register.
2263 * ns32k-tdep.h: New file.
2264 * ns32knbsd-tdep.c: New file.
2265 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
2266 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
2267 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
2268 REGISTER_BYTES, REGISTER_BYTE): Remove.
2269 * config/ns32k/tm-ns32k.h: New file.
2270 * config/ns32k/tm-umax.h: Remove.
2272 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2274 * ns32k-tdep.c (ns32k_saved_pc_after_call,
2275 ns32k_store_struct_return, ns32k_extract_return_value,
2276 ns32k_store_return_value, ns32k_extract_struct_value_address): New
2278 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
2279 ns32k_saved_pc_after_call.
2280 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
2281 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
2282 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
2283 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
2284 ns32k_extract_struct_value_address.
2286 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2288 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
2289 ns32k_fix_call_dummy): New.
2290 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
2291 ns32k_call_dummy_words.
2292 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
2293 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
2294 CALL_DUMMY_NARGS): Remove.
2295 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
2297 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2299 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
2300 ns32k_frame_saved_pc, ns32k_frame_args_address,
2301 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
2302 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
2303 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
2304 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
2305 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
2306 (BREAKPOINT): Remove..
2307 (FRAME_CHAIN): Define as ns32k_frame_chain.
2308 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
2309 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
2310 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
2311 (FRAME_FIND_SAVED_REGS): Remove.
2312 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
2313 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
2314 (POP_FRAME): Define as ns32k_pop_frame.
2316 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2318 * ns32k-tdep.c (ns32k_register_byte_32082,
2319 ns32k_register_byte_32382, ns32k_register_raw_size,
2320 ns32k_register_virtual_size, ns32k_register_virtual_type): New
2322 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
2323 ns32k_register_byte_32382.
2324 * config/ns32k/tm-umax.h: Update copyright years.
2325 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
2326 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
2327 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
2328 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
2329 (ns32k_get_enter_addr): Fix prototype.
2331 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2333 * ns32k-tdep.c: Update copyright years.
2334 (ns32k_register_name_32082): New function.
2335 (ns32k_register_name_32382): Ditto.
2336 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
2337 (REGISTER_NAME): Define as ns32k_register_name_32382.
2338 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
2339 (REGISTER_NAME): Define as ns32k_register_name_32082.
2341 2002-05-24 Jim Blandy <jimb@redhat.com>
2343 * dwarf2read.c (free_line_header): Use xfree, not free.
2345 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
2347 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
2348 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
2350 2002-05-23 Andrew Cagney <ac131313@redhat.com>
2352 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
2354 2002-05-23 Andrew Cagney <ac131313@redhat.com>
2356 From Ross Alexander at NEC Europe:
2357 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
2359 2002-05-23 Michael Snyder <msnyder@redhat.com>
2361 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
2362 for input, rather than parse_and_eval_address.
2364 2002-05-23 Andrew Cagney <ac131313@redhat.com>
2366 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
2367 * Makefile.in (sim_d10v_h): Update definition.
2369 2002-05-24 Andrew Cagney <cagney@redhat.com>
2371 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
2372 change `2002-05-22 Michael Snyder' below.
2373 (d10v_push_arguments): Ditto.
2374 (d10v_extract_return_value): Ditto.
2376 2002-05-23 Jim Blandy <jimb@redhat.com>
2378 * macrotab.c (check_for_redefinition): Don't complain if the new
2379 definition is the same as the previous one. Take more arguments
2380 to allow the comparison.
2381 (macro_define_object, macro_define_function): Pass more arguments
2382 to check_for_redefinition.
2384 2002-05-22 Michael Snyder <msnyder@redhat.com>
2386 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
2387 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
2388 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
2389 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
2390 Don't bail if return_pc is PC_IN_CALL_DUMMY.
2391 Add a temp variable to save a call (and a memory read).
2392 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
2393 if possible (so that PC_IN_CALL_DUMMY will work).
2395 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
2397 * MAINTAINERS: Remove status `OBSOLETE' from v850.
2399 2002-05-22 Michal Ludvig <mludvig@suse.cz>
2401 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
2403 (dwarf2_build_frame_info): Corrected handling of eh_frame.
2404 (dwarf2_build_frame_info): Add offset to fde->initial_location
2405 so that frames of shared libraries are mapped correctly.
2406 (execute_stack_op): Change type of 'result' from ULONGEST to
2409 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
2411 * config/alpha/tm-nbsd.h: Include solib.h.
2413 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
2415 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
2416 assumptions about the host's byte order.
2418 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
2420 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
2422 * alphanbsd-tdep.c: Include solib-svr4.h.
2423 * shnbsd-tdep.c: Ditto.
2425 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
2427 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
2428 nbsd-tdep.h to dependency list.
2429 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
2430 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
2431 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
2432 nbsdaout.mh and nbsdelf.mh consistently.
2433 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
2434 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
2435 nbsdaout.mt and nbsdelf.mh consistently.
2436 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
2437 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
2438 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2439 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
2440 a.out shared library stuff from here...
2441 * config/nm-nbsdaout.h: ...to here.
2442 * config/tm-nbsd.h: Remove.
2443 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
2444 * config/arm/nbsd.mh: Remove.
2445 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
2447 * config/arm/nbsdaout.mh: New file.
2448 * config/arm/nbsdelf.mh: New file.
2449 * config/arm/nm-nbsdaout.h: New file.
2450 * config/i386/nbsd.mh: Remove.
2451 * config/i386/nbsd.mt: Remove.
2452 * config/i386/nbsdaout.mh: New file.
2453 * config/i386/nbsdaout.mt: New file.
2454 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
2455 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
2456 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
2457 i386_register_u_addr): Remove.
2458 * config/i386/nm-nbsdaout.h: New file.
2459 * config/i386/nm-nbsdelf.h: Remove.
2460 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
2461 (USE_STRUCT_CONVENTION): Remove.
2462 * config/i386/tm-nbsdaout.h: New file.
2463 * config/i386/tm-nbsdelf.h: Remove.
2464 * config/m68k/nbsd.mh: Remove.
2465 * config/m68k/nbsd.mt: Remove.
2466 * config/m68k/nbsdaout.mh: New file.
2467 * config/m68k/nbsdaout.mt: New file.
2468 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
2469 * config/m68k/nm-nbsdaout.h: New file.
2470 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
2471 (IN_SOLIB_CALL_TRAMPOLINE): Define.
2472 * config/ns32k/nbsd.mh: Remove.
2473 * config/ns32k/nbsd.mt: Remove.
2474 * config/ns32k/nbsdaout.mh: New file.
2475 * config/ns32k/nbsdaout.mt: New file.
2476 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
2477 * config/ns32k/nm-nbsdaout.h: New file.
2478 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
2479 (IN_SOLIB_CALL_TRAMPOLINE): Define.
2480 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
2481 (SVR4_SHARED_LIBS): Remove.
2482 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
2483 * config/sparc/nbsd.mh: Remove.
2484 * config/sparc/nbsd.mt: Remove.
2485 * config/sparc/nbsdaout.mh: New file.
2486 * config/sparc/nbsdaout.mt: New file.
2487 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
2488 * config/sparc/nbsdelf.mt: New file.
2489 * config/sparc/nm-nbsdaout.h: New file.
2490 * config/sparc/nm-nbsdelf.h: Remove.
2491 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
2492 * config/sparc/tm-nbsdaout.h: New file.
2494 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2496 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
2498 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
2500 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2502 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
2504 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
2506 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2508 * NEWS: Note new MIPS NetBSD native configuration.
2509 * configure.host (mips*-*-netbsd*): New host.
2510 * configure.tgt (mips*-*-netbsd*): New target.
2511 * mipsnbsd-nat.c: New file.
2512 * mipsnbsd-tdep.c: New file.
2513 * mipsnbsd-tdep.h: New file.
2514 * config/mips/nbsd.mh: New file.
2515 * config/mips/nbsd.mt: New file.
2516 * config/mips/nm-nbsd.h: New file.
2517 * config/mips/tm-nbsd.h: New file.
2519 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2521 * Makefile.in (SFILES): Add osabi.c.
2522 (COMMON_OBS): Add osabi.o.
2523 (osabi.o): New dependency list.
2524 * osabi.c: New file.
2525 * osabi.h: New file.
2526 * doc/gdbint.texinfo: Document new generic OS ABI framework.
2528 * Makefile.in (alpha_tdep_h): Define and use instead of
2530 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
2531 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
2533 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
2534 * alpha-tdep.h: Include osabi.h.
2535 (alpha_abi): Remove.
2536 (gdbarch_tdep): Use generic OS ABI framework.
2537 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
2538 gdbarch_register_osabi.
2539 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
2540 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
2541 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
2543 * Makefile.in (sh_tdep_h): Add osabi.h.
2544 * sh-tdep.h (sh_osabi): Remove.
2545 (gdbarch_tdep): Use generic OS ABI framework.
2546 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
2547 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
2548 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
2549 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
2551 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
2552 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
2553 gdbarch_register_osabi.
2554 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
2555 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
2556 (get_elfosabi): Rename to...
2557 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
2558 ABI framework support routines.
2559 (arm_gdbarch_init): Use generic OS ABI framework.
2560 (arm_dump_tdep): Likewise.
2561 (_initialize_arm_tdep): Likewise.
2562 * arm-tdep.h: Include osabi.h.
2564 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
2566 (arm_gdbarch_register_os_abi): Remove prototype.
2567 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
2568 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
2570 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
2571 * mips-tdep.c: Include osabi.h.
2572 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
2575 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
2577 * h8300-tdep.c: Fix formatting.
2579 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
2581 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
2582 printing vector registers.
2584 2002-05-19 Andrew Cagney <ac131313@redhat.com>
2586 From Fernando Nasser:
2587 * remote.c (remote_async_open_1): Re-throw the exception when the
2589 (remote_cisco_open): Ditto.
2590 (remote_open_1): Ditto.
2592 2002-05-19 Andrew Cagney <ac131313@redhat.com>
2594 * remote.c (remote_start_remote_dummy): Add uiout parameter.
2595 (remote_start_remote): Add uiout parameter. Pass through to
2596 remote_start_remote_dummy.
2597 (remote_open_1): Use catch_exception instead of catch_errors.
2598 (remote_async_open_1): Ditto.
2599 (remote_cisco_open): Ditto.
2601 2002-05-19 Andrew Cagney <ac131313@redhat.com>
2603 * remote.c (remote_start_remote): Replace PTR with void pointer.
2604 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
2607 2002-05-18 Andrew Cagney <ac131313@redhat.com>
2609 * gdb_indent.sh: Allow the script to be run in the sim directory.
2611 2002-05-18 Mark Kettenis <kettenis@gnu.org>
2613 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
2614 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
2616 * corelow.c (core_open): Only call set_gdbarch_from_file if
2619 2002-05-17 Andrey Volkov <avolkov@transas.com>
2621 * h8300-tdep.c: Add support of EXR register
2622 * config/h8300/tm-h8300.h: Ditto.
2624 2002-05-17 Andrey Volkov <avolkov@transas.com>
2626 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
2628 2002-05-17 Andrey Volkov <avolkov@transas.com>
2630 * h8300-tdep.c: Change literal regnums to REGNO.
2632 2002-05-17 Jim Blandy <jimb@redhat.com>
2634 * NEWS: Note addition of macro support.
2636 Expand preprocessor macros in C expressions.
2637 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
2638 (scan_macro_expansion, scanning_macro_expansion,
2639 finished_macro_expansion): New function declarations.
2640 (expression_macro_lookup_func, expression_macro_lookup_baton): New
2641 variable declarations.
2642 * parser-defs.h (expression_context_pc): New declaration.
2643 * parse.c (expression_context_pc): New variable.
2644 (parse_exp_1): Set expression_context_pc, as well as
2645 expression_context_block.
2646 * c-exp.y (yylex): If we're not already reading the result of a
2647 macro expansion, try to macro-expand the next token. When we're
2648 done scanning a macro expansion, switch back to the mainline text.
2649 Commas and `if's in a macro's expansion don't terminate the input.
2650 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
2651 (macro_original_text, macro_expanded_text,
2652 expression_macro_lookup_func, expression_macro_lookup_baton): New
2654 (scan_macro_expansion, scanning_macro_expansion,
2655 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
2656 c_preprocess_and_parse): New functions.
2657 (c_language_defn, cplus_language_defn, asm_language_defn): Call
2658 c_preprocess_and_parse, instead of c_parse.
2659 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
2660 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
2662 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
2664 * sh-tdep.c (gdb_print_insn_sh64): Delete.
2665 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
2666 (sh_gdbarch_init): Always use gdb_print_insn_sh.
2668 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
2670 * NEWS: Add section for multi-arched targets. Add v850 to that section.
2672 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
2674 * Makefile.in (sh_tdep_h): Define and use.
2675 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
2676 register enum): Move to...
2677 * * sh-tdep.h: ...here.
2678 * sh-tdep.c: Include sh-tdep.h.
2679 * sh3-rom.c: Likewise.
2680 * shnbsd-tdep.c: Likewise.
2682 2002-05-16 Michael Snyder <msnyder@redhat.com>
2684 * arm-tdep.c: Spelling fix in comment.
2686 2002-05-16 Jim Blandy <jimb@redhat.com>
2688 Add commands for manually expanding macros and showing their
2690 * macrocmd.c, macroscope.c, macroscope.h: New files.
2691 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
2692 (macroscope_h): New variable.
2693 (HFILES_NO_SRCDIR): Add macroscope.h.
2694 (COMMON_OBS): Add macrocmd.o, macroscope.o.
2695 (macroscope.o, macrocmd.o): New rules.
2697 Teach the Dwarf 2 reader to read macro information.
2698 * dwarf2read.c: #include "macrotab.h".
2699 (dwarf_macinfo_buffer): New variable.
2700 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
2702 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
2703 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
2704 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
2705 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
2706 dwarf2_macro_spaces_in_definition): New complaints.
2707 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
2708 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
2709 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
2710 the partial symbol table.
2711 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
2712 from what's recorded in the partial symbol table.
2713 (read_file_scope): If the compilation unit has a
2714 `DW_AT_macro_info' attribute, read its macro information.
2715 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
2717 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
2720 * ser-tcp.c: Don't include <netinet/udp.h>.
2722 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
2724 * MAINTAINERS: Update my email address.
2726 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
2728 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
2729 include file of the same name.
2731 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
2733 * configure.tgt: Mark v850 as multi-arched.
2734 * config/v850/tm-v850.h: Remove file.
2735 * config/v850/v850.mt: Eliminate TM_FILE.
2737 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
2739 * v850-tdep.c: Full multi-arch.
2740 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
2741 Define GDB_MULTI_ARCH to 2.
2743 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
2745 * p-exp.y (current_type): New static variable.
2746 Carries the type of the expression at the position that is parsed.
2747 (push_current_type, pop_current_type): Two new functions. Used
2748 to store/restore current_type in expression on specific tokens.
2749 (search_field): New static variable. Set to one after parsing a point
2750 as at that point only a FIELDNAME token should be searched.
2751 (FIELDNAME): New token. After a point only a token belonging to
2752 current_type type definition is allowed.
2753 (all over token rules): reset and change current_type according
2755 (exp '[' rule): insert implicit array index field if
2756 exp is a pascal string type.
2758 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
2760 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
2761 frame info. Use frame_info's saved_regs instead of matching member
2762 in extra_frame_info throughout.
2763 (v850_frame_init_saved_regs): New function.
2764 (v850_init_extra_frame_info): Move most functionality into
2765 v850_frame_init_saved_regs().
2766 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
2767 (v850_frame_find_saved_regs): Remove declaration.
2768 (FRAME_FIND_SAVED_REGS): Remove definition.
2769 (v850_frame_init_saved_regs): Add declaration.
2770 (FRAME_INIT_SAVED_REGS): Add definition.
2772 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
2774 * v850-tdep.c: Begin multi-arch'ing v850.
2775 (v850_target_architecture_hook): Remove function.
2776 (v850_gdbarch_init): New function. Add code previously in
2777 v850_target_architecture_hook().
2778 (_initialize_v850_tdep): Don't set target_architecture_hook.
2779 Call register_gdbarch_init() instead.
2781 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
2783 * gdbtypes.h (struct cplus_struct_type): Remove args field.
2784 * hpread.c (hpread_read_struct_type): Remove assignments to args.
2785 (fixup_class_method_type): Likewise.
2787 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
2789 From Martin Pool <mbp@samba.org>:
2790 * gdbserver/server.c (gdbserver_usage): New function.
2793 2002-05-15 Jim Blandy <jimb@redhat.com>
2795 Add macro structures to GDB's symbol tables. Nobody puts anything
2797 * symtab.h (struct symtab): New member: `macro_table'.
2798 * buildsym.h (pending_macros): New global variable.
2799 * buildsym.c: #include "macrotab.h".
2800 (buildsym_init): Initialize `pending_macros'.
2801 (end_symtab): If we found macro information while reading a CU's
2802 debugging info, do build a symtab structure for it. Make the
2803 symtab point to the macro information, and clear the
2804 `pending_macros' pointer which held it while we were reading the
2806 (really_free_pendings): Free any pending macro table.
2807 * objfiles.h (struct objfile): New member: `macro_cache'.
2808 * objfiles.c (allocate_objfile): Set allocate and free functions
2809 for the macro cache's objstack.
2810 (free_objfile): Empty the macro cache's obstack.
2811 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
2812 set new allocate and free functions for it.
2813 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
2814 free functions for the macro cache's objstack. (Why is this
2815 function building its own objfile?)
2816 * symmisc.c (print_objfile_statistics): Print statistics on the
2818 * Makefile.in: Note that buildsym.o depends on macrotab.h.
2820 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
2822 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
2823 (REGISTER_U_ADDR): Delete definition.
2824 (arm_register_u_addr): Delete declaration.
2826 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
2828 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
2829 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
2831 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
2833 * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
2836 2002-05-14 Andrew Cagney <ac131313@redhat.com>
2838 * regcache.c (register_valid): Revise comments refering to "Not
2839 available" and "unavailable".
2840 * frame.c (frame_register_read): Ditto.
2841 * findvar.c (value_of_register): Ditto.
2843 2002-05-15 Andrew Cagney <cagney@redhat.com>
2845 * Makefile.in (remote_sim_h): Replace remote-sim_h.
2846 (remote-sim.o): Update dependencies.
2847 (d10v-tdep.o): Specify dependencies.
2848 (sim_d10v_h): Define.
2850 2002-05-14 Jim Blandy <jimb@redhat.com>
2852 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
2853 * macrotab.c (macro_lookup_inclusion, find_definition,
2854 new_macro_table): Same.
2856 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
2857 not `! strcmp ()'. This is a dubious improvement.
2858 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
2860 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
2861 although it's not necessary, to avoid a warning.
2863 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
2865 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
2866 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
2867 TYPE_INSTANCE_FLAGS.
2868 (struct main_type): New.
2869 (struct type): Move most members to struct main_type. Change
2870 cv_type and as_type to new type_chain member. Add instance_flags.
2871 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
2872 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
2873 (finish_cv_type): Remove prototype.
2874 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
2876 (alloc_type_instance): New function.
2877 (smash_type): New function.
2878 (make_pointer_type, make_reference_type, make_function_type)
2879 (smash_to_member_type, smash_to_method_type): Call smash_type.
2880 (make_qualified_type): New function.
2881 (make_type_with_address_space): Call make_qualified_type.
2882 (make_cv_type): Likewise.
2883 (finish_cv_type): Remove unnecessary function.
2884 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
2885 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
2886 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
2887 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
2888 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
2889 * hpread.c (hpread_read_struct_type): Likewise.
2890 * stabsread.c (read_struct_type): Likewise.
2892 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
2894 * configure.tgt: Add a catch all sh* target, for cases like
2895 sh[2,3,4]-elf and sh-hms.
2897 2002-05-14 Keith Seitz <keiths@redhat.com>
2899 * event-loop.c (create_file_handler): Don't do anything but
2900 update data when we are given a fd which we are already
2903 2002-05-14 Michal Ludvig <mludvig@suse.cz>
2905 * dwarf2cfi.c (context_cpy): Copy registers correctly.
2906 (update_context): Use __func__ in warnings.
2908 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
2910 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
2911 and tcp_close to net_open and net_close.
2912 (net_open): Accept "udp:" and "tcp:" specifications. Connect
2913 using UDP if requested. Don't try to disable Nagle on UDP
2915 * remote.c (remote_serial_open): New function. Warn about UDP.
2916 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
2918 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
2920 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
2922 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
2924 * configure.tgt: Remove sh-hms target.
2925 * MAINTAINERS: Don't list sh-hms as a separate target.
2927 2002-05-13 Jim Blandy <jimb@redhat.com>
2929 Add first preprocessor macro-expansion files.
2930 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
2931 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
2932 (splay_tree_h, macroexp_h, macrotab_h): New variable.
2933 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
2934 (COMMON_OBS): Add macrotab.o, macroexp.o.
2935 (macroexp.o, macrotab.o): New rules.
2937 2002-05-13 Andrew Cagney <ac131313@redhat.com>
2939 * config/m88k/tm-m88k.h: Update copyright.
2940 (m88k_target_write_pc): Declare
2941 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
2942 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
2943 (SHIFT_INST_REGS): Update definition.
2944 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
2945 using old definition of TARGET_WRITE_PC.
2946 * regcache.c (generic_target_write_pc): Delete code handling
2948 * gdbarch.sh (NNPC_REGNUM): Delete.
2949 * gdbarch.h, gdbarch.c: Regenerate.
2951 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
2953 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
2956 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
2958 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
2959 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
2960 (gen_address_of, gen_struct_ref, gen_repeat): Use type
2962 * c-typeprint.c (cp_type_print_method_args): Likewise.
2963 (c_type_print_args): Likewise.
2964 * d10v-tdep.c (d10v_push_arguments): Likewise.
2965 (d10v_extract_return_value): Likewise.
2966 * expprint.c (print_subexp): Likewise.
2967 * gdbtypes.c (lookup_primitive_typename): Likewise.
2968 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
2969 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
2970 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
2971 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
2972 (TYPE_VECTOR): Likewise.
2973 * hpread.c (hpread_read_struct_type)
2974 (fix_static_member_physnames, fixup_class_method_type)
2975 (hpread_type_lookup): Likewise.
2976 * mdebugread.c (parse_symbol, parse_type): Likewise.
2977 * p-lang.c (is_pascal_string_type): Likewise.
2978 * valops.c (hand_function_call): Likewise.
2979 * x86-64-tdep.c (classify_argument): Likewise.
2981 * hpread.c (hpread_read_function_type)
2982 (hpread_read_doc_function_type): Call replace_type.
2983 * dstread.c (create_new_type): Delete.
2984 (decode_dst_structure, process_dst_function): Call alloc_type.
2985 Use type access macros.
2987 2002-05-12 Mark Kettenis <kettenis@gnu.org>
2989 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
2990 the're not supported by the current architecture.
2991 (i387_fill_fxsave): Likewise.
2993 2002-05-12 Fred Fish <fnf@redhat.com>
2995 * symfile.c (default_symfile_offsets): Arrange for uninitialized
2996 sect_index_xxx members to index the first slot in section_offsets
2997 if all of the section_offsets are zero.
2999 2002-05-12 Mark Kettenis <kettenis@gnu.org>
3001 * configure.tgt (sparc-*openbsd): Remove entry accidentially
3002 checked in with last change.
3004 2002-05-12 Mark Kettenis <kettenis@gnu.org>
3006 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
3007 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
3010 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
3012 * Makefile.in: Update dependencies.
3014 2002-05-11 Andrew Cagney <ac131313@redhat.com>
3016 * language.c (local_hex_string_custom): Simplify. Do not depend
3017 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
3019 * memattr.c (mem_info_command): Replace calls to
3020 longest_local_hex_string and longest_local_hex_string_custom.
3021 * buildsym.c (make_blockvector): Ditto.
3022 * solib.c (info_sharedlibrary_command): Ditto.
3023 * tracepoint.c (tracepoints_info): Ditto.
3024 * symtab.c (print_msymbol_info): Ditto.
3026 * language.c (local_hex_string): Delete.
3027 (local_hex_string_custom): Delete.
3028 (longest_local_hex_string): Rename to local_hex_string.
3029 (longest_local_hex_string_custom): Rename to
3030 local_hex_string_custom.
3031 * language.h (local_hex_string): Change parameter type to LONGEST.
3032 (local_hex_string_custom): Ditto.
3033 (longest_local_hex_string): Delete declaration.
3034 (longest_local_hex_string_custom): Ditto.
3036 * solib.c: Update copyright.
3037 * memattr.c: Update copyright.
3039 2002-05-11 Andrew Cagney <ac131313@redhat.com>
3041 * arch-utils.h (legacy_register_to_value): Declare.
3042 (legacy_value_to_register): Declare.
3043 (legacy_convert_register_p): Declare.
3044 * arch-utils.c (legacy_register_to_value): New function.
3045 (legacy_value_to_register): New function.
3046 (legacy_convert_register_p): New function.
3048 * gdbarch.sh (REGISTER_TO_VALUE): Define.
3049 (VALUE_TO_REGISTER): Define.
3050 (CONVERT_REGISTER_P): Define.
3051 * gdbarch.h, gdbarch.c: Regenerate.
3053 * valops.c (value_assign): Use CONVERT_REGISTER_P and
3055 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
3058 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
3059 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3061 * Makefile.in: Update dependencies for valops.c.
3062 * valops.c: Include "gdb_assert.h".
3063 (typecmp): Skip THIS parameter to methods.
3064 (find_method_list): Remove static_memfuncp argument,
3065 update callers. Check for stub methods.
3066 (find_value_oload_method_list): Don't set *static_memfuncp.
3067 (find_overload_match): Don't check for stub methods. Assert
3068 that methods are not stubbed. Handle static methods.
3069 (value_find_oload_method_list): Remove static_memfuncp argument.
3070 * gdbtypes.c (check_stub_method): Do not add THIS pointer
3071 to the argument list for static stub methods.
3072 * value.h (value_find_oload_method_list): Update prototype.
3074 2002-05-11 Andrew Cagney <ac131313@redhat.com>
3076 * arch-utils.h (generic_register_size): Declare.
3077 (generic_register_raw_size, generic_register_virtual_size): Delete
3079 * arch-utils.c (generic_register_raw_size): Delete.
3080 (generic_register_size): New function.
3081 (generic_register_virtual_size): Delete.
3083 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
3084 default generic_register_size.
3085 * gdbarch.h, gdbarch.c: Re-generate.
3087 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
3088 register_virtual_size.
3089 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
3090 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3092 2002-05-11 Andrew Cagney <ac131313@redhat.com>
3094 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
3095 * gdbarch.h, gdbarch.c: Regenerate.
3096 * gnu-v3-abi.c: Update copyright.
3097 (vtable_address_point_offset): Update.
3098 (gnuv3_rtti_type): Update.
3099 (gnuv3_baseclass_offset): Update.
3100 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
3101 (init_fetch_link_map_offsets): Update.
3102 * remote.c (get_remote_state): Update.
3104 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
3106 * TODO: Remove value_headof/value_from_vtable_info comment.
3107 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
3108 * values.c (value_headof, value_from_vtable_info): Delete.
3109 * value.h (value_from_vtable_info): Delete prototype.
3111 2002-05-11 Andrew Cagney <ac131313@redhat.com>
3113 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
3114 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
3116 (gdb_assert_h): Define.
3117 (gdb_wait_h): Define.
3118 (gdb_regex_h): Define.
3120 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
3122 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
3123 * linespec.c (find_methods): Handle GCC 3.x template constructors.
3125 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3127 * nbsd-tdep.c: Fix comment.
3129 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3131 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
3132 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
3133 (nbsd-tdep.o): New dependency list.
3134 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
3136 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
3137 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
3138 * nbsd-tdep.c: New file.
3139 * nbsd-tdep.h: New file.
3140 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
3142 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
3143 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3144 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3145 * config/sh/nbsd.mt (TDEPFILES): Ditto.
3147 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3149 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
3150 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
3151 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
3152 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
3153 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
3154 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
3156 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3158 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
3159 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
3160 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
3161 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
3162 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
3163 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
3164 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
3166 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3168 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
3169 fetch_elfcore_registers to...
3170 * i386nbsd-tdep.c: ...here.
3171 (i386nbsd_use_struct_convention): Rename to...
3172 (i386nbsd_aout_use_struct_convention): ...this.
3173 (i386nbsd_supply_reg): New function.
3174 (i386nbsd_fill_reg): New function.
3175 (fetch_core_registers): Use i386nbsd_supply_reg.
3176 (fetch_elfcore_registers): Likewise.
3177 (_initialize_i386nbsd_tdep): New function.
3178 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
3179 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
3180 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
3181 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
3182 (i386nbsd_aout_use_struct_convention): ...this.
3184 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3186 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
3187 (store_inferior_registers): Use shnbsd_fill_reg.
3188 * shnbsd-tdep.c (sh_nbsd_supply_registers,
3189 sh_nbsd_supply_register): Collapse into...
3190 (shnbsd_supply_reg): ...this.
3191 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
3192 (shnbsd_fill_reg): ...this.
3193 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
3194 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
3195 (fetch_core_registers): Use shnbsd_supply_reg.
3196 (fetch_elfcore_registers): Use shnbsd_supply_reg.
3197 (sh_nbsd_core_fns): Rename to...
3198 (shnbsd_core_fns): ...this.
3199 (sh_nbsd_elfcore_fns): Rename to...
3200 (shnbsd_elfcore_fns): ...this.
3201 (sh_nbsd_init_abi): Rename to...
3202 (shnbsd_init_abi): ...this.
3203 (_initialize_sh_nbsd_tdep): Rename to...
3204 (_initialize_shnbsd_tdep): ...this.
3205 * shnbsd-tdep.h (sh_nbsd_supply_registers,
3206 sh_nbsd_supply_register, sh_nbsd_fill_registers,
3207 sh_nbsd_fill_register): Remove prototypes.
3208 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
3210 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3212 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
3213 (i387-nat.o): Delete dependency list.
3214 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
3215 (x86-64-linux-nat.o): Likewise.
3216 * i387-nat.c: Delete file, moving contents to...
3217 * i387-tdep.c: ...here.
3218 * i387-nat.h: Rename...
3219 * i387-tdep.h: ...to this.
3220 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
3221 * i386-linux-nat.c: Likewise.
3222 * i386bsd-nat.c: Likewise.
3223 * i386gnu-nat.c: Likewise.
3224 * i386nbsd-nat.c: Likewise.
3225 * i386v4-nat.c: Likewise.
3226 * x86-64-linux-nat.c: Likewise.
3227 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
3228 * config/i386/go32.mh (NATDEPFILES): Likewise.
3229 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
3230 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
3231 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
3232 * config/i386/linux.mh (NATDEPFILES): Likewise.
3233 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
3234 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
3235 * config/i386/obsd.mh (NATDEPFILES): Likewise.
3236 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3238 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3240 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
3241 (alphanbsd-nat.o): Remove dependency list.
3242 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
3243 * alphanbsd-nat.c: Delete. Contents moved to...
3244 * alphanbsd-tdep.c: ...here.
3245 (_initialize_alphanbsd_tdep): Register core functions.
3246 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
3248 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3250 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
3251 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
3252 (alphanbsd-nat.o): Likewise.
3253 (alphabsd-tdep.o): New dependency list.
3254 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
3255 (fill_gregset): Use alphabsd_fill_reg.
3256 (supply_fpregset): Use alphabsd_supply_fpreg.
3257 (fill_fpregset): Use alphabsd_fill_fpreg.
3258 (fetch_inferior_registers): Use struct reg and struct fpreg
3259 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
3260 and alphabsd_supply_fpreg.
3261 (store_inferior_registers): Use struct reg and struct fpreg
3262 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
3263 and alphabsd_fill_fpreg.
3264 * alphabsd-tdep.c: New file.
3265 * alphabsd-tdep.h: New file.
3266 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
3267 (fetch_elfcore_registers): Use alphabsd_supply_reg and
3268 alphabsd_supply_fpreg.
3269 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
3270 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3272 2002-05-11 Eric Christopher <echristo@redhat.com>
3274 * mips-tdep.c (mips_double_register_type): Fix thinko.
3275 (mips_single_register_type): Ditto.
3276 * MAINTAINERS: Add self.
3278 2002-05-11 Mark Kettenis <kettenis@gnu.org>
3280 * i387-nat.c (i387_supply_register, i387_fill_fsave,
3281 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
3282 right thing on architectures with different endianness and/or
3285 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
3287 From Christian Limpach <chris@Pin.LU>
3288 * configure.in: Change sed expression which comments out
3289 NATDEPFILES to also comment out continuation lines.
3290 * configure: Regenerate.
3292 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
3294 * sh-tdep.c: Clean up code erroneously reintroduced by previous
3297 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
3299 * sh-tdep.c: Include correct file.
3301 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
3303 New support for sh64-elf (sh5) target.
3305 * configure.tgt: For sh64-elf target, default to sh-elf.
3307 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
3308 (struct gdbarch_tdep): Add new fields for new registers and ABI
3311 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
3312 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
3313 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
3314 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
3315 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
3316 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
3317 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
3318 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
3319 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
3320 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
3321 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
3322 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
3323 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
3324 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
3325 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
3326 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
3327 sh64_get_gdb_regnum, sh64_media_reg_base_num,
3328 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
3329 sign_extend, sh64_nofp_frame_init_saved_regs,
3330 sh64_init_extra_frame_info, sh64_get_saved_register,
3331 sh64_extract_struct_value_address, sh64_pop_frame,
3332 sh64_push_arguments, sh64_extract_return_value,
3333 sh64_store_return_value, sh64_show_media_regs,
3334 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
3335 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
3336 sh_sh64_register_virtual_type,
3337 sh_sh64_register_convert_to_virtual,
3338 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
3339 sh64_register_read, sh64_pseudo_register_write,
3340 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
3341 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
3342 sh64_do_pseudo_register, sh_compact_do_registers_info,
3343 sh64_do_registers_info, sh_gdbarch_init): New functions.
3345 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
3347 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
3349 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
3351 * linespec.c (decode_line_1): Check for a double quote after
3352 a filename correctly.
3354 2002-05-10 Jim Blandy <jimb@redhat.com>
3356 Properly track the size of the current objfile's .debug_line section.
3357 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
3358 (DWARF_LINE_SIZE): New macro.
3359 (dwarf2_build_psymtabs_hard): Record the line section's size in
3360 the partial symbol table.
3361 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
3364 2002-05-10 Petr Sorfa <petrs@caldera.com>
3366 * ia64-tdep.c: Handle breakpoints on L instruction type
3367 in MLX instruction bundle by moving the breakpoint to
3368 the third slot (X instruction type) as L holds only data.
3370 2002-05-10 Kevin Buettner <kevinb@redhat.com>
3372 * dbxread.c (discarding_local_symbols_complaint): New complaint.
3373 (process_one_symbol): Complain about discarding local symbols
3374 due to a misplaced N_LBRAC entry.
3376 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
3378 From Daniel Berlin <dan@cgsoftware.com>
3379 * linespec.c (find_toplevel_char): '<' and '>' also increase and
3380 decrease the depth we are at, in the case of templates.
3382 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
3384 * mips-tdep.c (mips_float_register_type): New function.
3385 (mips_double_register_type): New function.
3386 (mips_print_register): Use them.
3387 (do_fp_register_row): Likewise.
3389 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
3391 * signals/signals.c (signals): Remove conditional compilation around
3392 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
3393 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
3395 2002-05-09 Michael Snyder <msnyder@redhat.com>
3397 * remote-rdp.c (remote_rdp_can_run): Remove.
3399 2002-05-09 Tom Tromey <tromey@redhat.com>
3401 * jv-valprint.c (java_val_print): Handle `char' as a special case
3404 2002-05-09 Michael Snyder <msnyder@redhat.com>
3406 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
3407 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
3408 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
3409 str r(0123),[sp,#nn].
3410 (arm_skip_prologue): Ditto. Also make disassembly
3411 order-independent by placing it in a loop.
3413 2002-05-06 Michael Snyder <msnyder@redhat.com>
3415 * stabsread.c (read_type): Add recognition for new attribute:
3416 "@V;" means that an array type is actually a vector.
3417 This is analogous to the vector flag that's been added to dwarf2.
3419 2002-05-09 Mark Kettenis <kettenis@gnu.org>
3421 * i386-tdep.h (i386_abi): New enum.
3422 (struct gdbarch_tdep): Replace os_ident member with abi.
3423 (i386_gdbarch_register_os_abi): New prototype.
3424 * i386-tdep.c (i386_abi_names): New array.
3425 (process_note_abi_tag_sections): Removed.
3426 (process_note_sections): New function.
3427 (i386_elf_abi_from_note, i386_elf_abi): New functions.
3428 (struct i386_abi_handler): New struct.
3429 (i386_abi_handler_list): New variable.
3430 (i386_gdbarch_register_os_abi): New function.
3431 (i386_gdbarch_init): Adapt for the changes given above.
3433 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
3435 * gregset.h: Say "GNU/Linux".
3437 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
3439 * gdbtypes.c : Add new builtin type for 64 bit vectors.
3440 (build_gdbtypes): Build builtin_type_v2_float.
3441 (_initialize_gdbtypes): Register new builtin type.
3443 2002-05-08 Andrew Cagney <ac131313@redhat.com>
3445 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
3446 (clear_gdbarch_swap): New function.
3447 (initialize_non_multiarch): Call.
3448 (gdbarch_update_p): Before calling init(), swap out and clear the
3449 existing architecture.
3450 * gdbarch.c: Regenerate.
3452 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
3454 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
3457 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
3459 * sh-nbsd-nat.c: Rename to...
3460 * shnbsd-nat.c: ...this.
3461 * sh-nbsd-tdep.c: Rename to...
3462 * shnbsd-tdep.c: ...this.
3463 * sh-nbsd-tdep.h: Rename to...
3464 * shnbsd-tdep.h: ...this.
3465 * config/sh/nbsd.mh: Use shnbsd-nat.o.
3466 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
3468 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
3470 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
3471 concatenation for command help messages.
3473 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
3475 * NEWS: Note new sh*-*-netbsdelf* configuration.
3476 * configure.host: Set gdb_host_cpu to sh for all sh*.
3477 (sh*-*-netbsdelf*): New host.
3478 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
3479 (sh*-*-netbsdelf*): New target.
3480 * sh-nbsd-nat.c: New file.
3481 * sh-nbsd-tdep.c: New file.
3482 * sh-nbsd-tdep.h: New file.
3483 * config/sh/nbsd.mh: New file.
3484 * config/sh/nbsd.mt: New file.
3485 * config/sh/nm-nbsd.h: New file.
3486 * config/sh/tm-nbsd.h: New file.
3488 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
3490 * sh-tdep.c (sh_osabi_names): Declare.
3491 (process_note_abi_tag_sections): New function.
3492 (get_elfosabi): Ditto.
3493 (sh_gdbarch_register_os_abi): Ditto.
3494 (sh_dump_tdep): Ditto.
3495 _initialize_sh_tdep): Use gdbarch_register to register
3496 sh_gdbarch_init and sh_dump_tdep.
3497 * config/sh/tm-sh.h (sh_osabi): Declare.
3498 (gdbarch_tdep): Add sh_osabi and osabi_name members.
3500 2002-05-07 Andrew Cagney <ac131313@redhat.com>
3502 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
3503 (thumb_scan_prologue): Ditto.
3504 (arm_find_callers_reg): Ditto.
3505 (arm_frame_chain): Ditto.
3506 (arm_init_extra_frame_info): Ditto.
3507 (arm_frame_saved_pc): Ditto.
3508 (arm_pop_frame): Ditto.
3509 (arm_push_return_address): New function.
3510 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
3511 call_dummy_location, call_dummy_breakpoint_offset_p,
3512 call_dummy_breakpoint_offset, call_dummy_p,
3513 call_dummy_stack_adjust_p, call_dummy_words,
3514 sizeof_call_dummy_words, call_dummy_start_offset,
3515 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
3516 call_dummy_address, push_return_address and push_dummy_frame for
3517 generic dummy frames.
3519 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
3521 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
3522 size computation for alloca.
3523 (sh_fp_frame_init_saved_regs): Likewise.
3525 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
3527 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
3528 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
3529 * arm-tdep.c (arm_store_return_value): Use them.
3530 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
3531 * remote-rdp.c (remote_rdp_fetch_register): Use
3532 ARM_MAX_REGISTER_RAW_SIZE.
3533 (remote_rdp_store_register): Likewise.
3535 2002-05-07 Michal Ludvig <mludvig@suse.cz>
3537 * dwarf2cfi.c: Code cleanup, removed unused variables,
3538 added default labels to switch {} statements.
3539 * x86-64-tdep.c: Ditto.
3540 * x86-64-linux-nat.c: Ditto.
3542 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
3544 * solib.h: Protect against multiple inclusion.
3546 2002-05-06 Jim Blandy <jimb@redhat.com>
3548 Add first preprocessor macro-expansion files.
3549 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
3550 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
3551 (splay_tree_h, macroexp_h, macrotab_h): New variable.
3552 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
3553 (COMMON_OBS): Add macrotab.o, macroexp.o.
3554 (macroexp.o, macrotab.o): New rules.
3556 Separate the job of reading the line number info statement program
3557 header (...expialidocious) out into its own function.
3558 * dwarf2read.c (struct line_head, struct filenames, struct
3559 directories): Replace with...
3560 (struct line_header): New structure, containing the full
3561 contents of the statement program header, including the
3562 include directory and file name tables.
3563 (read_file_scope): If we have line number info, instead of just
3564 calling dwarf_decode_lines to do all the work, call
3565 dwarf_decode_line_header first to get a `struct line_header'
3566 containing the data in the statement program header, and then
3567 pass that to dwarf_decode_lines, which will pick up where that
3568 left off. Be sure to clean up the `struct line_header' object.
3569 (dwarf_decode_line_header, free_line_header, add_include_dir,
3570 add_file_name): New functions.
3571 (dwarf_decode_lines): Move all the code to read the statement
3572 program header into dwarf_decode_line_header. Take the line
3573 header it built as the first argument, instead of the offset to
3574 the compilation unit's line number info. Use the new `struct
3575 line_header' type instead of the old structures. No need to do
3576 cleanups here now, since we don't allocate anything.
3577 (dwarf2_statement_list_fits_in_line_number_section,
3578 dwarf2_line_header_too_long): New complaints.
3580 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
3582 * gdbtypes.c (init_vector_type): New function.
3583 (build_builtin_type_vec128): Simplify the representation of SIMD
3585 (build_gdbtypes): Initialize new builtin vector types.
3586 (_initialize_gdbtypes): Register new vector types with gdbarch.
3587 (builtin_type_v4_float, builtin_type_v4_int32,
3588 builtin_type_v8_int16, builtin_type_v16_int8,
3589 builtin_type_v2_int32, builtin_type_v4_int16,
3590 builtin_type_v8_int8): New (renamed) SIMD types.
3592 2002-05-06 Mark Kettenis <kettenis@gnu.org>
3594 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
3595 (i387_fill_fxsave): Likewise.
3597 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
3599 * alpha-tdep.c (alpha_extract_return_value): Don't use
3600 non-constant array size in prototype.
3602 2002-05-04 Andrew Cagney <ac131313@redhat.com>
3604 From Brian Taylor <briant at model dot com>:
3605 * ui-out.c (ui_out_field_core_addr): Use the function
3606 longest_local_hex_string_custom'to format addresses > 32 bits
3609 * ui-out.c (ui_out_field_core_addr): Update comment.
3611 2002-05-04 Andrew Cagney <ac131313@redhat.com>
3613 * stack.c (select_and_print_frame): Make static. Delete the
3615 (func_command): Update call.
3616 (select_frame_command): Delete code computing the frame level.
3617 * frame.h (select_and_print_frame): Delete declaration.
3619 2002-05-04 Andrew Cagney <ac131313@redhat.com>
3621 * sparc-tdep.c (sparc_get_saved_register): Comment why
3622 get_prev_frame call is safe.
3624 2002-05-04 Andrew Cagney <ac131313@redhat.com>
3626 * frame.h (select_frame): Delete level parameter.
3627 * stack.c (select_frame): Update. Use frame_relative_level to
3628 obtain the frame's level.
3629 (select_and_print_frame): Update call.
3630 (select_frame_command): Ditto.
3631 (up_silently_base): Ditto.
3632 (down_silently_base): Ditto.
3633 * ocd.c (ocd_start_remote): Ditto.
3634 * remote-rdp.c (remote_rdp_open): Ditto.
3635 * remote-mips.c (mips_initialize): Ditto.
3636 (common_open): Ditto.
3637 * remote-e7000.c (e7000_start_remote): Ditto.
3638 * m3-nat.c (select_thread): Ditto.
3639 * hppa-tdep.c (child_get_current_exception_event): Ditto.
3640 (child_get_current_exception_event): Ditto.
3641 * varobj.c (varobj_create): Ditto.
3642 (varobj_update): Ditto.
3643 (c_value_of_root): Ditto.
3644 * tracepoint.c (finish_tfind_command): Ditto.
3645 * corelow.c (core_open): Ditto.
3646 * arch-utils.c (generic_prepare_to_proceed): Ditto.
3647 * thread.c (info_threads_command): Ditto.
3648 (switch_to_thread): Ditto.
3649 * infrun.c (normal_stop): Ditto.
3650 (restore_selected_frame): Ditto.
3651 (restore_inferior_status): Ditto.
3652 * breakpoint.c (insert_breakpoints): Ditto.
3653 (watchpoint_check): Ditto.
3654 (bpstat_stop_status): Ditto.
3655 (do_enable_breakpoint): Ditto.
3656 * blockframe.c (flush_cached_frames): Ditto.
3657 (reinit_frame_cache): Ditto.
3659 2002-05-04 Andrew Cagney <ac131313@redhat.com>
3661 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
3664 2002-05-04 Jim Blandy <jimb@redhat.com>
3666 * gdbtypes.c (replace_type): Doc fix.
3668 2002-05-04 Andrew Cagney <ac131313@redhat.com>
3670 * valprint.c (strcat_longest): Delete commented out function.
3673 2002-05-04 Andrew Cagney <ac131313@redhat.com>
3675 * MAINTAINERS: Mark a29k as deleted.
3676 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
3677 Move new configurations to the top.
3678 * configure.tgt: Remove a29k.
3679 * config/a29k/tm-vx29k.h: Delete.
3680 * config/a29k/vx29k.mt: Delete.
3681 * config/a29k/tm-a29k.h: Delete.
3682 * config/a29k/a29k-udi.mt: Delete.
3683 * config/a29k/a29k.mt: Delete.
3684 * a29k-tdep.c: Delete.
3685 * remote-udi.c: Delete.
3686 * remote-mm.c: Delete.
3687 * remote-eb.c: Delete.
3688 * remote-adapt.c: Delete.
3689 * Makefile.in: Remove obsolete code.
3690 * gdbserver/Makefile.in: Ditto.
3691 * config/s390/s390x.mt: Ditto.
3692 * config/s390/s390.mt: Ditto.
3693 * config/sparc/sparclynx.mh: Ditto.
3694 * config/sparc/linux.mh: Ditto.
3695 * config/pa/hppaosf.mh: Ditto.
3696 * config/pa/hppabsd.mh: Ditto.
3697 * config/ns32k/nbsd.mt: Ditto.
3698 * config/mips/vr5000.mt: Ditto.
3699 * config/m68k/sun3os4.mh: Ditto.
3700 * config/m68k/nbsd.mt: Ditto.
3701 * config/m68k/m68klynx.mh: Ditto.
3702 * config/m32r/m32r.mt: Ditto.
3703 * config/i386/x86-64linux.mt: Ditto.
3704 * config/i386/nbsdelf.mt: Ditto.
3705 * config/i386/nbsd.mt: Ditto.
3706 * config/i386/i386lynx.mh: Ditto.
3708 2002-05-04 Andrew Cagney <ac131313@redhat.com>
3710 * target.c (debug_print_register): New function. Handle oversize
3712 (debug_to_fetch_registers): Call.
3713 (debug_to_store_registers): Call.
3715 2002-05-03 Jim Blandy <jimb@redhat.com>
3717 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
3718 (read_type): Doc fix.
3719 * gdbtypes.c (replace_type): Doc fix.
3721 * stabsread.c (multiply_defined_struct): New complaint.
3722 (read_struct_type): If the type we were passed isn't empty, or
3723 incomplete, don't read the new struct type into it; complain,
3724 and return the original type unchanged. Take a new `type_code'
3725 argument, which is the type code for the new type.
3726 (read_type): Rather than storing the type's type code here, pass
3727 it as an argument to read_struct_type, and let that take care of
3728 storing it. That way, we don't overwrite the original type code,
3729 so read_struct_type can use it to decide whether we're overwriting
3730 something we shouldn't.
3731 (complain_about_struct_wipeout): New function.
3733 2002-05-03 Andrew Cagney <ac131313@redhat.com>
3735 * gdbarch.sh: Assert that gdbarch is non-NULL.
3736 * gdbarch.c: Regenerate.
3738 2002-05-03 Jason Merrill <jason@redhat.com>
3740 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
3743 2002-05-03 Michal Ludvig <mludvig@suse.cz>
3745 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
3746 (x86_64_dwarf2gdb_regno_map_length),
3747 (x86_64_dwarf2_reg_to_regnum): Added.
3748 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
3749 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
3750 (_initialize_x86_64_tdep): Synced with the change above.
3751 (x86_64_skip_prologue): Reformulated message.
3753 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
3755 * f-exp.y: Also use new prev_lexptr variable
3756 to improve error reporting. Based on Michael Snyder
3757 2002-04-24 dated patch to c-exp.y.
3758 * jv-exp.y: Likewise.
3759 * m2-exp.y: Likewise.
3761 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
3763 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
3764 we are dealing with vectors.
3766 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
3768 * config/m68k/tm-nbsd.h: Obvious fix,
3769 correct machine name.
3771 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
3773 * p-typeprint.c (pascal_type_print_base): Add support
3774 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
3776 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
3778 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
3779 for fondamental pascal 'char' type.
3781 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
3783 * p-lang.h (is_pascal_string_type): Declaration changed,
3784 new sixth argument of type char ** added.
3785 * p-lang.c (is_pascal_string_type): Implementation
3786 changed. Args length_pos, length_size, string_pos, char_size
3787 can now be NULL. New argument arrayname set to the field
3788 name of the char array. Return value set to char array
3789 field index plus one.
3790 * p-valprint.c (pascal_val_print): Adapt to new declaration of
3791 is_pascal_string_type function.
3793 2002-05-02 Andrew Cagney <cagney@redhat.com>
3795 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
3796 <cagney@redhat.com> change.
3797 * gdbarch.c: Regenerate.
3799 2002-05-02 Andrew Cagney <cagney@redhat.com>
3801 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
3802 before probing for a new one. Detect errorenous gdbarch_init
3804 * gdbarch.c: Regenerate.
3806 2002-05-01 Andrew Cagney <cagney@redhat.com>
3808 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
3809 * config/mcore/tm-mcore.h: Ditto. Update copyright.
3810 * config/v850/tm-v850.h: Ditto. Update copyright.
3812 2002-04-30 Andrew Cagney <ac131313@redhat.com>
3814 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
3817 2002-04-30 Michael Snyder <msnyder@redhat.com>
3819 * arm-tdep.c: Whitespace clean-ups.
3820 (arm_skip_prologue): Fix thinko; two lines
3821 should have been removed as part of 4/24 change.
3823 2002-04-30 Kevin Buettner <kevinb@redhat.com>
3825 * rs6000-tdep.c: Added comment describing how fpscr register
3826 numbers were chosen.
3828 2002-04-30 Michael Snyder <msnyder@redhat.com>
3830 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
3832 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
3834 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
3835 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
3836 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
3838 2002-04-29 Kevin Buettner <kevinb@redhat.com>
3840 From Louis Hamilton <hamilton@redhat.com>:
3841 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
3842 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
3843 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
3844 not bfd-private xcoff data, to determine wordsize.
3845 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
3847 2002-04-29 Andrew Cagney <ac131313@redhat.com>
3849 GDB 5.2 released from 5.2 branch.
3851 2002-04-29 Michal Ludvig <mludvig@suse.cz>
3853 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
3854 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
3855 (x86_64_register_info_table): Added comments with register numbers.
3857 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
3859 * rs6000-tdep.c (rs6000_extract_return_value,
3860 rs6000_store_return_value): Handle returning vectors.
3861 (rs6000_gdbarch_init): Use
3862 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
3863 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
3865 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
3867 (ppc_sysv_abi_push_arguments): Handle vector parameters.
3868 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
3870 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
3872 * hpread.c (hpread_psymtab_to_symtab_1,
3873 hpread_psymtab_to_symtab): Replace fprintf (stderr,...)
3874 with fprintf_unfiltered (gdb_stderr,...).
3876 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
3878 * remote-array.c (printf_monitor, write_monitor,
3879 array_insert_breakpoint, array_remove_breakpoint ):
3880 Replace fprintf (stderr,...
3881 with fprintf_unfiltered (gdb_stderr,....
3882 * remote-es.c: Likewise.
3883 * remote-os9k.c: Likewise.
3884 * remote-st.c: Likewise.
3886 2002-04-28 Andreas Schwab <schwab@suse.de>
3888 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
3889 linux-proc.o and gcore.o.
3891 2002-04-26 Michal Ludvig <mludvig@suse.cz>
3893 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
3894 code without frame pointers.
3896 2002-04-26 Andrew Cagney <ac131313@redhat.com>
3898 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
3901 2002-04-26 Ben Elliston <bje@redhat.com>
3903 * target.c (do_xfer_memory): Correct reference to the new option
3904 "trust-readonly-sections".
3906 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
3908 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
3909 * gdbtypes.c (recursive_dump_type): Output the vector flag.
3910 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
3912 (read_array_type): Record the fact that this array type is really a
3913 vector (i.e. are passed in by value).
3915 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
3917 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
3918 * alpha-tdep.c (alpha_sigcontext_addr): New function.
3919 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
3920 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
3921 * alpha-linux-tdep.c: Include frame.h.
3922 (alpha_linux_sigcontext_addr): New function.
3923 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
3924 alpha_linux_sigcontext_addr.
3925 * alpha-osf1-tdep.c: Include gdbcore.h.
3926 (alpha_osf1_sigcontext_addr): New function.
3927 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
3928 alpha_osf1_sigcontext_addr.
3929 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
3930 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
3932 2002-04-26 Andrew Cagney <ac131313@redhat.com>
3934 * stack.c (selected_frame_level):
3935 (select_frame): Do not set selected_frame_level.
3936 * frame.h (selected_frame_level): Delete declaration.
3938 2002-04-26 Andrew Cagney <ac131313@redhat.com>
3940 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
3941 convert_from_func_ptr-addr when AIX / PowerOpen.
3943 2002-04-25 Andrew Cagney <ac131313@redhat.com>
3945 * valops.c (hand_function_call): Call
3946 generic_save_call_dummy_addr.
3947 * frame.h (generic_save_call_dummy_addr): Declare.
3948 * blockframe.c (struct dummy_frame): Add fields call_lo and
3950 (generic_find_dummy_frame): Check for PC in range call_lo to
3951 call_hi instead of entry_point_address.
3952 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
3953 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
3954 (generic_save_call_dummy_addr): New function.
3956 2002-04-24 David S. Miller <davem@redhat.com>
3958 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
3959 sparc_skip_prologue.
3960 (sparc_skip_prologue): Kill frameless_p arg, and use line number
3961 information to find prologue when possible.
3962 (sparc_prologue_frameless_p): Call examine_prologue directly.
3963 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
3964 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
3966 (SKIP_PROLOGUE): Likewise.
3968 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
3970 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
3971 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
3972 indicate that the condition it was testing is always true.
3973 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
3974 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
3975 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
3977 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
3979 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
3980 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
3981 tdep->jb_pc and tdep->jb_elt_size.
3982 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
3983 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
3984 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
3985 * alpha-nat.c (get_longjmp_target): Remove.
3986 (JB_ELEMENT_SIZE): Ditto.
3988 * alpha-tdep.c (alpha_get_longjmp_target): New function.
3989 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
3990 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
3991 to alpha_get_longjmp_target.
3992 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
3993 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
3994 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
3996 2002-04-25 Andrew Cagney <ac131313@redhat.com>
3998 * README: Update to GDB 5.2.
4000 2002-04-25 Andrew Cagney <ac131313@redhat.com>
4002 * gdbarch.sh (LC_ALL): Set to `c'.
4004 2002-04-25 Theodore A. Roth <troth@verinet.com>
4006 * avr-tdep.c: Ran through gdb_indent.sh.
4008 2002-04-25 Theodore A. Roth <troth@verinet.com>
4010 * MAINTAINERS: Add myself as AVR maintainer.
4011 * NEWS: Note new target avr.
4013 2002-04-25 Theodore A. Roth <troth@verinet.com>
4015 * Makefile.in: Add support for AVR target.
4016 * configure.tgt: Add support for AVR target.
4017 * avr-tdep.c: New file
4018 * config/avr/avr.mt: New file.
4020 2002-04-25 Theodore A. Roth <troth@verinet.com>
4022 * MAINTAINERS: Add myself to write-after-approval.
4024 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
4026 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
4027 with fprintf_unfiltered (gdb_stderr,....
4029 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
4032 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
4034 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
4036 * p-exp.y: Also use new prev_lexptr variable
4037 to improve error reporting. Based on Michael Snyder
4038 2002-04-24 dated patch to c-exp.y.
4040 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
4042 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
4043 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
4044 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
4046 * config/alpha/tm-alpha.h: Remove forward decls of struct type
4048 (FUNCTION_START_OFFSET): Remove.
4049 (BREAKPOINT): Ditto.
4051 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
4053 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
4056 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4058 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
4059 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
4060 alpha_linux_pc_in_sigtramp.
4061 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
4062 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
4063 alpha_osf1_pc_in_sigtramp.
4064 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
4065 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
4066 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4067 alphafbsd_pc_in_sigtramp.
4068 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
4069 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4070 alphanbsd_pc_in_sigtramp.
4071 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
4072 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
4074 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4076 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4078 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4080 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
4082 (alphanbsd-nat.o): New dependency list.
4083 (alphanbsd-tdep.o): Ditto.
4084 * NEWS: Note new native NetBSD/alpha configuration.
4085 * alphanbsd-nat.c: New file.
4086 * alphanbsd-tdep.c: Ditto.
4087 * configure.host (alpha*-*-netbsd*): New host.
4088 * configure.tgt (alpha*-*-netbsd*): New target.
4089 * config/alpha/nbsd.mh: New file.
4090 * config/alpha/nbsd.mt: Ditto.
4091 * config/alpha/nm-nbsd.h: Ditto.
4092 * config/alpha/tm-nbsd.h: Ditto.
4094 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4096 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
4097 (alpha-osf1-tdep.o): New dependency list.
4098 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
4099 and skip_sigtramp_frame members.
4100 * alpha-linux-tdep.c: Include gdbcore.h.
4101 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
4102 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
4103 * alpha-osf1-tdep.c: New file.
4104 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
4106 (alpha_frame_past_sigtramp_frame): New function.
4107 (alpha_dynamic_sigtramp_offset): Ditto.
4108 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
4109 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
4110 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
4111 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
4112 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
4113 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
4114 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
4115 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
4116 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
4117 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
4118 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
4119 to find_solib_trampoline_target.
4120 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
4121 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
4122 (SKIP_TRAMPOLINE_CODE): Remove.
4123 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4124 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4125 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
4126 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
4127 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
4128 (PROC_SIGTRAMP_MAGIC): Ditto.
4129 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4130 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4131 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4132 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
4133 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
4135 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4137 * NEWS: Note that Alpha targets are now multi-arch.
4139 2002-04-24 Michael Snyder <msnyder@redhat.com>
4141 * parser-defs.h (prev_lexptr): New external variable.
4142 * parse.c (parse_exp_1): Set prev_lexptr to null before
4143 calling the language-specific parser.
4144 * c-exp.y (yylex): Set prev_lexptr to start of current token.
4145 (yyerror): Use prev_lexptr in error reporting.
4147 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
4149 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
4150 * gregset.h: If FILL_FPXREGSET is defined, provide
4151 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
4152 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
4153 is defined, call fill_fpxregset.
4155 2002-04-24 Roland McGrath <roland@frob.com>
4157 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
4158 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
4159 (supply_gregset, supply_fpregset): New functions.
4161 * gnu-nat.c (gnu_find_memory_regions): New function.
4162 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
4163 (gnu_xfer_memory): Add a cast.
4165 2002-04-24 Michael Snyder <msnyder@redhat.com>
4167 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
4168 loop. Add handling for "str lr, [sp, #-4]!" and for saves
4169 of argument regs ("str r(0123), [r11, #-nn"]).
4170 (arm_skip_prologue): Better handling for frameless functions.
4171 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
4172 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
4174 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
4176 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
4177 NUM_PSEUDO_REGS can be used.
4179 2002-04-24 Andrew Cagney <ac131313@redhat.com>
4181 * arch-utils.h: Update copyright.
4183 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
4184 * gdbarch.h, gdbarch.c: Re-generate.
4186 * inferior.h (IN_SIGTRAMP): Delete definition.
4187 * arch-utils.c (legacy_pc_in_sigtramp): New function.
4188 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
4190 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
4191 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
4192 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
4193 (find_proc_framesize): Ditto.
4194 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
4195 (alpha_init_extra_frame_info): Ditto.
4196 * infrun.c (handle_inferior_event): Ditto.
4197 (handle_inferior_event): Ditto.
4198 (check_sigtramp2): Ditto.
4199 * blockframe.c (create_new_frame): Ditto.
4200 (get_prev_frame): Ditto.
4201 * ppc-linux-tdep.c: Update comments.
4202 * i386-linux-tdep.c: Update comments.
4203 * breakpoint.c (bpstat_what): Update comment.
4205 2002-04-24 Michal Ludvig <mludvig@suse.cz>
4207 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
4208 (regsets_store_inferior_registers): Removed cast to int from
4210 * gdbserver/regcache.h: Added declaration of struct inferior_info.
4212 2002-04-24 David S. Miller <davem@redhat.com>
4214 * i960-tdep.c (register_in_window_p): New function.
4215 (i960_find_saved_register): Use it instead of
4216 REGISTER_IN_WINDOW_P.
4217 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
4219 * symtab.h (find_stab_function_addr): Kill extern.
4220 * minsyms.c (find_stab_function_addr): Remove from here...
4221 * dbxread.c: ... to here, and mark it static.
4223 2002-04-20 David S. Miller <davem@redhat.com>
4225 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
4226 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
4228 2002-04-21 David S. Miller <davem@redhat.com>
4230 * remote-vxsparc.c (vx_read_register): Fix typo, we want
4231 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
4232 (vx_write_register): Likewise.
4234 2002-04-23 J. Brobecker <brobecker@gnat.com>
4236 * source.c (is_regular_file): New function.
4237 (openp): Check wether file to open is a regular file
4238 to avoid opening directories.
4240 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4242 * findvar.c (extract_signed_integer): Cast printf argument
4243 to suppress format warning.
4244 (extract_unsigned_integer): Likewise.
4245 * infcmd.c (registers_info): Likewise.
4246 * top.c (get_prompt_1): Likewise.
4247 * valops.c (value_assign): Likewise.
4248 * valprint.c (print_decimal): Likewise.
4250 2002-04-22 H.J. Lu (hjl@gnu.org)
4252 * c-exp.y (typebase): Support
4254 [long|long long|short] [signed|unsigned] [int|]
4258 signed [long|long long|short] int
4260 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4262 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
4264 * vax-tdep.h: New file.
4265 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
4266 Make several routines static.
4267 (vax_get_saved_register): New function.
4268 (vax_gdbarch_init): New function.
4269 (_initialize_vax_tdep): Register vax_gdbarch_init.
4270 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
4271 Remove macros now under the control of gdbarch.
4273 2002-04-22 Michael Snyder <msnyder@redhat.com>
4275 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
4276 Some whitespace and coding standards tweaks.
4278 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4280 * vax-tdep.c: Include regcache.h.
4281 (vax_call_dummy_words): New.
4282 (sizeof_vax_call_dummy_words): New.
4283 (vax_fix_call_dummy): New function.
4284 (vax_saved_pc_after_call): Ditto.
4285 * config/vax/tm-vax.h: Don't include regcache.h.
4286 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
4287 (CALL_DUMMY): Remove.
4288 (CALL_DUMMY_WORDS): Define.
4289 (SIZEOF_CALL_DUMMY_WORDS): Define.
4290 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
4292 2002-04-18 Michael Snyder <msnyder@redhat.com>
4294 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
4296 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4298 * vax-tdep.c (vax_frame_chain): New function.
4299 (vax_push_dummy_frame): Ditto.
4300 (vax_pop_frame): Ditto.
4301 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
4302 (FRAMELESS_FUNCTION_INVOCATION): Use
4303 generic_frameless_function_invocation_not.
4304 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
4305 (POP_FRAME): Use vax_pop_frame.
4307 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4309 * vax-tdep.c (vax_store_struct_return): New function.
4310 (vax_extract_return_value): Ditto.
4311 (vax_store_return_value): Ditto.
4312 (vax_extract_struct_value_address): Ditto.
4313 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
4314 vax_store_struct_return.
4315 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
4316 (STORE_RETURN_VALUE): Use vax_store_return_value.
4317 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
4319 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4321 * vax-tdep.c (vax_frame_saved_pc): New function.
4322 (vax_frame_args_address_correct): Ditto.
4323 (vax_frame_args_address): Ditto.
4324 (vax_frame_locals_address): Ditto.
4325 (vax_frame_num_args): Move code to be in proximity to
4326 other frame-related functions.
4327 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
4328 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
4329 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
4330 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
4331 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
4333 2002-04-22 H.J. Lu (hjl@gnu.org)
4335 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
4338 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4340 * vax-tdep.c (vax_frame_init_saved_regs): New function.
4341 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
4342 (FRAME_INIT_SAVED_REGS): New macro.
4344 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4346 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
4348 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4350 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
4352 (fetch_osf_core_registers): Likewise.
4353 (supply_gregset): Likewise.
4355 2002-04-22 J. Brobecker <brobecker@gnat.com>
4357 * symfile.h (get_section_index): Define.
4358 * symfile.c (get_section_index): New function.
4359 * mdebugread.c (SC_IS_SBSS): New macro.
4360 (SC_IS_BSS): Return true for the scBss storage class only, as
4361 the scSBss storage class refers to the .sbss section.
4362 (parse_partial_symbols): Discard the symbols which associated
4363 section does not exist.
4364 Make sure to use the .sbss section index for symbols which
4365 storage class is scBss, rather than using the .bss section index.
4367 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4369 * vax-tdep.c: Update copyright years.
4370 (vax_register_name): New function.
4371 (vax_register_byte): Ditto.
4372 (vax_register_raw_size): Ditto.
4373 (vax_register_virtual_size): Ditto.
4374 (vax_register_virtual_type): Ditto.
4375 * config/vax/tm-vax.h: Update copyright years.
4376 (REGISTER_NAMES): Remove.
4377 (REGISTER_NAME): Define.
4378 (REGISTER_BYTE): Use vax_register_byte.
4379 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
4380 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
4381 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
4383 2002-04-21 Andrew Cagney <ac131313@redhat.com>
4385 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
4387 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
4389 2002-04-21 David S. Miller <davem@redhat.com>
4391 * arch-utils.c (generic_prologue_frameless_p): Kill
4392 SKIP_PROLOGUE_FRAMELESS_P code.
4393 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
4395 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
4396 * arc-tdep.c (arc_prologue_frameless_p): Implement.
4397 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
4399 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
4400 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
4401 (sparc_gdbarch_init): Pass it to
4402 set_gdbarch_prologue_frameless_p.
4404 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4406 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
4407 (alphabsd-nat.o): New dependency list.
4409 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4411 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
4413 (alpha-linux-tdep.o): New dependency list.
4414 (alphafbsd-tdep.o): Likewise.
4416 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4418 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
4420 * alpha-tdep.c: ...from here.
4421 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
4423 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4425 * config/alpha/tm-alpha.h: Move alpha_software_single_step
4426 prototype from here...
4427 * alpha-tdep.h: ...to here.
4429 2002-04-21 Andrew Cagney <ac131313@redhat.com>
4431 * frame.h (selected_frame_level): Document as deprecated.
4432 (frame_relative_level): Declare.
4433 * stack.c (frame_relative_level): New function.
4434 (selected_frame_level): Document as deprecated.
4435 (select_frame): Do not set the selected_frame_level.
4437 * stack.c (frame_info, record_selected_frame): Update.
4438 (frame_command, current_frame_command): Update.
4439 (up_silently_base, up_command, down_silently_base): Update.
4440 (down_command): Update.
4441 * inflow.c (kill_command): Update.
4442 * tracepoint.c (finish_tfind_command): Update.
4443 * corelow.c (core_open): Update.
4444 * thread.c (info_threads_command): Update.
4445 (do_captured_thread_select): Update.
4446 * infcmd.c (finish_command): Update.
4447 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
4449 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4451 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
4453 2002-04-21 Andrew Cagney <ac131313@redhat.com>
4455 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
4458 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4460 * alphafbsd-tdep.c: Update copyright years. Include
4462 (alphafbsd_use_struct_convention): Make static.
4463 (alphafbsd_init_abi): New function.
4464 (_initialize_alphafbsd_tdep): New function.
4465 * config/alpha/tm-fbsd.h: Update copyright years.
4466 (USE_STRUCT_CONVENTION): Remove.
4468 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4470 * alpha-tdep.c (alpha_abi_handler): New structure to describe
4471 an Alpha ABI variant.
4472 (alpha_abi_handler_list): Declare.
4473 (alpha_gdbarch_register_os_abi): New function.
4474 (alpha_gdbarch_init): Give registered ABI variant handlers a
4475 chance to tweak the gdbarch once we have set up defaults.
4476 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
4478 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4480 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
4481 to standard_coerce_float_to_double.
4482 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
4484 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4486 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
4487 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
4488 from gdbarch_tdep rather than a constant.
4489 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
4490 the default text address for all Alpha Unix ABIs.
4491 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
4492 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
4494 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4496 * alpha-tdep.h: New file. Includes several Alpha target constants
4498 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
4499 let gdbarch deal with.
4500 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
4501 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
4503 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
4504 Alpha target register names.
4505 * alphabsd-nat.c: Likewise.
4506 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
4507 Alpha target register names. Make serveral routines static.
4508 (alpha_get_saved_register): New function.
4509 (alpha_abi_names): New.
4510 (process_note_abi_tag_sections): New function.
4511 (get_elfosabi): New function.
4512 (alpha_gdbarch_init): New function.
4513 (alpha_dump_tdep): New function.
4514 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
4516 2002-04-21 Andrew Cagney <ac131313@redhat.com>
4518 * frame.c (find_saved_register): Delete #ifdef
4519 HAVE_REGISTER_WINDOWS code.
4520 * config/sparc/tm-sparc.h: Update comments.
4521 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
4523 2002-04-21 Andrew Cagney <ac131313@redhat.com>
4525 * i960-tdep.c (i960_find_saved_register): New function.
4526 (i960_get_saved_register): New function.
4527 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
4528 (i960_get_saved_register): Declare.
4529 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
4531 2002-04-20 David S. Miller <davem@redhat.com>
4533 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
4535 2002-04-20 Andrew Cagney <ac131313@redhat.com>
4537 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
4538 instead of NUM_PSEUDO_REGS.
4540 2002-04-20 David S. Miller <davem@redhat.com>
4542 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
4543 GDB_MULTI_ARCH_PARTIAL
4544 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
4545 define, let tm-sp64.h do it.
4547 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
4549 * frame.c (find_saved_register): Avoid a NULL pointer
4550 dereference and actually walk the frame list.
4552 2002-04-20 Andrew Cagney <ac131313@redhat.com>
4554 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
4555 sorted in most most-recent-used order. Document.
4556 * gdbarch.h, gdbarch.c: Regenerate.
4558 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
4560 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
4561 (add_inferior): Call create_register_cache.
4562 (clear_inferiors): Call free_register_cache.
4563 (inferior_regcache_data, set_inferior_regcache_data): New functions.
4564 * gdbserver/regcache.c (struct inferior_regcache_data): New.
4565 (registers): Remove.
4566 (get_regcache): New function.
4567 (create_register_cache, free_register_cache): New functions.
4568 (set_register_cache): Don't initialize the register cache here.
4569 (registers_to_string, registers_from_string, register_data): Call
4571 * gdbserver/regcache.h: Add prototypes.
4572 * gdbserver/server.h: Likewise.
4574 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
4576 * gdbserver/mem-break.c: New file.
4577 * gdbserver/mem-break.h: New file.
4578 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
4580 * gdbserver/inferiors.c (struct inferior_info): Add target_data
4582 (clear_inferiors): Free target_data member if set.
4583 (inferior_target_data, set_inferior_target_data): New functions.
4584 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
4585 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
4586 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
4587 (struct inferior_linux_data): New.
4588 (linux_create_inferior): Use set_inferior_target_data.
4589 (linux_attach): Likewise. Call add_inferior.
4590 (linux_wait_for_one_inferior): New function.
4591 (linux_wait): Call it.
4592 (linux_write_memory): Add const.
4593 (initialize_low): Call set_breakpoint_data.
4594 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
4596 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
4598 * gdbserver/server.h: Include mem-break.h. Update inferior.c
4600 * gdbserver/target.c (read_inferior_memory)
4601 (write_inferior_memory): New functions.
4602 * gdbserver/target.h (read_inferior_memory)
4603 (write_inferior_memory): Change macros to prototypes.
4604 (struct target_ops): Update comments. Add const to write_memory
4607 2002-04-19 Andrew Cagney <ac131313@redhat.com>
4609 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
4611 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
4612 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
4613 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
4616 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
4619 * gdbtypes.c (init_simd_type): Rewrite using new functions.
4620 (build_builtin_type_vec128): Ditto.
4621 (append_composite_type_field): Fix calculation of type length in
4624 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
4626 * config/djgpp/README: Update.
4628 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
4631 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
4633 * alpha-tdep.c (setup_arbitrary_frame): Rename...
4634 (alpha_setup_arbitrary_frame): ...to this.
4635 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
4636 for alpha_setup_arbitrary_frame.
4638 2002-04-18 Andrew Cagney <cagney@redhat.com>
4640 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
4641 * gdbarch.h, gdbarch.c: Regenerate.
4643 * defs.h (breakpoint_from_pc_fn): Delete type definition.
4644 * target.h (memory_breakpoint_from_pc): Update declaration.
4645 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
4647 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
4648 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
4649 * mem-break.c (memory_breakpoint_from_pc): Ditto.
4650 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
4651 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
4652 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
4653 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
4654 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
4655 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
4656 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
4657 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
4658 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
4660 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
4662 * monitor.c (monitor_insert_breakpoint): Ditto.
4663 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
4665 * config/mcore/tm-mcore.h: Update copyright.
4666 * mem-break.c: Ditto.
4667 * xstormy16-tdep.c: Ditto.
4669 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
4671 * p-exp.y: Add precedence rule for '^' token.
4672 This removes the shift/reduce conflicts.
4673 Remove the comment concerning these shift/reduce conflicts.
4675 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
4677 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
4678 (registers_powerpc_nofp): New register set for processors
4679 without floating point unit.
4681 2002-04-18 David S. Miller <davem@redhat.com>
4683 * MAINTAINERS: Add myself to write-after-approval.
4685 2002-04-17 Michael Snyder <msnyder@redhat.com>
4687 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
4689 2002-04-17 Andrew Cagney <ac131313@redhat.com>
4691 * rs6000-tdep.c (frame_initial_stack_address): Use
4692 frame_register_read to read the alloca_reg.
4694 2002-04-17 Andrew Cagney <ac131313@redhat.com>
4696 * frame.c (find_saved_register): Find saved registers in the next
4700 2002-04-17 Andrew Cagney <ac131313@redhat.com>
4702 * gdbarch.sh (LANG): Set to ``c''.
4704 2002-04-15 Andrew Cagney <ac131313@redhat.com>
4706 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
4708 2002-04-15 Andrew Cagney <ac131313@redhat.com>
4710 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
4713 * hpread.c (hpread_get_lntt): Add declaration.
4714 Also fix PR gdb/391.
4716 2002-04-14 Andrew Cagney <ac131313@redhat.com>
4718 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
4719 * aclocal.m4, configure: Re-generate.
4722 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
4724 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
4725 instead of tm_print_insn.
4727 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
4729 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
4731 2002-04-14 Andrew Cagney <ac131313@redhat.com>
4733 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
4734 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
4735 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
4737 2002-04-12 Don Howard <dhoward@redhat.com>
4739 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
4740 max_user_call_depth.
4741 (init_cmd_lists): Initialize the new value;
4742 * cli/cli-script.c (execute_user_command): Limit the call depth of
4743 user defined commands. This avoids a core-dump when user commands
4744 are infinitly recursive.
4746 2002-04-12 Kevin Buettner <kevinb@redhat.com>
4748 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
4749 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
4750 from tdep struct instead of DEFAULT_LR_SAVE.
4751 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
4752 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
4753 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
4755 2002-04-12 Michael Snyder <msnyder@redhat.com>
4757 * Remote.c: Spelling fix.
4758 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
4759 If no symbol found for "sbrk", try "_sbrk".
4760 (make_output_phdrs): Use bfd_section_name.
4761 (gcore_copy_callback): Use bfd_section_name.
4762 * eval.c: Indentation fix-ups.
4763 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
4764 in case it gets applied to an address that is already
4765 in the instruction space.
4766 * cli/cli-decode.c (help_list): Allow long lines to wrap.
4767 * symfile.c: Fix indentation, long lines.
4768 * source.c: White space fix-up.
4770 2002-04-12 Andrew Cagney <cagney@redhat.com>
4772 * defs.h (read_relative_register_raw_bytes): Delete declaration.
4773 * frame.c (frame_register_read): New function. Return non-zero on
4775 (read_relative_register_raw_bytes_for_frame): Delete.
4776 (read_relative_register_raw_bytes): Delete.
4777 * frame.h (frame_register_read): Declare.
4778 * d30v-tdep.c: Update Copyright. Use frame_register_read.
4780 * infcmd.c (do_registers_info): Ditto.
4781 * hppa-tdep.c: Ditto.
4782 * rs6000-tdep.c: Ditto.
4783 * h8500-tdep.c: Ditto.
4784 * mips-tdep.c: Ditto.
4785 * h8300-tdep.c: Ditto.
4786 * z8k-tdep.c: Ditto.
4788 2002-04-12 Kevin Buettner <kevinb@redhat.com>
4790 From Jimi X <jimix@watson.ibm.com>:
4791 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
4794 2002-04-12 Kevin Buettner <kevinb@redhat.com>
4796 From Jimi X <jimix@watson.ibm.com>:
4797 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
4800 2002-04-12 Kevin Buettner <kevinb@redhat.com>
4802 From Jimi X <jimix@watson.ibm.com>:
4803 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
4804 register sets for these processor variants.
4806 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
4808 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
4809 registers which are allowed to fail to store.
4810 * gdbserver/linux-low.h (linux_target_ops): Likewise.
4811 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
4812 (ppc_cannot_store_register): FPSCR may not be storable.
4813 * regformats/reg-ppc.dat: Support FPSCR.
4815 2002-04-11 Kevin Buettner <kevinb@redhat.com>
4817 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
4818 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
4819 Add fpscr as an invalid/unfetchable register.
4820 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
4821 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
4822 (fill_fpregset): Add support for register fpscr.
4823 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
4824 (fill_gregset): Account for the fact that register ``mq'' might
4826 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
4827 (registers_power): Add fpscr to register set at slot 71.
4828 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
4829 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
4831 2002-04-11 Michael Snyder <msnyder@redhat.com>
4833 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
4834 * configure: Regenerate.
4835 * config.in: Regenerate.
4836 * acconfig.h: Add define for _SYSCALL32.
4837 * core-sol2.c: Remove #define _SYSCALL32.
4838 * solib-legacy.c: Remove #define _SYSCALL32.
4840 2002-04-10 Andrew Cagney <ac131313@redhat.com>
4842 * stack.c (select_frame): Cleanup internal error message, do not
4845 2002-04-10 Andrew Cagney <ac131313@redhat.com>
4847 * stack.c (select_frame): Check that selected_frame and the
4848 specified level are as expected.
4849 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
4851 * frame.h (struct frame_info): Add field `level'. Update
4853 Work-in-progress PR gdb/464.
4855 2002-04-10 Andrew Cagney <ac131313@redhat.com>
4857 * maint.c (maint_print_section_info): Rename print_section_info.
4858 (print_bfd_section_info, print_objfile_section_info): Update.
4859 * inferior.h (struct gdbarch): Add opaque declaration.
4860 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
4861 * gdbarch.h: Regenerate.
4863 2002-04-10 Michal Ludvig <mludvig@suse.cz>
4865 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
4866 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
4867 (kernel_u_size): Added.
4868 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
4869 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
4871 2002-04-04 Jim Ingham <jingham@apple.com>
4873 * valarith.c (find_size_for_pointer_math): New function, either returns
4874 the size for a pointer's target, returns 1 for void *, or errors for
4876 (value_add, value_sub): use find_size_for_pointer_math.
4878 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
4880 * linux-low.c (linux_look_up_symbols): New hook.
4881 (linux_target_ops): Add linux_look_up_symbols.
4882 * remote-utils.c (decode_address): New function.
4883 (look_up_one_symbol): New function.
4884 * server.c (handle_query): Call target look_up_symbols hook.
4885 * server.h (look_up_one_symbol): Add prototype.
4886 * target.h (struct target_ops): Add look_up_symbols hook.
4888 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
4890 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
4891 * ChangeLog: Correct paths in last ChangeLog entry.
4893 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
4895 * gdbserver/linux-low.h: Remove obsolete prototypes.
4896 (struct linux_target_ops): New.
4897 (extern the_low_target): New.
4898 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
4899 (register_addr): Use the_low_target explicitly.
4900 (fetch_register): Likewise.
4901 (usr_fetch_inferior_registers): Likewise.
4902 (usr_store_inferior_registers): Likewise.
4903 * gdbserver/linux-arm-low.c (num_regs): Remove.
4904 (arm_num_regs): Define.
4905 (arm_regmap): Renamed from regmap, made static.
4906 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
4908 (arm_cannot_store_register): Renamed from cannot_store_register,
4910 (the_low_target): New.
4911 * gdbserver/linux-i386-low.c (num_regs): Remove.
4912 (i386_num_regs): Define.
4913 (i386_regmap): Renamed from regmap, made static.
4914 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
4916 (i386_cannot_store_register): Renamed from cannot_store_register,
4918 (the_low_target): New.
4919 * gdbserver/linux-ia64-low.c (num_regs): Remove.
4920 (ia64_num_regs): Define.
4921 (ia64_regmap): Renamed from regmap, made static.
4922 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
4924 (ia64_cannot_store_register): Renamed from cannot_store_register,
4926 (the_low_target): New.
4927 * gdbserver/linux-m68k-low.c (num_regs): Remove.
4928 (m68k_num_regs): Define.
4929 (m68k_regmap): Renamed from regmap, made static.
4930 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
4932 (m68k_cannot_store_register): Renamed from cannot_store_register,
4934 (the_low_target): New.
4935 * gdbserver/linux-mips-low.c (num_regs): Remove.
4936 (mips_num_regs): Define.
4937 (mips_regmap): Renamed from regmap, made static.
4938 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
4940 (mips_cannot_store_register): Renamed from cannot_store_register,
4942 (the_low_target): New.
4943 * gdbserver/linux-ppc-low.c (num_regs): Remove.
4944 (ppc_num_regs): Define.
4945 (ppc_regmap): Renamed from regmap, made static.
4946 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
4948 (ppc_cannot_store_register): Renamed from cannot_store_register,
4950 (the_low_target): New.
4951 * gdbserver/linux-s390-low.c (num_regs): Remove.
4952 (s390_num_regs): Define.
4953 (s390_regmap): Renamed from regmap, made static.
4954 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
4956 (s390_cannot_store_register): Renamed from cannot_store_register,
4958 (the_low_target): New.
4959 * gdbserver/linux-sh-low.c (num_regs): Remove.
4960 (sh_num_regs): Define.
4961 (sh_regmap): Renamed from regmap, made static.
4962 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
4964 (sh_cannot_store_register): Renamed from cannot_store_register,
4966 (the_low_target): New.
4967 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
4968 (the_low_target): New.
4970 2002-04-09 Andrew Cagney <ac131313@redhat.com>
4972 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
4973 override FP_REGNUM with frame->fp. Update copyright.
4974 * parse.c (num_std_regs, std_regs): Delete.
4975 (target_map_name_to_register): Do not search std_regs. Update
4976 function description.
4977 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
4978 declarations. Update copyright.
4981 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
4983 * gdbserver/Makefile.in: Add stamp-h target.
4984 * gdbserver/configure.in: Create stamp-h.
4985 * gdbserver/configure: Regenerated.
4987 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
4989 * gdbserver/inferiors.c: New file.
4990 * gdbserver/target.c: New file.
4991 * gdbserver/target.h: New file.
4992 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
4994 * gdbserver/linux-low.c (inferior_pid): New static variable,
4995 moved from server.c.
4996 (linux_create_inferior): Renamed from create_inferior.
4997 Call add_inferior. Return 0 on success instead of a PID.
4998 (linux_attach): Renamed from myattach.
4999 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
5000 (linux_thread_alive): Renamed from mythread_alive.
5001 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
5003 (linux_resume): Renamed from myresume. Add missing ``return 0''.
5004 (regsets_store_inferior_registers): Correct error message.
5005 Add missing ``return 0''.
5006 (linux_fetch_registers): Renamed from fetch_inferior_registers.
5007 (linux_store_registers): Renamed from store_inferior_registers.
5008 (linux_read_memory): Renamed from read_inferior_memory.
5009 (linux_write_memory): Renamed from write_inferior_memory.
5010 (linux_target_ops): New structure.
5011 (initialize_low): Call set_target_ops ().
5012 * gdbserver/remote-utils.c (unhexify): New function.
5013 (hexify): New function.
5014 (input_interrupt): Send signals to ``signal_pid''.
5015 * gdbserver/server.c (inferior_pid): Remove.
5016 (start_inferior): Update create_inferior call.
5017 (attach_inferior): Call add_inferior.
5018 (handle_query): New function.
5019 (main): Call handle_query for `q' packets.
5020 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
5021 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
5023 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5025 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
5027 * gdbserver/configure.in: Check for <string.h>
5028 * gdbserver/configure: Regenerate.
5029 * gdbserver/config.in: Regenerate.
5030 * gdbserver/gdbreplay.c: Include needed system headers.
5031 (remote_open): Remove strchr prototype.
5032 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
5033 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
5034 (supply_register_by_name): Likewise.
5035 (collect_register): Change buf argument to void *.
5036 (collect_register_by_name): Likewise.
5037 * gdbserver/regcache.h: Add missing prototypes.
5038 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
5039 * gdbserver/server.c (handle_query): New function.
5040 (attached): New static variable, moved out of main.
5041 (main): Quiet longjmp clobber warnings.
5042 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
5043 * gdbserver/utils.c (error): Remove NORETURN.
5046 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5048 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
5049 after the last symbol in a block.
5051 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
5053 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
5054 is non zero as a found symbol.
5056 2002-04-08 Andrew Cagney <ac131313@redhat.com>
5058 * findvar.c: Include "builtin-regs.h".
5059 (value_of_register): Call value_of_builtin_reg when applicable.
5060 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
5061 (target_map_name_to_register): Call
5062 builtin_reg_map_name_to_regnum.
5063 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
5064 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
5065 (builtin_regs_h): Define.
5066 (builtin-regs.o): New target.
5067 (findvar.o): Add $(builtin_regs_h).
5068 * builtin-regs.c, builtin-regs.h: New files.
5069 * std-regs.c: New file.
5070 Partial fix for PR gdb/251.
5072 2002-04-08 Kevin Buettner <kevinb@redhat.com>
5074 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
5075 it's no longer required.
5077 2002-04-08 Andrew Cagney <ac131313@redhat.com>
5079 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
5081 2002-04-08 Kevin Buettner <kevinb@redhat.com>
5083 From Jimi X <jimix@watson.ibm.com>:
5084 * rs6000-tdep.c (rs6000_software_single_step): Use
5085 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
5086 and size. Use target_insert_breakpoint() and
5087 target_remove_breakpoint() to insert and remove breakpoints
5088 instead of explicit memory reads and writes.
5090 2002-04-08 Kevin Buettner <kevinb@redhat.com>
5092 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
5093 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
5094 ELF_OBJECT_FORMAT ifdef.
5096 2002-04-08 Kevin Buettner <kevinb@redhat.com>
5098 From Jimi X <jimix@watson.ibm.com>:
5099 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
5101 2002-04-08 Kevin Buettner <kevinb@redhat.com>
5103 From Jimi X <jimix@watson.ibm.com>:
5104 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
5105 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
5107 2002-04-07 Mark Kettenis <kettenis@gnu.org>
5109 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
5110 s/asprintf/xasprintf/.
5111 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
5113 2002-04-07 Andrew Cagney <ac131313@redhat.com>
5115 I believe Jeff Law denies responsability for this one:
5116 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
5117 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
5118 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
5119 Work-around for PR gdb/366.
5121 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
5123 * remote-e7000.c (write_small, e7000_read_inferior_memory,
5124 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
5125 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
5127 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
5129 * sh-tdep.c (sh_fp_frame_init_saved_regs,
5130 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
5133 2002-04-07 Andrew Cagney <ac131313@redhat.com>
5135 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
5138 2002-04-07 Andrew Cagney <ac131313@redhat.com>
5140 * README (Reporting Bugs in GDB): Document the bug web page as the
5141 prefered way of submitting bugs.
5144 2002-04-06 Andrew Cagney <ac131313@redhat.com>
5146 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
5148 * gdbarch.h, gdbarch.c: Re-generate.
5150 2002-04-07 Andreas Schwab <schwab@suse.de>
5152 * m68klinux-nat.c (fill_fpregset): Properly pass address of
5153 buffer to regcache_collect.
5155 2002-04-06 Andrew Cagney <ac131313@redhat.com>
5157 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
5158 * gdbarch.c, gdbarch.h: Re-generate.
5160 2002-04-06 Andrew Cagney <ac131313@redhat.com>
5162 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
5163 declaration. Fix -Werror.
5165 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
5167 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
5168 * gdbarch.c: Regenerate.
5170 2002-04-05 Michael Snyder <msnyder@redhat.com>
5172 * breakpoint.c (clear_command): Rewrite middle section to
5173 combine two loops with identical control conditions.
5174 Add a cleanup to eliminate a memory leak.
5175 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
5177 2002-04-05 H.J. Lu (hjl@gnu.org)
5179 * solib-svr4.c (bkpt_names): Add "__start".
5181 2002-04-04 Andrew Cagney <ac131313@redhat.com>
5183 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
5184 as test for 64 bit target.
5186 2002-04-05 Andrew Cagney <ac131313@redhat.com>
5188 * h8500-tdep.c (h8500_write_fp): Delete function.
5189 * dwarf2cfi.c (cfi_write_fp): Document as not used.
5190 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
5191 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
5192 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
5193 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
5194 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
5196 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
5197 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
5198 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
5199 (d10v_write_fp): Delete function.
5200 * inferior.h (write_fp, generic_target_write_fp): Delete
5202 * regcache.c (generic_target_write_fp): Delete function.
5203 (write_fp): Delete function.
5204 * gdbarch.sh (TARGET_WRITE_FP): Delete.
5205 * gdbarch.h, gdbarch.c: Regenerate.
5206 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
5207 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
5208 (sparc64_write_fp): Delete declaration.
5209 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
5210 (h8500_write_fp): Delete declaration.
5212 2002-04-04 Andrew Cagney <ac131313@redhat.com>
5214 * sparc-tdep.c (sparc64_write_fp): Delete.
5215 (sparc_push_dummy_frame): Replace write_fp call with code to store
5217 (sparc_gdbarch_init): Do not initialize write_fp.
5219 2002-04-05 Kevin Buettner <kevinb@redhat.com>
5221 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
5224 2002-03-29 Jim Blandy <jimb@redhat.com>
5226 * stack.c (get_selected_block): Add new argument `addr_in_block',
5227 used to return the exact code address we used to select the block,
5229 * blockframe.c (get_frame_block, get_current_block): Same.
5230 * frame.h (get_frame_block, get_current_block,
5231 get_selected_block): Update declarations.
5232 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
5233 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
5235 2002-04-05 Michael Snyder <msnyder@redhat.com>
5237 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
5240 2002-04-05 J. Brobecker <brobecker@gnat.com>
5242 * utils.c (xfullpath): New function.
5243 * defs.h (xfullpath): Add declaration.
5244 * source.c (openp): Use xfullpath in place of gdb_realpath to
5245 avoid resolving the basename part of filenames when the
5246 associated file is a symbolic link. This fixes a potential
5247 inconsistency between the filenames known to GDB and the
5248 filenames it prints in the annotations.
5249 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
5250 to be able to match a filename with either the real filename, or
5251 the name of any symbolic link to this file.
5252 (lookup_partial_symtab): Ditto.
5254 2002-04-04 Michael Snyder <msnyder@redhat.com>
5256 * breakpoint.c: Add support for hardware breakpoints in overlays.
5257 (overlay_events_enabled): New state variable.
5258 (insert_breakpoints): Use overlay_events_enabled to decide
5259 whether to attempt to set a breakpoint at the overlay load addr.
5260 Handle bp_hardware_breakpoint as well as bp_breakpoint.
5261 (remove_breakpoint): Use overlay_events_enabled to decide
5262 whether breakpoints need to be removed from overlay load addr.
5263 Handle bp_hardware_breakpoint as well as bp_breakpoint.
5264 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
5265 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
5266 disable_overlay_breakpoints): Update overlay_events_enabled.
5268 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
5270 * dwarf2read.c (struct function_range): New.
5271 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
5272 (check_cu_functions): New.
5273 (read_file_scope): Initialize global function lists.
5274 Call dwarf_decode_line after processing children.
5275 (read_func_scope): Add to global function list.
5276 (dwarf_decode_lines): Call check_cu_functions everywhere
5277 record_line is called. Call record_line with a linenumber
5278 of 0 to mark sequence ends.
5280 2002-04-04 Michal Ludvig <mludvig@suse.cz>
5282 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
5283 change sync with glibc.
5285 2002-04-03 Jim Blandy <jimb@redhat.com>
5287 * configure.in: Call AC_C_INLINE.
5288 * configure: Regenerated.
5290 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
5292 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
5293 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
5295 2002-03-31 Mark Kettenis <kettenis@gnu.org>
5297 * NEWS: Mention gcore support on FreeBSD/i386.
5299 * fbsd-proc.c: New file.
5300 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
5301 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
5303 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
5306 2002-03-29 Jim Blandy <jimb@redhat.com>
5308 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
5309 unescaped newlines in string literals, but newer ones don't. So
5312 2002-03-26 Michael Snyder <msnyder@redhat.com>
5313 Andrew Cagney <cagney@redhat.com>
5315 * cli/cli-dump.c: New file. Dump memory to file,
5316 restore file to memory.
5317 * cli/cli-dump.h: New file.
5318 * Makefile.in: Add rules, dependencies for cli-dump.o.
5319 * NEWS: Mention new commands.
5321 2002-03-28 Michael Snyder <msnyder@redhat.com>
5323 * symfile.c (symbol_file_add): Move test for null symbols to later.
5325 2002-03-27 Andrew Cagney <ac131313@redhat.com>
5327 From veksler at il.ibm.com:
5328 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
5329 the xstrduped original path.
5332 2002-03-27 Michael Snyder <msnyder@redhat.com>
5334 * breakpoint.c (_initialize_breakpoint): Clean up help string.
5335 * infcmd.c (_initialize_infcmd): Ditto.
5336 * language.c (_initialize_language): Ditto.
5337 * symfile.c (_initialize_symfile): Ditto.
5338 * top.c (_init_main): Ditto.
5339 * cli/cli-cmds.c (init_cli_cmds): Ditto.
5341 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
5343 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
5344 vector registers handling.
5345 (skip_prologue): Handle new AltiVec instructions. Fill in new
5346 fields of frame data.
5347 (frame_get_saved_regs): Fill in information for AltiVec registers.
5349 2002-03-27 Jim Blandy <jimb@redhat.com>
5351 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
5352 a function; leave this macro here to invoke that function.
5353 (symbol_init_mangled_name): Declaration for that function.
5354 * symtab.c (symbol_init_mangled_name): New function.
5356 2002-03-27 Andrew Cagney <ac131313@redhat.com>
5358 * valarith.c: Replace strerror with safe_strerror.
5359 * tracepoint.c: Ditto.
5361 * go32-nat.c: Ditto.
5365 2002-03-27 Andreas Schwab <schwab@suse.de>
5367 * event-top.c (command_line_handler): Remove useless if.
5369 2002-03-27 Andreas Jaeger <aj@suse.de>
5371 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
5374 2002-03-27 Michal Ludvig <mludvig@suse.cz>
5376 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
5377 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
5378 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
5379 (x86_64_linux_dr_get_status, supply_gregset),
5380 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
5381 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
5382 (x86_64_register_info_table): Add.
5383 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
5384 (x86_64_register_raw_size, x86_64_register_virtual_type),
5385 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
5386 general x86_64_register_info_table.
5387 (i386_gdbarch_init): gdbarch_register_bytes is now set
5388 dynamicaly during initialization.
5389 * regformats/reg-x86-64.dat: Synced with changes to registers above.
5390 * gdbserver/linux-x86-64-low.c: Ditto.
5392 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
5394 * gdbserver/server.c (main): Call target_signal_to_host_p
5395 and target_signal_to_host on signals received from the remote.
5396 * gdbserver/remote-utils.c (prepare_resume_reply): Call
5397 target_signal_from_host on signals sent to the remote.
5398 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
5399 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
5401 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
5403 * signals/signals.c: Include "server.h" in gdbserver build.
5404 (target_signal_from_name): Don't use STREQ.
5405 (_initialize_signals): Likewise. Don't include function in
5408 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
5410 * signals.c: Moved to...
5411 * signals/signals.c: Here.
5412 * Makefile (signals.o): Update.
5414 2002-03-26 Jeff Law (law@redhat.com)
5416 * somread.c (som_symtab_read): Remove some commented out code and
5417 updated related comments. Do not set the minimal symbol table to
5418 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
5419 in a dynamic executable.
5420 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
5421 where we are unable to find the minimal symbol for the given
5424 2002-03-25 Jeff Law (law@redhat.com)
5426 * linux-proc.c (read_mapping): Scan up to end of line for filename.
5428 2002-03-25 Michal Ludvig <mludvig@suse.cz>
5430 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
5432 2002-03-23 Andrew Cagney <ac131313@redhat.com>
5434 * command.h: Update copyright.
5435 (struct cmd_list_element): Replace definition with opaque
5437 (enum cmd_types): Document that it will eventually be moved to
5439 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
5440 (MALLOCED_REPLACEMENT): Delete macro.
5441 * Makefile.in (cli_decode_h): Add $(command_h).
5442 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
5443 * top.c: Include "cli/cli-decode.h".
5444 * completer.c: Include "cli/cli-decode.h".
5445 * maint.c: Include "cli/cli-decode.h".
5446 * cli/cli-decode.h: Include "command.h".
5447 (enum command_class): Delete.
5448 (enum cmd_types): Comment out.
5449 (enum cmd_auto_boolean): Delete.
5450 (enum var_types): Delete.
5452 2002-03-23 Andrew Cagney <ac131313@redhat.com>
5454 * cli/cli-decode.c: Include "gdb_assert.h".
5455 (add_set_or_show_cmd): New static function.
5456 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
5457 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
5458 all fields, such as func, from the set command.
5460 2002-03-23 Andrew Cagney <ac131313@redhat.com>
5462 * MAINTAINERS (sh-elf): Change warning flag to -w.
5464 2002-03-23 Andrew Cagney <cagney@redhat.com>
5466 * defs.h (error): Add printf format attribute.
5467 * thread-db.c (thread_from_lwp): Fix error format string.
5468 * stack.c (parse_frame_specification): Ditto.
5469 * cli/cli-decode.c (undef_cmd_error): Ditto.
5470 * scm-lang.c (scm_lookup_name): Ditto.
5471 * tracepoint.c (trace_error): Ditto.
5472 * remote-utils.c (usage): Ditto.
5473 * remote.c (compare_sections_command): Ditto.
5476 2002-03-22 Andrew Cagney <ac131313@redhat.com>
5478 * gdbtypes.c (append_composite_type_field): New function.
5479 (init_composite_type): New function.
5480 * gdbtypes.h (append_composite_type_field): Declare.
5481 (init_composite_type): Ditto.
5483 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
5485 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
5487 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
5488 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
5489 structure returning convention for SYSV ABI case, but not
5490 for GNU/Linux, FreeBSD, or NetBSD.
5492 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
5494 * symtab.h (lookup_block_symbol): Add mangled_name argument
5497 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
5498 with new mangled_name argument.
5499 * linespec.c (decode_line_1): Likewise.
5500 * valops (value_of_this): Likewise.
5501 * symtab.c (lookup_transparent_type): Likewise.
5502 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
5503 (lookup_symbol): If we are given a mangled name, pass it down
5504 to lookup_symbol_aux.
5505 (lookup_block_symbol): If we are given a mangled name to check
5506 against, only return symbols which match it.
5508 2002-03-22 Christopher Faylor <cgf@redhat.com>
5510 * win32-nat.c (child_create_inferior): Check for proper shell to use
5511 here, in case the user changes it on the fly.
5512 (_initialize_inftarg): Remove shell path considerations.
5514 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
5516 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
5517 for gdbarch_max_register_raw_size and max_register_virtual_size.
5518 Adjust copyright year.
5520 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
5522 * dbxread.c (process_one_symbol): Extend the first N_SLINE
5523 in a function to cover the entire beginning of the function
5524 as well if it does not already.
5526 2002-03-21 Tom Rix <trix@redhat.com>
5528 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
5529 (rs6000_ptrace64): Renamed from ptrace64.
5531 2002-03-20 Martin M. Hunt <hunt@redhat.com>
5533 * gdbserver/remote-utils.c (remote_open): Don't call
5534 getprotobyname, we're all using TCP here so just use
5536 * gdbserver/gdbreplay.c (remote_open): Ditto.
5538 2002-03-20 Martin M. Hunt <hunt@redhat.com>
5540 * regcache.c (_initialize_regcache): No need to call
5541 build_regcache() at this time; it gets called whenever
5542 the gdbarch changes.
5544 2002-03-20 David O'Brien <obrien@FreeBSD.org>
5546 * sparc-nat.c: Include sys/param.h where possible.
5548 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
5551 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
5552 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
5553 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
5555 * stabsread.c (rs6000_builtin_type): Likewise.
5556 (read_sun_floating_type): Likewise.
5558 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5560 * stabsread.c (read_member_functions): Remove skip code for duplicate
5561 constructor/destructor methods. Use standard parsing for these
5562 methods and just do not chain them to the list of methods after
5565 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
5567 * coffread.c: Remove redundant static declarations. Replace
5568 occurrences of `PTR' with `void *'.
5569 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
5570 * top.h (quit_cover): Likewise.
5571 * defs.h (catch_errors): Likewise.
5573 2002-03-18 Andrew Cagney <ac131313@redhat.com>
5575 * defs.h (XMALLOC): Define.
5576 * gdb-events.sh (XMALLOC): Delete macro.
5577 * gdb-events.c, gdb-events.h: Regenerate.
5578 * gdbarch.sh (XMALLOC): Delete macro.
5579 * gdbarch.c: Regenerate.
5580 * serial.c (XMALLOC): Delete macro.
5581 * ui-file.c (XMALLOC): Ditto.
5582 * ser-unix.h (XMALLOC): Ditto.
5583 * sh-tdep.c (XMALLOC): Ditto.
5584 * ui-out.c (XMALLOC): Ditto.
5585 * utils.c (XMALLOC): Ditto.
5586 * i386-tdep.c (XMALLOC): Ditto.
5587 * gdb-events.c (XMALLOC): Ditto.
5588 * d10v-tdep.c (XMALLOC): Ditto.
5589 * cli-out.c (XMALLOC): Ditto.
5591 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
5592 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
5593 * ui-file.c, ui-out.c: Ditto.
5595 2002-03-18 Andrew Cagney <ac131313@redhat.com>
5597 * command.h (struct cmd_list_element): Add field context.
5598 (set_cmd_context, get_cmd_context): Declare.
5599 * cli/cli-decode.h: Ditto.
5600 * cli/cli-decode.c (get_cmd_context): New function.
5601 (set_cmd_context): New function.
5602 (add_cmd): Initialize context.
5603 Part of fixing PR gdb/145 and PR gdb/146.
5605 2002-03-17 Andrew Cagney <ac131313@redhat.com>
5607 * cli/cli-decode.c (cmd_type): New function.
5608 * command.h (cmd_type): Declare.
5609 * infrun.c (set_schedlock_func): Call function cmd_type.
5610 * kod.c (kod_set_os): Call cmd_type.
5611 * cris-tdep.c (cris_version_update): Use function cmd_type.
5612 (cris_mode_update, cris_abi_update): Ditto.
5614 * command.h: (execute_cmd_post_hook): Declare.
5615 (execute_cmd_pre_hook): Declare.
5616 * cli/cli-script.c (clear_hook_in_cleanup): New function.
5617 (execute_cmd_post_hook, execute_cmd_pre_hook): New
5618 functions. Execute pre/post hook while ensuring that afterwords
5620 * top.c (execute_command): Use execute_cmd_post_hook, and
5621 execute_cmd_pre_hook to execute pre/post commands.
5622 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
5624 (hook_stop_stub): Call execute_cmd_pre_hook.
5626 2002-03-17 Andrew Cagney <ac131313@redhat.com>
5628 * kod.c (kod_set_os): Revert previous change. Is called by ``info
5629 set'' and this leads to a core dump. Move xstrdup of
5630 operating_system to after check that it is not NULL.
5632 2002-03-17 Andrew Cagney <ac131313@redhat.com>
5634 * kod.c (kod_set_os): Remove unnecessary check that
5635 ``command->type'' is set_cmd.
5637 * valprint.c (set_input_radix): Use input_radix.
5638 (set_output_radix): Use output_radix.
5639 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
5642 2002-03-16 Andrew Cagney <ac131313@redhat.com>
5644 * value.h (struct value): Delete field ``substring_addr''. Change
5645 aligner fields to force_doublest_align, force_longest_align,
5646 force_core_addr_align and force_pointer_aligh.
5648 * value.h (struct value): Fix typo in above change.
5650 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5652 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
5653 to fix internal_error from ``maintenance print architecture''.
5655 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5657 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
5658 for gcc versions after gcc-2.8.1.
5660 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5662 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
5663 for method resolution. Restore adjustment of ``this'' pointer after
5664 calling value_struct_elt, which was accidentally removed during the
5667 2002-03-15 Andrew Cagney <ac131313@redhat.com>
5669 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
5671 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
5673 * value.h (value_of_register): Update.
5675 2002-03-14 Richard Henderson <rth@redhat.com>
5677 * configure.in: Detect declaration for canonicalize_file_name.
5678 * utils.c (canonicalize_file_name): Declare, if needed.
5679 (gdb_realpath): Prefer realpath if available and usable.
5680 * config.in, configure: Rebuild.
5682 2002-03-14 Richard Henderson <rth@redhat.com>
5684 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
5685 a constant array bound.
5687 * MAINTAINERS: Add myself to write-after-approval.
5689 2002-03-14 Michael Snyder <msnyder@redhat.com>
5691 * symfile.c (syms_from_objfile): Return immediately if no syms.
5692 (symbol_file_add): Return immediately if no syms.
5693 (find_sym_fns): Return immediately if no syms.
5695 2002-03-13 Michal Ludvig <mludvig@suse.cz>
5697 * gdbserver/remote-util.c (remote_open): Print remote-side's
5698 IP address when remote debugging over the network.
5700 2002-03-12 David O'Brien <obrien@FreeBSD.org>
5702 * config/sparc/fbsd.mh: Fix copyright.
5703 * config/sparc/fbsd.mt: Likewise.
5705 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
5707 * MAINTAINERS: Fix typo in name of gdb warnings option.
5708 (x86-64): Fix formating so that this can be parsed by awk.
5710 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
5712 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
5713 * defs.h: Include "gdb/signals.h".
5714 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
5716 2002-03-10 Michal Ludvig <mludvig@suse.cz>
5718 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
5719 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
5722 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
5723 Don Howard <dhoward@redhat.com>
5725 * mips-tdep.c (ST0_FR): Define.
5726 (mips2_fp_compat): New function, temporarily disabled.
5727 (mips_read_fp_register_single): New function.
5728 (mips_read_fp_register_double): New function.
5729 (mips_print_register): Use them.
5730 (do_fp_register_row): Likewise.
5732 2002-03-09 Andrew Cagney <ac131313@redhat.com>
5734 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
5737 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5739 * stabsread.c (read_member_functions): Fix is_stub test for
5740 static member functions, improve comment.
5742 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
5744 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
5745 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
5746 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
5747 commands that set boolean values.
5748 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
5749 (arm_rdi_resume): Always initialize PC.
5750 (arm_rdi_open): Don't use rslt as a boolean.
5751 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
5752 (arm_rdi_fetch_registers, arm_rdi_store_registers)
5753 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
5754 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
5756 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
5758 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
5759 * configure: Rebuilt.
5761 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5763 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
5764 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
5766 2002-03-06 Andrew Cagney <ac131313@redhat.com>
5768 * cli/cli-decode.c (set_cmd_completer): New function.
5769 * command.h (set_cmd_completer): Declare.
5770 * cli/cli-decode.h (set_cmd_completer): Ditto.
5772 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
5773 * cli/cli-cmds.c (init_cli_cmds): Ditto.
5774 * win32-nat.c (_initialize_inftarg): Ditto.
5775 * remote-rdi.c (_initialize_remote_rdi): Ditto.
5776 * proc-api.c (_initialize_proc_api): Ditto.
5777 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
5778 * source.c (_initialize_source): Ditto.
5779 * exec.c (_initialize_exec): Ditto.
5780 * solib.c (_initialize_solib): Ditto.
5781 * top.c (init_main): Ditto.
5782 * tracepoint.c (_initialize_tracepoint): Ditto.
5783 * symfile.c (_initialize_symfile): Ditto.
5784 * printcmd.c (_initialize_printcmd): Ditto.
5785 * infcmd.c (_initialize_infcmd): Ditto.
5786 * corefile.c (_initialize_core): Ditto.
5788 2002-03-05 Andrew Cagney <ac131313@redhat.com>
5790 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
5792 2002-03-05 Andrew Cagney <ac131313@redhat.com>
5794 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
5796 2002-03-05 Andrew Cagney <ac131313@redhat.com>
5798 * NEWS: Update headings, 5.2 has branched.
5800 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
5802 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
5803 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
5804 (register_addr, REGISTER_RAW_SIZE): Likewise.
5805 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
5806 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
5808 2002-03-03 Michal Ludvig <mludvig@suse.cz>
5810 * MAINTAINERS (x86-64): Add myself.
5811 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
5812 changed value_ptr -> struct value *
5814 2002-03-01 David O'Brien <obrien@FreeBSD.org>
5816 * configure.host (sparc64-*-freebsd): Add.
5817 * configure.tgt: Likewise.
5818 * config/sparc/fbsd.mh: New file.
5819 * config/sparc/fbsd.mt: Likewise.
5820 * config/sparc/nm-fbsd.h: Likewise.
5821 * config/sparc/tm-fbsd.h: Likewise.
5823 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
5825 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
5826 regformats/reg-s390x.dat.
5828 2002-03-01 Andrew Cagney <ac131313@redhat.com>
5830 * utils.c: Add FIXME explaining true/false problem.
5832 2002-02-28 Andrew Cagney <ac131313@redhat.com>
5834 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
5836 2002-02-28 Michael Chastain <mec@shout.net>
5838 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
5840 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
5842 * gdbserver/linux-s390-low.c: New file.
5843 * regformats/reg-s390.dat: New file.
5844 * regformats/reg-s390x.dat: New file.
5845 * gdbserver/configure.srv: Add S/390.
5846 * gdbserver/Makefile.in: Add S/390.
5847 * configure.tgt: Enable gdbserver for S/390.
5849 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
5851 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
5852 first line of the doc string for "info dos", except at the end of
5853 the sentence, since the short help stops at the first period.
5855 2002-02-28 Jason Merrill <jason@redhat.com>
5857 * dwarf2read.c (dwarf_cfi_name): Add new codes.
5859 2002-02-27 Fred Fish <fnf@redhat.com>
5861 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
5862 comment (dumy -> dummy).
5864 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5866 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
5868 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
5870 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
5872 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
5874 * gdbserver/acconfig.h: New file.
5875 * gdbserver/i387-fp.c: New file.
5876 * gdbserver/i387-fp.h: New file.
5877 * gdbserver/linux-x86-64.c: New file.
5878 * regformats/reg-x86-64.dat: New file.
5879 * configure.tgt: Add x86_64-*-linux* gdbserver support.
5880 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
5881 * gdbserver/configure.in: Add support for regsets.
5882 * gdbserver/config.in: Regenerate.
5883 * gdbserver/configure: Regenerate.
5884 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
5885 * gdbserver/linux-low.h: New file.
5886 * gdbserver/linux-low.c: Include "linux-low.h". Add support
5888 * gdbserver/linux-arm-low.c: Include "linux-low.h".
5889 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
5890 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
5891 * gdbserver/linux-mips-low.c: Include "linux-low.h".
5892 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
5893 * gdbserver/linux-sh-low.c: Include "linux-low.h".
5894 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
5895 "i387-fp.h". Add PTRACE_GETREGS and friends.
5896 * gdbserver/regcache.c (supply_register): New function.
5897 (supply_register_by_name): New function.
5898 (collect_register): New function.
5899 (collect_register_by_name): New function.
5901 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
5903 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
5904 (config.status): Add configure.srv dependency.
5905 (server_h): Add config.h dependency.
5907 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
5909 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
5910 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
5911 * gdbserver/configure.srv: Change i386-*-linux* to use
5914 2002-02-26 Andrew Cagney <ac131313@redhat.com>
5916 * x86-64-tdep.c: Re-indent. Update copyright date.
5918 2002-02-26 Andrew Cagney <ac131313@redhat.com>
5920 From Michal Ludvig <mludvig@suse.cz>:
5921 * x86-64-tdep.c (value.h): Delete.
5922 (gdb_assert.h): Include.
5923 (x86_64_register_convert_to_virtual,
5924 x86_64_register_convert_to_raw ): Add check which lets only
5925 floating-point values to be converted.
5926 (value_push): Delete.
5927 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
5928 (i386_gdbarch_init): Number of register_bytes fixed.
5930 2002-02-26 Andrew Cagney <ac131313@redhat.com>
5932 * MAINTAINERS: Add x86-64 target.
5934 2002-02-26 Andrew Cagney <ac131313@redhat.com>
5936 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
5937 * osfsolib.c (solib_map_sections): Ditto.
5938 * irix5-nat.c (solib_map_sections): Ditto.
5939 * corelow.c (gdb_check_format): Ditto.
5940 * symfile.c (symfile_bfd_open): Ditto.
5941 * solib.c (solib_map_sections): Ditto.
5944 2002-02-26 Andrew Cagney <ac131313@redhat.com>
5946 * remote.c (_initialize_remote): By default, disable ``e'' and
5947 ``E'' step out-of-range packets.
5949 2002-02-26 Andreas Schwab <schwab@suse.de>
5951 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
5952 m68k_linux_frame_saved_pc.
5953 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
5955 (SIGCONTEXT_PC_OFFSET): Remove.
5956 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
5957 m68k_linux_sigtramp_saved_pc): New functions.
5958 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
5959 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
5960 (UCONTEXT_PC_OFFSET): Define.
5961 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
5962 non-RT and RT signal trampolines.
5964 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
5966 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
5967 (TARGET_NBPG, STACK_END_ADDR): Delete
5968 (VARIABLES_INSIDE_BLOCK): Delete.
5970 2002-02-25 Andrew Cagney <ac131313@redhat.com>
5972 * utils.c (perror_with_name): Make string parameter constant.
5973 (print_sys_errmsg): Ditto.
5975 * defs.h (perror_with_name): Update.
5976 (print_sys_errmsg): Update.
5979 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
5981 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
5982 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
5984 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5986 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
5987 if it already matches the current architecture from the exec file.
5988 Include arch-utils.h for gdbarch_info_init prototype.
5989 * Makefile.in (rs6000-nat.o): Update dependencies.
5991 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
5993 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
5994 list of exported variables.
5996 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
5998 * gdbserver/configure.srv: New file.
5999 * gdbserver/configure.in: Use configure.srv instead
6000 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
6002 * gdbserver/configure: Regenerated.
6003 * gdbserver/terminal.h: New file.
6004 * gdbserver/Makefile.in: Update for configure changes. Remove
6005 more unneeded include paths.
6007 2002-02-24 Andrew Cagney <ac131313@redhat.com>
6009 From wiz at danbala:
6010 * config/sparc/tm-sp64.h: Fix grammar and typos.
6013 2002-02-24 Andrew Cagney <ac131313@redhat.com>
6015 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
6016 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
6017 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
6018 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
6019 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
6020 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
6021 * s390-tdep.c: Ditto.
6022 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
6023 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
6024 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
6025 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
6026 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
6027 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
6028 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
6029 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
6030 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
6031 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
6034 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6036 * lin-thread.c: Delete file.
6037 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
6038 to gdb_proc_service.h.
6039 * configure: Re-generate.
6041 * ocd.c (ocd_open): Do not try to open the "ocd" device.
6042 * serial.c (serial_open): Delete check for "ocd".
6045 * Makefile.in (linux-thread.o): Delete target.
6046 * linux-thread.c: Delete file.
6048 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
6049 renamed SH files to be consistent.
6051 * symtab.c (sort_search_symbols): Use xfree.
6053 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
6055 * arm-linux-tdep.c (arm_linux_init_abi): Register
6056 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
6057 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
6058 definition with undef, since we don't want the sysvr4 definition.
6059 (SKIP_TRAMPOLINE_CODE): Likewise.
6061 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6063 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
6065 * configure.in: (AC_CHECK_FUNCS) Added test for
6066 canonicalize_file_name Regenerated.
6067 * config.in, configure: Regenerated.
6068 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
6069 defined use canonicalize_file_name.
6071 2002-02-23 Michael Chastain <mec@shout.net>
6073 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
6075 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6077 * README: Remove references to cygnus.com.
6078 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
6079 dot com'' form. Remove references to cygnus.com and sourceware.
6081 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6083 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
6084 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
6085 1003.1-2001 no longer allows "head -1".
6086 * gdb/Makefile.in (version.c): Likewise.
6087 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
6088 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
6089 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
6091 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6093 * cli/cli-decode.c (cmd_cfunc_eq): New function.
6094 * command.h (cmd_cfunc_eq): Declare.
6095 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
6097 * cli/cli-cmds.h (is_complete_command): Change parameter to a
6098 ``struct cmd_list_element *''.
6099 * cli/cli-cmds.c (is_complete_command): Update. Use
6101 * top.c (execute_command): Pass the command to
6102 is_complete_command.
6103 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
6105 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6107 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
6108 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
6109 architecture defines.
6110 * s390-tdep.c (s390_gdbarch_init): Likewise.
6112 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
6114 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
6115 (arm_linux_push_arguments): Likewise.
6116 (arm_linux_init_abi): Register them. Also register linux-specific
6118 (find_minsym_and_objfile): Use strcmp, not STREQ.
6119 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
6120 (arm_linux_call_dummy_words): Delete declaration.
6121 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
6122 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
6124 (LOWEST_PC): Delete.
6126 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6128 * maint.c (print_section_info): Do not prepend `0x' to filepos
6129 output, it will be handled by local_hex_string_custom.
6131 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
6133 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
6134 (store_newfpe_double, store_newfpe_extended, store_fpregister)
6135 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
6137 2002-02-22 Jim Blandy <jimb@redhat.com>
6139 Indicate that the bcache functions don't change the strings
6141 * bcache.h (bcache, hash): Add `const' keywords to declarations.
6142 * bcache.c (bcache, hash): Add `const' keywords to definitions.
6144 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
6146 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
6148 2002-02-21 Christopher Faylor <cgf@redhat.com>
6150 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
6151 find the complete path to a loaded DLL.
6153 2002-02-21 Fred Fish <fnf@redhat.com>
6155 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
6156 that marks the end of the range of a function, enter a line number
6157 entry that has a line number of zero and a PC offset that matches
6158 the end of the function. This starts a range of PC's for which no
6159 line number information is known.
6160 * symtab.c (find_pc_sect_line): If our best fit is in a range of
6161 PC's for which no line number info is found (line number is zero)
6162 then we didn't find any valid line information.
6163 * symtab.h: Document use of zero line number entry.
6165 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
6167 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
6168 (have_ptrace_getvrregs): Define for run time checks.
6169 (gdb_vrregset_t): New type for Altivec register handling.
6170 (fetch_register, store_register): Fetch/store altivec register
6172 (fetch_altivec_register, store_altivec_register): New functions.
6173 (supply_vrregset, fill_vrregset): New functions.
6174 (fetch_altivec_registers, store_altivec_registers): New functions.
6175 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
6178 2002-02-21 Jiri Smid <smid@suse.cz>
6180 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
6182 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
6184 * Makefile.in (armnbsd-nat.o): Update dependencies.
6185 * armnbsd-nat.c (supply_gregset): New function. Common code to
6186 supply the integer register set.
6187 (supply_fparegset): New function. Similar for FPA registers.
6188 (fetch_regs, fetch_fp_regs): Use them.
6189 (fetch_core_registers): Likewise.
6190 (fetch_elfcore_registers): New function.
6191 (arm_netbsd_elfcore_fns): New core-file type specification.
6192 (_initialize_arm_netbsd_nat): Register it.
6194 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
6196 * armnbsd-nat.c: Include gdbcore.h.
6197 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
6198 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
6199 'void' to declaration, to shut up ARI.
6200 (fetch_core_registers): Make static. Rewrite using supply_register.
6201 (arm_netbsd_core_fns): New core-file type specification.
6202 (_initialize_arm_netbsd_nat): New function.
6204 2002-02-21 Christopher Faylor <cgf@redhat.com>
6206 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
6209 2002-02-20 Christopher Faylor <cgf@redhat.com>
6211 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
6214 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
6216 * jv-exp.y (parse_number): Change type of implicit longs
6217 to builtin_type_uint64.
6219 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
6221 * gdbserver/linux-low.c (mywait): Change argument to waitpid
6222 to be an integer instead of a `union wait'.
6224 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
6226 * mips-linux-nat.c: Call the operating system GNU/Linux.
6227 * mips-linux-tdep.c: Likewise.
6228 * mips-tdep.c: Likewise.
6230 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
6233 * jv-exp.y (parse_number): Handle 64-bit integers.
6235 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
6237 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
6238 AC_STDC_HEADERS to AC_HEADER_STDC.
6239 * gdbserver/configure: Regenerated.
6241 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
6243 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
6245 * sparc-tdep.c (get_longjmp_target): Likewise.
6247 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
6249 * News: Add news about ARM and Multi-arch. Mention the new target
6252 2002-02-19 Jim Blandy <jimb@redhat.com>
6254 * stabsread.c (error_type_complaint): Improve error message.
6256 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
6258 * gdbserver/README: Update documentation.
6259 * gdbserver/configure.in: Update configury to match documentation.
6260 * gdbserver/Makefile.in: Likewise.
6261 * gdbserver/configure: Regenerated.
6262 * gdbserver/aclocal.m4: New file, generated by aclocal.
6263 * gdbserver/config.in: New file, generated by autoheader.
6265 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6267 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
6270 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6272 * arm-tdep.h (enum arm_float_model): New enum.
6273 (struct gdbarch_tdep): Add fp_model.
6274 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
6275 up floating-point conversions until we know the floating-point model
6276 in use by the inferior. Don't complain about being unable to
6277 determine the ABI of the inferior when we don't have one.
6278 (arm_extract_return_value): Support different floating-point models.
6279 (arm_store_return_value): Likewise.
6280 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
6282 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
6284 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6286 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
6287 of ``current_gdbarch''.
6289 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6291 * armnbsd-nat.c : ANSIfy all function declarations.
6292 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
6293 (fetch_inferior_registers): Re-implement in terms of above.
6294 (store_register, store_regs, store_fp_register, store_fp_regs): New.
6295 (store_inferior_registers): Re-implement in terms of above.
6297 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6299 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
6301 * arm-linux-tdep.c: Likewise.
6302 * config/arm/tm-linux.h: Likewise.
6304 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6306 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
6307 * config/arm/nbsd.mt (TM_FILE): Delete.
6308 * config/arm/tm-nbsd.h: Delete.
6310 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6312 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
6313 Initialize CALL_DUMMY_LENGTH.
6315 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6317 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
6319 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
6320 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
6321 defines one thing and that is incorrect for this port.
6322 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
6324 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6326 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
6328 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6330 * win32-nat.c (display_selector): New function. Displays information
6331 about the information returned by GetThreadSelectorEntry API function.
6332 (display_selectors): New function. Displays the infomation of
6333 the selector given as argument, or of CS, DS ans FS selectors
6334 if no argument is given.
6335 ( _initialize_inftarg): Add "w32" as info prefix command.
6336 Add "info w32 selector" as command calling display_selectors.
6338 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
6340 * i386-tdep.c (get_longjmp_target): Fix compilation failure
6341 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
6344 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
6346 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
6348 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
6350 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
6351 (arm_fix_call_dummy): Call it.
6352 (arm_call_dummy_breakpoint_offset): Delete.
6353 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
6354 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
6356 2002-02-18 Andrew Cagney <ac131313@redhat.com>
6358 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
6359 Default to func_frame_chain_valid.
6360 * gdbarch.h, gdbarch.c: Re-generate.
6361 * frame.h (FRAME_CHAIN_VALID): Delete definition.
6363 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
6365 * ppc-linux-nat.c: Update copyright.
6366 (fetch_register, store_register): Add tid parameter, don't compute
6368 (fetch_ppc_registers, store_ppc_registers): Add tid
6369 parameter. Pass it along to callees.
6370 (fetch_inferior_registers, store_inferior_registers): Compute tid
6371 here, and pass it to calleed functions.
6372 (fill_gregset, supply_fpregset): Clean up formatting.
6374 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
6376 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
6377 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
6379 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
6381 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
6382 * gdbarch.c gdbarch.h: Regenerate.
6383 * breakpoint.c (create_longjmp_breakpoint): Always compile this
6385 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
6386 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
6387 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
6389 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
6390 * arm-tdep.c (arm_get_longjmp_target): New function.
6391 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
6392 this to a positive value register arm_get_longjmp_target as the
6394 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
6395 (arm_linux_init_abi): Set up longjmp description in tdep.
6396 * armnbsd-nat.c (get_longjmp_target): Delete.
6397 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
6398 description in tdep.
6399 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
6400 (get_longjmp_target): Delete declaration.
6401 (GET_LONGJMP_TARGET): Delete.
6402 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
6403 (GET_LONGJMP_TARGET): Delete.
6405 2002-02-17 Kevin Buettner <kevinb@redhat.com>
6407 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
6408 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
6409 of ``current_gdbarch''.
6411 2002-02-17 Tom Tromey <tromey@redhat.com>
6413 * cli/cli-cmds.c (compare_strings): New function.
6414 (complete_command): Only print each unique item once.
6415 * completer.h (complete_line): Declare.
6416 * completer.c (complete_line): New function.
6417 (line_completion_function): Use it.
6419 2002-02-16 Andrew Cagney <ac131313@redhat.com>
6421 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
6422 * gdbarch.h, gdbarch.c: Re-generate.
6424 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
6426 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
6428 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
6430 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6431 * valops.c (value_arg_coerce): Don't take the address of a reference
6432 to convert an argument to a reference.
6434 2002-02-15 Christopher Faylor <cgf@redhat.com>
6436 * win32-nat.c (get_image_name): New function.
6437 (handle_load_dll): Use get_image_name function.
6438 (get_child_debug_event): Avoid registering debug events until possibly
6439 execed process is started.
6440 (child_create_inferior): Allow invocation via shell so that command
6441 line redirection, etc. works ok.
6442 (_initialize_inftarg): Add new command: "set shell" to control whether
6443 a shell is used to start a process.
6445 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
6447 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
6448 instead of find_register_by_number.
6449 (cannot_store_register): Likewise.
6451 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
6453 * dwarf2read.c: Replace fprintf (stderr, ...) by
6454 fprintf_unfiltered (gdb_stderr, ...).
6456 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
6458 * gdbserver/gdbserver.1: Document --attach.
6460 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
6462 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
6464 * arm-tdep.c (arm_default_arm_le_breakpoint)
6465 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
6466 (arm_default_thumb_be_breakpoint): New. Initialize them from
6467 traditional breakpoint defines.
6468 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
6469 (arm_gdbarch_init): Initialize new breakpoint variables.
6470 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
6471 (arm_linux_init_abi): Initialize linux-specific breakpoint.
6472 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
6473 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
6475 (arm_netbsd_init_abi_common): ... here; new function.
6476 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
6477 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
6478 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
6479 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
6481 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
6483 * arm-tdep.h (enum arm_abi): New enum.
6484 (struct gdbarch_tdep): New structure.
6485 (LOWEST_PC): Provide a default.
6486 (arm_gdbarch_register_os_abi): Declare new function.
6487 * arm-tdep.c (arm_abi_names): New array.
6488 (process_note_abi_tag_sections): New function.
6489 (get_elfosabi): New function.
6490 (arm_gdbarch_register_os_abi): New function.
6491 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
6492 support for that ABI has been built in, then call the appropriate
6493 configuration routine. Use gdbarch_num_regs() to get the number
6495 (arm_dump_tdep): New function.
6496 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
6497 place-holder functions.
6498 (_initialize_arm_tdep): Register them.
6499 * config/arm/tm-arm.h (LOWEST_PC): Delete.
6501 * armnbsd-tdep.c: New file.
6502 * Makefile.in (armnbsd-tdep.o): Add dependencies.
6503 * config/arm/nbsd.mt (TDEPFILES): Add it.
6504 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
6506 * armnbsd-nat.c: Include regcache.h.
6507 * Makefile.in (armnbsd-nat.o): Update dependency list.
6509 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
6511 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
6513 * gdbserver/Makefile.in: Fix typos in target rules.
6515 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
6517 Fix part of PR gdb/267.
6518 * linespec.c (find_methods): Handle constructors specially for now.
6520 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
6522 * arm-tdep.c (arm_push_arguments): Eliminate special float type
6524 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
6525 standard_coerce_float_to_double().
6527 2002-02-14 Christopher Faylor <cgf@redhat.com>
6529 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
6532 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
6534 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
6535 find_variant_by_name, because it confuses the multiarch
6536 framework. Return NULL if there isn't an architecture with the
6537 user supplied name, instead of forcing a different one without
6538 recording the change with the multiarch machinery.
6539 (find_variant_by_name): Delete.
6541 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6543 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
6544 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
6546 2002-02-13 Martin M. Hunt <hunt@redhat.com>
6548 * stack.c (print_frame_info_base): When calling
6549 print_frame_info_listing_hook, set current_source_symtab.
6551 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
6553 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
6554 and remove unused $(INCLUDE_DIR).
6555 Add regcache.c to OBS.
6556 Add generated register protocol files to clean target.
6557 Update dependencies for new objects, obsolete old target code.
6559 * gdbserver/linux-low.c: Remove all platform-specific code to
6560 new files. Remove various dead code. Update to use regcache
6562 * gdbserver/remote-utils.c (fromhex): Add return statement
6564 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
6566 (input_interrupt): Add integer parameter to match prototype
6567 of a signal handler.
6568 (outreg): Use register_data ().
6569 (prepare_resume_reply): Use gdbserver_expedite_regs.
6570 * gdbserver/server.c (main): Dynamically allocate own_buf because
6571 PBUFSIZ is no longer constant. Use registers_to_string () and
6572 registers_from_string ().
6573 * gdbserver/server.h: No longer include "defs.h". Add prototypes
6574 for error (), fatal (), and warning (). Update definition of
6575 PBUFSIZ to use regcache functionality. Add include guard.
6576 * gdbserver/utils.c (fatal): Add missing ``const''.
6577 (warning): New function.
6579 * regformats/regdat.sh: Include "regcache.h" in generated files.
6580 Provide init_registers () function.
6581 * regformats/regdef.h: Add prototype for set_register_cache ().
6584 * gdbserver/linux-arm-low.c: New file.
6585 * gdbserver/linux-i386-low.c: New file.
6586 * gdbserver/linux-ia64-low.c: New file.
6587 * gdbserver/linux-m68k-low.c: New file.
6588 * gdbserver/linux-mips-low.c: New file.
6589 * gdbserver/linux-ppc-low.c: New file.
6590 * gdbserver/linux-sh-low.c: New file.
6592 * gdbserver/regcache.c: New file.
6593 * gdbserver/regcache.h: New file.
6595 * gdbserver/low-linux.c: Removed obsolete file.
6597 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
6599 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
6600 * config/i386/linux.mt: Likewise.
6601 * config/ia64/linux.mt: Likewise.
6602 * config/m68k/linux.mh: Likewise.
6603 * config/powerpc/linux.mh: Likewise.
6604 * config/mips/linux.mt: Likewise.
6606 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
6608 * config/i386/i386lynx.mh: Mark gdbserver variables
6609 as (currently) obsolete for this target.
6610 * config/i386/nbsd.mt: Likewise.
6611 * config/i386/nbsdelf.mt: Likewise.
6612 * config/m32r/m32r.mt: Likewise.
6613 * config/m68k/m68klynx.mh: Likewise.
6614 * config/m68k/nbsd.mt: Likewise.
6615 * config/m68k/sun3os4.mh: Likewise.
6616 * config/mips/vr5000.mt: Likewise.
6617 * config/ns32k/nbsd.mt: Likewise.
6618 * config/pa/hppabsd.mh: Likewise.
6619 * config/pa/hppaosf.mh: Likewise.
6620 * config/powerpc/nbsd.mt: Likewise.
6621 * config/rs6000/rs6000lynx.mh: Likewise.
6622 * config/s390/s390.mt: Likewise.
6623 * config/s390/s390x.mt: Likewise.
6624 * config/sparc/sparclynx.mh: Likewise.
6625 * config/sparc/sun4os4.mh: Likewise.
6626 * config/i386/x86-64linux.mt: Likewise.
6627 * config/sparc/linux.mh: Likewise.
6629 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
6631 * configure.tgt: Configure gdbserver only for known working
6632 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
6633 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
6634 SUBDIRS if it is configured. Update comment for ${nativefile}.
6635 * configure: Regenerated.
6637 2002-02-13 Michael Snyder <msnyder@redhat.com>
6639 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
6641 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
6642 (default_gcore_mach): Just return 0, work around a problem in bfd.
6643 (default_gcore_target): OK to return NULL if exec_bfd is null.
6644 (make_mem_sec): Use a cast, avoid a warning.
6646 * procfs.c (find_memory_regions_callback): Use a cast instead of
6647 calling host_pointer_to_address (which complains if
6648 sizeof (host pointer) != sizeof (target pointer)).
6649 (procfs_make_note_section): Avoid overflow in psargs string.
6651 * procfs.c (procfs_make_note_section): Make the default
6652 implementation return an error.
6654 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
6656 * procfs.c (procfs_make_note_section): Provide a default definition
6657 (for alpha-dec-osf4.0f). Fix typos.
6659 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
6661 * linux-proc.c: Add include of regcache.h.
6662 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
6664 2002-02-13 Andrew Cagney <ac131313@redhat.com>
6666 From 2002-01-18 Greg McGary <greg@mcgary.org>:
6667 * memattr.c (create_mem_region): Disallow useless empty region.
6668 Regions are half-open intervals, so allow [A..B) [B..C) as
6671 2002-02-13 Michael Chastain <mec@shout.net>
6673 * defs.h: Kill CONST_PTR.
6674 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
6675 * c-lang.c (c_builtin_types): Likewise.
6676 * ch-lang.c (ch_builtin_types): Likewise.
6677 * f-lang.c (f_builtin_types): Likewise.
6678 * language.c (unknown_builtin_types): Likewise.
6679 * m2-lang.c (m2_builtin_types): Likewise.
6680 * p-lang.c (pascal_builtin_types): Likewise.
6681 * scm-lang.c (c_builtin_types): Likewise.
6683 2002-02-13 Keith Seitz <keiths@redhat.com>
6685 * arm-tdep.h (arm_get_next_pc): Add declaration.
6687 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
6689 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
6690 with other related struct-returning functions.
6691 (arm_extract_struct_value_address): New function.
6692 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
6693 initialize float_format, double_format and long_double_format as
6694 appropriate to the endianness of the target.
6695 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
6696 (arm_use_struct_convention): Delete declaration.
6697 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
6699 2002-02-13 Keith Seitz <keiths@redhat.com>
6701 * defs.h (core_addr_to_string_nz): New function.
6703 2002-02-13 Mark Kettenis <kettenis@gnu.org>
6705 Apply missing bits of 2002-01-15 patch.
6706 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
6707 (fill_fpregset): Use i387_fill_fsave.
6709 2002-02-12 Keith Seitz <keiths@redhat.com>
6711 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
6712 (core_addr_to_string_nz): New function.
6714 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
6716 * arm-linux-nat.c: Really include arm-tdep.h.
6717 * config/arm/tm-linux.h (struct type, struct value): Declare.
6719 2002-02-11 Michael Snyder <msnyder@redhat.com>
6721 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
6722 (gcore section): Ifdef for Solaris and Unixware only.
6723 (procfs_do_thread_registers): Unixware needs one lwpstatus
6724 per thread (not one prstatus or pstatus).
6725 (procfs_make_note_section): Iterate only over kernel threads (lwps),
6726 not over all gdb threads. For unixware, call elfcore_write_pstatus
6727 once before iterating over threads.
6729 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
6731 * arm-tdep.h: New file.
6732 * arm-tdep.c: Include arm-tdep.h.
6733 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
6734 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
6735 (arm_print_float_info, arm_register_type, convert_to_extended)
6736 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
6737 (arm_extract_return_value, arm_register_name): Make static.
6738 (arm_software_single_step): Similarly. Fix types in declaration.
6739 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
6740 (arm_store_return_value, arm_store_struct_return): New functions.
6741 (arm_gdbarch_init): Register the above functions. Also register
6742 call_dummy_start_offset, sizeof_call_dummy_words,
6743 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
6744 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
6745 max_register_virtual_size, register_size. Set up
6746 prologue_cache.saved_regs here, rather than ...
6747 (_initialize_arm_tdep): ... here.
6748 * config/arm/tm-arm.h (struct type, struct value): Delete forward
6750 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
6751 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
6752 (arm_print_float_info, arm_register_type, convert_to_extended)
6753 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
6754 (arm_extract_return_value, arm_register_name): Delete declarations.
6755 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
6756 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
6757 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
6758 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
6759 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6760 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
6761 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
6762 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
6763 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
6764 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
6765 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
6766 (arm_get_next_pc): No-longer static -- these are needed by the RDI
6768 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
6769 * remote-rdi.c remote-rdp.c: Likewise.
6770 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
6771 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
6772 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
6775 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
6776 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
6777 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
6778 from non-ARM_ prefixed definitions.
6779 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
6781 * remote-rdi.c remote-rdp.c: Likewise.
6782 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
6784 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
6786 * arm-tdep.c (arm_frameless_function_invocation)
6787 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
6788 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
6789 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
6790 (arm_pop_frame, arm_get_next_pc): Make static.
6791 (arm_gdbarch_init): Register above in gdbarch structure.
6792 (arm_read_fp): Renamed from arm_target_read_fp.
6793 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
6794 * config/arm/tm-arm.h (arm_frameless_function_invocation)
6795 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
6796 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
6797 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
6798 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
6799 (arm_pc_is_thumb_dummy): Delete declarations.
6800 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
6801 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
6802 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
6803 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
6805 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
6807 * symtab.c (compare_search_syms): New function.
6808 (sort_search_symbols): New function.
6809 (search_symbols): Sort symbols after searching rather than
6812 2002-02-10 Andrew Cagney <ac131313@redhat.com>
6814 * NEWS: Linux -> GNU/Linux.
6816 2002-02-10 Andrew Cagney <ac131313@redhat.com>
6818 * gdbarch.sh: For for level one methods, disallow a definition
6819 when partially multi-arched. Add comments explaining rationale.
6820 * gdbarch.h: Re-generate.
6822 2002-02-10 Andrew Cagney <ac131313@redhat.com>
6824 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
6827 2002-02-10 Andrew Cagney <ac131313@redhat.com>
6829 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
6831 * gdbarch.c: Re-generate.
6833 2002-02-10 Andrew Cagney <ac131313@redhat.com>
6835 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
6836 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
6839 2002-02-10 Andrew Cagney <ac131313@redhat.com>
6841 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
6843 (PUSH_ARGUMENTS): Switch to using predefault.
6844 * gdbarch.c: Regenerate.
6846 2002-02-10 Andrew Cagney <ac131313@redhat.com>
6848 * valops.c (PUSH_ARGUMENTS): Delete definition.
6849 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
6850 partial. Default to default_push_arguments.
6851 * gdbarch.h, gdbarch.c: Regenerate.
6853 2002-02-09 Andrew Cagney <ac131313@redhat.com>
6855 * defs.h (throw_exception): Rename return_to_top_level. Update
6857 * utils.c (error_stream, internal_verror, quit): Ditto.
6858 * top.c (throw_exception, catcher): Ditto.
6859 * sparclet-rom.c (sparclet_load): Ditto.
6860 * remote.c (interrupt_query, minitelnet): Ditto.
6861 * remote-sds.c (interrupt_query): Ditto.
6862 * remote-mips.c (mips_error, mips_kill): Ditto.
6863 * ocd.c (interrupt_query): Ditto.
6864 * monitor.c (monitor_interrupt_query): Ditto.
6865 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
6866 * target.h: Update comment.
6868 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
6870 2002-02-09 Andrew Cagney <ac131313@redhat.com>
6872 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
6873 default_double_format.
6874 * gdbarch.h, gdbarch.c: Re-generate.
6875 * findvar.c (floatformat_unknown): Delete variable definition.
6876 * doublest.h (floatformat_unknown): Delete variable declaration.
6878 2002-02-09 Jim Blandy <jimb@redhat.com>
6880 * stabsread.c (read_type): Add code to parse Sun's syntax for
6881 prototyped function types.
6883 2002-02-09 Andrew Cagney <ac131313@redhat.com>
6885 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
6886 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
6888 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6890 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
6891 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
6892 now _initialize_xcoffsolib gets called again and overrides the
6893 commands from solib.c in a native configuration.
6895 2002-02-09 Mark Kettenis <kettenis@gnu.org>
6897 * doublest.c (store_typed_floating): Don't try to return a value.
6900 2002-02-08 Jim Blandy <jimb@redhat.com>
6902 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
6903 is prototyped and has no arguments, print its argument list as
6906 2002-02-08 Chris Demetriou <cgd@broadcom.com>
6908 * MAINTAINERS (write-after-approval): Add myself.
6909 (paper-trail): I've escaped!
6911 2002-02-08 Christopher Faylor <cgf@redhat.com>
6913 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
6915 (_initialize_check_for_gdb_ini): Ditto.
6917 2002-02-08 Martin M. Hunt <hunt@redhat.com>
6919 * win32-nat.c (cygwin_pid_to_str): Fix typo.
6920 xaprintf -> xasprintf.
6922 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
6924 * win32-nat.c: Remove use of printf and sprintf functions.
6926 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
6928 * arm-tdep.c (arm_frame_chain_valid): Make static.
6929 (arm_push_arguments): Likewise.
6930 (arm_gdbarch_init): New function.
6931 (_initialize_arm_tdep): Call it.
6932 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
6933 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
6934 (FRAME_CHAIN_VALID): Delete.
6935 (arm_frame_chain_valid): Delete declaration.
6936 (PUSH_ARGUMENTS): Delete.
6937 (arm_push_arguments): Delete declaration.
6938 (CALL_DUMMY_P): Delete.
6940 2002-02-08 Andrew Cagney <ac131313@redhat.com>
6941 Corinna Vinschen <vinschen@redhat.com>
6943 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
6944 on builtin float types.
6946 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
6948 * utils.c: Include <curses.h> before "bfd.h".
6949 * tui/tui-hooks.c: Likewise.
6950 * tui/tui.c: Likewise.
6951 * tui/tuiCommand.c: Likewise.
6952 * tui/tuiData.c: Likewise.
6953 * tui/tuiDataWin.c: Likewise.
6954 * tui/tuiDisassem.c: Likewise.
6955 * tui/tuiGeneralWin.c: Likewise.
6956 * tui/tuiIO.c: Likewise.
6957 * tui/tuiLayout.c: Likewise.
6958 * tui/tuiRegs.c: Likewise.
6959 * tui/tuiSource.c: Likewise.
6960 * tui/tuiSourceWin.c: Likewise.
6961 * tui/tuiStack.c: Likewise.
6962 * tui/tuiWin.c: Likewise.
6964 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
6966 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
6967 to include space for pseudoregs as well. Update loops accordingly.
6968 (sh_fp_frame_init_saved_regs): Ditto.
6969 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
6971 2002-02-07 Andrew Cagney <ac131313@redhat.com>
6973 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
6974 Add Richard Earnshaw to Arm maintainers.
6976 2002-02-07 Andrew Cagney <ac131313@redhat.com>
6978 * defs.h (warning_begin): Delete declaration.
6980 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
6983 2002-02-07 Michael Snyder <msnyder@redhat.com>
6985 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
6986 Logic bug, remove misplaced else.
6988 2002-02-07 Klee Dienes <klee@apple.com>
6990 * fork-inferior.c (fork_inferior): Add '!' to the list of
6991 characters that need to be quoted when building a string for the
6992 shell. Quote '!' specifically with a backslash, since CSH chokes
6993 when trying to evaluate "str!str".
6995 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
6997 * rdi-share/host.h: Only provide a typedef for bool if it is not
7000 2002-02-04 Michael Snyder <msnyder@redhat.com>
7002 * breakpoint.h (enum bptype): Add new overlay event bp type.
7003 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
7005 * breakpoint.c (create_internal_breakpoint): New function.
7006 (internal_breakpoint_number): Moved into create_internal_breakpoint.
7007 (create_longjmp_breakpoint): Use create_internal_breakpoint.
7008 (create_thread_event_breakpoint): Ditto.
7009 (create_solib_event_breakpoint): Ditto.
7010 (create_overlay_event_breakpoint): New function.
7011 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
7012 (update_breakpoints_after_exec): Delete and re-initialize
7013 overlay event breakpoints after an exec. Add FIXME comment
7014 about longjmp breakpoint.
7015 (print_it_typical): Ignore overlay event breakpoints.
7016 (print_one_breakpoint): Ditto.
7018 (bpstat_what): Do not stop for overlay event breakpoints.
7019 (delete_breakpoint): Don't delete overlay event breakpoints.
7020 (breakpoint_re_set_one): Delete the overlay event breakpoint.
7021 (breakpoint_re_set): Re-create overlay event breakpoint.
7023 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
7024 (overlay_manual_command): Disable overlay breakpoints.
7025 (overlay_off_command): Disable overlay breakpoints.
7027 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
7029 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
7030 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
7031 to here from config/tm-arm.h.
7032 (coff_sym_is_thumb): Make static.
7033 (arm_elf_make_msymbol_special): New function.
7034 (arm_coff_make_msymbol_special): New function.
7035 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
7036 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
7037 (coff_sym_is_thumb): Delete declaration.
7038 (arm_elf_make_msymbol_special): Declare.
7039 (arm_coff_make_msymbol_special): Declare.
7040 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
7041 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
7043 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
7045 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
7047 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
7049 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
7050 * gdbarch.c gdbarch.h: Regenerate.
7051 * arch-utils.c (default_print_float_info): New function.
7052 * arch-utils.h (default_print_float_info): Prototype it.
7053 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
7054 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
7055 (PRINT_FLOAT_INFO): Document it.
7057 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
7058 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
7059 (PRINT_FLOAT_INFO): Define.
7061 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
7063 * win32-nat.c (_initialize_check_for_gdb_ini):
7064 Add typecast to sprintf argument to suppress a warning.
7066 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
7068 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7069 to allow easier handling of pass state.
7070 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
7071 that gives exception name and address.
7072 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
7073 and set last_sig value to ourstatus->value.sig. Some missing
7075 (child_continue): Correctly report continue_status.
7076 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7077 TARGET_SIGNAL_0 (new default value).
7078 (child_resume): consider sig argument passed to decide if
7079 the exception should be passed to debuggee or not.
7081 2002-02-05 Michael Snyder <msnyder@redhat.com>
7083 * regcache.c (fetch_register): Call target_fetch_register
7084 only if we don't call FETCH_PSEUDO_REGISTER.
7085 (store_register): Call target_store_register only if we
7086 don't call STORE_PSEUDO_REGISTER.
7088 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
7090 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
7091 ELF_MAKE_MSYMBOL_SPECIAL.
7092 * gdbarch.c, gdbarch.h: Regenerate.
7093 * arch-utils.c (default_make_msymbol_special): New function.
7094 * arch-utils.h (default_make_msymbol_special): Export.
7095 * elfread.c (elf_symtab_read): Compile use of
7096 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
7098 * coffread.c (coff_symtab_read): Ditto, for
7099 COFF_MAKE_MSYMBOL_SPECIAL.
7101 2002-02-05 Jim Blandy <jimb@redhat.com>
7103 * solib-svr4.c (svr4_truncate_ptr): New function.
7104 (svr4_relocate_section_addresses): Do the address arithmetic with
7105 the appropriate truncation for target addresses, even when
7106 CORE_ADDR is larger than a target address.
7108 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7110 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
7113 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7115 * gdbserver/linux-low.c (kill_inferior): Remove commented out
7118 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7120 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
7122 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7124 * gdbserver/linux-low.c: Remove unused include files.
7126 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7128 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
7129 (read_inferior_memory): Use it.
7130 (write_inferior_memory): Likewise.
7132 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7134 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
7135 grubbing through sys_errlist.
7137 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7139 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
7141 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
7142 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
7144 2002-02-04 Andrew Cagney <ac131313@redhat.com>
7146 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
7147 (do_sfunc, set_cmd_sfunc): New functions.
7149 * command.h (struct cmd_list_element): Add field func.
7150 * cli/cli-decode.h (struct cmd_list_element): Ditto.
7151 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
7152 * cli/cli-decode.h: Ditto.
7154 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
7155 (help_all, help_cmd_list): Ditto.
7156 (find_cmd, complete_on_cmdlist): Ditto.
7157 * top.c (execute_command): Ditto.
7159 * cli/cli-setshow.c (do_setshow_command): Call func instead of
7162 * infcmd.c (notice_args_read): Fix function signature.
7164 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
7165 * cli/cli-decode.c (add_set_cmd): Ditto.
7166 * utils.c (initialize_utils): Ditto.
7167 * maint.c (_initialize_maint_cmds): Ditto.
7168 * infrun.c (_initialize_infrun): Ditto.
7169 * demangle.c (_initialize_demangler): Ditto.
7170 * remote.c (add_packet_config_cmd): Ditto.
7171 * mips-tdep.c (_initialize_mips_tdep): Ditto.
7172 * cris-tdep.c (_initialize_cris_tdep): Ditto.
7173 * proc-api.c (_initialize_proc_api): Ditto.
7174 * kod.c (_initialize_kod): Ditto.
7175 * valprint.c (_initialize_valprint): Ditto.
7176 * top.c (init_main): Ditto.
7177 * infcmd.c (_initialize_infcmd): Ditto.
7178 * corefile.c (_initialize_core): Ditto.
7179 * arm-tdep.c (_initialize_arm_tdep): Ditto.
7180 * arch-utils.c (initialize_current_architecture): Ditto.
7181 (_initialize_gdbarch_utils): Ditto.
7182 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
7184 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
7185 * wince.c (_initialize_inftarg): Ditto.
7186 * symfile.c (_initialize_symfile): Ditto.
7187 * mips-tdep.c (_initialize_mips_tdep): Ditto.
7188 * language.c (_initialize_language): Ditto.
7189 * arc-tdep.c (_initialize_arc_tdep): Ditto.
7191 2002-02-04 Michael Snyder <msnyder@redhat.com>
7193 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
7195 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
7197 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
7198 Add rules for building the register data files.
7200 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
7202 * regformats/regdat.sh: Add braces to the definition of
7203 expedite_regs_${arch}.
7205 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
7207 * regformats/regdef.h (struct reg): Add comment describing the
7208 requirements for offset and size fields.
7210 2002-02-04 Andreas Schwab <schwab@suse.de>
7212 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
7213 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
7215 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
7217 * gdbarch.sh (copyright): Update years in generated header.
7218 (SMASH_TEXT_ADDRESS): Add rule.
7219 * gdbarch.h, gdbarch.c: Re-generate.
7220 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
7221 * dbxread.c: Likewise.
7222 * dwarfread.c: Likewise.
7223 * elfread.c: Likewise.
7224 * somread.c: Likewise.
7226 * arm-tdep.c (arm_smash_text_address): New function.
7227 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
7229 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
7231 Add support for hardware watchpoints on win32 native.
7232 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
7233 CONTEXT_DEBUG_REGISTERS.
7234 (dr variable): New variable. Static array containing a local copy
7236 (debug_registers_changed): New variable. Reflects when debug registers
7237 are changed and need to be written to inferior.
7238 (debug_registers_used): New variable. Reflects when any debug register
7239 was set, used when new threads are created.
7240 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
7242 (thread_rec): Set dr array if id is the thread of current_event .
7243 (child_continue, child_resume): Change the debug registers for all
7244 threads if debug_registers_changed.
7245 (child_add_thread): Change the debug registers if debug_registers_used.
7246 * config/i386/cygwin.mh: Add use of i386-nat.o file.
7247 Link nm.h to new nm-cygwin.h file.
7248 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
7249 of hardware registers.
7251 2002-02-03 Andrew Cagney <ac131313@redhat.com>
7253 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
7254 Restore behavour broken by 2002-01-20 Andrew Cagney
7255 <ac131313@redhat.com> IEEE_FLOAT removal.
7257 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
7259 * c-valprint.c (c_val_print): Pass a proper valaddr to
7260 cp_print_class_method.
7261 * valops.c (search_struct_method): If there is only one method
7262 and args is NULL, return that method.
7264 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
7266 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
7267 accessing tag_name directly.
7269 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
7271 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
7272 of accessing tag_name directly.
7274 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
7277 * gdbtypes.c (replace_type): New function.
7278 * gdbtypes.h (replace_type): Add prototype.
7279 * stabsread.c (read_type): Use replace_type.
7281 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
7283 * Makefile.in (memattr.o): Add missing dependencies rule.
7285 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7287 * breakpoint.c (break_at_finish_command): Really export.
7288 (break_at_finish_at_depth_command): Ditto.
7289 (tbreak_at_finish_command): Ditto.
7290 * hppa-tdep.c: Include completer.h.
7291 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
7292 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
7294 2002-02-01 Andrew Cagney <ac131313@redhat.com>
7296 * utils.c (do_write): New function.
7297 (error_stream): Rewrite combining the code from error_begin and
7299 (verror): Rewrite using error_stream.
7300 (error_begin): Delete function.
7302 2002-02-01 Andrew Cagney <ac131313@redhat.com>
7304 * utils.c (error_begin): Make static.
7305 * defs.h (error_begin): Delete declaration.
7307 * linespec.c (cplusplus_error): Replace cplusplus_hint.
7308 (decode_line_1): Use cplusplus_error instead of error_begin,
7309 cplusplus_hint and return_to_top_level.
7310 * coffread.c (coff_symfile_read): Use error instead of error_begin
7311 and return_to_top_level.
7312 * infrun.c (default_skip_permanent_breakpoint): Ditto.
7314 2002-02-01 Andrew Cagney <ac131313@redhat.com>
7316 * language.h (type_error, range_error): Make string parameter
7318 * language.c (warning_pre_print): Delete extern declaration.
7319 * dwarfread.c (warning_pre_print): Ditto.
7320 * language.c (type_error, range_error): Rewrite to use verror and
7321 vwarning instead of warning_begin.
7323 2002-02-01 Michael Snyder <msnyder@redhat.com>
7325 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
7326 (set_ignore_count): Move misplaced comment back where it belongs.
7328 2002-02-01 Andrew Cagney <ac131313@redhat.com>
7330 * command.h (NO_FUNCTION): Delete macro.
7331 * cli/cli-decode.h (NO_FUNCTION): Ditto.
7332 * top.c (execute_command): Replace NO_FUNCTION with NULL.
7333 * tracepoint.c (_initialize_tracepoint): Ditto.
7334 * cli/cli-decode.c (add_set_cmd): Ditto.
7335 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7337 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
7339 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
7340 Update ``this'' pointer when calling virtual functions.
7342 2002-02-01 Michael Snyder <msnyder@redhat.com>
7344 * breakpoint.c (create_temp_exception_breakpoint): Delete.
7345 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
7347 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
7349 * regformats/reg-arm.dat: New file.
7350 * regformats/reg-i386.dat: New file.
7351 * regformats/reg-ia64.dat: New file.
7352 * regformats/reg-m68k.dat: New file.
7353 * regformats/reg-mips.dat: New file.
7354 * regformats/reg-ppc.dat: New file.
7355 * regformats/reg-sh.dat: New file.
7356 * regformats/regdef.h: New file.
7357 * regformats/regdat.sh: New file.
7359 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
7361 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
7362 (arm_frame_args_address, arm_frame_locals_address): New functions.
7363 (arm_frame_num_args): New function.
7364 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
7365 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
7366 (FRMA_NUM_ARGS): Call arm_frame_num_args.
7368 2002-01-31 Michael Snyder <msnyder@redhat.com>
7370 * breakpoint.c (break_at_finish_command): Export.
7371 (break_at_finish_at_depth_command): Export.
7372 (tbreak_at_finish_command): Export.
7373 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
7374 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
7375 "tbreak" commands, which are HPPA specific.
7377 * printcmd.c (disassemble_command): Remove an ancient
7378 artifact of an old merge.
7380 * symfile.h (enum overlay_debugging_state):
7381 Define enum constant values for overlay mode.
7382 * symfile.c (overlay_debugging): Use enums instead of literals.
7383 (overlay_is_mapped, overlay_auto_command,
7384 overlay_manual_command): Ditto.
7386 * breakpoint.c (insert_breakpoints, remove_breakpoint,
7387 breakpoint_here_p, breakpoint_inserted_here_p,
7388 breakpoint_thread_match, bpstat_stop_status,
7389 describe_other_breakpoints, check_duplicates, clear_command):
7390 Coding standard fixes.
7392 * target.c (target_xfer_memory): Add spaces, coding standard.
7393 (do_xfer_memory): Add missing line to trust-readonly
7394 code: check bfd SEC_READONLY flag for section.
7396 2002-01-31 Andrew Cagney <ac131313@redhat.com>
7398 * PROBLEMS: Fix typo, 5.1->5.1.1.
7400 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
7402 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
7403 data symbols, since we search based on textlow and texthigh.
7404 (find_pc_sect_symtab): Likewise.
7406 2002-01-30 Andrew Cagney <ac131313@redhat.com>
7408 * defs.h (vwarning): Declare.
7409 * utils.c (vwarning): New function.
7410 (warning): Call vwarning.
7411 (warning_begin): Delete function.
7413 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
7414 the warning message.
7415 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
7418 2002-01-30 Michael Snyder <msnyder@redhat.com>
7420 * NEWS: Mention "set trust-readonly-sections" command.
7421 Mention generate-core-file command.
7423 2002-01-15 Michael Snyder <msnyder@redhat.com>
7425 * target.c: New command, "set trust-readonly-sections on".
7426 (do_xfer_memory): Honor the suggestion to trust readonly sections
7427 by reading them from the object file instead of from the target.
7428 (initialize_targets): Register command "set trust-readonly-sections".
7430 2002-01-29 Andrew Cagney <ac131313@redhat.com>
7432 * parse.c (target_map_name_to_register): Simplify, search regs and
7433 pseudo-regs using a single loop.
7435 2002-01-30 Andrew Cagney <ac131313@redhat.com>
7437 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
7439 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
7441 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
7442 * config/i386/i386v42mp.mh: Add i387-nat.o .
7443 * i386v4-nat.c: Include i387-nat.h.
7444 (supply_fpregset): Use i387_supply_fsave.
7445 (fill_fpregset): Use i387_fill_fsave.
7447 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
7449 * arm-tdep.c (arm_call_dummy_words): Define.
7450 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
7451 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
7452 (CALL_DUMMY_WORDS): Define.
7453 (arm_call_dummy_words): Declare.
7454 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
7455 (arm_linux_call_dummy_words): Declare.
7457 2002-01-30 Andreas Schwab <schwab@suse.de>
7459 * m68klinux-nat.c: Fix last change to use regcache_collect
7460 instead of referencing registers[] directly.
7462 2002-01-29 Andrew Cagney <ac131313@redhat.com>
7464 * parse.c (target_map_name_to_register): Delete code wrapped in
7465 #ifdef REGISTER_NAME_ALIAS_HOOK.
7467 2002-01-28 Michael Snyder <msnyder@redhat.com>
7469 * regcache.c (legacy_read_register_gen): Need to be able to
7470 read pseudo-register as well as real register.
7471 (legacy_write_register_gen): Ditto.
7473 2002-01-28 Andrew Cagney <ac131313@redhat.com>
7475 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
7476 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
7477 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
7478 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
7479 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
7480 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
7481 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
7482 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
7483 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
7484 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
7485 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
7486 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
7487 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
7488 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
7489 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
7490 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
7491 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
7492 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
7493 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
7494 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
7496 2002-01-28 Andrew Cagney <ac131313@redhat.com>
7498 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
7499 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
7500 (initialize_current_architecture): Update target_byte_order using
7501 information from BFD.
7502 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
7503 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
7505 2002-01-28 Andrew Cagney <ac131313@redhat.com>
7507 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
7508 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
7510 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
7511 #ifdef INVALID_FLOAT.
7512 * infcmd.c (do_registers_info): Ditto.
7513 * values.c (unpack_double): Ditto. Add comment.
7515 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
7516 already commented out.
7518 2002-01-26 Andreas Schwab <schwab@suse.de>
7520 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
7521 * m68klinux-nat.c: Update ptrace interface for fetching/storing
7522 registers and add support for PTRACE_GETREGS.
7524 2002-01-24 Andrew Cagney <ac131313@redhat.com>
7526 GDB 5.1.1 released from 5.1 branch.
7527 * NEWS: Add 5.1.1 news.
7528 * README: Sync with 5.1 branch.
7530 2002-01-23 Fred Fish <fnf@redhat.com>
7532 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
7533 stabstring on initial malloc. Reallocing will copy it for us,
7536 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
7538 * Makefile.in (hpread_h): Delete.
7539 (HFILES_NO_SRCDIR): Remove hpread.h.
7540 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
7541 (hpread.o): Update dependencies.
7542 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
7544 * hp-psymtab-read.c: Remove file.
7545 * hp-symtab-read.c: Remove file.
7546 * hpread.h: Remove file.
7548 * hpread.c: Merge all contents of hp-psymtab-read.c,
7549 hp-symtab-read.c and hpread.h into this file, as it was prior to
7552 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
7553 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
7554 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
7555 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
7557 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
7559 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
7560 fill_gregset): Call gdbarch_tdep() just once, assign result to
7561 variable and use that, instead of calling the function several
7564 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
7566 * configure.host: Accept sparcv9 as alias for sparc64.
7567 * configure.tgt: Likewise.
7569 2002-01-22 Kevin Buettner <kevinb@redhat.com>
7571 * solib-aix5.c (build_so_list_from_mapfile)
7572 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
7573 arguments is not reversed.
7574 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
7575 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
7577 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
7579 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
7580 modified version of obsolete sh_fetch_pseudo_register.
7581 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
7582 (sh4_register_read): New function.
7583 (sh_pseudo_register_write): New function. Renamed and modified
7584 version of obsolete sh_store_pseudo_register.
7585 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
7586 (sh4_register_write): New function.
7587 (sh_gdbarch_init): Remove setting of gdbarch function
7588 fetch_pseudo_register and store_pseudo_register. Remove setting of
7589 register_convert_to_raw, register_convert_to_virtual,
7590 register_convertible.
7591 (sh_sh4_register_convertible): Delete. No longer needed. All is
7592 taken care by architecture specific functions
7593 register_read/register_write.
7594 (sh_sh4_register_convert_to_virtual): Make static.
7595 (sh_sh4_register_convert_to_raw): Ditto.
7597 2002-01-22 Andrew Cagney <ac131313@redhat.com>
7599 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
7600 (floatformat_is_nan, floatformat_mantissa): Ditto.
7602 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
7603 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
7604 builtin_type_ieee_double_little,
7605 builtin_type_ieee_double_littlebyte_bigword,
7606 builtin_type_m68881_ext, builtin_type_i960_ext,
7607 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
7608 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
7609 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
7610 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
7612 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
7614 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
7615 parameter. Set frameless flag if it exists and depended of
7616 whether the scanned function is frameless or not.
7617 (xstormy16_skip_prologue): If function is frameless, return
7618 result of xstormy16_scan_prologue().
7619 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
7622 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
7624 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
7625 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
7626 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
7627 sh_sh4_register_byte, sh_sh4_register_raw_size,
7628 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
7629 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
7630 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
7631 sh_store_pseudo_register, sh_do_pseudo_register): Call
7632 gdbarch_tdep() just once, assign result to variable and use that,
7633 instead of calling the function several times.
7635 2002-01-20 Mark Kettenis <kettenis@gnu.org>
7637 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
7638 macros instead of LAST_FPU_CTRL_REGNUM.
7639 (store_register): Likewise.
7641 2002-01-21 Jim Blandy <jimb@redhat.com>
7643 * infcmd.c (run_command): Check that the `exec' target layer's BFD
7644 is up-to-date before running the program, not just when a program
7647 2002-01-21 Fred Fish <fnf@redhat.com>
7649 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
7650 when we have found all instructions we are looking for.
7652 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
7654 * arm-tdep.c (arm_register_name): New function.
7655 (arm_registers_names): Make static.
7656 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
7657 (arm_register_name): Declare.
7658 (REGISTER_NAME): Use it.
7660 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
7661 Kevin Buettner <kevinb@redhat.com>
7663 Convert arm targets to new FRAME interface.
7664 * arm-tdep.c (struct frame_extra_info): Remove fsr.
7665 (arm_frame_find_save_regs): Delete.
7666 (arm_frame_init_saved_regs): New.
7667 (arm_init_extra_frame_info): Alloacte saved_regs as required.
7668 Allocate extra_info as required. Convert all uses of fsr.regs
7669 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
7671 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
7672 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
7673 (check_prologue_cache, save_prologue_cache): Likewise.
7674 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
7675 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
7676 (FRAME_FIND_SAVED_REGS): Delete.
7677 (arm_frame_find_saved_regs): Delete prototype.
7678 (arm_frame_init_saved_regs): New prototype.
7679 (FRAME_INIT_SAVED_REGS): Define.
7681 2002-01-20 Andrew Cagney <ac131313@redhat.com>
7683 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
7685 2002-01-20 Andrew Cagney <ac131313@redhat.com>
7687 From Jeff Law <law@redhat.com>:
7688 * infttrace.c: Include <sys/pstat.h>.
7689 (child_pid_to_exec_file): Revamp. Use pstat call to get the
7690 exec file if the ttrace equivalent fails.
7692 2002-01-20 Andrew Cagney <ac131313@redhat.com>
7694 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
7695 (closeLogFile): Ditto.
7697 2002-01-20 Michael Chastain <mec@shout.net>
7699 * top.c (print_gdb_version): Bump copyright year to 2002.
7701 2002-01-20 Andrew Cagney <ac131313@redhat.com>
7703 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
7704 Zannoni and Eli Zaretskii.
7706 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
7708 * buildsym.c: Update copyright years.
7709 * c-typeprint.c: Likewise.
7710 * dwarf2read.c: Likewise.
7711 * f-typeprint.c: Likewise.
7712 * gdbtypes.c: Likewise.
7713 * gdbtypes.h: Likewise.
7714 * hp-symtab-read.c: Likewise.
7715 * hpread.c: Likewise.
7716 * mdebugread.c: Likewise.
7717 * p-typeprint.c: Likewise.
7719 2002-01-20 Andrew Cagney <ac131313@redhat.com>
7721 * remote-sim.c (gdbsim_open): Simplify code testing the macro
7722 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
7723 byte-order selectable.
7724 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
7725 * arch-utils.c: Ditto.
7726 (set_endian): Ditto.
7727 (set_endian_from_file): Ditto.
7728 * gdbserver/low-sim.c (create_inferior): Ditto.
7729 * gdbarch.sh: Ditto.
7730 * gdbarch.h: Re-generate.
7731 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
7732 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
7733 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
7734 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
7735 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
7736 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
7737 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
7738 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
7740 * config/mips/tm-wince.h: Remove #undef of macro
7741 TARGET_BYTE_ORDER_SELECTABLE.
7742 * config/sh/tm-wince.h: Ditto.
7744 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
7746 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
7747 member function fields. Add accessor macro
7748 TYPE_FN_FIELD_ARTIFICIAL.
7749 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
7750 * c-typeprint.c (c_type_print_base): Skip artificial member
7753 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
7755 * f-typeprint.c: Delete unused function f_type_print_args.
7756 * p-typeprint.c: Delete unused function pascal_type_print_args.
7758 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
7760 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
7761 comment. Add ``artificial'' to ``union field_location''.
7763 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
7765 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
7766 * mdebugread.c (parse_symbol): Likewise.
7767 * stabsread.c (define_symbol): Likewise.
7768 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
7769 initializing TYPE_FIELD_BITPOS to n (obsolete).
7770 (hpread_doc_function_type): Likewise.
7771 * hpread.c (hpread_function_type): Likewise.
7773 2002-01-20 Andrew Cagney <ac131313@redhat.com>
7775 * configure.in (host_makefile_frag): Only require a host makefile
7776 fragment when a native build.
7777 * configure: Re-generate.
7779 2002-01-20 Andrew Cagney <ac131313@redhat.com>
7781 * doublest.h (floatformat_from_type): Declare.
7782 * doublest.c (floatformat_from_type): New function.
7783 (convert_typed_floating): Use.
7785 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
7786 call to function floatformat_from_type.
7788 * gdbarch.sh (IEEE_FLOAT): Delete.
7789 * gdbarch.h, gdbarch.c: Re-generate.
7790 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
7791 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
7792 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
7793 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
7794 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
7795 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
7796 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
7797 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
7798 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
7799 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
7800 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
7801 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
7803 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
7804 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7805 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7806 * sh-tdep.c (sh_gdbarch_init): Ditto.
7807 * mips-tdep.c (mips_gdbarch_init): Ditto.
7808 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7809 * cris-tdep.c (cris_gdbarch_init): Ditto.
7811 2002-01-20 Jiri Smid <smid@suse.cz>
7813 * configure.host, configure.tgt: Support x86-64.
7814 * NEWS: Note new target x86-64.
7816 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
7817 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
7818 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
7819 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
7820 x86-64-linux-nat.o): Fix dependencies.
7822 2002-01-19 Andrew Cagney <ac131313@redhat.com>
7824 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
7825 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
7826 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
7827 * config/sparc/xm-sun4os4.h: Delete file.
7828 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
7830 2002-01-19 Andrew Cagney <ac131313@redhat.com>
7832 * config/sparc/sparclynx.mh (XM_FILE): Delete.
7833 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
7834 * config/m68k/m68klynx.mh (XM_FILE): Delete.
7835 * config/i386/i386lynx.mh (XM_FILE): Delete.
7836 * config/rs6000/xm-rs6000ly.h: Delete file.
7837 * config/sparc/xm-sparclynx.h: Delete file.
7838 * config/m68k/xm-m68klynx.h: Delete file.
7839 * config/i386/xm-i386lynx.h: Delete file.
7840 * config/xm-lynx.h: Delete file.
7841 * config/djgpp/fnchange.lst: Update.
7843 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
7845 * alpha-tdep.c (alpha_register_byte): New function.
7846 (alpha_register_raw_size): Ditto.
7847 (alpha_register_virtual_size): Ditto.
7848 (alpha_skip_prologue_internal): Renamed from
7849 alpha_skip_prologue.
7850 (alpha_skip_prologue): New version that calls
7851 alpha_skip_prologue_internal.
7852 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
7853 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
7854 second argument from alpha_skip_prologue.
7855 (REGISTER_BYTE): Use alpha_register_byte.
7856 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
7857 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
7858 (FRAMELESS_FUNCTION_INVOCATION): Use
7859 generic_frameless_function_invocation_not.
7860 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
7861 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
7863 2002-01-19 Andrew Cagney <ac131313@redhat.com>
7865 * config/mips/xm-news-mips.h: Delete file.
7866 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
7868 * config/m88k/xm-m88k.h: Delete file.
7869 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
7870 * config/m88k/xm-delta88v4.h: Ditto.
7871 * config/m88k/xm-delta88.h: Ditto.
7873 * config/alpha/xm-fbsd.h: Delete file.
7874 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
7876 * config/sparc/xm-sparc.h: Delete file.
7877 * Makefile.in (xm-sun4os4.h): Delete dependency.
7878 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
7879 * config/sparc/xm-sun4os4.h: Ditto.
7880 * config/sparc/xm-linux.h: Ditto.
7882 * config/i386/xm-windows.h: Delete file.
7884 2002-01-19 Andrew Cagney <ac131313@redhat.com>
7886 * utils.c: Include <sys/param.h> for MAXPATHLEN.
7887 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
7889 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
7891 * alpha-tdep.c (alpha_call_dummy_words): New.
7892 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
7893 (CALL_DUMMY_P): Define.
7894 (CALL_DUMMY_WORDS): Define.
7895 (SIZEOF_CALL_DUMMY_WORDS): Define.
7897 2002-01-19 Per Bothner <per@bothner.com>
7899 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
7900 isn't NULL, which can happen with some gcj-3.x-produced code.
7902 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
7904 * alpha-tdep.c (alpha_register_virtual_type): New function.
7905 (alpha_init_frame_pc_first): Ditto.
7906 (alpha_fix_call_dummy): Ditto.
7907 (alpha_store_struct_return): Ditto.
7908 (alpha_extract_struct_value_address): Ditto.
7909 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
7910 alpha_register_virtual_type.
7911 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
7912 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
7913 alpha_extract_struct_value_address.
7914 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
7915 (INIT_FRAME_PC): Use init_frame_pc_noop.
7916 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
7918 2002-01-19 Mark Kettenis <kettenis@gnu.org>
7920 * i386gnu-nat.c: Include "i386-tdep.h".
7921 (fetch_fpregs): Simplify code dealing with uninitialized floating
7922 point states such that it doesn't require FP7_REGNUM.
7924 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
7926 * alpha-tdep.c (frame_extra_info): New.
7927 (alpha_find_saved_regs): Make static. Use
7929 (alpha_frame_init_saved_regs): New function.
7930 (alpha_frame_saved_pc): Use frame->extra_info.
7931 (temp_saved_regs): Don't declare as struct frame_saved_regs.
7932 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
7933 (init_extra_frame_info): Rename to...
7934 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
7935 (alpha_print_extra_frame_info): New function.
7936 (alpha_frame_locals_address): Ditto.
7937 (alpha_frame_args_address): Ditto.
7938 (alpha_pop_frame): Use frame->extra_info.
7939 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
7940 alpha_frame_args_address.
7941 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
7942 (alpha_find_saved_regs): Remove prototype.
7943 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
7944 (EXTRA_FRAME_INFO): Remove.
7945 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
7946 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
7948 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
7950 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
7951 (alpha_cannot_fetch_register): Ditto.
7952 (alpha_cannot_store_register): Ditto.
7953 (alpha_register_convertible): Ditto.
7954 (alpha_use_struct_convention): Ditto.
7955 * config/alpha/tm-alpha.h: Update copyright years.
7956 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
7957 (INNER_THAN): Use core_addr_lessthan.
7958 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
7959 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
7960 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
7961 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
7962 (FRAME_CHAIN): Remove unnecessary cast.
7964 2002-01-18 Andrew Cagney <ac131313@redhat.com>
7966 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
7969 2002-01-18 Andrew Cagney <ac131313@redhat.com>
7971 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
7972 * monitor.c, remote-array.c, remote-bug.c: Ditto.
7973 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
7974 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
7975 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
7976 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
7977 * x86-64-linux-nat.c: Ditto.
7979 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
7981 * alpha-tdep.c (alpha_register_name): New function.
7982 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
7983 (REGISTER_NAME): Define.
7985 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
7987 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
7989 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
7991 * alpha-tdep.c: Update copyright years.
7992 (alpha_next_pc): New function.
7993 (alpha_software_single_step): Ditto.
7994 * config/alpha/tm-alpha.h: Add prototype for
7995 alpha_software_single_step.
7997 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
7999 * alphabsd-nat.c: Update copyright years.
8000 (fill_gregset): Use regcache_collect.
8001 (fill_fpregset): Likewise.
8002 (fetch_inferior_registers): Only fetch integer registers
8003 if requested to do so.
8004 (store_inferior_registers): Only store integer registers
8005 if requested to do so.
8007 2002-01-17 Andrew Cagney <ac131313@redhat.com>
8009 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
8010 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
8011 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
8012 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
8013 * config/alpha/fbsd.mh (XDEPFILES): Delete.
8014 * config/arm/linux.mh (XDEPFILES): Delete.
8015 * config/arm/nbsd.mh (XDEPFILES): Delete.
8016 * config/i386/i386dgux.mh (XDEPFILES): Delete.
8017 * config/i386/i386sol2.mh (XDEPFILES): Delete.
8018 * config/i386/i386m3.mh (XDEPFILES): Delete.
8019 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
8020 * config/i386/i386gnu.mh (XDEPFILES): Delete.
8021 * config/i386/fbsd.mh (XDEPFILES): Delete.
8022 * config/i386/i386bsd.mh (XDEPFILES): Delete.
8023 * config/i386/i386sco5.mh (XDEPFILES): Delete.
8024 * config/i386/i386v4.mh (XDEPFILES): Delete.
8025 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
8026 * config/i386/i386sco4.mh (XDEPFILES): Delete.
8027 * config/i386/i386aix.mh (XDEPFILES): Delete.
8028 * config/i386/go32.mh (XDEPFILES): Delete.
8029 * config/i386/cygwin.mh (XDEPFILES): Delete.
8030 * config/i386/i386lynx.mh (XDEPFILES): Delete.
8031 * config/i386/i386mach.mh (XDEPFILES): Delete.
8032 * config/i386/i386v32.mh (XDEPFILES): Delete.
8033 * config/i386/linux.mh (XDEPFILES): Delete.
8034 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
8035 * config/i386/ncr3000.mh (XDEPFILES): Delete.
8036 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
8037 * config/i386/i386sco.mh (XDEPFILES): Delete.
8038 * config/i386/i386v.mh (XDEPFILES): Delete.
8039 * config/i386/nbsd.mh (XDEPFILES): Delete.
8040 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
8041 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
8042 * config/i386/symmetry.mh (XDEPFILES): Delete.
8043 * config/i386/obsd.mh (XDEPFILES): Delete.
8044 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
8045 * config/ia64/linux.mh (XDEPFILES): Delete.
8046 * config/ia64/aix.mh (XDEPFILES): Delete.
8047 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
8048 * config/m68k/dpx2.mh (XDEPFILES): Delete.
8049 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
8050 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
8051 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
8052 * config/m68k/linux.mh (XDEPFILES): Delete.
8053 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
8054 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
8055 * config/m68k/nbsd.mh (XDEPFILES): Delete.
8056 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
8057 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
8058 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
8059 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
8060 * config/m88k/delta88.mh (XDEPFILES): Delete.
8061 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
8062 * config/m88k/m88k.mh (XDEPFILES): Delete.
8063 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
8064 * config/mips/linux.mh (XDEPFILES): Delete.
8065 * config/mips/irix6.mh (XDEPFILES): Delete.
8066 * config/mips/irix5.mh (XDEPFILES): Delete.
8067 * config/mips/irix4.mh (XDEPFILES): Delete.
8068 * config/mips/irix3.mh (XDEPFILES): Delete.
8069 * config/mips/decstation.mh (XDEPFILES): Delete.
8070 * config/mips/mipsm3.mh (XDEPFILES): Delete.
8071 (NATDEPFILES): Move core-aout.o to here.
8072 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
8073 * config/pa/hpux1020.mh (XDEPFILES): Delete.
8074 * config/pa/hppabsd.mh (XDEPFILES): Delete.
8075 * config/pa/hppahpux.mh (XDEPFILES): Delete.
8076 * config/pa/hpux11w.mh (XDEPFILES): Delete.
8077 * config/pa/hppaosf.mh (XDEPFILES): Delete.
8078 * config/pa/hpux11.mh (XDEPFILES): Delete.
8079 * config/powerpc/aix.mh (XDEPFILES): Delete.
8080 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
8081 * config/powerpc/linux.mh (XDEPFILES): Delete.
8082 * config/romp/rtbsd.mh: Rename XDEPFILES.
8083 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
8084 * config/rs6000/aix4.mh (XDEPFILES): Delete.
8085 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
8086 * config/s390/s390.mh (XDEPFILES): Delete.
8087 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
8088 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
8089 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
8090 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
8091 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
8092 * config/sparc/nbsd.mh (XDEPFILES): Delete.
8093 * config/sparc/linux.mh (XDEPFILES): Delete.
8094 * config/vax/vaxult.mh (XDEPFILES): Delete.
8095 * config/vax/vaxult2.mh (XDEPFILES): Delete.
8096 * Makefile.in (DEPFILES): Remove XDEPFILES.
8098 2002-01-17 Andrew Cagney <ac131313@redhat.com>
8100 * utils.c (internal_verror): Fix comments, default is yes not no.
8101 Update queries to match. Default to quit and dump core.
8103 2002-01-17 Andrew Cagney <ac131313@redhat.com>
8105 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
8107 * defs.h, event-top.c, gdbcmd.h: Ditto.
8108 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
8109 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
8110 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
8111 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
8112 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
8113 * mi/mi-main.c:Ditto.
8115 * stack.c, symfile.c: Update copyright.
8117 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
8119 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
8120 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
8121 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
8122 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
8124 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
8126 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
8127 * gdbserver/low-lynx.c (myattach): Likewise.
8128 * gdbserver/low-nbsd.c (myattach): Likewise.
8129 * gdbserver/low-sim.c (myattach): Likewise.
8130 * gdbserver/low-sparc.c (myattach): Likewise.
8131 * gdbserver/low-sun3.c (myattach): Likewise.
8133 * gdbserver/low-linux.c (myattach): New function.
8135 * gdbserver/server.c (attach_inferior): New function.
8136 (main): Handle "--attach".
8138 2002-01-16 Andrew Cagney <ac131313@redhat.com>
8140 * MAINTAINERS (language support): Daniel Jacobwitz is C++
8143 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
8145 * c-typeprint.c (is_type_conversion_operator): Add additional
8146 check for non-conversion operators.
8148 2002-01-15 Michael Snyder <msnyder@redhat.com>
8150 * linux-proc.c: Add "info proc" command, a la procfs.c.
8151 (read_mapping): New function, abstract and re-use code.
8152 (linux_find_memory_regions): Use new func read_mapping.
8153 (linux_info_proc_cmd): New function, implement "info proc".
8154 (_initialize_linux_proc): Add new command "info proc".
8156 2002-01-15 Michael Snyder <msnyder@redhat.com>
8158 * symfile.c (generic_load): Use bfd_map_over_sections method
8159 instead of manipulating bfd structure members directly.
8160 (add_section_size_callback): New function, bfd sections callback
8161 used by generic_load.
8162 (load_sections_callback): New function, bfd sections callback
8163 used by generic_load.
8165 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
8167 [Based on work by Jim Blandy]
8168 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
8169 (builtin_type_vec128): Export.
8170 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
8172 (builtin_type_vec128): New builtin type for 128 bit vector
8174 (build_gdbtypes): Initialize builtin_type_v16qi and
8175 builtin_type_v8hi. Create the vec128 register builtin type
8177 (build_builtin_type_vec128): New function.
8178 (_initialize_gdbtypes): Register builtin_type_v16qi and
8179 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
8180 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
8181 AltiVec register to new builtin type.
8183 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
8185 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
8188 2002-01-14 Andrew Cagney <ac131313@redhat.com>
8190 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
8191 CLEAN_UP_REGISTER_VALUE.
8192 * regcache.c (supply_register): Update only call.
8194 2002-01-14 Andrew Cagney <ac131313@redhat.com>
8196 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
8197 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
8198 a29k-*-vxworks* targets as obsolete.
8200 2002-01-14 Michael Snyder <msnyder@redhat.com>
8202 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
8203 until we can resolve portability issues.
8204 * gregset.h: Remove references to fpxregs.
8205 * gcore.c (gcore_command): Initialize note_sec to NULL.
8207 2002-01-13 Andrew Cagney <ac131313@redhat.com>
8209 * signals.c (target_signal_to_name): Rewrite. Only use
8210 signals[].name when in bounds and non-NULL.
8212 2002-01-13 Andrew Cagney <ac131313@redhat.com>
8214 From Petr Ledvina <ledvinap@kae.zcu.cz>:
8215 * signals.c (target_signal_to_name): Verify that SIG is within the
8216 bounds of the signals array.
8218 2002-01-13 Andrew Cagney <ac131313@redhat.com>
8220 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
8222 2002-01-13 Keith Seitz <keiths@redhat.com>
8224 * stack.c (print_frame_info_base): Print the frame's pc
8225 only if when print_frame_info_listing_hook is not defined.
8227 2002-01-13 Keith Seitz <keiths@redhat.com>
8229 * varobj.c (varobj_set_value): Make sure that there were no
8230 errors evaluating the object before attempting to set its
8232 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
8233 so this offset adjustment is no longer necessary.
8234 (create_child): Don't set the error flag if the child is
8236 (value_of_child): If value_fetch_lazy fails, return NULL
8237 so that callers will be notified that an error occurred.
8238 (c_value_of_variable): Delay check of variable's validity
8239 until later. We actually want all structs and unions to have
8241 Do not return "???" for variables which could not be evaluated.
8242 This error condition must be returned to the caller so that it
8243 can get the error condition from gdb.
8244 (cplus_name_of_child): Adjust index for vptr before figuring
8245 out the name of the child.
8246 (cplus_value_of_child): If a child's (real) parent is not valid,
8247 don't even bother trying to give a value for it. Just return
8248 an error. Change all instances in this function.
8249 (cplus_type_of_child): If our parent is one of the "fake"
8250 parents, we need to get at the type of the real parent, and
8251 derive the child's true type using this information.
8253 2002-01-13 Andrew Cagney <ac131313@redhat.com>
8255 From 2002-01-09 John Marshall <johnm@falch.net>:
8256 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
8257 sources.redhat.com, and tweak some related URLs which had
8258 suffered from linkrot.
8260 2002-01-13 Andrew Cagney <ac131313@redhat.com>
8263 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
8264 structures passed in registers.
8266 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
8268 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
8269 white space which prevented compilation. Reported by DSK
8270 <dsk@student.unsw.edu.au>.
8272 2002-01-11 Michael Snyder <msnyder@redhat.com>
8274 * symfile.c (build_section_addr_info_from_section_tab):
8275 Use bfd access method instead of manipulating bfd directly.
8276 (syms_from_objfile): Ditto.
8277 (simple_overlay_update_1): Ditto.
8278 (simple_overlay_update): Ditto.
8279 (generic_load): Ditto.
8280 (overlay_unmapped_address): FIXME comment, bfd access methods.
8281 (sections_overlap): FIXME comment, bfd access methods.
8282 (pc_in_mapped_range): FIXME comment, bfd access methods.
8283 (pc_in_unmapped_range): FIXME comment, bfd access methods.
8284 (section_is_mapped): FIXME comment, bfd access methods.
8285 (section_is_overlay): FIXME comment, bfd access methods.
8287 * symfile.c (generic_load): Whitespace and long line cleanups.
8288 Remove duplicate variable, change several local variables to
8289 more appropriate data types.
8290 (print_transfer_performance): Use %lu instead of %ld for ulongs.
8292 2002-01-12 Andrew Cagney <ac131313@redhat.com>
8295 * language.c (longest_local_hex_string_custom): Use phex_nz to
8296 convert NUM to a hex string.
8298 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
8300 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
8302 Update Copyright year.
8304 2002-01-12 Andrew Cagney <ac131313@redhat.com>
8306 * language.c (longest_raw_hex_string): Delete unused function.
8308 2002-01-11 Petr Sorfa <petrs@caldera.com>
8310 * MAINTAINERS (write-after-approval): Add myself.
8311 * dwarf2read.c (read_tag_string_type): Handling of
8313 (read_tag_string_type): FORTRAN fix to prevent propagation of
8315 (set_cu_language): Handling of DW_LANG_Fortran95
8317 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
8319 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
8320 GETPID(inferior_ptid).
8321 (store_inferior_registers): Likewise.
8323 2002-01-10 Jason Merrill <jason@redhat.com>
8325 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
8328 2002-01-10 Andrew Cagney <ac131313@redhat.com>
8330 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
8331 and bfd/elf32-sh-nbsd.c.
8333 2002-01-10 Michael Snyder <msnyder@redhat.com>
8335 * NEWS: Mention --pid and corefile/proc-id behavior change.
8337 * Makefile.in: Add rules for gcore.o and linux-proc.o.
8338 * gcore.c: Include cli/cli-decode.h instead of command.h.
8340 * main.c (captured_main): Add new command line option "--pid".
8341 If the second command line argument (following the symbol-file)
8342 begins with a digit, try to attach to it before trying to open
8344 (print_gdb_help): Document the "--pid" argument.
8346 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
8348 * completer.c (command_completer): New function.
8350 * completer.h <command_completer>: Add prototype.
8352 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
8353 completer for the "help" command.
8355 2002-01-09 Jason Merrill <jason@redhat.com>
8357 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
8359 2002-01-09 Michael Snyder <msnyder@redhat.com>
8361 * i386-linux-nat.c (fill_fpxregset): Make global.
8362 (store_fpxregset): Ditto.
8364 * gregset.h (gdb_fpxregset_t): Define.
8365 (supply_fpxregset): Prototype.
8366 (fill_fpxregset): Prototype.
8368 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
8370 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
8372 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
8373 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
8374 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
8376 2002-01-09 Andrew Cagney <ac131313@redhat.com>
8378 * MAINTAINERS: Update target maintainer rules so that any
8379 Maintainer can approve a tested patch for a maintenance-only
8382 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
8384 * MAINTAINERS (write-after-approval): Add myself.
8386 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
8389 2002-01-08 Michael Snyder <msnyder@redhat.com>
8391 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
8392 real name of the executable, rather than the /proc name.
8394 2002-01-03 Michael Snyder <msnyder@redhat.com>
8396 Implement a "generate-core-file" command in gdb, save target state.
8397 * gcore.c: New file. Implement new command 'generate-core-file'.
8398 Save a corefile image of the current state of the inferior.
8399 * linux-proc.c: Add linux-specific code for saving corefiles.
8400 * target.h (struct target_ops): Add new target vectors for saving
8401 corefiles; to_find_memory_regions and to_make_corefile_notes.
8402 (target_find_memory_regions): New macro.
8403 (target_make_corefile_notes): New macro.
8404 * target.c (update_current_target): Inherit new target methods.
8405 (dummy_find_memory_regions): New place-holder method.
8406 (dummy_make_corefile_notes): New place-holder method.
8407 (init_dummy_target): Initialize new dummy target vectors.
8408 * exec.c (exec_set_find_memory_regions): New function.
8409 Allow the exec_ops vector for memory regions to be taken over.
8410 (exec_make_note_section): New function, target vector method.
8411 * defs.h (exec_set_find_memory_regions): Export prototype.
8412 * procfs.c (proc_find_memory_regions): New function, corefile method.
8413 (procfs_make_note_section): New function, corefile method.
8414 (init_procfs_ops): Set new target vector pointers.
8415 (find_memory_regions_callback): New function.
8416 (procfs_do_thread_registers): New function.
8417 (procfs_corefile_thread_callback): New function.
8418 * sol-thread.c (sol_find_memory_regions): New function.
8419 (sol_make_note_section): New function.
8420 (init_sol_thread_ops): Initialize new target vectors.
8421 * inftarg.c (inftarg_set_find_memory_regions): New function.
8422 Allow to_find_memory_regions vector to be taken over.
8423 (inftarg_set_make_corefile_notes): New function.
8424 Allow to_make_corefile_notes vector to be taken over.
8425 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
8426 interface layer if not target_has_execution (may be a corefile).
8427 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
8428 * config/sparc/sun4sol2.mh: Ditto.
8429 * config/alpha/alpha-linux.mh: Ditto.
8430 * config/arm/linux.mh: Ditto.
8431 * config/i386/x86-64linux.mh: Ditto.
8432 * config/ia64/linux.mh: Ditto.
8433 * config/m68k/linux.mh: Ditto.
8434 * config/mips/linux.mh: Ditto.
8435 * config/powerpc/linux.mh: Ditto.
8436 * config/sparc/linux.mh: Ditto.
8438 2002-01-07 Michael Snyder <msnyder@redhat.com>
8440 * arm-linux-nat.c: Remove references to regcache.c internal data
8441 (registers[] and register_valid[]).
8443 2002-01-07 Michael Snyder <msnyder@redhat.com>
8445 * linux-proc.c: New file. Implement child_pid_to_exec_file,
8446 so that attaching to a pid will automatically read the process's
8447 symbol file and shlibs.
8448 * Makefile.in: Add rule for linux-proc.o.
8449 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
8450 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
8451 * config/arm/linux.mh: Ditto.
8452 * config/i386/linux.mh: Ditto.
8453 * config/i386/x86-64linux.mh: Ditto.
8454 * config/ia64/linux.mh: Ditto.
8455 * config/m68k/linux.mh: Ditto.
8456 * config/mips/linux.mh: Ditto.
8457 * config/powerpc/linux.mh: Ditto.
8458 * config/sparc/linux.mh: Ditto.
8460 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
8462 * win32-nat.c: Add i386-tdep.h dependency.
8464 2002-01-07 Michael Snyder <msnyder@redhat.com>
8466 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
8467 instead of bfd_get_arch_size. Don't bail out just because
8468 there's no exec_bfd.
8470 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
8471 * p-valprint.c (pascal_object_print_value): Ditto.
8472 * somread.c (som_symtab_read): Ditto.
8473 * symfile.c (simple_free_overlay_region_table): Ditto.
8474 * valops.c (value_assign): Ditto.
8476 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
8477 use tilde_expand and strerror for opening save-tracepoints file.
8479 * thread-db.c (thread_db_new_objfile): Indendation fix.
8481 * infptrace.c (GDB_MAX_ALLOCA): New define.
8482 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
8483 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
8484 can be overridden with whatever value is appropriate to the host).
8485 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
8486 alloca to allocate potentially large buffer.
8487 * rs6000-nat.c (child_xfer_memory): Ditto.
8488 * symm-nat.c (child_xfer_memory): Ditto.
8489 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
8491 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
8493 From Nick Clifton <nickc@redhat.com>
8494 * d10v-tdep.c: Set STACK_START to 0x200bffe.
8496 2002-01-07 Michael Snyder <msnyder@redhat.com>
8498 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
8499 Don't use exec_bfd if it's NULL.
8501 2002-01-06 Mark Kettenis <kettenis@gnu.org>
8503 * valops.c (value_arg_coerce): Fix formatting.
8505 2002-01-06 Andrew Cagney <ac131313@redhat.com>
8507 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
8510 2002-01-06 Andrew Cagney <ac131313@redhat.com>
8512 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
8513 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
8514 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
8515 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
8516 z8k-coff have not been multi-arched. Update z8k-coff build
8519 2002-01-06 Andrew Cagney <ac131313@redhat.com>
8521 * MAINTAINERS: Mark a29k target as obsolete.
8522 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
8523 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
8525 * NEWS: Note that a29k targets are obsolete.
8526 * a29k-tdep.c: Mark as obsolete.
8527 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
8528 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
8529 a29k-*-vxworks* targets as obsolete.
8530 * remote-adapt.c: Obsolete.
8531 * remote-eb.c: Obsolete.
8532 * remote-mm.c: Obsolete.
8533 * remote-udi.c: Obsolete.
8534 * config/a29k/a29k-udi.mt: Obsolete.
8535 * config/a29k/a29k.mt: Obsolete.
8536 * config/a29k/tm-a29k.h: Obsolete.
8537 * config/a29k/tm-vx29k.h: Obsolete.
8538 * config/a29k/vx29k.mt: Obsolete.
8540 2002-01-05 Andrew Cagney <ac131313@redhat.com>
8542 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
8543 with BFD_ENDIAN_BIG.
8545 2002-01-05 Andrew Cagney <ac131313@redhat.com>
8547 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
8548 * configure, config.in: Re-generate.
8549 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
8550 * defs.h: Do not include <endian.h>.
8552 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
8554 * acconfig.h (HAVE_PT_GETXMMREGS): New.
8555 * config.in: Regenerate.
8556 * configure.in: Update copyright years.
8557 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
8558 * configure: Regenerate.
8559 * i386bsd-nat.c: Update copyright years.
8560 (fill_gregset): Use regcache_collect.
8561 (fetch_inferior_registers): Only fetch integer registers
8562 if requested to do so. Add support for XMM registers
8563 using PT_GETXMMREGS.
8564 (store_inferior_registers): Only store integer registers
8565 if requested to do so. Add support for XMM registers
8566 using PT_SETXMMREGS.
8567 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
8568 (store_inferior_registers): Remove.
8569 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
8570 (fetch_elfcore_registers): New function.
8571 (i386nbsd_elfcore_fns): New.
8572 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
8573 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
8575 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8576 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
8577 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
8578 * config/i386/tm-nbsd.h: Update copyright years.
8579 (HAVE_SSE_REGS): Define.
8580 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
8581 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
8582 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
8583 (SIGCONTEXT_PC_OFFSET): Remove.
8584 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
8586 2002-01-05 Andrew Cagney <ac131313@redhat.com>
8588 * configure.tgt: Remove powerpc-*-macos* target.
8589 * config/m68k/xm-mpw.h: Delete file.
8590 * config/xm-mpw.h: Delete file.
8591 * ser-mac.c: Delete file.
8592 * mpw-make.sed: Delete file.
8593 * mpw-config.in: Delete file.
8594 * mac-xdep.c: Delete file.
8595 * mac-gdb.r: Delete file.
8596 * mac-defs.h: Delete file.
8597 * mac-nat.c: Delete file.
8598 * config/powerpc/macos.mh: Delete file.
8599 * config/powerpc/macos.mt: Delete file.
8600 * config/powerpc/nm-macos.h: Delete file.
8601 * config/powerpc/tm-macos.h: Delete file.
8602 * source.c (openp, open_source_file): Remove obsolete code.
8603 * top.c (gdb_readline): Ditto.
8604 * utils.c (query): Ditto.
8605 * event-top.c (display_gdb_prompt): Ditto.
8606 * Makefile.in (ser-mac.o): Delete obsolete target.
8609 2002-01-04 Andrew Cagney <ac131313@redhat.com>
8611 * defs.h (BIG_ENDIAN): Delete macro definition.
8612 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
8613 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
8614 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
8615 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
8616 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
8617 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
8618 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
8619 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
8620 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
8621 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
8622 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
8623 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
8624 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
8625 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
8626 * gdbarch.c: Re-generate.
8628 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
8630 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
8633 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
8635 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
8637 2002-01-04 Andrew Cagney <ac131313@redhat.com>
8639 * value.h (value_ptr): Delete typedef.
8641 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
8643 * i386nbsd-nat.c: Update copyright years.
8644 Include i386-tdep.h.
8646 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
8648 * stabsread.c: Update copyright years.
8650 From Debashis Mahata <debashis.mahata@wipro.com>:
8651 (read_struct_fields): Deal with Sun C compiler erroneous stab
8652 output for structs and unions.
8655 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
8657 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
8660 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
8662 * cp-abi.c: Fix whitespace.
8663 (baseclass_offset): New wrapper function.
8664 * cp-abi.h (baseclass_offset): Add prototype.
8665 (struct cp_abi_ops): Add baseclass_offset pointer.
8667 * valops.c (vb_match): Move to...
8668 * gnu-v2-abi.c (vb_match): here.
8669 * valops.c (baseclass_offset): Move to...
8670 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
8672 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
8674 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
8675 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
8676 * hpacc-abi.c (init_hpacc_ops): Likewise.
8678 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
8680 * valops.c (find_overload_match): Accept obj as a
8681 reference parameter. Update it before returning.
8682 * value.h (find_overload_match): Update prototype.
8683 * eval.c (evaluate_subexp_standard): Pass object to
8684 find_overload_match by reference.
8686 2002-01-03 Andrew Cagney <ac131313@redhat.com>
8688 * valarith.c: Replace value_ptr with struct value pointer. Remove
8689 register attribute from value declarations.
8692 * scm-lang.c (scm_lookup_name): Ditto.
8694 2002-01-03 Michael Snyder <msnyder@redhat.com>
8696 Abstract the functionality of iterating over mapped memory
8697 regions into a general purpose iterator function.
8698 * procfs.c (iterate_over_mappings): New function, general purpose
8699 iterator for memory sections.
8700 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
8701 (solib_mappings_callback): New function, callback for above.
8702 (info_proc_mappings): Reimpliment using iterate_over_mappings.
8703 (info_mappings_callback): New function, callback for above.
8705 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
8707 2002-01-01 Mark Kettenis <kettenis@gnu.org>
8709 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
8710 * i386-tdep.c: Include "elf-bfd.h".
8711 (process_note_abi_tag_sections): New function.
8712 (i386_gdbarch_init): Add code to recognize various OS/ABI
8715 * maint.c (_initialize_maint_cmds): Add missing \ in
8718 For older changes see ChangeLog-2001
8724 version-control: never